------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:505! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8995 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-01406-ge8f75c0270d9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:reiserfs_in_journal+0x4be/0x710 fs/reiserfs/journal.c:505 Code: 39 ec 75 a7 e8 03 bb 61 ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 79 01 00 00 48 3b 5d 08 75 86 e8 e2 ba 61 ff <0f> 0b e8 db ba 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc90004e6eac0 EFLAGS: 00010212 RAX: 0000000000035695 RBX: ffff888019388000 RCX: ffffc9000d04e000 RDX: 0000000000040000 RSI: ffffffff8222c4de RDI: ffffc900051d1050 RBP: ffffc900051d1048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 00000ec5000c0000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000fa6 FS: 00007f90d7d1c700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2dc25000 CR3: 00000000295cb000 CR4: 0000000000350ef0 Call Trace: is_block_in_journal fs/reiserfs/bitmap.c:125 [inline] scan_bitmap_block.constprop.0+0x33b/0xfd0 fs/reiserfs/bitmap.c:188 scan_bitmap fs/reiserfs/bitmap.c:408 [inline] allocate_without_wrapping_disk fs/reiserfs/bitmap.c:1161 [inline] blocknrs_and_prealloc_arrays_from_search_start fs/reiserfs/bitmap.c:1274 [inline] reiserfs_allocate_blocknrs+0x2d41/0x5790 fs/reiserfs/bitmap.c:1375 reiserfs_new_unf_blocknrs fs/reiserfs/reiserfs.h:3360 [inline] _allocate_block fs/reiserfs/inode.c:645 [inline] reiserfs_get_block+0x9da/0x4100 fs/reiserfs/inode.c:756 __block_write_begin_int+0x3bd/0x14b0 fs/buffer.c:2063 reiserfs_write_begin+0x36e/0xa60 fs/reiserfs/inode.c:2773 generic_perform_write+0x256/0x570 mm/filemap.c:3946 __generic_file_write_iter+0x2ae/0x500 mm/filemap.c:4074 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4106 __kernel_write_iter+0x262/0x7e0 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x23c/0x710 fs/coredump.c:915 elf_core_dump+0x277e/0x36e0 fs/binfmt_elf.c:2142 do_coredump+0x2f40/0x4040 fs/coredump.c:764 get_signal+0x1c02/0x25b0 kernel/signal.c:2862 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:308 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f90d708c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f90d7d1c168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffe5 RBX: 00007f90d71abf80 RCX: 00007f90d708c389 RDX: 0000000000000000 RSI: 0000000008800000 RDI: 0000000000000004 RBP: 00007f90d70d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3e17e0cf R14: 00007f90d7d1c300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:reiserfs_in_journal+0x4be/0x710 fs/reiserfs/journal.c:505 Code: 39 ec 75 a7 e8 03 bb 61 ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 79 01 00 00 48 3b 5d 08 75 86 e8 e2 ba 61 ff <0f> 0b e8 db ba 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc90004e6eac0 EFLAGS: 00010212 RAX: 0000000000035695 RBX: ffff888019388000 RCX: ffffc9000d04e000 RDX: 0000000000040000 RSI: ffffffff8222c4de RDI: ffffc900051d1050 RBP: ffffc900051d1048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 00000ec5000c0000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000fa6 FS: 00007f90d7d1c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f44e0e50000 CR3: 00000000295cb000 CR4: 0000000000350ee0