------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:505! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 30304 Comm: syz-executor.2 Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:reiserfs_in_journal+0x238/0x720 fs/reiserfs/journal.c:505 Code: 8e c9 5d ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 16 04 00 00 48 3b 5d 08 75 86 e8 6d c9 5d ff e8 68 c9 5d ff <0f> 0b e8 61 c9 5d ff e8 5c c9 5d ff 48 8b 9b 28 06 00 00 48 b8 00 RSP: 0018:ffffc900160bf3f8 EFLAGS: 00010283 RAX: 000000000000b6fe RBX: ffff888066d9c000 RCX: ffffc9000a8f1000 RDX: 0000000000040000 RSI: ffffffff8229fd58 RDI: ffffc9001656d050 RBP: ffffc9001656d048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 0000000000000000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: ffff8880377ab000 FS: 00007ff4b06866c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004000 CR3: 000000007772d000 CR4: 0000000000350ee0 Call Trace: is_block_in_journal fs/reiserfs/bitmap.c:125 [inline] scan_bitmap_block.constprop.0+0x339/0x1080 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+0x2c41/0x5770 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+0xb13/0x47a0 fs/reiserfs/inode.c:756 __block_write_begin_int+0x3c0/0x14d0 fs/buffer.c:2111 reiserfs_write_begin+0x351/0xa40 fs/reiserfs/inode.c:2771 generic_perform_write+0x278/0x600 mm/filemap.c:3969 __generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4064 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x650/0xe40 fs/read_write.c:584 ksys_write+0x12f/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff4af87cae9 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:00007ff4b06860c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff4af99bf80 RCX: 00007ff4af87cae9 RDX: 000000000000f809 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007ff4af8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff4af99bf80 R15: 00007ffc0e9d9758 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:reiserfs_in_journal+0x238/0x720 fs/reiserfs/journal.c:505 Code: 8e c9 5d ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 16 04 00 00 48 3b 5d 08 75 86 e8 6d c9 5d ff e8 68 c9 5d ff <0f> 0b e8 61 c9 5d ff e8 5c c9 5d ff 48 8b 9b 28 06 00 00 48 b8 00 RSP: 0018:ffffc900160bf3f8 EFLAGS: 00010283 RAX: 000000000000b6fe RBX: ffff888066d9c000 RCX: ffffc9000a8f1000 RDX: 0000000000040000 RSI: ffffffff8229fd58 RDI: ffffc9001656d050 RBP: ffffc9001656d048 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 0000000000000000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: ffff8880377ab000 FS: 00007ff4b06866c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fe25000 CR3: 000000007772d000 CR4: 0000000000350ef0