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>
Wed, 12 Sep 2012 04:30:41 +0000 (00:30 -0400)
commit60b32b25b2c10645a20109c3742919e0fddcd712
tree2b5bcd2995a76ff6af6e81aecc130c47e1bc38f9
parent634f76431b5d235b8e6c818297d4dcf403198e44
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