REISERFS (device loop0): checking transaction log (loop0) REISERFS (device loop0): Using tea hash to sort names 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+0x5ae/0x1380 fs/reiserfs/namei.c:165 Read of size 4 at addr ffff888058c87104 by task syz.0.17/4952 CPU: 1 PID: 4952 Comm: syz.0.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 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 bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline] search_by_entry_key+0x5ae/0x1380 fs/reiserfs/namei.c:165 reiserfs_find_entry+0x2eb/0x18e0 fs/reiserfs/namei.c:322 reiserfs_lookup+0x1eb/0x480 fs/reiserfs/namei.c:368 __lookup_slow+0x29d/0x410 fs/namei.c:1671 lookup_one_len+0x19d/0x2d0 fs/namei.c:2769 open_xa_dir+0x40c/0x690 fs/reiserfs/xattr.c:162 xattr_lookup+0x22/0x2a0 fs/reiserfs/xattr.c:395 reiserfs_xattr_set_handle+0x10c/0xfd0 fs/reiserfs/xattr.c:540 reiserfs_xattr_set+0x477/0x5b0 fs/reiserfs/xattr.c:640 __vfs_setxattr+0x3d8/0x410 fs/xattr.c:182 __vfs_setxattr_noperm+0x126/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x2cb/0x360 fs/xattr.c:611 __do_sys_fsetxattr fs/xattr.c:667 [inline] __se_sys_fsetxattr+0x15e/0x1d0 fs/xattr.c:656 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:0x7f9ed14032f9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9ed0667028 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f9ed163efa0 RCX: 00007f9ed14032f9 RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000006 RBP: 00007f9ed1496d04 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9ed163efa0 R15: 00007ffdeb424db8 The buggy address belongs to the page: page:ffffea00016321c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x100 pfn:0x58c87 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001632208 ffffea0001632188 0000000000000000 raw: 0000000000000100 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x8(__GFP_MOVABLE), pid 1, ts 23994195147, free_ts 24901517233 split_map_pages+0x280/0x4d0 mm/compaction.c:99 isolate_freepages_range+0x3e1/0x440 mm/compaction.c:749 alloc_contig_range+0x837/0xd70 mm/page_alloc.c:9312 __alloc_contig_pages mm/page_alloc.c:9336 [inline] alloc_contig_pages+0x382/0x480 mm/page_alloc.c:9416 debug_vm_pgtable_alloc_huge_page+0xbf/0x110 mm/debug_vm_pgtable.c:1090 init_args+0xb0e/0xda0 mm/debug_vm_pgtable.c:1212 debug_vm_pgtable+0x42/0x380 mm/debug_vm_pgtable.c:1250 do_one_initcall+0x272/0x730 init/main.c:1276 do_initcall_level+0x13d/0x1f0 init/main.c:1349 do_initcalls+0x4b/0x90 init/main.c:1365 kernel_init_freeable+0x3d5/0x560 init/main.c:1589 kernel_init+0x19/0x1b0 init/main.c:1480 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1341 [inline] free_pcp_prepare mm/page_alloc.c:1392 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3325 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3404 free_contig_range+0x96/0xf0 mm/page_alloc.c:9438 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x272/0x730 init/main.c:1276 do_initcall_level+0x13d/0x1f0 init/main.c:1349 do_initcalls+0x4b/0x90 init/main.c:1365 kernel_init_freeable+0x3d5/0x560 init/main.c:1589 kernel_init+0x19/0x1b0 init/main.c:1480 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888058c87000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888058c87080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888058c87100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888058c87180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888058c87200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================