================================================================== BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:841 [inline] BUG: KASAN: use-after-free in ext4_find_extent+0x8dc/0xa8c fs/ext4/extents.c:956 Read of size 4 at addr ffff0001032d8018 by task kworker/u8:1/15 CPU: 1 UID: 0 PID: 15 Comm: kworker/u8:1 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: writeback wb_workfn (flush-7:5) Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0xb0/0x110 mm/kasan/report.c:595 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ext4_ext_binsearch fs/ext4/extents.c:841 [inline] ext4_find_extent+0x8dc/0xa8c fs/ext4/extents.c:956 ext4_ext_map_blocks+0x258/0x5494 fs/ext4/extents.c:4208 ext4_map_create_blocks fs/ext4/inode.c:609 [inline] ext4_map_blocks+0x6f0/0x14a8 fs/ext4/inode.c:811 mpage_map_one_extent fs/ext4/inode.c:2374 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2468 [inline] ext4_do_writepages+0x1b88/0x39b4 fs/ext4/inode.c:2931 ext4_writepages+0x178/0x2a0 fs/ext4/inode.c:3025 do_writepages+0x270/0x468 mm/page-writeback.c:2634 __writeback_single_inode+0x15c/0x13e8 fs/fs-writeback.c:1680 writeback_sb_inodes+0x55c/0xe40 fs/fs-writeback.c:1976 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2343 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x37 pfn:0x1432d8 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f0(buddy) raw: 05ffc00000000000 fffffdffc40ccd88 fffffdffc40cb188 0000000000000000 raw: 0000000000000037 0000000000000000 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0001032d7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0001032d7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0001032d8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0001032d8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0001032d8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop5): ext4_ext_split:1079: inode #15: comm kworker/u8:1: p_ext > EXT_MAX_EXTENT! EXT4-fs (loop5): Delayed block allocation failed for inode 15 at logical offset 4 with max blocks 4 with error 117 EXT4-fs (loop5): This should not happen!! Data will be lost