loop0: detected capacity change from 0 to 14901 ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3393 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1c6a/0x2090 fs/jfs/jfs_dtree.c:639 Read of size 1 at addr ffff8880739c79f4 by task syz-executor179/5100 CPU: 1 PID: 5100 Comm: syz-executor179 Not tainted 6.3.0-rc2-next-20230317-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 ciCompare fs/jfs/jfs_dtree.c:3393 [inline] dtSearch+0x1c6a/0x2090 fs/jfs/jfs_dtree.c:639 jfs_lookup+0x180/0x340 fs/jfs/namei.c:1454 lookup_open.isra.0+0x944/0x1400 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x975/0x2750 fs/namei.c:3712 do_filp_open+0x1ba/0x410 fs/namei.c:3742 do_sys_openat2+0x16d/0x4c0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff19bc319d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe0e6f6348 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000012fed RCX: 00007ff19bc319d9 RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0 RBP: 0000000000000000 R08: 000000000000234a R09: 00007ffe0e6f6370 R10: 00007ffe0e6f6210 R11: 0000000000000246 R12: 00007ffe0e6f636c R13: 00007ffe0e6f63a0 R14: 00007ffe0e6f6380 R15: 0000000000000007 The buggy address belongs to the object at ffff8880739c6e58 which belongs to the cache ext4_inode_cache of size 2440 The buggy address is located 532 bytes to the right of allocated 2440-byte region [ffff8880739c6e58, ffff8880739c77e0) The buggy address belongs to the physical page: page:ffffea0001ce7000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x739c0 head:ffffea0001ce7000 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888019123dc0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800c000c 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 0xd2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 5100, tgid 5100 (syz-executor179), ts 79730051715, free_ts 26629198757 prep_new_page mm/page_alloc.c:2472 [inline] get_page_from_freelist+0xf75/0x2ab0 mm/page_alloc.c:4236 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:5502 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x28e/0x380 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292 __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x4a8/0x600 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2689 [inline] ext4_alloc_inode+0x28/0x680 fs/ext4/super.c:1321 alloc_inode+0x61/0x230 fs/inode.c:260 new_inode_pseudo fs/inode.c:1019 [inline] new_inode+0x2b/0x280 fs/inode.c:1047 __ext4_new_inode+0x34f/0x54c0 fs/ext4/ialloc.c:959 ext4_mkdir+0x33e/0xb20 fs/ext4/namei.c:2991 vfs_mkdir+0x242/0x460 fs/namei.c:4038 do_mkdirat+0x28d/0x310 fs/namei.c:4061 __do_sys_mkdir fs/namei.c:4081 [inline] __se_sys_mkdir fs/namei.c:4079 [inline] __x64_sys_mkdir+0xf6/0x140 fs/namei.c:4079 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1468 [inline] free_unref_page_prepare+0x4d1/0xb60 mm/page_alloc.c:3298 free_unref_page+0x33/0x370 mm/page_alloc.c:3393 free_contig_range+0xb5/0x180 mm/page_alloc.c:9439 destroy_args+0x6c4/0x920 mm/debug_vm_pgtable.c:1023 debug_vm_pgtable+0x242a/0x4640 mm/debug_vm_pgtable.c:1403 do_one_initcall+0x102/0x540 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+0x5ec/0x900 init/main.c:1634 kernel_init+0x1e/0x2c0 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff8880739c7880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880739c7900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880739c7980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880739c7a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880739c7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================