loop0: detected capacity change from 0 to 512 EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /0/file1 supports timestamps until 2038-01-19 (0x7fffffff) ================================================================== BUG: KASAN: use-after-free in ext4_ext_rm_leaf fs/ext4/extents.c:2602 [inline] BUG: KASAN: use-after-free in ext4_ext_remove_space+0x348b/0x40d0 fs/ext4/extents.c:2940 Read of size 4 at addr ffff88812d29469c by task syz.0.582/2107 CPU: 0 PID: 2107 Comm: syz.0.582 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_ext_rm_leaf fs/ext4/extents.c:2602 [inline] ext4_ext_remove_space+0x348b/0x40d0 fs/ext4/extents.c:2940 ext4_ext_truncate+0x200/0x320 fs/ext4/extents.c:4476 ext4_truncate+0x9be/0xfb0 fs/ext4/inode.c:4304 ext4_setattr+0x1249/0x1bb0 fs/ext4/inode.c:5670 notify_change+0xcc3/0xf80 fs/attr.c:499 do_truncate+0x1ac/0x240 fs/open.c:66 handle_truncate fs/namei.c:3292 [inline] do_open fs/namei.c:3637 [inline] path_openat+0x28f0/0x2f80 fs/namei.c:3790 do_filp_open+0x1f1/0x430 fs/namei.c:3817 do_sys_openat2+0x15e/0x810 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_creat fs/open.c:1437 [inline] __se_sys_creat fs/open.c:1431 [inline] __x64_sys_creat+0x8e/0xb0 fs/open.c:1431 x64_sys_call+0x116/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:86 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f632f59ce59 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:00007f6330451028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f632f815fa0 RCX: 00007f632f59ce59 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000200000000100 RBP: 00007f632f632d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f632f816038 R14: 00007f632f815fa0 R15: 00007ffdd0a802f8 The buggy address belongs to the physical page: page:ffffea0004b4a500 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12d294 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 350, tgid 350 (syz-executor), ts 56705567605, free_ts 56829653424 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2d12/0x2d80 mm/page_alloc.c:4585 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5929 vm_area_alloc_pages mm/vmalloc.c:-1 [inline] __vmalloc_area_node mm/vmalloc.c:3084 [inline] __vmalloc_node_range+0x8bf/0x1430 mm/vmalloc.c:3256 vmalloc_user+0x73/0x80 mm/vmalloc.c:3410 kcov_ioctl+0x57/0x620 kernel/kcov.c:713 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x12f/0x1b0 fs/ioctl.c:856 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856 x64_sys_call+0x58b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x7f8/0x800 mm/page_alloc.c:3620 free_unref_page+0x95/0x540 mm/page_alloc.c:3718 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6019 __vunmap+0x9c0/0xb80 mm/vmalloc.c:2739 __vfree mm/vmalloc.c:2788 [inline] vfree+0x61/0x90 mm/vmalloc.c:2819 kcov_put kernel/kcov.c:437 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:533 __fput+0x1fc/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa35/0x2660 kernel/exit.c:886 do_group_exit+0x225/0x2e0 kernel/exit.c:1029 get_signal+0x13b5/0x1520 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x1140 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 Memory state around the buggy address: ffff88812d294580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812d294600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88812d294680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88812d294700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812d294780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================