================================================================== BUG: KASAN: slab-out-of-bounds in dtCompare fs/jfs/jfs_dtree.c:3333 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1697/0x2570 fs/jfs/jfs_dtree.c:650 Read of size 1 at addr ffff88805b7d1218 by task syz.0.180/7055 CPU: 0 UID: 0 PID: 7055 Comm: syz.0.180 Not tainted 6.15.0-rc1-syzkaller-00301-g3bde70a2c827 #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+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 dtCompare fs/jfs/jfs_dtree.c:3333 [inline] dtSearch+0x1697/0x2570 fs/jfs/jfs_dtree.c:650 jfs_lookup+0x18b/0x440 fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x136/0x3a0 fs/namei.c:1696 filename_create+0x28b/0x490 fs/namei.c:4098 do_mkdirat+0xbf/0x3f0 fs/namei.c:4349 __do_sys_mkdirat fs/namei.c:4374 [inline] __se_sys_mkdirat fs/namei.c:4372 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4372 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f541f38b9d7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 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:00007f54201f1e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f54201f1ef0 RCX: 00007f541f38b9d7 RDX: 00000000000001ff RSI: 0000200000000000 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f54201f1eb0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7055: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 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+0x1e5/0x390 mm/slub.c:4219 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x69/0x1b0 fs/inode.c:346 new_inode+0x22/0x180 fs/inode.c:1145 diReadSpecial+0x52/0x720 fs/jfs/jfs_imap.c:426 jfs_mount+0x28b/0x830 fs/jfs/jfs_mount.c:138 jfs_fill_super+0x6b9/0xd90 fs/jfs/super.c:523 get_tree_bdev_flags+0x490/0x5c0 fs/super.c:1636 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3879 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4407 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805b7d0938 which belongs to the cache jfs_ip of size 2232 The buggy address is located 40 bytes to the right of allocated 2232-byte region [ffff88805b7d0938, ffff88805b7d11f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5b7d0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888060ec6c01 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff888146e94dc0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000000f5000000 ffff888060ec6c01 head: 00fff00000000040 ffff888146e94dc0 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000000f5000000 ffff888060ec6c01 head: 00fff00000000003 ffffea00016df401 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 6614, tgid 6612 (syz.1.110), ts 139629414911, free_ts 139137050929 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x351d/0x36b0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4934 alloc_pages_mpol+0x339/0x690 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2459 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2623 new_slab mm/slub.c:2676 [inline] ___slab_alloc+0xc3b/0x1500 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+0x274/0x390 mm/slub.c:4219 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x69/0x1b0 fs/inode.c:346 iget_locked+0xf1/0x570 fs/inode.c:1439 jfs_iget+0x23/0x3e0 fs/jfs/inode.c:29 jfs_fill_super+0x8e4/0xd90 fs/jfs/super.c:547 get_tree_bdev_flags+0x490/0x5c0 fs/super.c:1636 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3879 page last free pid 6630 tgid 6630 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0xddf/0x10a0 mm/page_alloc.c:2680 discard_slab mm/slub.c:2720 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3189 put_cpu_partial+0x17e/0x250 mm/slub.c:3264 __slab_free+0x294/0x390 mm/slub.c:4516 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 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_noprof+0x1e1/0x390 mm/slub.c:4207 alloc_empty_file+0x56/0x1d0 fs/file_table.c:234 path_openat+0x10d/0x35d0 fs/namei.c:3990 do_filp_open+0x284/0x4e0 fs/namei.c:4031 do_sys_openat2+0x12b/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+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805b7d1100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805b7d1180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc >ffff88805b7d1200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc 00 00 ^ ffff88805b7d1280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805b7d1300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================