================================================================== BUG: KASAN: use-after-free in ciCompare fs/jfs/jfs_dtree.c:3726 [inline] BUG: KASAN: use-after-free in dtSearch+0x164c/0x2050 fs/jfs/jfs_dtree.c:645 Read of size 1 at addr ffff88806094d8d4 by task syz.8.495/7591 CPU: 1 PID: 7591 Comm: syz.8.495 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ciCompare fs/jfs/jfs_dtree.c:3726 [inline] dtSearch+0x164c/0x2050 fs/jfs/jfs_dtree.c:645 jfs_lookup+0x152/0x380 fs/jfs/namei.c:1459 __lookup_slow+0x27d/0x3d0 fs/namei.c:1671 lookup_slow+0x53/0x70 fs/namei.c:1688 walk_component+0x319/0x460 fs/namei.c:1984 link_path_walk+0x662/0xd40 fs/namei.c:-1 path_lookupat+0x9d/0x440 fs/namei.c:2462 filename_lookup+0x1e2/0x4f0 fs/namei.c:2492 user_path_at_empty+0x40/0x190 fs/namei.c:2891 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xae/0x280 fs/xattr.c:625 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:649 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc8aeef8749 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:00007fc8ad15f038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fc8af14efa0 RCX: 00007fc8aeef8749 RDX: 0000000000000000 RSI: 0000200000000300 RDI: 0000200000000000 RBP: 00007fc8aef7cf91 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc8af14f038 R14: 00007fc8af14efa0 R15: 00007ffca9d112d8 Allocated by task 6499: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3f0 fs/jfs/inode.c:29 jfs_lookup+0x1c2/0x380 fs/jfs/namei.c:1467 lookup_open fs/namei.c:3448 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x1003/0x2f30 fs/namei.c:3747 do_filp_open+0x1b3/0x3e0 fs/namei.c:3777 do_sys_openat2+0x142/0x4a0 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1282 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x182/0x930 kernel/rcu/tree.c:3091 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:662 dispose_list fs/inode.c:680 [inline] evict_inodes+0x604/0x690 fs/inode.c:734 generic_shutdown_super+0x93/0x300 fs/super.c:454 kill_block_super+0x7c/0xe0 fs/super.c:1427 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x418/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x182/0x930 kernel/rcu/tree.c:3091 destroy_inode fs/inode.c:316 [inline] evict+0x7da/0x870 fs/inode.c:662 jfs_put_super+0x144/0x190 fs/jfs/super.c:201 generic_shutdown_super+0x130/0x300 fs/super.c:475 kill_block_super+0x7c/0xe0 fs/super.c:1427 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x418/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88806094d340 which belongs to the cache jfs_ip of size 2240 The buggy address is located 1428 bytes inside of 2240-byte region [ffff88806094d340, ffff88806094dc00) The buggy address belongs to the page: page:ffffea0001825200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60948 head:ffffea0001825200 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888055683401 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff88814700e140 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff888055683401 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 5425, ts 110945229147, free_ts 93587009597 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3f0 fs/jfs/inode.c:29 jfs_lookup+0x1c2/0x380 fs/jfs/namei.c:1467 lookup_one_qstr_excl+0x10e/0x240 fs/namei.c:1571 do_renameat2+0x444/0xf70 fs/namei.c:4934 __do_sys_renameat2 fs/namei.c:5026 [inline] __se_sys_renameat2 fs/namei.c:5023 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5023 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 getname_flags+0xb5/0x500 fs/namei.c:138 user_path_at_empty+0x2a/0x190 fs/namei.c:2890 user_path_at include/linux/namei.h:57 [inline] do_utimes_path fs/utimes.c:94 [inline] do_utimes+0x138/0x2a0 fs/utimes.c:144 __do_sys_utimensat fs/utimes.c:163 [inline] __se_sys_utimensat fs/utimes.c:147 [inline] __x64_sys_utimensat+0x14c/0x230 fs/utimes.c:147 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88806094d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806094d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806094d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806094d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806094d980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================