From: David Sterba Date: Wed, 25 Mar 2015 18:26:41 +0000 (+0100) Subject: btrfs: don't accept bare namespace as a valid xattr X-Git-Tag: omap-for-v4.1/fixes-rc1~43^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3b04d10ff1811a27f86684ccd2f5ba6983211d;p=pandora-kernel.git btrfs: don't accept bare namespace as a valid xattr Due to insufficient check in btrfs_is_valid_xattr, this unexpectedly works: $ touch file $ setfattr -n user. -v 1 file $ getfattr -d file user.="1" ie. the missing attribute name after the namespace. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=94291 Reported-by: William Douglas CC: # 2.6.29+ Signed-off-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed