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 bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline] BUG: KASAN: use-after-free in search_by_entry_key+0x80a/0x940 fs/reiserfs/namei.c:165 Read of size 4 at addr ffff888071eaf004 by task syz-executor101/5033 CPU: 0 PID: 5033 Comm: syz-executor101 Not tainted 6.5.0-rc3-next-20230728-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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 bin_search_in_dir_item fs/reiserfs/namei.c:40 [inline] search_by_entry_key+0x80a/0x940 fs/reiserfs/namei.c:165 reiserfs_find_entry+0x1dc/0xe70 fs/reiserfs/namei.c:322 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/0x350 fs/super.c:1398 legacy_get_tree+0x109/0x220 fs/fs_context.c:611 vfs_get_tree+0x88/0x350 fs/super.c:1521 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:0x7ff90ec32aaa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 3e 07 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:00007ffc6fc44eb8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffc6fc44ec0 RCX: 00007ff90ec32aaa RDX: 0000000020000140 RSI: 0000000020000340 RDI: 00007ffc6fc44ec0 RBP: 0000000000000004 R08: 00007ffc6fc44f00 R09: 000000000000111a R10: 000000000120c083 R11: 0000000000000286 R12: 00007ffc6fc44f00 R13: 0000000000000003 R14: 0000000000400000 R15: 0000000000000001 The buggy address belongs to the physical page: page:ffffea0001c7abc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x71eaf flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0001c7ac08 ffff8880b98435a0 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 24956269710, free_ts 25984781224 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1569 split_map_pages+0x1ff/0x520 mm/compaction.c:97 isolate_freepages_range+0x31e/0x380 mm/compaction.c:774 alloc_contig_range+0x32e/0x510 mm/page_alloc.c:6302 __alloc_contig_pages mm/page_alloc.c:6325 [inline] alloc_contig_pages+0x30c/0x600 mm/page_alloc.c:6405 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/0x4090 mm/debug_vm_pgtable.c:1315 do_one_initcall+0x117/0x630 init/main.c:1241 do_initcall_level init/main.c:1303 [inline] do_initcalls init/main.c:1319 [inline] do_basic_setup init/main.c:1338 [inline] kernel_init_freeable+0x5bd/0x8f0 init/main.c:1555 kernel_init+0x1c/0x2a0 init/main.c:1446 ret_from_fork+0x2c/0x70 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:1160 [inline] free_unref_page_prepare+0x508/0xb90 mm/page_alloc.c:2383 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2478 free_contig_range+0xb6/0x190 mm/page_alloc.c:6427 destroy_args+0x686/0x940 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x2363/0x4090 mm/debug_vm_pgtable.c:1408 do_one_initcall+0x117/0x630 init/main.c:1241 do_initcall_level init/main.c:1303 [inline] do_initcalls init/main.c:1319 [inline] do_basic_setup init/main.c:1338 [inline] kernel_init_freeable+0x5bd/0x8f0 init/main.c:1555 kernel_init+0x1c/0x2a0 init/main.c:1446 ret_from_fork+0x2c/0x70 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: ffff888071eaef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888071eaef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888071eaf000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888071eaf080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888071eaf100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================