kernel_samsung_a53x/fs
Yunlei He 6f6c37f5f0 f2fs: remove clear SB_INLINECRYPT flag in default_options
[ Upstream commit ac5eecf481c29942eb9a862e758c0c8b68090c33 ]

In f2fs_remount, SB_INLINECRYPT flag will be clear and re-set.
If create new file or open file during this gap, these files
will not use inlinecrypt. Worse case, it may lead to data
corruption if wrappedkey_v0 is enable.

Thread A:                               Thread B:

-f2fs_remount				-f2fs_file_open or f2fs_new_inode
  -default_options
	<- clear SB_INLINECRYPT flag

                                          -fscrypt_select_encryption_impl

  -parse_options
	<- set SB_INLINECRYPT again

Signed-off-by: Yunlei He <heyunlei@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:07 +01:00
..
9p
adfs
affs
afs
autofs Revert "file: Replace ksys_close with close_fd" 2024-11-19 12:59:08 +01:00
befs
bfs
btrfs btrfs: fix leak of qgroup extent records after transaction abort 2024-11-19 14:19:02 +01:00
cachefiles Revert "namei: introduce struct renamedata" 2024-11-19 13:45:08 +01:00
ceph
cifs exit: Rename module_put_and_exit to module_put_and_kthread_exit 2024-11-19 12:27:50 +01:00
coda
configfs
cramfs
crypto
debugfs
devpts
dlm
ecryptfs Revert "namei: introduce struct renamedata" 2024-11-19 13:45:08 +01:00
efivarfs
efs
erofs
exfat
exportfs exportfs: use pr_debug for unreachable debug statements 2024-11-19 12:28:26 +01:00
ext2
ext4
f2fs f2fs: remove clear SB_INLINECRYPT flag in default_options 2024-11-19 14:19:07 +01:00
fat
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hugetlbfs
incfs
iomap
isofs
jbd2
jffs2
jfs jfs: xattr: fix buffer overflow for invalid xattr 2024-11-19 14:19:02 +01:00
kernfs
lockd lockd: drop inappropriate svc_get() from locked_get() 2024-11-19 12:28:32 +01:00
minix
nfs nfsd: don't allow nfsd threads to be signalled. 2024-11-19 12:28:32 +01:00
nfs_common NFSD: Add an xdr_stream-based encoder for NFSv2/3 ACLs 2024-11-19 12:27:35 +01:00
nfsd Revert "namei: introduce struct renamedata" 2024-11-19 13:45:08 +01:00
nilfs2 nilfs2: fix potential kernel bug due to lack of writeback flag waiting 2024-11-19 14:19:05 +01:00
nls
notify Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
ntfs
ocfs2 ocfs2: fix races between hole punching and AIO+DIO 2024-11-19 14:19:04 +01:00
omfs
openpromfs
orangefs
overlayfs Revert "namei: introduce struct renamedata" 2024-11-19 13:45:08 +01:00
proc fs/proc: fix softlockup in __read_vmcore 2024-11-19 14:19:04 +01:00
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
sdfat
squashfs
sysfs
sysv
tracefs
ubifs
udf Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
ufs
unicode
vboxsf
verity Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
xfs
zonefs
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c
buffer.c
char_dev.c
compat_binfmt_elf.c
coredump.c exec: Simplify unshare_files 2024-11-19 12:27:27 +01:00
d_path.c
dax.c
dcache.c
dcookies.c
direct-io.c
dlog_hook.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c exec: Simplify unshare_files 2024-11-19 12:27:27 +01:00
fcntl.c
fhandle.c
file.c Revert "file: Rename __close_fd to close_fd and remove the files parameter" 2024-11-19 12:59:13 +01:00
file_table.c
filesystems.c
fs-writeback.c
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c
init.c Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
inode.c
internal.h
ioctl.c
Kconfig NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
Kconfig.binfmt
kernel_read_file.c
libfs.c
locks.c Revert "filelock: add a new locks_inode_context accessor function" 2024-11-19 13:30:52 +01:00
Makefile
mbcache.c
mount.h
mpage.c
namei.c Revert "namei: introduce struct renamedata" 2024-11-19 13:45:08 +01:00
namespace.c
no-block.c
nsfs.c
open.c Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
remap_range.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c
sync.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c