loop3: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:4217 [inline] BUG: KASAN: use-after-free in dtSplitPage+0x1f8d/0x3ec0 fs/jfs/jfs_dtree.c:1558 Write of size 1 at addr ffff8880785d3000 by task syz.3.800/7746 CPU: 0 PID: 7746 Comm: syz.3.800 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 dtMoveEntry fs/jfs/jfs_dtree.c:4217 [inline] dtSplitPage+0x1f8d/0x3ec0 fs/jfs/jfs_dtree.c:1558 dtSplitUp fs/jfs/jfs_dtree.c:1089 [inline] dtInsert+0x14fc/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_rename+0xafa/0x1cb0 fs/jfs/namei.c:1224 vfs_rename+0xd32/0x10f0 fs/namei.c:4832 do_renameat2+0xe0f/0x1700 fs/namei.c:4985 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5029 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f02e83d4169 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:00007f02e623d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f02e85ecfa0 RCX: 00007f02e83d4169 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 0000200000000300 RBP: 00007f02e84552a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f02e85ecfa0 R15: 00007ffdbaa642b8 The buggy address belongs to the page: page:ffffea0001e174c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x785d3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001491008 ffff8880b8e40950 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 7736, ts 422050700103, free_ts 422101327219 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5466 vm_area_alloc_pages mm/vmalloc.c:2869 [inline] __vmalloc_area_node mm/vmalloc.c:2925 [inline] __vmalloc_node_range+0x5ab/0x8c0 mm/vmalloc.c:3030 vmalloc_user+0x70/0x80 mm/vmalloc.c:3166 kcov_mmap+0x28/0x120 kernel/kcov.c:474 call_mmap include/linux/fs.h:2177 [inline] mmap_file+0x5a/0xb0 mm/util.c:1092 __mmap_region mm/mmap.c:1784 [inline] mmap_region+0x1035/0x1870 mm/mmap.c:2921 do_mmap+0x78d/0xe00 mm/mmap.c:1574 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:551 ksys_mmap_pgoff+0x559/0x780 mm/mmap.c:1623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 __vunmap+0x8b3/0xa50 mm/vmalloc.c:2621 kcov_mmap+0x8f/0x120 kernel/kcov.c:498 call_mmap include/linux/fs.h:2177 [inline] mmap_file+0x5a/0xb0 mm/util.c:1092 __mmap_region mm/mmap.c:1784 [inline] mmap_region+0x1035/0x1870 mm/mmap.c:2921 do_mmap+0x78d/0xe00 mm/mmap.c:1574 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:551 ksys_mmap_pgoff+0x559/0x780 mm/mmap.c:1623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff8880785d2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880785d2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880785d3000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880785d3080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880785d3100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================