Whamcloud - gitweb
LU-1823 mdd: Don't provide buffer for xattr when we just need size
authorOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2012 23:46:41 +0000 (19:46 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Sep 2012 21:05:31 +0000 (17:05 -0400)
commit15ea8482254911357109bcaa72630511d09e5f07
tree06a3cfe863f94b2e6d193f4bc457b59984c693a8
parentad173173fe6b67e41c2c232a15c5eb6939836871
LU-1823 mdd: Don't provide buffer for xattr when we just need size

mdd_declare_attr_set incorrectly passed uninitialized buffer to mdo_xattr_get
where as it is just interested in knowing if xattr exists at all.
The buffer happens to point to other people's data sometimes which leads
to random memory corruptions.

Change-Id: I28b477d385427292ad38455d495ab546f757c7d5
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/3928
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/mdd/mdd_object.c