kernel_samsung_a53x/fs/f2fs
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
..
acl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checkpoint.c f2fs: use copy_page for full page copy 2024-11-17 17:41:42 +01:00
compress.c f2fs: compress: remove unneeded preallocation 2024-11-19 12:27:02 +01:00
data.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
extent_cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
f2fs.h f2fs: use copy_page for full page copy 2024-11-17 17:41:42 +01:00
file.c f2fs: compress: don't allow unaligned truncation on released compress inode 2024-11-19 12:27:05 +01:00
gc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode() 2024-11-19 12:27:13 +01:00
Kconfig f2fs: Add support for reporting a fake kernel version to fsck 2024-11-17 17:43:26 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namei.c f2fs: fix to avoid dirent corruption 2024-11-18 12:12:39 +01:00
node.c f2fs: fix to release node block count in error path of f2fs_new_node_page() 2024-11-19 12:27:05 +01:00
node.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.c f2fs: fix write pointers on zoned device after roll forward 2024-11-18 12:13:17 +01:00
segment.c f2fs: use copy_page for full page copy 2024-11-17 17:41:42 +01:00
segment.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shrinker.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c f2fs: remove clear SB_INLINECRYPT flag in default_options 2024-11-19 14:19:07 +01:00
sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
verity.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.c f2fs: explicitly null-terminate the xattr list 2024-11-18 12:12:11 +01:00
xattr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00