loop0: detected capacity change from 0 to 32768 ... Log Wrap ... Log Wrap ... Log Wrap ... read_mapping_page failed! ERROR: (device loop0): txCommit: read_mapping_page failed! ERROR: (device loop0): txCommit: ================================================================== BUG: KASAN: slab-out-of-bounds in dtInsertEntry+0x10e1/0x1780 fs/jfs/jfs_dtree.c:3753 Read of size 4 at addr ffff88806f70401c by task syz.0.16/6056 CPU: 1 UID: 0 PID: 6056 Comm: syz.0.16 Not tainted 6.15.0-rc2-syzkaller-g834a4a689699 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x23d/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16a/0x5b0 mm/kasan/report.c:521 kasan_report+0x13f/0x180 mm/kasan/report.c:634 dtInsertEntry+0x10e1/0x1780 fs/jfs/jfs_dtree.c:3753 dtSplitPage+0x2e3d/0x3f80 fs/jfs/jfs_dtree.c:1596 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0x1664/0x6fa0 fs/jfs/jfs_dtree.c:871 jfs_create+0x7c0/0xbb0 fs/jfs/namei.c:137 lookup_open fs/namei.c:3666 [inline] open_last_lookups fs/namei.c:3765 [inline] path_openat+0x1947/0x35c0 fs/namei.c:4001 do_filp_open+0x280/0x4e0 fs/namei.c:4031 do_sys_openat2+0x127/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x245/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f0833d8d169 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:00007f0834c0c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0833fa5fa0 RCX: 00007f0833d8d169 RDX: 0000000000105042 RSI: 0000200000000200 RDI: ffffffffffffff9c RBP: 00007f0833e0e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000150 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0833fa5fa0 R15: 00007fff2b648788 Allocated by task 6056: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3b/0x70 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x62/0x70 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_lru_noprof+0x1dd/0x370 mm/slub.c:4219 jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode+0x65/0x1a0 fs/inode.c:346 iget_locked+0xed/0x570 fs/inode.c:1439 jfs_iget+0x1f/0x3d0 fs/jfs/inode.c:29 jfs_lookup+0x235/0x440 fs/jfs/namei.c:1469 __lookup_slow+0x2ad/0x400 fs/namei.c:1807 lookup_slow+0x53/0x70 fs/namei.c:1824 walk_component+0x2f4/0x420 fs/namei.c:2128 lookup_last fs/namei.c:2626 [inline] path_lookupat+0x169/0x440 fs/namei.c:2650 filename_lookup+0x28c/0x660 fs/namei.c:2679 user_path_at+0x36/0x50 fs/namei.c:3085 __do_sys_chdir fs/open.c:557 [inline] __se_sys_chdir+0xb6/0x260 fs/open.c:551 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff88806f703750 which belongs to the cache jfs_ip of size 2232 The buggy address is located 20 bytes to the right of allocated 2232-byte region [ffff88806f703750, ffff88806f704008) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f700 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801bbb1640 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801bbb1640 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001bdc001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd2050(__GFP_RECLAIMABLE|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6056, tgid 6055 (syz.0.16), ts 145636118481, free_ts 87933490643 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e0/0x220 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x34b5/0x3640 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x20d/0x5a0 mm/page_alloc.c:4934 alloc_pages_mpol+0x335/0x690 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2459 [inline] allocate_slab+0x8f/0x390 mm/slub.c:2623 new_slab mm/slub.c:2676 [inline] ___slab_alloc+0xc55/0x14f0 mm/slub.c:3862 __slab_alloc+0x58/0xa0 mm/slub.c:3952 __slab_alloc_node mm/slub.c:4027 [inline] slab_alloc_node mm/slub.c:4188 [inline] kmem_cache_alloc_lru_noprof+0x268/0x370 mm/slub.c:4219 jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode+0x65/0x1a0 fs/inode.c:346 new_inode+0x1e/0x180 fs/inode.c:1145 jfs_fill_super+0x56c/0xd90 fs/jfs/super.c:511 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636 vfs_get_tree+0x8c/0x280 fs/super.c:1759 do_new_mount+0x2cb/0xb70 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x388/0x400 fs/namespace.c:4409 page last free pid 5775 tgid 5775 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] free_unref_folios+0xdbe/0x17a0 mm/page_alloc.c:2737 folios_put_refs+0x706/0x800 mm/swap.c:992 free_pages_and_swap_cache+0x2e6/0x690 mm/swap_state.c:267 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x3a5/0x680 mm/mmu_gather.c:404 tlb_finish_mmu+0xd0/0x1f0 mm/mmu_gather.c:496 vms_clear_ptes+0x42d/0x530 mm/vma.c:1158 vms_complete_munmap_vmas+0x210/0x8e0 mm/vma.c:1200 do_vmi_align_munmap+0x4e3/0x5b0 mm/vma.c:1459 do_vmi_munmap+0x24a/0x2d0 mm/vma.c:1507 __vm_munmap+0x36f/0x510 mm/vma.c:2970 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x5c/0x70 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x7e/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88806f703f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806f703f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806f704000: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806f704080: fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806f704100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================