================================================================== BUG: KASAN: use-after-free in ext4_ext_rm_leaf fs/ext4/extents.c:2653 [inline] BUG: KASAN: use-after-free in ext4_ext_remove_space+0x3370/0x3f20 fs/ext4/extents.c:2987 Read of size 4 at addr ffff888136fd469c by task syz.5.19/569 CPU: 0 UID: 0 PID: 569 Comm: syz.5.19 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x98/0xe0 lib/dump_stack.c:120 print_address_description+0x77/0x210 mm/kasan/report.c:378 print_report+0x5b/0x80 mm/kasan/report.c:482 kasan_report+0x161/0x1a0 mm/kasan/report.c:595 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:380 ext4_ext_rm_leaf fs/ext4/extents.c:2653 [inline] ext4_ext_remove_space+0x3370/0x3f20 fs/ext4/extents.c:2987 ext4_ext_truncate+0x13d/0x260 fs/ext4/extents.c:4574 ext4_truncate+0x9f6/0xf30 fs/ext4/inode.c:4698 ext4_setattr+0x128f/0x1fc0 fs/ext4/inode.c:6220 notify_change+0xc78/0xfa0 fs/attr.c:556 do_truncate+0x1be/0x250 fs/open.c:68 handle_truncate fs/namei.c:4300 [inline] do_open fs/namei.c:4841 [inline] path_openat+0x1770/0x1f50 fs/namei.c:5000 do_file_open+0x23a/0x4b0 fs/namei.c:5029 do_sys_openat2+0x111/0x200 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_creat fs/open.c:1501 [inline] __se_sys_creat fs/open.c:1495 [inline] __x64_sys_creat+0x8d/0xc0 fs/open.c:1495 x64_sys_call+0xea5/0x2610 arch/x86/include/generated/asm/syscalls_64.h:86 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0xae/0x290 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f35d8b9ce59 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:00007f35d9a1b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f35d8e15fa0 RCX: 00007f35d8b9ce59 RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000200000000100 RBP: 00007f35d8c32d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f35d8e16038 R14: 00007f35d8e15fa0 R15: 00007ffc2149a2e8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x136fd4 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004dbf508 ffffea0004dbf508 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888136fd4580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888136fd4600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888136fd4680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888136fd4700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888136fd4780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================