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

Crash report:
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode.
------------[ cut here ]------------
kernel BUG at fs/ocfs2/aops.c:1159!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 6030 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1159 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc+0x1cc1/0x1cf0 fs/ocfs2/aops.c:1219
Code: 03 48 8d bc 24 10 02 00 00 48 c7 c6 04 9d dc 8c ba 6a 04 00 00 48 c7 c1 80 77 2a 8b e8 98 50 1b 00 90 0f 0b e8 00 1a 2a fe 90 <0f> 0b e8 f8 19 2a fe 90 0f 0b e8 f0 19 2a fe 90 0f 0b e8 e8 19 2a
RSP: 0018:ffffc90003c7ee60 EFLAGS: 00010293
RAX: ffffffff8394a380 RBX: ffff8880351d4014 RCX: ffff88803ce7da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003c7f190 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1dac52f R12: ffff888033e04000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880351d4014
FS:  0000555560337500(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff79522b2c CR3: 0000000032ce8000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 ocfs2_write_begin_nolock+0x31a3/0x4340 fs/ocfs2/aops.c:1796
 ocfs2_write_begin+0x1bb/0x310 fs/ocfs2/aops.c:1884
 generic_perform_write+0x29d/0x8c0 mm/filemap.c:4242
 ocfs2_file_write_iter+0x157d/0x1d20 fs/ocfs2/file.c:2469
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5d5/0xb40 fs/read_write.c:686
 ksys_pwrite64 fs/read_write.c:793 [inline]
 __do_sys_pwrite64 fs/read_write.c:801 [inline]
 __se_sys_pwrite64 fs/read_write.c:798 [inline]
 __x64_sys_pwrite64+0x196/0x220 fs/read_write.c:798
 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:0x7f548cd4efc9
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:00007ffd1ff86138 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f548cfa5fa0 RCX: 00007f548cd4efc9
RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004
RBP: 00007f548cdd1f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000
R13: 00007f548cfa5fa0 R14: 00007f548cfa5fa0 R15: 0000000000000004
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1159 [inline]
RIP: 0010:ocfs2_write_cluster_by_desc+0x1cc1/0x1cf0 fs/ocfs2/aops.c:1219
Code: 03 48 8d bc 24 10 02 00 00 48 c7 c6 04 9d dc 8c ba 6a 04 00 00 48 c7 c1 80 77 2a 8b e8 98 50 1b 00 90 0f 0b e8 00 1a 2a fe 90 <0f> 0b e8 f8 19 2a fe 90 0f 0b e8 f0 19 2a fe 90 0f 0b e8 e8 19 2a
RSP: 0018:ffffc90003c7ee60 EFLAGS: 00010293
RAX: ffffffff8394a380 RBX: ffff8880351d4014 RCX: ffff88803ce7da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003c7f190 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1dac52f R12: ffff888033e04000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880351d4014
FS:  0000555560337500(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff79522b2c CR3: 0000000032ce8000 CR4: 00000000003526f0