================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3398 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x210d/0x2430 fs/jfs/jfs_dtree.c:644 Read of size 1 at addr ffff888048918f94 by task syz-executor.2/6625 CPU: 0 PID: 6625 Comm: syz-executor.2 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 ciCompare fs/jfs/jfs_dtree.c:3398 [inline] dtSearch+0x210d/0x2430 fs/jfs/jfs_dtree.c:644 jfs_lookup+0x1a5/0x370 fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x11d/0x190 fs/namei.c:1607 filename_create+0x1ed/0x530 fs/namei.c:3901 do_mknodat+0x18e/0x5d0 fs/namei.c:4046 __do_sys_mknod fs/namei.c:4092 [inline] __se_sys_mknod fs/namei.c:4090 [inline] __ia32_sys_mknod+0x87/0xb0 fs/namei.c:4090 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7330579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f5f015ac EFLAGS: 00000292 ORIG_RAX: 000000000000000e RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000000000 RDX: 0000000000000704 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the object at ffff888048918940 which belongs to the cache jfs_ip of size 2240 The buggy address is located 1620 bytes inside of allocated 2240-byte region [ffff888048918940, ffff888048919200) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x48918 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88805b78d501 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 04fff00000000040 ffff8880166f2780 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000001ffffefff ffff88805b78d501 head: 04fff00000000040 ffff8880166f2780 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000001ffffefff ffff88805b78d501 head: 04fff00000000003 ffffea0001224601 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 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 6621, tgid 6620 (syz-executor.2), ts 92158071501, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x136a/0x2e50 mm/page_alloc.c:3420 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4678 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2265 allocate_slab mm/slub.c:2428 [inline] new_slab+0x84/0x260 mm/slub.c:2481 ___slab_alloc+0xdac/0x1870 mm/slub.c:3667 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3989 [inline] kmem_cache_alloc_lru_noprof+0x2a7/0x2f0 mm/slub.c:4020 jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x230 fs/inode.c:261 iget_locked+0x1a1/0x6d0 fs/inode.c:1280 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_fill_super+0x6c8/0xd20 fs/jfs/super.c:580 mount_bdev+0x1e3/0x2d0 fs/super.c:1659 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8f/0x380 fs/super.c:1780 page_owner free stack trace missing Memory state around the buggy address: ffff888048918e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048918f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888048918f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888048919000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048919080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi