android_kernel_motorola_sm6375/fs/f2fs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zhiguo Niu 7026ba0a09 f2fs: fix to do sanity check in update_sit_entry
[ Upstream commit 36959d18c3cf09b3c12157c6950e18652067de77 ]

If GET_SEGNO return NULL_SEGNO for some unecpected case,
update_sit_entry will access invalid memory address,
cause system crash. It is better to do sanity check about
GET_SEGNO just like update_segment_mtime & locate_dirty_segment.

Also remove some redundant judgment code.

Signed-off-by: Zhiguo Niu <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-09-04 13:14:56 +02:00
..
acl.c
acl.h
checkpoint.c f2fs: fix to drop all dirty pages during umount() if cp_error is set 2023-05-30 12:44:03 +01:00
data.c f2fs: fix to drop all dirty pages during umount() if cp_error is set 2023-05-30 12:44:03 +01:00
debug.c
dir.c
extent_cache.c
f2fs.h
file.c f2fs: fix to initialize map.m_pblk in f2fs_precache_extents() 2023-11-20 10:30:14 +01:00
gc.c f2fs: fix to do sanity check on inode type during garbage collection 2023-11-08 11:23:38 +01:00
gc.h
hash.c
inline.c f2fs: use memcpy_{to,from}_page() where possible 2023-03-11 16:44:08 +01:00
inode.c f2fs: fix to don't dirty inode for readonly filesystem 2024-08-19 05:33:37 +02:00
Kconfig
Makefile
namei.c f2fs: fix to avoid dirent corruption 2024-01-25 14:34:27 -08:00
node.c f2fs: fix to release node block count in error path of f2fs_new_node_page() 2024-06-16 13:28:43 +02:00
node.h
recovery.c f2fs: fix to check return value of f2fs_reserve_new_block() 2024-02-23 08:25:00 +01:00
segment.c f2fs: fix to do sanity check in update_sit_entry 2024-09-04 13:14:56 +02:00
segment.h
shrinker.c
super.c f2fs: use memcpy_{to,from}_page() where possible 2023-03-11 16:44:08 +01:00
sysfs.c
trace.c
trace.h
verity.c fs: f2fs: initialize fsdata in pagecache_write() 2023-03-11 16:44:08 +01:00
xattr.c f2fs: explicitly null-terminate the xattr list 2024-01-25 14:34:19 -08:00
xattr.h