diff options
author | David Sterba <dsterba@suse.cz> | 2015-03-25 19:26:41 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-03-27 02:10:24 +0100 |
commit | 3c3b04d10ff1811a27f86684ccd2f5ba6983211d (patch) | |
tree | 3ad3d87edc735b1f2445fe92e9d5610ea367af32 /fs/btrfs/extent_io.c | |
parent | Btrfs: fix log tree corruption when fs mounted with -o discard (diff) | |
download | linux-3c3b04d10ff1811a27f86684ccd2f5ba6983211d.tar.xz linux-3c3b04d10ff1811a27f86684ccd2f5ba6983211d.zip |
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 <william.douglas@intel.com>
CC: <stable@vger.kernel.org> # 2.6.29+
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions