REISERFS (device loop0): Remounting filesystem read-only REISERFS error (device loop0): zam-7001 reiserfs_find_entry: io error ================================================================== BUG: KASAN: vmalloc-out-of-bounds in cleanup_bitmap_list.part.0+0x4ac/0x5f0 fs/reiserfs/journal.c:231 Read of size 8 at addr ffffc90002d5a008 by task syz-executor247/3667 CPU: 0 PID: 3667 Comm: syz-executor247 Not tainted 6.1.0-rc3-syzkaller-00299-g2f5065a0bc9d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbb/0x1f0 mm/kasan/report.c:495 cleanup_bitmap_list.part.0+0x4ac/0x5f0 fs/reiserfs/journal.c:231 cleanup_bitmap_list fs/reiserfs/journal.c:227 [inline] free_list_bitmaps fs/reiserfs/journal.c:249 [inline] free_journal_ram+0x165/0x600 fs/reiserfs/journal.c:1887 do_journal_release fs/reiserfs/journal.c:1960 [inline] journal_release_error+0x72/0x90 fs/reiserfs/journal.c:1978 reiserfs_fill_super+0x1076/0x2e90 fs/reiserfs/super.c:2223 mount_bdev+0x34d/0x410 fs/super.c:1401 legacy_get_tree+0x105/0x220 fs/fs_context.c:610 vfs_get_tree+0x89/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x1326/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ba828986a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 08 01 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:00007f5ba822ffe8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f5ba828986a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5ba8230000 RBP: 0000000000000004 R08: 00007f5ba8230040 R09: 00007f5ba82306b8 R10: 000000000020040a R11: 0000000000000286 R12: 00007f5ba8230040 R13: 0000000000000008 R14: 00007f5ba8230000 R15: 0000000020000600 The buggy address belongs to the virtual mapping at [ffffc90002d5a000, ffffc90002d5c000) created by: reiserfs_allocate_list_bitmaps+0x54/0x1c0 fs/reiserfs/journal.c:290 The buggy address belongs to the physical page: page:ffffea0000988ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2623b 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 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 3667, tgid 3666 (syz-executor247), ts 47753874614, free_ts 47686157415 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4288 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5555 __alloc_pages_bulk+0xa02/0x15b0 mm/page_alloc.c:5503 alloc_pages_bulk_array_mempolicy+0x1b3/0x360 mm/mempolicy.c:2380 vm_area_alloc_pages mm/vmalloc.c:2947 [inline] __vmalloc_area_node mm/vmalloc.c:3043 [inline] __vmalloc_node_range+0x576/0x13a0 mm/vmalloc.c:3213 __vmalloc_node mm/vmalloc.c:3278 [inline] vzalloc+0x67/0x80 mm/vmalloc.c:3351 reiserfs_allocate_list_bitmaps+0x54/0x1c0 fs/reiserfs/journal.c:290 journal_init+0x3ce/0x64c0 fs/reiserfs/journal.c:2733 reiserfs_fill_super+0xc57/0x2e90 fs/reiserfs/super.c:2022 mount_bdev+0x34d/0x410 fs/super.c:1401 legacy_get_tree+0x105/0x220 fs/fs_context.c:610 vfs_get_tree+0x89/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x1326/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/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:1459 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3483 __vunmap+0x85d/0xd30 mm/vmalloc.c:2713 __vfree+0x3c/0xd0 mm/vmalloc.c:2761 vfree+0x5a/0x90 mm/vmalloc.c:2792 do_journal_release fs/reiserfs/journal.c:1960 [inline] journal_release+0x272/0x620 fs/reiserfs/journal.c:1971 reiserfs_put_super+0xe0/0x5c0 fs/reiserfs/super.c:616 generic_shutdown_super+0x154/0x410 fs/super.c:492 kill_block_super+0x97/0xf0 fs/super.c:1428 deactivate_locked_super+0x94/0x160 fs/super.c:332 deactivate_super+0xad/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1186 task_work_run+0x16b/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:296 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffffc90002d59f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90002d59f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90002d5a000: 00 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90002d5a080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90002d5a100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================