aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChristopher J. Morrone <[email protected]>2015-03-25 21:53:18 -0400
committerGreg Kroah-Hartman <[email protected]>2015-03-26 11:10:24 +0100
commitf42894004727ffdfb3b0826b0047eaf44cbdece6 (patch)
tree0b609f312ce92297a35888641c0fa81aece71959 /tools/perf/scripts/python/bin
parentc61ac9791e357e0589f688a0a5ee4ad24f41cd84 (diff)
staging/lustre/mdc: Handle empty but non-zero acl xattr
We have found that posix_acl_access can have a value of \002\000\000\000. In that case body->aclsize is non-zero, but the there are no actuall acls stored in the xattr. In mdc_unpack_acl(), it only checks IS_ERR() on the pointer returned by posix_acl_from_xattr(), it does not check for NULL. Because of the above situation, the xattr aclsize can be non-zero, but posic_acl_from_xattr() still returns NULL. Passing NULL to posix_acl_valid() crashes the kernel. We add a check to properly handle the NULL return value. Signed-off-by: Christopher J. Morrone <[email protected]> Reviewed-on: http://review.whamcloud.com/11989 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5150 Reviewed-by: Fan Yong <[email protected]> Reviewed-by: Bob Glossman <[email protected]> Signed-off-by: Oleg Drokin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions