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

Crash report:
(syz.0.17,5491,0):ocfs2_xa_set:2254 ERROR: status = -30
JBD2: assertion failure: h_type=0 h_line_no=0 block_no=19105 jlist=0
------------[ cut here ]------------
kernel BUG at fs/jbd2/transaction.c:1525!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5491 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:jbd2_journal_dirty_metadata+0xbe1/0xc30 fs/jbd2/transaction.c:1524
Code: 9a ff e9 6f fc ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c af fc ff ff 48 89 df e8 7a 58 9a ff e9 a2 fc ff ff e8 d0 19 33 ff 90 <0f> 0b e8 c8 19 33 ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c
RSP: 0018:ffffc90002c0ebf8 EFLAGS: 00010293
RAX: ffffffff828cf9c0 RBX: 0000000000000000 RCX: ffff8880003c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff8880433d9f68 R08: ffff88801fe24293 R09: 1ffff11003fc4852
R10: dffffc0000000000 R11: ffffed1003fc4853 R12: 1ffff1100867b3e9
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880433d9f4c
FS:  0000555573e74500(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bbe172a7c0 CR3: 000000004da03000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 ocfs2_journal_dirty+0x149/0x740 fs/ocfs2/journal.c:834
 ocfs2_xa_journal_dirty fs/ocfs2/xattr.c:1453 [inline]
 ocfs2_xa_set+0x2519/0x3050 fs/ocfs2/xattr.c:2263
 ocfs2_xattr_block_set+0x3c4/0x2bc0 fs/ocfs2/xattr.c:2985
 __ocfs2_xattr_set_handle+0x661/0xf20 fs/ocfs2/xattr.c:3387
 ocfs2_xattr_set+0xde8/0x11f0 fs/ocfs2/xattr.c:3650
 __vfs_setxattr+0x43c/0x480 fs/xattr.c:200
 __vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:234
 vfs_setxattr+0x16b/0x2f0 fs/xattr.c:321
 do_setxattr fs/xattr.c:636 [inline]
 filename_setxattr+0x274/0x600 fs/xattr.c:665
 path_setxattrat+0x364/0x3a0 fs/xattr.c:713
 __do_sys_setxattr fs/xattr.c:747 [inline]
 __se_sys_setxattr fs/xattr.c:743 [inline]
 __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0aa6d8efc9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa7355ec8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f0aa6fe5fa0 RCX: 00007f0aa6d8efc9
RDX: 0000200000000080 RSI: 0000200000000180 RDI: 00002000000001c0
RBP: 00007f0aa6e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0aa6fe5fa0 R14: 00007f0aa6fe5fa0 R15: 0000000000000005
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jbd2_journal_dirty_metadata+0xbe1/0xc30 fs/jbd2/transaction.c:1524
Code: 9a ff e9 6f fc ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c af fc ff ff 48 89 df e8 7a 58 9a ff e9 a2 fc ff ff e8 d0 19 33 ff 90 <0f> 0b e8 c8 19 33 ff 90 0f 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c
RSP: 0018:ffffc90002c0ebf8 EFLAGS: 00010293
RAX: ffffffff828cf9c0 RBX: 0000000000000000 RCX: ffff8880003c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff8880433d9f68 R08: ffff88801fe24293 R09: 1ffff11003fc4852
R10: dffffc0000000000 R11: ffffed1003fc4853 R12: 1ffff1100867b3e9
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880433d9f4c
FS:  0000555573e74500(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bbe172a7c0 CR3: 000000004da03000 CR4: 0000000000352ef0