Re: [PATCH v2] ext4: fix slab-use-after-free in ext4_es_insert_extent()

From: Theodore Ts'o
Date: Thu Aug 24 2023 - 00:55:32 EST



On Tue, 15 Aug 2023 15:08:08 +0800, Baokun Li wrote:
> Yikebaer reported an issue:
> ==================================================================
> BUG: KASAN: slab-use-after-free in ext4_es_insert_extent+0xc68/0xcb0
> fs/ext4/extents_status.c:894
> Read of size 4 at addr ffff888112ecc1a4 by task syz-executor/8438
>
> CPU: 1 PID: 8438 Comm: syz-executor Not tainted 6.5.0-rc5 #1
> Call Trace:
> [...]
> kasan_report+0xba/0xf0 mm/kasan/report.c:588
> ext4_es_insert_extent+0xc68/0xcb0 fs/ext4/extents_status.c:894
> ext4_map_blocks+0x92a/0x16f0 fs/ext4/inode.c:680
> ext4_alloc_file_blocks.isra.0+0x2df/0xb70 fs/ext4/extents.c:4462
> ext4_zero_range fs/ext4/extents.c:4622 [inline]
> ext4_fallocate+0x251c/0x3ce0 fs/ext4/extents.c:4721
> [...]
>
> [...]

Applied, thanks!

[1/1] ext4: fix slab-use-after-free in ext4_es_insert_extent()
commit: 91c66ddfd2dfa4c622c45a3ed0908b36c1adfa28

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>