REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [3 7 0x0 SD] (nlink == 2) not found (pos 2) ================================================================== BUG: KASAN: use-after-free in bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline] BUG: KASAN: use-after-free in search_by_entry_key+0x458/0xe34 fs/reiserfs/namei.c:165 Read of size 4 at addr ffff0000e0502104 by task syz.0.367/5781 CPU: 1 PID: 5781 Comm: syz.0.367 Not tainted 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load_n_noabort+0x40/0x4c mm/kasan/report_generic.c:319 bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline] search_by_entry_key+0x458/0xe34 fs/reiserfs/namei.c:165 reiserfs_find_entry+0x26c/0x1390 fs/reiserfs/namei.c:322 reiserfs_lookup+0x15c/0x378 fs/reiserfs/namei.c:368 __lookup_slow+0x24c/0x380 fs/namei.c:1663 lookup_one_len+0x178/0x28c fs/namei.c:2718 open_xa_dir+0x354/0x57c fs/reiserfs/xattr.c:162 xattr_lookup+0x3c/0x268 fs/reiserfs/xattr.c:395 reiserfs_xattr_set_handle+0xd8/0xb34 fs/reiserfs/xattr.c:540 reiserfs_xattr_set+0x388/0x4a8 fs/reiserfs/xattr.c:640 trusted_set+0x98/0xec fs/reiserfs/xattr_trusted.c:31 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the page: page:0000000029f4b7fc refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x120502 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc00038140c8 fffffc0003814048 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e0502000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000e0502080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000e0502100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000e0502180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000e0502200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [3 7 0x0 SD] (nlink == 3) not found (pos 3)