loop0: detected capacity change from 0 to 32768 find_entry called with index >= next_index ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3398 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1698/0x2520 fs/jfs/jfs_dtree.c:644 Read of size 1 at addr ffff88807345d954 by task syz-executor230/5095 CPU: 1 PID: 5095 Comm: syz-executor230 Not tainted 6.10.0-syzkaller-11323-g7846b618e0a4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 ciCompare fs/jfs/jfs_dtree.c:3398 [inline] dtSearch+0x1698/0x2520 fs/jfs/jfs_dtree.c:644 jfs_lookup+0x17f/0x410 fs/jfs/namei.c:1461 lookup_open fs/namei.c:3556 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0x11cc/0x3470 fs/namei.c:3883 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_open fs/open.c:1439 [inline] __se_sys_open fs/open.c:1435 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1435 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f695fa6c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd55ead398 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f695fa6c169 RDX: 0000000000000000 RSI: 0000000000145142 RDI: 000000002001f580 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd55ead3e0 R13: 00007ffd55ead420 R14: 0000000001000000 R15: 0000000000000003 The buggy address belongs to the object at ffff88807345d2f8 which belongs to the cache jfs_ip of size 2232 The buggy address is located 1628 bytes inside of allocated 2232-byte region [ffff88807345d2f8, ffff88807345dbb0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x73458 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: 0xffffefff(slab) raw: 00fff00000000040 ffff88801a7ee640 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff88801a7ee640 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001cd1601 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 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_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 5092, tgid 5092 (syz-executor230), ts 59823272900, free_ts 15118450382 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2304 allocate_slab+0x5a/0x2f0 mm/slub.c:2467 new_slab mm/slub.c:2520 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3706 __slab_alloc+0x58/0xa0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] kmem_cache_alloc_lru_noprof+0x1c5/0x2b0 mm/slub.c:4047 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode fs/inode.c:263 [inline] new_inode_pseudo fs/inode.c:1028 [inline] new_inode+0x6e/0x310 fs/inode.c:1047 ialloc+0x4c/0x900 fs/jfs/jfs_inode.c:48 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4210 do_mkdirat+0x264/0x3a0 fs/namei.c:4233 __do_sys_mkdir fs/namei.c:4253 [inline] __se_sys_mkdir fs/namei.c:4251 [inline] __x64_sys_mkdir+0x6c/0x80 fs/namei.c:4251 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 free_contig_range+0x9e/0x160 mm/page_alloc.c:6642 destroy_args+0x8a/0x890 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x4be/0x550 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x248/0x880 init/main.c:1267 do_initcall_level+0x157/0x210 init/main.c:1329 do_initcalls+0x3f/0x80 init/main.c:1345 kernel_init_freeable+0x435/0x5d0 init/main.c:1578 kernel_init+0x1d/0x2b0 init/main.c:1467 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff88807345d800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807345d880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807345d900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807345d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807345da00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================