REISERFS warning: read_super_block: reiserfs filesystem is deprecated and scheduled to be removed from the kernel in 2025 REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal REISERFS (device loop0): using ordered data mode reiserfs: using flush barriers 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 strlen+0x7d/0xa0 lib/string.c:418 Read of size 1 at addr ffff888071a007a3 by task syz-executor420/5045 CPU: 1 PID: 5045 Comm: syz-executor420 Not tainted 6.5.0-rc5-next-20230809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 strlen+0x7d/0xa0 lib/string.c:418 __fortify_strlen include/linux/fortify-string.h:214 [inline] set_de_name_and_namelen+0x4c8/0x6a0 fs/reiserfs/namei.c:82 linear_search_in_dir_item fs/reiserfs/namei.c:262 [inline] reiserfs_find_entry+0x481/0xe70 fs/reiserfs/namei.c:331 reiserfs_lookup+0x1f5/0x690 fs/reiserfs/namei.c:368 __lookup_slow+0x24d/0x450 fs/namei.c:1690 lookup_one_len+0x17d/0x1b0 fs/namei.c:2742 reiserfs_lookup_privroot+0x94/0x200 fs/reiserfs/xattr.c:977 reiserfs_fill_super+0x1ab6/0x3150 fs/reiserfs/super.c:2192 mount_bdev+0x1f3/0x2e0 fs/super.c:1423 legacy_get_tree+0x109/0x220 fs/fs_context.c:611 vfs_get_tree+0x88/0x350 fs/super.c:1544 do_new_mount fs/namespace.c:3335 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f26ec6bed7a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 0e 06 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc91488908 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffc91488910 RCX: 00007f26ec6bed7a RDX: 00000000200000c0 RSI: 0000000020000040 RDI: 00007ffc91488910 RBP: 0000000000000004 R08: 00007ffc91488950 R09: 000000000000111c R10: 0000000000008001 R11: 0000000000000286 R12: 00007ffc91488950 R13: 0000000000000003 R14: 0000000000400000 R15: 000000000000000c The buggy address belongs to the physical page: page:ffffea0001c68000 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x71a00 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0001c68048 ffff8880b9942620 0000000000000000 raw: 0000000000000001 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, tgid 1 (swapper/0), ts 31672528573, free_ts 35032583529 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1567 split_map_pages+0x1ff/0x520 mm/compaction.c:97 isolate_freepages_range+0x318/0x370 mm/compaction.c:775 alloc_contig_range+0x32e/0x510 mm/page_alloc.c:6299 __alloc_contig_pages mm/page_alloc.c:6322 [inline] alloc_contig_pages+0x30c/0x600 mm/page_alloc.c:6402 debug_vm_pgtable_alloc_huge_page mm/debug_vm_pgtable.c:1095 [inline] init_args mm/debug_vm_pgtable.c:1277 [inline] debug_vm_pgtable+0x955/0x40a0 mm/debug_vm_pgtable.c:1315 do_one_initcall+0x117/0x630 init/main.c:1232 do_initcall_level init/main.c:1294 [inline] do_initcalls init/main.c:1310 [inline] do_basic_setup init/main.c:1329 [inline] kernel_init_freeable+0x5c2/0x900 init/main.c:1547 kernel_init+0x1c/0x2a0 init/main.c:1437 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1158 [inline] free_unref_page_prepare+0x508/0xb90 mm/page_alloc.c:2380 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2475 free_contig_range+0xb6/0x190 mm/page_alloc.c:6424 destroy_args+0x78c/0x9b0 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x2363/0x40a0 mm/debug_vm_pgtable.c:1408 do_one_initcall+0x117/0x630 init/main.c:1232 do_initcall_level init/main.c:1294 [inline] do_initcalls init/main.c:1310 [inline] do_basic_setup init/main.c:1329 [inline] kernel_init_freeable+0x5c2/0x900 init/main.c:1547 kernel_init+0x1c/0x2a0 init/main.c:1437 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff888071a00680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888071a00700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888071a00780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888071a00800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888071a00880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================