Whamcloud - gitweb
LU-12602 mdt: check EA size in mdt_getxattr_pack_reply() 68/35768/3
authorEmoly Liu <emoly@whamcloud.com>
Wed, 14 Aug 2019 07:52:58 +0000 (15:52 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Aug 2019 02:21:06 +0000 (02:21 +0000)
commit915135c37cbfa6851a5ec732afd20955eb020566
tree0a9be6fb93f3dcdd4c4a6372fecbf661dba9655b
parent149f005a3199eee13fe6396671613a0f620ee0cc
LU-12602 mdt: check EA size in mdt_getxattr_pack_reply()

Check EA data size(non-positive or excessively large) in case of
any corruption.

Change-Id: I8ccea214f8d7c0403a9df180acf487ee381b8d77
Reported-by: Alibaba Cloud <yunye.ry@alibaba-inc.com>
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35768
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_xattr.c