================================================================== BUG: KASAN: slab-out-of-bounds in dtInsertEntry+0xd74/0x1270 fs/jfs/jfs_dtree.c:4063 Read of size 4 at addr ffff888049c408cc by task syz.8.677/8011 CPU: 1 PID: 8011 Comm: syz.8.677 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 file_open_name fs/open.c:1198 [inline] filp_open+0x173/0x1d0 fs/open.c:1218 do_coredump+0x1af4/0x2960 fs/coredump.c:835 get_signal+0x40a/0x12c0 kernel/signal.c:2886 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320 exc_page_fault+0x88/0x100 arch/x86/mm/fault.c:1504 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0033:0x275517da Code: Unable to access opcode bytes at RIP 0x275517b0. RSP: 002b:0000200000000238 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f0d816ab090 RCX: 00007f0d81483be9 RDX: 0000200000006600 RSI: 0000200000000230 RDI: 0000000004000000 RBP: 00007f0d81506e19 R08: 0000200000006500 R09: 0000200000006500 R10: 00002000000064c0 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f0d816ab128 R14: 00007f0d816ab090 R15: 00007ffc8eb6b5d8 Allocated by task 7976: 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:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 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:1663 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x319/0x460 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x169/0x440 fs/namei.c:2455 filename_lookup+0x1e2/0x4f0 fs/namei.c:2484 user_path_at_empty+0x40/0x190 fs/namei.c:2883 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 ffff888049c40000 which belongs to the cache jfs_ip of size 2240 The buggy address is located 12 bytes to the right of 2240-byte region [ffff888049c40000, ffff888049c408c0) The buggy address belongs to the page: page:ffffea0001271000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x49c40 head:ffffea0001271000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88801b68ab01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff8881469dab40 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff88801b68ab01 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 7976, ts 294294811157, free_ts 275656404713 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:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 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:1663 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x319/0x460 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x169/0x440 fs/namei.c:2455 filename_lookup+0x1e2/0x4f0 fs/namei.c:2484 user_path_at_empty+0x40/0x190 fs/namei.c:2883 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_pages_ok+0x89f/0x940 mm/page_alloc.c:1643 free_nonslab_page+0xe2/0x150 mm/slub.c:3535 kmem_free fs/xfs/kmem.h:62 [inline] xlog_write_log_records+0x348/0x3c0 fs/xfs/xfs_log_recover.c:1593 xlog_clear_stale_blocks+0x246/0x420 fs/xfs/xfs_log_recover.c:1688 xlog_find_tail+0x79e/0x9f0 fs/xfs/xfs_log_recover.c:1372 xlog_recover+0x48/0x420 fs/xfs/xfs_log_recover.c:3382 xfs_log_mount+0x393/0x6b0 fs/xfs/xfs_log.c:710 xfs_mountfs+0xb27/0x1b10 fs/xfs/xfs_mount.c:764 xfs_fs_fill_super+0x11a4/0x13f0 fs/xfs/xfs_super.c:1675 get_tree_bdev+0x3f1/0x610 fs/super.c:1325 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 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 Memory state around the buggy address: ffff888049c40780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888049c40800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888049c40880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888049c40900: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888049c40980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================