diff options
| author | Weichao Guo <guoweichao@oppo.com> | 2020-12-14 06:54:53 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-01-28 02:20:00 +0300 |
| commit | a28d9aa1a2c7c774c38f2da1a662434bc29cb98e (patch) | |
| tree | b7b2ff3999ccae493d005af77be084de7081433f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 36218b81f094648d929994399eb6eb5c97b991e5 (diff) | |
| download | linux-a28d9aa1a2c7c774c38f2da1a662434bc29cb98e.tar.xz | |
f2fs: fix to set inode->i_mode correctly for posix_acl_update_mode
We should update the ~S_IRWXUGO part of inode->i_mode in __setattr_copy,
because posix_acl_update_mode updates mode based on inode->i_mode,
which finally overwrites the ~S_IRWXUGO part of i_acl_mode with old i_mode.
Testcase to reproduce this bug:
0. adduser abc
1. mkfs.f2fs /dev/sdd
2. mount -t f2fs /dev/sdd /mnt/f2fs
3. mkdir /mnt/f2fs/test
4. setfacl -m u:abc:r /mnt/f2fs/test
5. chmod +s /mnt/f2fs/test
Signed-off-by: Weichao Guo <guoweichao@oppo.com>
Signed-off-by: Bin Shu <shubin@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
