Whamcloud - gitweb
LU-13168 tests: verify truncated xattr is handled 34/38434/5
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Apr 2020 22:20:01 +0000 (16:20 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:39:30 +0000 (05:39 +0000)
commitcb74546354201434a6fd3d53acd1a0808fbfcb1c
tree25ac8bea7153ca4893f49a00e3f9ea9339676f93
parentda8972322134ae5741e7176312fca1f980c0f69a
LU-13168 tests: verify truncated xattr is handled

Verify that a truncated trusted.lov xattr is handled properly,
for both plain and PFL layouts.

Add a test case that verifies this is fixed for both layout types.

Fixes: f2d06d3c76 ("LU-12911 llite: Don't access lov_md fields before size check")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I11d420c7fdc2362f64689a545b95c76e893ebbe5
Reviewed-on: https://review.whamcloud.com/38434
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/xattr.c
lustre/tests/sanity.sh