REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop0): checking transaction log (loop0) REISERFS (device loop0): Using r5 hash to sort names ================================================================== BUG: KASAN: use-after-free in reiserfs_get_unused_objectid+0x222/0x430 fs/reiserfs/objectid.c:87 Read of size 250888 at addr ffff88806de3b058 by task syz-executor.0/4573 CPU: 1 PID: 4573 Comm: syz-executor.0 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 reiserfs_get_unused_objectid+0x222/0x430 fs/reiserfs/objectid.c:87 reiserfs_new_inode+0x247/0x1860 fs/reiserfs/inode.c:1952 reiserfs_mkdir+0x557/0x970 fs/reiserfs/namei.c:845 xattr_mkdir fs/reiserfs/xattr.c:76 [inline] create_privroot fs/reiserfs/xattr.c:889 [inline] reiserfs_xattr_init+0x331/0x720 fs/reiserfs/xattr.c:1012 reiserfs_fill_super+0x1fa6/0x23e0 fs/reiserfs/super.c:2179 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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:0x7f241fae605a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f241ee65ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f241ee65f80 RCX: 00007f241fae605a RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007f241ee65f40 RBP: 0000000020000080 R08: 00007f241ee65f80 R09: 0000000000008008 R10: 0000000000008008 R11: 0000000000000246 R12: 0000000020000040 R13: 00007f241ee65f40 R14: 0000000000001138 R15: 00000000200000c0 The buggy address belongs to the page: page:ffffea0001b78ec0 refcount:2 mapcount:0 mapping:ffff888140802030 index:0x10 pfn:0x6de3b memcg:ffff88806ec0c000 aops:def_blk_aops ino:700000 flags: 0xfff00000022036(referenced|uptodate|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000022036 ffffea0001b89788 ffffea0001b79548 ffff888140802030 raw: 0000000000000010 ffff8880745699f8 00000002ffffffff ffff88806ec0c000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 4573, ts 85009807243, free_ts 21197298881 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:5466 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 pagecache_get_page+0x986/0xef0 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x249/0xb70 fs/buffer.c:1336 __bread_gfp+0x28/0x380 fs/buffer.c:1381 sb_bread include/linux/buffer_head.h:337 [inline] read_super_block+0x91/0x7a0 fs/reiserfs/super.c:1606 reiserfs_fill_super+0x787/0x23e0 fs/reiserfs/super.c:1968 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 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 free_contig_range+0x96/0xf0 mm/page_alloc.c:9385 destroy_args+0xef/0x8b0 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1331 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88806de3bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806de3bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806de3c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806de3c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806de3c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================