Whamcloud - gitweb
LU-12811 ptlrpc: pass buflen to lustre_swab_object_update_*() 67/36867/5
authorEmoly Liu <emoly@whamcloud.com>
Wed, 27 Nov 2019 14:35:56 +0000 (22:35 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 11 Mar 2020 02:10:07 +0000 (02:10 +0000)
commitc2a6f1a2afee6c416a3e7659b863bcc6246761f0
tree45d94cfb9845881048b1e3e7111b393dd3df9c0b
parente07f1041867d9888a1e5cca0a0e5ca11872ac8f8
LU-12811 ptlrpc: pass buflen to lustre_swab_object_update_*()

Pass the buffer size to the swabbing functions
lustre_swab_object_update_reply() and
lustre_swab_object_update_request() to avoid invalid access,
especially for small buffer.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: I229c1946ec3c088c7804762655f143dc419b2ea0
Reviewed-on: https://review.whamcloud.com/36867
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_swab.h
lustre/ptlrpc/layout.c
lustre/ptlrpc/pack_generic.c
lustre/target/out_handler.c