EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ================================================================== BUG: KASAN: use-after-free in ext4_ext_correct_indexes+0x72/0x5b0 fs/ext4/extents.c:1712 Read of size 8 at addr ffff8880395b0b50 by task syz.0.205/6911 CPU: 0 UID: 0 PID: 6911 Comm: syz.0.205 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 ext4_ext_correct_indexes+0x72/0x5b0 fs/ext4/extents.c:1712 ext4_ext_insert_extent+0x2007/0x4b50 fs/ext4/extents.c:2191 ext4_ext_map_blocks+0x1696/0x58b0 fs/ext4/extents.c:4457 ext4_map_create_blocks+0x11d/0x540 fs/ext4/inode.c:616 ext4_map_blocks+0x7cd/0x11d0 fs/ext4/inode.c:809 _ext4_get_block+0x1e3/0x470 fs/ext4/inode.c:909 ext4_get_block_unwritten+0x2e/0x100 fs/ext4/inode.c:942 ext4_block_write_begin+0xb14/0x1950 fs/ext4/inode.c:1196 ext4_write_begin+0xb40/0x18c0 fs/ext4/ext4_jbd2.h:-1 ext4_da_write_begin+0x355/0xd90 fs/ext4/inode.c:3123 generic_perform_write+0x2af/0x8b0 mm/filemap.c:4314 ext4_buffered_write_iter+0xd0/0x3a0 fs/ext4/file.c:300 ext4_file_write_iter+0x299/0x1c10 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x629/0xba0 fs/read_write.c:688 ksys_pwrite64 fs/read_write.c:795 [inline] __do_sys_pwrite64 fs/read_write.c:803 [inline] __se_sys_pwrite64 fs/read_write.c:800 [inline] __x64_sys_pwrite64+0x19c/0x230 fs/read_write.c:800 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f43db36c629 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f43da9ce028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f43db5e5fa0 RCX: 00007f43db36c629 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f43db402b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000c00 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f43db5e6038 R14: 00007f43db5e5fa0 R15: 00007ffc8efe42e8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880395b0000 pfn:0x395b0 flags: 0x80000000000000(node=0|zone=1) page_type: f0(buddy) raw: 0080000000000000 ffffea0000d14308 ffffea0000d07808 0000000000000000 raw: ffff8880395b0000 0000000000000001 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5459, tgid 5459 (dhcpcd), ts 62030136281, free_ts 107577643199 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3255 [inline] allocate_slab+0x77/0x660 mm/slub.c:3444 new_slab mm/slub.c:3502 [inline] refill_objects+0x334/0x3c0 mm/slub.c:7134 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x328/0x5f0 mm/slub.c:4578 alloc_from_pcs mm/slub.c:4681 [inline] slab_alloc_node mm/slub.c:4815 [inline] kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4837 anon_vma_alloc mm/rmap.c:94 [inline] anon_vma_fork+0x83/0x570 mm/rmap.c:391 dup_mmap+0x997/0x1d50 mm/mmap.c:1804 dup_mm kernel/fork.c:1530 [inline] copy_mm+0x13b/0x4b0 kernel/fork.c:1582 copy_process+0x18be/0x3d00 kernel/fork.c:2223 kernel_clone+0x249/0x840 kernel/fork.c:2654 __do_sys_clone kernel/fork.c:2795 [inline] __se_sys_clone kernel/fork.c:2779 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2779 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 28 tgid 28 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xfe3/0x1170 mm/page_alloc.c:2978 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core kernel/rcu/tree.c:2869 [inline] rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8880395b0a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880395b0a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880395b0b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880395b0b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880395b0c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================