------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:505! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 17893 Comm: syz-executor.2 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:reiserfs_in_journal+0x4be/0x710 fs/reiserfs/journal.c:505 Code: 39 ec 75 a7 e8 03 cb 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 ca 61 ff <0f> 0b e8 db ca 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900038fee98 EFLAGS: 00010216 RAX: 0000000000002875 RBX: ffff88805908e000 RCX: ffffc90003d71000 RDX: 0000000000040000 RSI: ffffffff822258ce RDI: ffffc90004f09008 RBP: ffffc90004f09000 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 000000a90e980000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000e26 FS: 00007f3c6cc4e700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ed29000 CR3: 0000000029225000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: is_block_in_journal fs/reiserfs/bitmap.c:125 [inline] scan_bitmap_block.constprop.0+0x4aa/0xfd0 fs/reiserfs/bitmap.c:203 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:3361 [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:2134 reiserfs_write_begin+0x36e/0xa60 fs/reiserfs/inode.c:2773 generic_perform_write+0x256/0x570 mm/filemap.c:3896 __generic_file_write_iter+0x39d/0x500 mm/filemap.c:3992 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4056 call_write_iter include/linux/fs.h:1868 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x185/0x7e0 fs/read_write.c:860 vfs_iter_write+0x74/0xa0 fs/read_write.c:901 iter_file_splice_write+0x743/0xc80 fs/splice.c:795 do_splice_from fs/splice.c:873 [inline] direct_splice_actor+0x114/0x180 fs/splice.c:1039 splice_direct_to_actor+0x335/0x8a0 fs/splice.c:994 do_splice_direct+0x1ab/0x280 fs/splice.c:1082 do_sendfile+0xb19/0x12c0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3c6be8c169 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:00007f3c6cc4e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3c6bfabf80 RCX: 00007f3c6be8c169 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f3c6bee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffa276030f R14: 00007f3c6cc4e300 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 cb 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 ca 61 ff <0f> 0b e8 db ca 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900038fee98 EFLAGS: 00010216 RAX: 0000000000002875 RBX: ffff88805908e000 RCX: ffffc90003d71000 RDX: 0000000000040000 RSI: ffffffff822258ce RDI: ffffc90004f09008 RBP: ffffc90004f09000 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 000000a90e980000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000e26 FS: 00007f3c6cc4e700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020311000 CR3: 0000000029225000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400