linux_dsm_epyc7002/fs/f2fs
Chao Yu 4507847c86 f2fs: support FS_IOC_{GET,SET}FSLABEL
Support two generic fs ioctls FS_IOC_{GET,SET}FSLABEL, letting
f2fs pass generic/492 testcase.

Fixes were made by Eric where:
 - f2fs: fix buffer overruns in FS_IOC_{GET, SET}FSLABEL
   utf16s_to_utf8s() and utf8s_to_utf16s() take the number of characters,
   not the number of bytes.

 - f2fs: fix copying too many bytes in FS_IOC_SETFSLABEL
   Userspace provides a null-terminated string, so don't assume that the
   full FSLABEL_MAX bytes can always be copied.

 - f2fs: add missing authorization check in FS_IOC_SETFSLABEL
   FS_IOC_SETFSLABEL modifies the filesystem superblock, so it shouldn't be
   allowed to regular users.  Require CAP_SYS_ADMIN, like xfs and btrfs do.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2019-08-23 07:57:15 -07:00
..
acl.c
acl.h
checkpoint.c
data.c f2fs: support fiemap() for directory inode 2019-08-23 07:57:11 -07:00
debug.c fs: f2fs: Remove unnecessary checks of SM_I(sbi) in update_general_status() 2019-08-23 07:57:12 -07:00
dir.c f2fs: Support case-insensitive file name lookups 2019-08-23 07:57:13 -07:00
extent_cache.c
f2fs.h f2fs: support FS_IOC_{GET,SET}FSLABEL 2019-08-23 07:57:15 -07:00
file.c f2fs: support FS_IOC_{GET,SET}FSLABEL 2019-08-23 07:57:15 -07:00
gc.c
gc.h
hash.c f2fs: Support case-insensitive file name lookups 2019-08-23 07:57:13 -07:00
inline.c f2fs: Support case-insensitive file name lookups 2019-08-23 07:57:13 -07:00
inode.c f2fs: use wrapped f2fs_cp_error() 2019-08-23 07:57:13 -07:00
Kconfig f2fs: Fix build error while CONFIG_NLS=m 2019-08-23 07:57:14 -07:00
Makefile
namei.c f2fs: Support case-insensitive file name lookups 2019-08-23 07:57:13 -07:00
node.c f2fs: fix wrong available node count calculation 2019-08-23 07:57:14 -07:00
node.h
recovery.c
segment.c f2fs: fix to avoid data corruption by forbidding SSR overwrite 2019-08-23 07:57:14 -07:00
segment.h
shrinker.c
super.c f2fs: fix wrong available node count calculation 2019-08-23 07:57:14 -07:00
sysfs.c f2fs: include charset encoding information in the superblock 2019-08-23 07:57:13 -07:00
trace.c
trace.h
xattr.c f2fs: fix to detect cp error in f2fs_setxattr() 2019-08-23 07:57:11 -07:00
xattr.h