android_kernel_xiaomi_sm8450/fs/f2fs
Yunlei He 38a82c8d00 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-07-05 09:12:36 +02:00
..
acl.c f2fs: clean up kvfree 2020-09-14 11:15:37 -07:00
acl.h f2fs: Use the correct style for SPDX License Identifier 2020-05-08 06:55:55 -07:00
checkpoint.c f2fs: fix typos in comments 2024-06-16 13:32:18 +02:00
compress.c f2fs: compress: fix compression chksum 2024-06-16 13:32:36 +02:00
data.c f2fs: fix typos in comments 2024-06-16 13:32:18 +02:00
debug.c f2fs: avoid race condition for shrinker count 2021-01-06 14:56:54 +01:00
dir.c f2fs: reduce the scope of setting fsck tag when de->name_len is zero 2021-09-18 13:40:13 +02:00
extent_cache.c f2fs: fix typos in comments 2024-06-16 13:32:18 +02:00
f2fs.h f2fs: introduce FI_COMPRESS_RELEASED instead of using IMMUTABLE bit 2024-06-16 13:32:17 +02:00
file.c f2fs: compress: don't allow unaligned truncation on released compress inode 2024-06-16 13:32:21 +02:00
gc.c f2fs: fix to do sanity check on inode type during garbage collection 2023-11-08 17:30:46 +01:00
gc.h f2fs: support age threshold based garbage collection 2020-09-11 11:11:15 -07:00
hash.c f2fs-for-5.8-rc1 2020-06-09 11:28:59 -07:00
inline.c f2fs: use memcpy_{to,from}_page() where possible 2023-03-11 16:40:09 +01:00
inode.c f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode() 2024-06-16 13:32:31 +02:00
Kconfig f2fs: compress: support lzo-rle compress algorithm 2020-05-11 20:36:46 -07:00
Makefile f2fs: support data compression 2020-01-17 16:48:07 -08:00
namei.c f2fs: fix typos in comments 2024-06-16 13:32:18 +02:00
node.c f2fs: fix to release node block count in error path of f2fs_new_node_page() 2024-06-16 13:32:21 +02:00
node.h f2fs: avoid race condition for shrinker count 2021-01-06 14:56:54 +01:00
recovery.c f2fs: fix write pointers on zoned device after roll forward 2024-02-23 08:42:11 +01:00
segment.c f2fs: fix typos in comments 2024-06-16 13:32:18 +02:00
segment.h f2fs: apply zone capacity to all zone type 2023-05-17 11:47:49 +02:00
shrinker.c f2fs: avoid race condition for shrinker count 2021-01-06 14:56:54 +01:00
super.c f2fs: remove clear SB_INLINECRYPT flag in default_options 2024-07-05 09:12:36 +02:00
sysfs.c f2fs: fix iostat lock protection 2023-06-14 11:09:31 +02:00
trace.c f2fs: do not use mutex lock in atomic context 2019-03-05 19:58:06 -08:00
trace.h f2fs: Use the correct style for SPDX License Identifier 2020-05-08 06:55:55 -07:00
verity.c fs: f2fs: initialize fsdata in pagecache_write() 2023-03-11 16:40:09 +01:00
xattr.c f2fs: explicitly null-terminate the xattr list 2024-01-25 14:37:35 -08:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00