================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3705 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x192d/0x1ba0 fs/jfs/jfs_dtree.c:651 Read of size 1 at addr ffff88803c77c0ad by task syz-executor.1/13234 CPU: 1 PID: 13234 Comm: syz-executor.1 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load1_noabort+0x68/0x70 mm/kasan/report.c:427 ciCompare fs/jfs/jfs_dtree.c:3705 [inline] dtSearch+0x192d/0x1ba0 fs/jfs/jfs_dtree.c:651 jfs_lookup+0xf7/0x170 fs/jfs/namei.c:1470 lookup_open+0x5c4/0x1750 fs/namei.c:3220 syz-executor.0 (13219) used greatest stack depth: 24696 bytes left do_last fs/namei.c:3334 [inline] path_openat+0xe08/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fce094870c9 RSP: 002b:00007fce079f9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fce095a6f80 RCX: 00007fce094870c9 RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007fce094e2ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe7cd03bbf R14: 00007fce079f9300 R15: 0000000000022000 Allocated by task 13234: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552 jfs_alloc_inode+0x18/0x50 fs/jfs/super.c:118 alloc_inode+0x5d/0x170 fs/inode.c:209 iget_locked+0x151/0x400 fs/inode.c:1126 jfs_iget+0x1e/0x480 fs/jfs/inode.c:41 jfs_fill_super+0x5f7/0xab0 fs/jfs/super.c:613 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88803c77c180 which belongs to the cache jfs_ip of size 1952 The buggy address is located 211 bytes to the left of 1952-byte region [ffff88803c77c180, ffff88803c77c920) The buggy address belongs to the page: page:ffffea0000f1df00 count:1 mapcount:0 mapping:ffff88803c77c180 index:0xffff88803c77cfff flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff88803c77c180 ffff88803c77cfff 0000000100000001 raw: ffffea0000eae1a0 ffff8880b136ff48 ffff888238c33800 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803c77bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803c77c000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803c77c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88803c77c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803c77c180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== audit: type=1800 audit(1675009780.880:7): pid=13299 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14463 res=0 audit: type=1800 audit(1675009780.880:8): pid=13307 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13882 res=0