kernel_samsung_a53x/fs/f2fs
Zhiguo Niu 142f78e719 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 <zhiguo.niu@unisoc.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-23 23:20:46 +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: reduce timeout for uncongestion 2024-11-19 17:55:37 +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 f2fs: set ioprio of GC kthread to idle 2024-11-19 17:55:41 +01: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: fix to do sanity check in update_sit_entry 2024-11-23 23:20:46 +01:00
segment.h f2fs: fix start segno of large section 2024-11-23 23:20:16 +01: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