Whamcloud - gitweb
LU-12590 ptlrpc: check lm_bufcount and lm_buflen 19/36119/2
authorEmoly Liu <emoly@whamcloud.com>
Thu, 29 Aug 2019 02:55:13 +0000 (10:55 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Sep 2019 04:24:06 +0000 (04:24 +0000)
commit2257e1ed7ce6a449fdc52ca7a492b8320289e9db
treea1aa5ea02acec29e1c4fa773d6fcea4f41a3bcde
parenta58712cef72698d462b5ca0be9ebd1793e0bd89d
LU-12590 ptlrpc: check lm_bufcount and lm_buflen

Check lm_bufcount to be used by lustre_msg_hdr_size_v2() and
validate individual and total buffer lengths in
lustre_unpack_msg_v2() in case of any out-of-bound read.

Lustre-change: https://review.whamcloud.com/35783
Lustre-commit: 268edb13d769994c4841864034d72f0bd7b36e12

Change-Id: I4905e0665c7770443684cffe504935d27473d7c6
Reported-by: Alibaba Cloud <yunye.ry@alibaba-inc.com>
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Yunye Ry <yunye.ry@alibaba-inc.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36119
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_net.h
lustre/ptlrpc/pack_generic.c