diff options
author | Daeho Jeong <[email protected]> | 2018-01-20 15:46:33 +0800 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2018-01-22 14:56:57 -0800 |
commit | b2c4692bc25c095ca2317cc5a8619597a892e7af (patch) | |
tree | 3cc9367d35e6ef09f4c29090aaf6ebc2bc60d5cf /net/unix/sysctl_net_unix.c | |
parent | db198ae0f823e13e3698b24049e741978a0f14e3 (diff) |
f2fs: correct removexattr behavior for null valued extended attribute
__vfs_removexattr() transfers "NULL" value to the setxattr handler of
the f2fs filesystem in order to remove the extended attribute. But,
__f2fs_setxattr() just ignores the removal request when the value of
the extended attribute is already NULL. We have to remove the extended
attribute itself even if the value of that is already NULL.
We can reporduce this bug with the below:
1. touch file
2. setfattr -n "user.foo" file
3. setfattr -x "user.foo" file
4. getfattr -d file
> user.foo
Signed-off-by: Daeho Jeong <[email protected]>
Signed-off-by: Youngjin Gil <[email protected]>
Tested-by: Hobin Woo <[email protected]>
Tested-by: Chao Yu <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions