loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3393 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1d88/0x2000 fs/jfs/jfs_dtree.c:639 Read of size 1 at addr ffff88807553ff94 by task syz-executor403/3609 CPU: 1 PID: 3609 Comm: syz-executor403 Not tainted 6.1.0-rc1-next-20221021-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:253 [inline] print_report+0x15e/0x45d mm/kasan/report.c:364 kasan_report+0xbb/0x1f0 mm/kasan/report.c:464 ciCompare fs/jfs/jfs_dtree.c:3393 [inline] dtSearch+0x1d88/0x2000 fs/jfs/jfs_dtree.c:639 jfs_lookup+0x17c/0x2f0 fs/jfs/namei.c:1454 lookup_open.isra.0+0x76a/0x12a0 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x990/0x2850 fs/namei.c:3710 do_filp_open+0x1b6/0x400 fs/namei.c:3740 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3aa9da1009 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc38b32228 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3aa9da1009 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200001c0 RBP: 00007f3aa9d607d0 R08: 00005555561182c0 R09: 0000000000000000 R10: 00007ffc38b320f0 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 00083878000000f4 R15: 0000000000000000 The buggy address belongs to the object at ffff88807553f590 which belongs to the cache proc_inode_cache of size 1240 The buggy address is located 1324 bytes to the right of 1240-byte region [ffff88807553f590, ffff88807553fa68) The buggy address belongs to the physical page: page:ffffea0001d54e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x75538 head:ffffea0001d54e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff8881400f4500 dead000080170017 0000000000000000 raw: 0000000000000002 0000000000000000 00000001ffffffff 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 0xd20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 3604, tgid 3604 (sshd), ts 44330818466, free_ts 12227308847 prep_new_page mm/page_alloc.c:2538 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4287 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5546 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2285 alloc_slab_page mm/slub.c:1794 [inline] allocate_slab+0x213/0x300 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3185 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3284 slab_alloc_node mm/slub.c:3369 [inline] slab_alloc mm/slub.c:3411 [inline] __kmem_cache_alloc_lru mm/slub.c:3418 [inline] kmem_cache_alloc_lru+0x4ad/0x730 mm/slub.c:3434 alloc_inode_sb include/linux/fs.h:3117 [inline] proc_alloc_inode+0x23/0x210 fs/proc/inode.c:67 alloc_inode+0x61/0x230 fs/inode.c:259 new_inode_pseudo fs/inode.c:1018 [inline] new_inode+0x27/0x270 fs/inode.c:1046 proc_pid_make_inode+0x22/0x220 fs/proc/base.c:1897 proc_pident_instantiate+0x81/0x310 fs/proc/base.c:2643 proc_pident_lookup+0x1ec/0x270 fs/proc/base.c:2679 lookup_open.isra.0+0x76a/0x12a0 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x990/0x2850 fs/namei.c:3710 do_filp_open+0x1b6/0x400 fs/namei.c:3740 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1458 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1508 free_unref_page_prepare mm/page_alloc.c:3386 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3482 free_contig_range+0xb1/0x180 mm/page_alloc.c:9477 destroy_args+0xa8/0x64c mm/debug_vm_pgtable.c:1027 debug_vm_pgtable+0x2954/0x29e5 mm/debug_vm_pgtable.c:1350 do_one_initcall+0x13d/0x780 init/main.c:1306 do_initcall_level init/main.c:1379 [inline] do_initcalls init/main.c:1395 [inline] do_basic_setup init/main.c:1414 [inline] kernel_init_freeable+0x6f9/0x782 init/main.c:1634 kernel_init+0x1a/0x1d0 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff88807553fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807553ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807553ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888075540000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888075540080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================