ERROR: (device loop0): txCommit: ================================================================== BUG: KASAN: slab-out-of-bounds in dtInsertEntry+0xd74/0x1270 fs/jfs/jfs_dtree.c:4063 Read of size 4 at addr ffff88805ee388cc by task syz.0.158/5058 CPU: 1 PID: 5058 Comm: syz.0.158 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 dtInsertEntry+0xd74/0x1270 fs/jfs/jfs_dtree.c:4063 dtSplitPage+0x24f7/0x31d0 fs/jfs/jfs_dtree.c:1596 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0xfb2/0x57a0 fs/jfs/jfs_dtree.c:871 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3470 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3747 do_filp_open+0x1b3/0x3e0 fs/namei.c:3777 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f15030e36c9 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:00007f150134a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f1503339fa0 RCX: 00007f15030e36c9 RDX: 389b0d52417bb201 RSI: 0000000000064842 RDI: 00002000000005c0 RBP: 00007f1503165f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f150333a038 R14: 00007f1503339fa0 R15: 00007ffd2da0ae38 Allocated by task 5058: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3c0 fs/jfs/inode.c:29 jfs_lookup+0x1c2/0x380 fs/jfs/namei.c:1467 __lookup_slow+0x27d/0x3d0 fs/namei.c:1671 lookup_slow+0x53/0x70 fs/namei.c:1688 walk_component+0x319/0x460 fs/namei.c:1984 lookup_last fs/namei.c:2439 [inline] path_lookupat+0x169/0x440 fs/namei.c:2463 filename_lookup+0x1e2/0x4f0 fs/namei.c:2492 user_path_at_empty+0x40/0x190 fs/namei.c:2891 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:490 [inline] __se_sys_chdir+0x91/0x280 fs/open.c:484 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88805ee38000 which belongs to the cache jfs_ip of size 2240 The buggy address is located 12 bytes to the right of 2240-byte region [ffff88805ee38000, ffff88805ee388c0) The buggy address belongs to the page: page:ffffea00017b8e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ee38 head:ffffea00017b8e00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888079cb1401 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801da01c80 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff888079cb1401 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5058, ts 119951354729, free_ts 20917649437 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3c0 fs/jfs/inode.c:29 jfs_lookup+0x1c2/0x380 fs/jfs/namei.c:1467 __lookup_slow+0x27d/0x3d0 fs/namei.c:1671 lookup_slow+0x53/0x70 fs/namei.c:1688 walk_component+0x319/0x460 fs/namei.c:1984 lookup_last fs/namei.c:2439 [inline] path_lookupat+0x169/0x440 fs/namei.c:2463 filename_lookup+0x1e2/0x4f0 fs/namei.c:2492 user_path_at_empty+0x40/0x190 fs/namei.c:2891 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:490 [inline] __se_sys_chdir+0x91/0x280 fs/open.c:484 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+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_contig_range+0x96/0xf0 mm/page_alloc.c:9406 destroy_args+0x100/0xa20 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x1ee/0x680 init/main.c:1316 do_initcall_level+0x137/0x1f0 init/main.c:1389 do_initcalls+0x4b/0x90 init/main.c:1405 kernel_init_freeable+0x3ce/0x560 init/main.c:1629 kernel_init+0x19/0x1b0 init/main.c:1520 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88805ee38780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ee38800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ee38880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88805ee38900: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88805ee38980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================