REISERFS warning (device loop2): vs-13060 reiserfs_update_sd_size: stat data of object [3 6 0x0 SD] (nlink == 2) not found (pos 1) ================================================================== 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 ffff0000fcdc0fc4 by task syz.2.270/5552 CPU: 0 PID: 5552 Comm: syz.2.270 Not tainted 6.1.144-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x220 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:427 kasan_report+0xa8/0x100 mm/kasan/report.c:531 __asan_report_load_n_noabort+0x28/0x34 mm/kasan/report_generic.c:361 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+0x260/0x13b8 fs/reiserfs/namei.c:322 reiserfs_lookup+0x15c/0x378 fs/reiserfs/namei.c:368 __lookup_slow+0x24c/0x370 fs/namei.c:1690 lookup_one_len+0x178/0x28c fs/namei.c:2740 open_xa_dir+0x384/0x5d4 fs/reiserfs/xattr.c:162 xattr_lookup+0x3c/0x268 fs/reiserfs/xattr.c:395 reiserfs_xattr_set_handle+0xd8/0xd94 fs/reiserfs/xattr.c:533 reiserfs_xattr_set+0x388/0x4a8 fs/reiserfs/xattr.c:633 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:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the physical page: page:00000000436dfffa refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x13cdc0 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000fcdc0e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000fcdc0f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000fcdc0f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000fcdc1000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000fcdc1080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== REISERFS warning (device loop2): vs-13060 reiserfs_update_sd_size: stat data of object [3 6 0x0 SD] (nlink == 3) not found (pos 1)