loop8: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] BUG: KASAN: use-after-free in dtSplitPage+0x1a21/0x3160 fs/jfs/jfs_dtree.c:1561 Write of size 1 at addr ffff888076df3000 by task syz.8.2019/12319 CPU: 0 PID: 12319 Comm: syz.8.2019 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e 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+0x1a21/0x3160 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0x106f/0x57e0 fs/jfs/jfs_dtree.c:871 jfs_mkdir+0x764/0xb00 fs/jfs/namei.c:270 vfs_mkdir+0x386/0x570 fs/namei.c:4157 do_mkdirat+0x1d8/0x440 fs/namei.c:4182 __do_sys_mkdirat fs/namei.c:4197 [inline] __se_sys_mkdirat fs/namei.c:4195 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4195 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:0x7fd2b9b9cf47 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 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:00007fd2bab24e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fd2bab24ee0 RCX: 00007fd2b9b9cf47 RDX: 00000000000001ff RSI: 0000200000000580 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000580 R13: 00007fd2bab24ea0 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page:ffffea0001db7cc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76df3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001eafb08 ffffea00019b5588 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 0x500dc0(GFP_USER|__GFP_ZERO|__GFP_ACCOUNT), pid 12331, tgid 12331 (syz.5.2023), ts 695793091501, free_ts 695962053377 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 __pte_alloc_one include/asm-generic/pgalloc.h:63 [inline] pte_alloc_one+0x7b/0x310 arch/x86/mm/pgtable.c:33 __pte_alloc+0x21/0x150 mm/memory.c:468 do_anonymous_page mm/memory.c:4157 [inline] handle_pte_fault mm/memory.c:5027 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x34b1/0x3d40 mm/memory.c:5292 do_user_addr_fault+0x58e/0xb20 arch/x86/mm/fault.c:1338 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555 release_pages+0x20d1/0x2340 mm/swap.c:1035 tlb_batch_pages_flush mm/mmu_gather.c:60 [inline] tlb_flush_mmu_free mm/mmu_gather.c:255 [inline] tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:262 tlb_finish_mmu+0xf0/0x220 mm/mmu_gather.c:394 exit_mmap+0x388/0x970 mm/mmap.c:3262 __mmput+0x118/0x3a0 kernel/fork.c:1210 exit_mm+0x24d/0x350 kernel/exit.c:572 do_exit+0x958/0x2570 kernel/exit.c:874 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 get_signal+0x1259/0x1340 kernel/signal.c:2880 arch_do_signal_or_restart+0xc4/0x1310 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 Memory state around the buggy address: ffff888076df2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888076df2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888076df3000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888076df3080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888076df3100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================