Kernel bug: kernel BUG in ocfs2_set_new_buffer_uptodate (2)
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/uptodate.c:509!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 6101 Comm: syz.0.17 No[  127.155654][ T6101] CPU: 0 UID: 0 PID: 6101 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509
Code: 80 3c 20 00 74 08 4c 89 f7 e8 93 71 79 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 2e e9 5d ce 5b 1c e8 b8 36 1a fe 90 <0f> 0b e8 b0 36 1a fe 90 0f 0b e8 a8 36 1a fe 90 0f 0b e8 a0 36 1a
RSP: 0018:ffffc90003b8e9c8 EFLAGS: 00010293
RAX: ffffffff83a43758 RBX: ffff8880428909c0 RCX: ffff88803a103b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e3ac07 R12: 1ffff92000771d6c
R13: dffffc0000000000 R14: ffff888042952a68 R15: ffff888042952a68
FS:  0000555563199500(0000) GS:ffff8881268bc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe7a4bdf4e8 CR3: 000000003a560000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 ocfs2_extend_dir+0x1172/0x4870 fs/ocfs2/dir.c:3309
 ocfs2_prepare_dx_dir_for_insert fs/ocfs2/dir.c:4232 [inline]
 ocfs2_prepare_dir_for_insert+0x3d7b/0x5450 fs/ocfs2/dir.c:4288
 ocfs2_mknod+0x819/0x2050 fs/ocfs2/namei.c:297
 ocfs2_mkdir+0x191/0x440 fs/ocfs2/namei.c:659
 vfs_mkdir+0x306/0x510 fs/namei.c:4366
 do_mkdirat+0x247/0x590 fs/namei.c:4399
 __do_sys_mkdirat fs/namei.c:4416 [inline]
 __se_sys_mkdirat fs/namei.c:4414 [inline]
 __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4414
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3fadf3eba9
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:00007fffaf061108 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3fae185fa0 RCX: 00007f3fadf3eba9
RDX: 0000000000000000 RSI: 0000200000000180 RDI: 0000000000000005
RBP: 00007f3fadfc1e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3fae185fa0 R14: 00007f3fae185fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_set_new_buffer_uptodate+0x149/0x170 fs/ocfs2/uptodate.c:509
Code: 80 3c 20 00 74 08 4c 89 f7 e8 93 71 79 fe 4d 8b 1e 48 89 df 5b 41 5c 41 5d 41 5e 41 5f 5d 2e e9 5d ce 5b 1c e8 b8 36 1a fe 90 <0f> 0b e8 b0 36 1a fe 90 0f 0b e8 a8 36 1a fe 90 0f 0b e8 a0 36 1a
RSP: 0018:ffffc90003b8e9c8 EFLAGS: 00010293
RAX: ffffffff83a43758 RBX: ffff8880428909c0 RCX: ffff88803a103b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e3ac07 R12: 1ffff92000771d6c
R13: dffffc0000000000 R14: ffff888042952a68 R15: ffff888042952a68
FS:  0000555563199500(0000) GS:ffff8881268bc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe7a487b238 CR3: 000000003a560000 CR4: 00000000003526f0