Files
linux-stable-mirror/fs/f2fs
Zhiguo NiuandGreg Kroah-Hartman 428fb40bd9 f2fs: fix to do sanity check in update_sit_entry
[ Upstream commit 36959d18c3 ]

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-08-29 17:33:38 +02:00
..
2024-08-03 08:54:23 +02:00
2023-08-02 09:13:09 -06:00
2023-06-26 06:07:10 -07:00