[f2fs-dev] [PATCH AUTOSEL 6.1 24/34] f2fs: fix to do sanity check on direct node in truncate_dnode()

2023-07-23 Thread Sasha Levin
From: Chao Yu [ Upstream commit a6ec83786ab9f13f25fb18166dee908845713a95 ] syzbot reports below bug: BUG: KASAN: slab-use-after-free in f2fs_truncate_data_blocks_range+0x122a/0x14c0 fs/f2fs/file.c:574 Read of size 4 at addr 88802a25c000 by task syz-executor148/5000 CPU: 1 PID: 5000 Comm:

[f2fs-dev] [PATCH AUTOSEL 6.4 26/40] f2fs: fix to do sanity check on direct node in truncate_dnode()

2023-07-23 Thread Sasha Levin
From: Chao Yu [ Upstream commit a6ec83786ab9f13f25fb18166dee908845713a95 ] syzbot reports below bug: BUG: KASAN: slab-use-after-free in f2fs_truncate_data_blocks_range+0x122a/0x14c0 fs/f2fs/file.c:574 Read of size 4 at addr 88802a25c000 by task syz-executor148/5000 CPU: 1 PID: 5000 Comm: