Kernel bug: kernel BUG in ocfs2_journal_toggle_dirty
Subsystem: ocfs2
Status: open

Crash report:
(syz-executor275,6255,0):ocfs2_check_volume:2417 ERROR: status = -30
(syz-executor275,6255,0):ocfs2_check_volume:2429 ERROR: status = -30
(syz-executor275,6255,0):ocfs2_mount_volume:1764 ERROR: status = -30
------------[ cut here ]------------
kernel BUG at fs/ocfs2/journal.c:1012!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 6255 Comm: syz-executor275 Not tainted 6.14.0-rc4-syzkaller-00282-g1973160c90d7 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ocfs2_journal_toggle_dirty+0x397/0x3a0 fs/ocfs2/journal.c:1012
Code: 69 fe e9 f7 fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 2a fe ff ff 48 89 df e8 54 8e 69 fe e9 1d fe ff ff e8 2a 53 02 fe 90 <0f> 0b e8 22 f1 48 08 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000dbcefe0 EFLAGS: 00010293
RAX: ffffffff83bf6bf6 RBX: 00000000ffffffff RCX: ffff8880366b0000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc9000dbcf0b0 R08: ffffffff83bf6960 R09: 1ffffffff28a9328
R10: dffffc0000000000 R11: fffffbfff28a9329 R12: dffffc0000000000
R13: ffff88804b82b488 R14: ffff888047526600 R15: 1ffff92001b79e04
FS:  000055557bd2a480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0d08ab1000 CR3: 0000000049414000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_journal_shutdown+0x479/0xc10 fs/ocfs2/journal.c:1094
 ocfs2_mount_volume fs/ocfs2/super.c:1785 [inline]
 ocfs2_fill_super+0x68f1/0x74d0 fs/ocfs2/super.c:1083
 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3560
 do_mount fs/namespace.c:3900 [inline]
 __do_sys_mount fs/namespace.c:4111 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0d11807bda
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 1e 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffcf7152578 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffcf7152590 RCX: 00007f0d11807bda
RDX: 0000400000004440 RSI: 0000400000000040 RDI: 00007ffcf7152590
RBP: 0000400000000040 R08: 00007ffcf71525d0 R09: 0000000000004427
R10: 00000000000008c0 R11: 0000000000000282 R12: 0000400000004440
R13: 00007ffcf71525d0 R14: 0000000000000003 R15: 00000000000008c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_journal_toggle_dirty+0x397/0x3a0 fs/ocfs2/journal.c:1012
Code: 69 fe e9 f7 fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 2a fe ff ff 48 89 df e8 54 8e 69 fe e9 1d fe ff ff e8 2a 53 02 fe 90 <0f> 0b e8 22 f1 48 08 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000dbcefe0 EFLAGS: 00010293
RAX: ffffffff83bf6bf6 RBX: 00000000ffffffff RCX: ffff8880366b0000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000000
RBP: ffffc9000dbcf0b0 R08: ffffffff83bf6960 R09: 1ffffffff28a9328
R10: dffffc0000000000 R11: fffffbfff28a9329 R12: dffffc0000000000
R13: ffff88804b82b488 R14: ffff888047526600 R15: 1ffff92001b79e04
FS:  000055557bd2a480(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0d08ff5000 CR3: 0000000049414000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400