REISERFS panic (device loop3): journal-2332 do_journal_end: Trying to log block 531, which is a log block
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5108 Comm: syz-executor.3 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:__reiserfs_panic+0x101/0x150 fs/reiserfs/prints.c:390
Code: ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 60 06 00 00 49 c7 c1 60 14 8d 92 48 c7 c7 80 d5 e2 8a e8 45 4e 42 ff e8 50 71 5f ff 90 <0f> 0b 49 c7 c6 20 d4 e2 8a 4d 89 f4 eb c4 e8 3c 71 5f ff 4d 85 e4
RSP: 0018:ffffc9000424fa00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88808a298000 RCX: ffffffff816a6559
RDX: ffff8880262b5940 RSI: ffffffff82280080 RDI: 0000000000000005
RBP: ffffc9000424fad0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffffffff8ae33aa0
R13: ffffffff8ae342c0 R14: ffffffff8ae2d3e0 R15: 0000000000000213
FS:  00005555557d3480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000144 CR3: 000000003fdce000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 do_journal_end+0x4271/0x4f10 fs/reiserfs/journal.c:4150
 reiserfs_sync_fs+0x10e/0x140 fs/reiserfs/super.c:78
 sync_filesystem+0x109/0x280 fs/sync.c:56
 generic_shutdown_super+0x7e/0x3d0 fs/super.c:669
 kill_block_super+0x3b/0x90 fs/super.c:1667
 deactivate_locked_super+0xbc/0x1a0 fs/super.c:484
 deactivate_super+0xde/0x100 fs/super.c:517
 cleanup_mnt+0x222/0x450 fs/namespace.c:1256
 task_work_run+0x14d/0x240 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x217/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1e/0x60 kernel/entry/common.c:296
 do_syscall_64+0x4d/0x110 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f1ccf27e017
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffdf846d38 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1ccf27e017
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fffdf846df0
RBP: 00007fffdf846df0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffdf847eb0
R13: 00007f1ccf2c83b9 R14: 0000000000065647 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0x101/0x150 fs/reiserfs/prints.c:390
Code: ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 60 06 00 00 49 c7 c1 60 14 8d 92 48 c7 c7 80 d5 e2 8a e8 45 4e 42 ff e8 50 71 5f ff 90 <0f> 0b 49 c7 c6 20 d4 e2 8a 4d 89 f4 eb c4 e8 3c 71 5f ff 4d 85 e4
RSP: 0018:ffffc9000424fa00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88808a298000 RCX: ffffffff816a6559
RDX: ffff8880262b5940 RSI: ffffffff82280080 RDI: 0000000000000005
RBP: ffffc9000424fad0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffffffff8ae33aa0
R13: ffffffff8ae342c0 R14: ffffffff8ae2d3e0 R15: 0000000000000213
FS:  00005555557d3480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31a21000 CR3: 000000003fdce000 CR4: 0000000000350ef0