================================================================== BUG: KASAN: vmalloc-out-of-bounds in cleanup_bitmap_list+0x175/0x500 fs/reiserfs/journal.c:231 Read of size 8 at addr ffffc90000b2e008 by task syz-executor131/5014 CPU: 0 PID: 5014 Comm: syz-executor131 Not tainted 6.5.0-rc1-syzkaller-00196-gbde7f150276b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 cleanup_bitmap_list+0x175/0x500 fs/reiserfs/journal.c:231 free_list_bitmaps+0x48/0x1a0 fs/reiserfs/journal.c:249 free_journal_ram+0xf6/0x460 fs/reiserfs/journal.c:1887 do_journal_release+0x366/0x4d0 fs/reiserfs/journal.c:1960 journal_release+0x1f/0x30 fs/reiserfs/journal.c:1971 reiserfs_put_super+0x23b/0x4c0 fs/reiserfs/super.c:616 generic_shutdown_super+0x134/0x340 fs/super.c:499 kill_block_super+0x68/0xa0 fs/super.c:1417 deactivate_locked_super+0xa4/0x110 fs/super.c:330 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x68f/0x2290 kernel/exit.c:874 do_group_exit+0x206/0x2c0 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1033 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7efcbbdca809 Code: Unable to access opcode bytes at 0x7efcbbdca7df. RSP: 002b:00007ffe02163c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007efcbbdca809 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007efcbbe472d0 R08: ffffffffffffffb8 R09: 00007ffe02163d30 R10: 00007ffe02163d30 R11: 0000000000000246 R12: 00007efcbbe472d0 R13: 0000000000000000 R14: 00007efcbbe48040 R15: 00007efcbbd98d40 The buggy address belongs to the virtual mapping at [ffffc90000b2e000, ffffc90000b30000) created by: reiserfs_allocate_list_bitmaps+0x50/0x220 fs/reiserfs/journal.c:290 The buggy address belongs to the physical page: page:ffffea0001cc9980 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x73266 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 5014, tgid 5014 (syz-executor131), ts 54167901335, free_ts 14454827015 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 __alloc_pages_bulk+0x729/0xd40 mm/page_alloc.c:4425 vm_area_alloc_pages mm/vmalloc.c:3024 [inline] __vmalloc_area_node mm/vmalloc.c:3135 [inline] __vmalloc_node_range+0x798/0x1490 mm/vmalloc.c:3316 __vmalloc_node mm/vmalloc.c:3381 [inline] vzalloc+0x79/0x90 mm/vmalloc.c:3454 reiserfs_allocate_list_bitmaps+0x50/0x220 fs/reiserfs/journal.c:290 journal_init+0x2f1/0x2460 fs/reiserfs/journal.c:2738 reiserfs_fill_super+0x1039/0x2620 fs/reiserfs/super.c:2022 mount_bdev+0x276/0x3b0 fs/super.c:1391 legacy_get_tree+0xef/0x190 fs/fs_context.c:611 vfs_get_tree+0x8c/0x270 fs/super.c:1519 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 free_contig_range+0x9e/0x150 mm/page_alloc.c:6395 destroy_args+0x102/0x9a0 mm/debug_vm_pgtable.c:1029 debug_vm_pgtable+0x42a/0x4b0 mm/debug_vm_pgtable.c:1410 do_one_initcall+0x23d/0x7d0 init/main.c:1232 do_initcall_level+0x157/0x210 init/main.c:1294 do_initcalls+0x3f/0x80 init/main.c:1310 kernel_init_freeable+0x43b/0x5d0 init/main.c:1546 kernel_init+0x1d/0x2a0 init/main.c:1437 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffffc90000b2df00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000b2df80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90000b2e000: 00 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90000b2e080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000b2e100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================