================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3428 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x16b4/0x21b0 fs/jfs/jfs_dtree.c:645 Read of size 1 at addr ffff88805e4cc334 by task syz.3.37/6197 CPU: 1 UID: 0 PID: 6197 Comm: syz.3.37 Tainted: G W 6.16.0-syzkaller-11322-g352af6a011d5 #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 ciCompare fs/jfs/jfs_dtree.c:3428 [inline] dtSearch+0x16b4/0x21b0 fs/jfs/jfs_dtree.c:645 jfs_lookup+0x155/0x380 fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x131/0x360 fs/namei.c:1697 filename_create+0x224/0x3c0 fs/namei.c:4140 do_mknodat+0x184/0x4d0 fs/namei.c:4272 __do_sys_mknodat fs/namei.c:4313 [inline] __se_sys_mknodat fs/namei.c:4310 [inline] __x64_sys_mknodat+0xa7/0xc0 fs/namei.c:4310 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdea0d1eb69 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:00007fde9eb86038 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007fdea0f45fa0 RCX: 00007fdea0d1eb69 RDX: 00000000000021c0 RSI: 0000200000000040 RDI: ffffffffffffff9c RBP: 00007fdea0da1df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000103 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdea0f45fa0 R15: 00007fff3918e728 The buggy address belongs to the object at ffff88805e4cbae0 which belongs to the cache jfs_ip of size 2384 The buggy address is located 2132 bytes inside of allocated 2384-byte region [ffff88805e4cbae0, ffff88805e4cc430) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e4c8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880373d2001 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801e7b08c0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000000f5000000 ffff8880373d2001 head: 0080000000000040 ffff88801e7b08c0 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000000f5000000 ffff8880373d2001 head: 0080000000000003 ffffea0001793201 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 6197, tgid 6196 (syz.3.37), ts 131797460260, free_ts 118267647599 create_dummy_stack mm/page_owner.c:94 [inline] register_failure_stack+0x89/0xe0 mm/page_owner.c:105 init_page_owner+0x33/0x620 mm/page_owner.c:119 invoke_init_callbacks mm/page_ext.c:148 [inline] page_ext_init+0x511/0x550 mm/page_ext.c:486 mm_core_init+0x56/0x70 mm/mm_init.c:2789 page last free pid 6053 tgid 6053 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xb59/0xce0 mm/page_alloc.c:2895 discard_slab mm/slub.c:2753 [inline] __put_partials+0x159/0x1a0 mm/slub.c:3218 __slab_free+0x2b3/0x390 mm/slub.c:4550 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kmalloc_node_noprof+0x1b0/0x460 mm/slub.c:4371 kmalloc_array_node_noprof include/linux/slab.h:1020 [inline] alloc_slab_obj_exts mm/slub.c:2028 [inline] account_slab mm/slub.c:2614 [inline] allocate_slab+0x16a/0x370 mm/slub.c:2674 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0x8d1/0xdd0 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kvmalloc_node_noprof+0x1d6/0x550 mm/slub.c:5052 seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x1fe/0xe10 fs/seq_file.c:210 new_sync_read fs/read_write.c:491 [inline] vfs_read+0x4d6/0x990 fs/read_write.c:572 ksys_read+0x14b/0x260 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805e4cc200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805e4cc280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805e4cc300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805e4cc380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805e4cc400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================