Whamcloud - gitweb
LU-12590 ptlrpc: check lm_bufcount and lm_buflen 83/35783/7
authorEmoly Liu <emoly@whamcloud.com>
Thu, 29 Aug 2019 02:55:13 +0000 (10:55 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:34:05 +0000 (01:34 +0000)
commit268edb13d769994c4841864034d72f0bd7b36e12
treee51cce4ed1b41fd88d7da14a5f9508d27b83c520
parent5a02d431f4a0a80915afa19c065df29c61e26ec9
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.

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