================================================================== BUG: KASAN: vmalloc-out-of-bounds in cleanup_bitmap_list+0x181/0x520 fs/reiserfs/journal.c:231 Read of size 8 at addr ffffc90002df8008 by task syz-executor.4/22763 CPU: 0 PID: 22763 Comm: syz-executor.4 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 cleanup_bitmap_list+0x181/0x520 fs/reiserfs/journal.c:231 free_list_bitmaps+0x48/0x1a0 fs/reiserfs/journal.c:249 free_journal_ram+0xf7/0x400 fs/reiserfs/journal.c:1887 journal_init+0x1bef/0x2510 fs/reiserfs/journal.c:2908 reiserfs_fill_super+0xf4b/0x24a0 fs/reiserfs/super.c:2022 mount_bdev+0x26c/0x3a0 fs/super.c:1400 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa9ba88cada Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 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:00007fa9bb5b1f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000540 RCX: 00007fa9ba88cada RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fa9bb5b1fe0 RBP: 00007fa9bb5b2020 R08: 00007fa9bb5b2020 R09: 0000000020000000 R10: 000000000020040a R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fa9bb5b1fe0 R15: 0000000020000180 The buggy address belongs to the virtual mapping at [ffffc90002df8000, ffffc90002dfa000) created by: reiserfs_allocate_list_bitmaps+0x4c/0x220 fs/reiserfs/journal.c:290 The buggy address belongs to the physical page: page:ffffea0001edbdc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b6f7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 22763, tgid 22762 (syz-executor.4), ts 478365174447, free_ts 478167407350 prep_new_page mm/page_alloc.c:2538 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4287 __alloc_pages+0x259/0x560 mm/page_alloc.c:5554 __alloc_pages_bulk+0x7e0/0xe70 mm/page_alloc.c:5502 vm_area_alloc_pages mm/vmalloc.c:2947 [inline] __vmalloc_area_node mm/vmalloc.c:3043 [inline] __vmalloc_node_range+0x74b/0x1290 mm/vmalloc.c:3213 __vmalloc_node mm/vmalloc.c:3278 [inline] vzalloc+0x75/0x80 mm/vmalloc.c:3351 reiserfs_allocate_list_bitmaps+0x4c/0x220 fs/reiserfs/journal.c:290 journal_init+0x2de/0x2510 fs/reiserfs/journal.c:2733 reiserfs_fill_super+0xf4b/0x24a0 fs/reiserfs/super.c:2022 mount_bdev+0x26c/0x3a0 fs/super.c:1400 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 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:1458 [inline] free_pcp_prepare+0x80c/0x8f0 mm/page_alloc.c:1508 free_unref_page_prepare mm/page_alloc.c:3386 [inline] free_unref_page_list+0xb4/0x7b0 mm/page_alloc.c:3528 release_pages+0x232a/0x25c0 mm/swap.c:1055 __pagevec_release+0x7d/0xf0 mm/swap.c:1075 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] invalidate_mapping_pagevec+0x676/0x7c0 mm/truncate.c:543 btrfs_close_bdev fs/btrfs/volumes.c:1094 [inline] btrfs_close_one_device fs/btrfs/volumes.c:1118 [inline] close_fs_devices+0x443/0x8b0 fs/btrfs/volumes.c:1160 btrfs_close_devices+0xc9/0x420 fs/btrfs/volumes.c:1175 close_ctree+0x711/0xbde fs/btrfs/disk-io.c:4720 generic_shutdown_super+0x130/0x310 fs/super.c:491 kill_anon_super+0x36/0x60 fs/super.c:1085 btrfs_kill_super+0x3d/0x50 fs/btrfs/super.c:2441 deactivate_locked_super+0xa7/0xf0 fs/super.c:331 cleanup_mnt+0x494/0x520 fs/namespace.c:1186 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 Memory state around the buggy address: ffffc90002df7f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90002df7f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90002df8000: 00 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90002df8080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90002df8100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================