REISERFS (device loop1): Using r5 hash to sort names reiserfs: enabling write barrier flush mode REISERFS (device loop1): Created .reiserfs_priv - reserved for xattr storage. ------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:505! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 28861 Comm: syz-executor.1 Not tainted 6.4.0-rc7-syzkaller-00019-g99ec1ed7c2ed #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 33 d9 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 12 d9 61 ff <0f> 0b e8 0b d9 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900169d7400 EFLAGS: 00010212 RAX: 000000000000417b RBX: ffff88808bb5c000 RCX: ffffc90004383000 RDX: 0000000000040000 RSI: ffffffff82226dce RDI: ffffc90016ab9008 RBP: ffffc90016ab9000 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 00000f35000c0000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000001aa6 FS: 00007f8620ad4700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004000 CR3: 000000002285c000 CR4: 0000000000350ee0 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:2064 reiserfs_write_begin+0x36e/0xa60 fs/reiserfs/inode.c:2773 generic_perform_write+0x256/0x570 mm/filemap.c:3929 __generic_file_write_iter+0x2ae/0x500 mm/filemap.c:4057 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4089 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x945/0xd50 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 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:0x7f861fc8c389 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:00007f8620ad4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f861fdabf80 RCX: 00007f861fc8c389 RDX: 000000000208e24b RSI: 00000000200001c0 RDI: 0000000000000005 RBP: 00007f861fcd7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe40d40a7f R14: 00007f8620ad4300 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 33 d9 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 12 d9 61 ff <0f> 0b e8 0b d9 61 ff 48 8b 9b 78 06 00 00 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc900169d7400 EFLAGS: 00010212 RAX: 000000000000417b RBX: ffff88808bb5c000 RCX: ffffc90004383000 RDX: 0000000000040000 RSI: ffffffff82226dce RDI: ffffc90016ab9008 RBP: ffffc90016ab9000 R08: 0000000000000006 R09: 0000000000000213 R10: 0000000000000213 R11: 00000f35000c0000 R12: 0000000000000213 R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000001aa6 FS: 00007f8620ad4700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c03b999000 CR3: 000000002285c000 CR4: 0000000000350ee0