diff options
author | David Sterba <dsterba@suse.cz> | 2015-03-25 19:26:41 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-08-07 00:32:01 +0100 |
commit | 07489bed80696168a3e43212f63832e55e18b4ae (patch) | |
tree | 8ceec9124ad5d14348907d5d8d39a21a6385cc43 /arch | |
parent | d7aac3477aa40744eb9c101a163a910d4bc7b27a (diff) | |
download | kernel_samsung_smdk4412-07489bed80696168a3e43212f63832e55e18b4ae.zip kernel_samsung_smdk4412-07489bed80696168a3e43212f63832e55e18b4ae.tar.gz kernel_samsung_smdk4412-07489bed80696168a3e43212f63832e55e18b4ae.tar.bz2 |
btrfs: don't accept bare namespace as a valid xattr
commit 3c3b04d10ff1811a27f86684ccd2f5ba6983211d upstream.
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>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
[bwh: Backported to 3.2: XATTR_BTRFS_PREFIX is not supported]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions