================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:-1 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x111f/0x2050 fs/jfs/jfs_dtree.c:645 Read of size 2 at addr ffff88802e948fe2 by task syz.7.2278/13712 CPU: 0 PID: 13712 Comm: syz.7.2278 Not tainted 6.1.140-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 ciCompare fs/jfs/jfs_dtree.c:-1 [inline] dtSearch+0x111f/0x2050 fs/jfs/jfs_dtree.c:645 dtDelete+0xe2/0x29a0 fs/jfs/jfs_dtree.c:2102 jfs_rename+0xb5a/0x16a0 fs/jfs/namei.c:1238 vfs_rename+0xbbf/0x10d0 fs/namei.c:4874 do_renameat2+0x89d/0xc70 fs/namei.c:5027 __do_sys_rename fs/namei.c:5073 [inline] __se_sys_rename fs/namei.c:5071 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5071 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f907ed8e969 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f907fb60038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f907efb5fa0 RCX: 00007f907ed8e969 RDX: 0000000000000000 RSI: 0000200000000e40 RDI: 0000200000000d40 RBP: 00007f907ee10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f907efb5fa0 R15: 00007ffe0ddc9c38 Allocated by task 10080: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 kmem_cache_alloc_bulk+0x3ba/0x4e0 mm/slub.c:3854 __io_alloc_req_refill+0x264/0x48e io_uring/io_uring.c:937 io_alloc_req_refill io_uring/io_uring.h:380 [inline] io_submit_sqes+0xc93/0x1d50 io_uring/io_uring.c:2297 __do_sys_io_uring_enter io_uring/io_uring.c:3434 [inline] __se_sys_io_uring_enter+0x2eb/0x20a0 io_uring/io_uring.c:3366 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88802e948dc0 which belongs to the cache io_kiocb of size 216 The buggy address is located 330 bytes to the right of 216-byte region [ffff88802e948dc0, ffff88802e948e98) The buggy address belongs to the physical page: page:ffffea0000ba5200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802e948780 pfn:0x2e948 memcg:ffff888068621401 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00009c2fc0 dead000000000003 ffff888141be3a00 raw: ffff88802e948780 00000000800c0000 00000001ffffffff ffff888068621401 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 6237, tgid 6236 (syz.2.492), ts 278887705862, free_ts 262001869698 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 kmem_cache_alloc_bulk+0x1a3/0x4e0 mm/slub.c:3830 __io_alloc_req_refill+0x264/0x48e io_uring/io_uring.c:937 io_alloc_req_refill io_uring/io_uring.h:380 [inline] io_submit_sqes+0xc93/0x1d50 io_uring/io_uring.c:2297 __do_sys_io_uring_enter io_uring/io_uring.c:3434 [inline] __se_sys_io_uring_enter+0x2eb/0x20a0 io_uring/io_uring.c:3366 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3422 getname_flags+0xb7/0x500 fs/namei.c:139 user_path_at_empty+0x28/0x60 fs/namei.c:2904 user_path_at include/linux/namei.h:57 [inline] inotify_find_inode fs/notify/inotify/inotify_user.c:378 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:777 [inline] __se_sys_inotify_add_watch+0x18e/0x1020 fs/notify/inotify/inotify_user.c:730 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88802e948e80: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802e948f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802e948f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802e949000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802e949080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================