EXT4-fs (loop0): unmounting filesystem. ================================================================== BUG: KASAN: use-after-free in ext4_ext_rm_leaf fs/ext4/extents.c:2601 [inline] BUG: KASAN: use-after-free in ext4_ext_remove_space+0x2f43/0x3fb0 fs/ext4/extents.c:2939 Read of size 4 at addr ffff8881255cedb8 by task syz-executor689/290 CPU: 0 PID: 290 Comm: syz-executor689 Not tainted 6.1.141-syzkaller-00039-g145c7fad733f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_ext_rm_leaf fs/ext4/extents.c:2601 [inline] ext4_ext_remove_space+0x2f43/0x3fb0 fs/ext4/extents.c:2939 ext4_ext_truncate+0x200/0x320 fs/ext4/extents.c:4469 ext4_truncate+0x9a6/0xf90 fs/ext4/inode.c:4291 ext4_evict_inode+0xcc3/0x1460 fs/ext4/inode.c:286 evict+0x493/0x890 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x620/0x670 fs/inode.c:1860 do_unlinkat+0x375/0x6b0 fs/namei.c:4396 __do_sys_unlink fs/namei.c:4437 [inline] __se_sys_unlink fs/namei.c:4435 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4435 x64_sys_call+0x958/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:88 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f77193aad17 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe05f6c0a8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f77193aad17 RDX: 00007ffe05f6c0d0 RSI: 00007ffe05f6c160 RDI: 00007ffe05f6c160 RBP: 00007ffe05f6c160 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffe05f6d250 R13: 000055557e36d700 R14: 431bde82d7b634db R15: 00007ffe05f6e2e0 The buggy address belongs to the physical page: page:ffffea0004957380 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x1255ce flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00049573c8 ffffea0004957348 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff8881255cec80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881255ced00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881255ced80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881255cee00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881255cee80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263978, count = 0 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263968, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 227633266688, count = 30208 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263966, count = 0 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263952, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 227633266688, count = 30096 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263946, count = 0 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 2263936, count = 16 EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs (loop0): unmounting filesystem. EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 225176820549648, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 225176820529993, count = 19660 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 225176820529984, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 40174265775344, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 40174265756452, count = 18908 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 40174265756448, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 155358849938784, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 155358849934444, count = 4351 EXT4-fs (loop0): unmounting filesystem. EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 71864489492829, count = 16733 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 71864489492816, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 217704510336320, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 217704510336325, count = 3 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 9336360832, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 9336356864, count = 3973 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 9336356864, count = 16 EXT4-fs error (device loop0): ext4_free_blocks:6210: comm syz-executor689: Freeing blocks not in datazone - block = 145199959377350, count = 16516 EXT4-fs (loop0): unmounting filesystem. syz-executor689[290]: segfault at 18 ip 00007f77193de8e0 sp 00007ffe05f6db18 error 6 in syz-executor689085739[7f7719375000+7f000] likely on CPU 0 (core 0, socket 0) Code: 7c 24 00 00 00 00 00 00 00 00 20 89 44 24 00 00 00 00 00 00 00 00 24 0c eb c7 00 00 00 00 00 00 00 00 1f 84 00 00 00 00 00 00 <00> 00 00 00 05 f7 c7 02 00 00 00 00 00 00 00 00 48 89 f0 4c 00 00