================================================================== BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] BUG: KASAN: use-after-free in dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 Write of size 1 at addr ffff88804e512000 by task syz.4.26/4620 CPU: 1 PID: 4620 Comm: syz.4.26 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0xfbd/0x58a0 fs/jfs/jfs_dtree.c:871 jfs_rename+0x7b9/0x16a0 fs/jfs/namei.c:1224 vfs_rename+0xbbf/0x10d0 fs/namei.c:4874 do_renameat2+0x89d/0xc70 fs/namei.c:5027 __do_sys_rename fs/namei.c:5073 [inline] __se_sys_rename fs/namei.c:5071 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5071 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:0x7f61b238ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f61b3258038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f61b25c5fa0 RCX: 00007f61b238ebe9 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 0000200000000300 RBP: 00007f61b2411e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f61b25c6038 R14: 00007f61b25c5fa0 R15: 00007ffdb7370028 The buggy address belongs to the physical page: page:ffffea0001394480 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4e512 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013944c8 ffff8880b8f41250 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 Movable, gfp_mask 0x8(__GFP_MOVABLE), pid 1, tgid 1 (swapper/0), ts 21215781576, free_ts 21924811276 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 split_map_pages+0x277/0x4c0 mm/compaction.c:97 isolate_freepages_range+0x3dd/0x430 mm/compaction.c:735 alloc_contig_range+0x5ae/0x850 mm/page_alloc.c:9449 __alloc_contig_pages mm/page_alloc.c:9472 [inline] alloc_contig_pages+0x396/0x490 mm/page_alloc.c:9552 debug_vm_pgtable_alloc_huge_page+0xbf/0x10f mm/debug_vm_pgtable.c:1103 init_args+0xb94/0xeda mm/debug_vm_pgtable.c:1226 debug_vm_pgtable+0x56/0x37e mm/debug_vm_pgtable.c:1264 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_contig_range+0x9d/0x150 mm/page_alloc.c:9574 destroy_args+0x100/0xa31 mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x32a/0x37e mm/debug_vm_pgtable.c:1359 do_one_initcall+0x214/0x7a0 init/main.c:1298 do_initcall_level+0x137/0x1e4 init/main.c:1371 do_initcalls+0x4b/0x8a init/main.c:1387 kernel_init_freeable+0x3fa/0x5ac init/main.c:1626 kernel_init+0x19/0x1b0 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88804e511f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804e511f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804e512000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804e512080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804e512100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================