loop3: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] BUG: KASAN: slab-use-after-free in dtSplitPage+0x1d8a/0x3a10 fs/jfs/jfs_dtree.c:1561 Write of size 1 at addr ffff88807c0d5000 by task syz.3.1492/10682 CPU: 1 PID: 10682 Comm: syz.3.1492 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/08/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] dtSplitPage+0x1d8a/0x3a10 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0x1051/0x5bd0 fs/jfs/jfs_dtree.c:871 jfs_symlink+0x8be/0xfb0 fs/jfs/namei.c:1019 vfs_symlink+0x138/0x2b0 fs/namei.c:4528 do_symlinkat+0x1ba/0x400 fs/namei.c:4554 __do_sys_symlinkat fs/namei.c:4570 [inline] __se_sys_symlinkat fs/namei.c:4567 [inline] __x64_sys_symlinkat+0x99/0xb0 fs/namei.c:4567 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc5b3d9e159 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:00007fc5b4c05028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007fc5b4025fa0 RCX: 00007fc5b3d9e159 RDX: 00002000000005c0 RSI: ffffffffffffff9c RDI: 0000200000000700 RBP: 00007fc5b3e3506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc5b4026038 R14: 00007fc5b4025fa0 R15: 00007ffc911cb658 Allocated by task 5773: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770 slab_alloc_node mm/slub.c:3495 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x17e/0x2c0 mm/slub.c:3519 copy_fs_struct+0x4f/0x270 fs/fs_struct.c:115 copy_fs+0x6c/0x140 kernel/fork.c:1774 copy_process+0x15aa/0x3da0 kernel/fork.c:2501 kernel_clone+0x24b/0x8a0 kernel/fork.c:2919 __do_sys_clone kernel/fork.c:3062 [inline] __se_sys_clone kernel/fork.c:3046 [inline] __x64_sys_clone+0x1b7/0x230 kernel/fork.c:3046 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807c0d5000 which belongs to the cache fs_cache of size 168 The buggy address is located 0 bytes inside of freed 168-byte region [ffff88807c0d5000, ffff88807c0d50a8) The buggy address belongs to the physical page: page:ffffea0001f03540 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88807c0d5000 pfn:0x7c0d5 memcg:ffff888021200c01 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888140005a00 ffffea0000b0a840 dead000000000004 raw: ffff88807c0d5000 0000000080100007 00000001ffffffff ffff888021200c01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 5435, tgid 5435 (dhcpcd), ts 73892498728, free_ts 73890917351 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x109/0x2c0 mm/slub.c:3519 copy_fs_struct+0x4f/0x270 fs/fs_struct.c:115 copy_fs+0x6c/0x140 kernel/fork.c:1774 copy_process+0x15aa/0x3da0 kernel/fork.c:2501 kernel_clone+0x24b/0x8a0 kernel/fork.c:2919 __do_sys_clone kernel/fork.c:3062 [inline] __se_sys_clone kernel/fork.c:3046 [inline] __x64_sys_clone+0x1b7/0x230 kernel/fork.c:3046 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 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:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 mm_free_pgd kernel/fork.c:811 [inline] __mmdrop+0xb4/0x3d0 kernel/fork.c:927 mmdrop include/linux/sched/mm.h:54 [inline] mmdrop_sched include/linux/sched/mm.h:82 [inline] mmdrop_lazy_tlb_sched include/linux/sched/mm.h:109 [inline] finish_task_switch+0x3da/0x8f0 kernel/sched/core.c:5281 context_switch kernel/sched/core.c:5385 [inline] __schedule+0x15b6/0x4660 kernel/sched/core.c:6701 schedule+0xbd/0x170 kernel/sched/core.c:6775 do_wait+0x75c/0xab0 kernel/exit.c:1644 kernel_wait4+0x22f/0x2b0 kernel/exit.c:1788 __do_sys_wait4 kernel/exit.c:1816 [inline] __se_sys_wait4 kernel/exit.c:1812 [inline] __x64_sys_wait4+0x167/0x240 kernel/exit.c:1812 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88807c0d4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807c0d4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807c0d5000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807c0d5080: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ffff88807c0d5100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================