------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:504! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 11539 Comm: syz-executor.4 Not tainted 6.7.0-rc2-syzkaller-00147-gf1a09972a45a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:reiserfs_in_journal+0x239/0x730 fs/reiserfs/journal.c:504 Code: b8 5c ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 17 04 00 00 48 3b 5d 08 75 86 e8 6d b8 5c ff e8 68 b8 5c ff 90 <0f> 0b e8 60 b8 5c ff e8 5b b8 5c ff 48 8b 9b 30 06 00 00 48 b8 00 RSP: 0018:ffffc9000daff3f8 EFLAGS: 00010287 RAX: 0000000000001cf5 RBX: ffff88801a32c000 RCX: ffffc9000a201000 RDX: 0000000000040000 RSI: ffffffff822ad1c8 RDI: ffffc9000e599050 RBP: ffffc9000e599048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 0000000000000004 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: ffff8880276e0000 FS: 00007f15336456c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32435000 CR3: 000000007c46b000 CR4: 0000000000350ef0 Call Trace: is_block_in_journal fs/reiserfs/bitmap.c:125 [inline] scan_bitmap_block.constprop.0+0x4b7/0x1080 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+0x2c41/0x5770 fs/reiserfs/bitmap.c:1375 reiserfs_new_unf_blocknrs fs/reiserfs/reiserfs.h:3363 [inline] _allocate_block fs/reiserfs/inode.c:645 [inline] reiserfs_get_block+0xb13/0x4570 fs/reiserfs/inode.c:756 __block_write_begin_int+0x3c0/0x1560 fs/buffer.c:2119 reiserfs_write_begin+0x350/0x7d0 fs/reiserfs/inode.c:2767 generic_perform_write+0x278/0x600 mm/filemap.c:3918 __generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4013 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4039 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x64f/0xdf0 fs/read_write.c:584 ksys_write+0x12f/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f153287cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f15336450c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f153299bf80 RCX: 00007f153287cae9 RDX: 000000000000fcb8 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007f15328c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f153299bf80 R15: 00007ffed35def88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:reiserfs_in_journal+0x239/0x730 fs/reiserfs/journal.c:504 Code: b8 5c ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 17 04 00 00 48 3b 5d 08 75 86 e8 6d b8 5c ff e8 68 b8 5c ff 90 <0f> 0b e8 60 b8 5c ff e8 5b b8 5c ff 48 8b 9b 30 06 00 00 48 b8 00 RSP: 0018:ffffc9000daff3f8 EFLAGS: 00010287 RAX: 0000000000001cf5 RBX: ffff88801a32c000 RCX: ffffc9000a201000 RDX: 0000000000040000 RSI: ffffffff822ad1c8 RDI: ffffc9000e599050 RBP: ffffc9000e599048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 0000000000000004 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: ffff8880276e0000 FS: 00007f15336456c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32625000 CR3: 000000007c46b000 CR4: 0000000000350ef0