------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:6002! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4498 Comm: syz.4.43 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 3a 10 90 fe e9 7d fb ff ff e8 70 27 46 fe 0f 0b e8 69 27 46 fe <0f> 0b 65 44 8b 2d 27 b7 c7 7c bf 07 00 00 00 44 89 ee e8 b2 2a 46 RSP: 0018:ffffc90003246a20 EFLAGS: 00010287 RAX: ffffffff833a5e27 RBX: 00000000ffffffff RCX: 0000000000080000 RDX: ffffc9000f65e000 RSI: 000000000000ab3b RDI: 000000000000ab3c RBP: ffffc90003246c30 R08: ffffffff833a4f7e R09: fffff52000648d2d R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003246b40 R13: ffff88805e03b338 R14: ffff88805f9eda00 R15: ffff8880628c6c00 FS: 00007fea5d9dd6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffd000000 CR3: 00000000240a6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_remove_btree_range+0x7eb/0x18a0 fs/ocfs2/alloc.c:5738 ocfs2_commit_truncate+0xcb3/0x2530 fs/ocfs2/alloc.c:7339 ocfs2_truncate_file+0xd3d/0x14f0 fs/ocfs2/file.c:505 ocfs2_setattr+0x16dd/0x1ce0 fs/ocfs2/file.c:1215 notify_change+0xc6d/0xf50 fs/attr.c:505 do_truncate+0x21c/0x300 fs/open.c:65 handle_truncate fs/namei.c:3265 [inline] do_open fs/namei.c:3612 [inline] path_openat+0x28a3/0x2f20 fs/namei.c:3742 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fea5fb95169 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:00007fea5d9dd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fea5fdae080 RCX: 00007fea5fb95169 RDX: 0000000000101242 RSI: 0000400000000040 RDI: ffffffffffffff9c RBP: 00007fea5fc162a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fea5fdae080 R15: 00007ffc3bd155b8 Modules linked in: ---[ end trace 5f072f868ed97d73 ]--- RIP: 0010:__ocfs2_flush_truncate_log+0x1077/0x11c0 fs/ocfs2/alloc.c:6002 Code: ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 8a fb ff ff 48 89 df e8 3a 10 90 fe e9 7d fb ff ff e8 70 27 46 fe 0f 0b e8 69 27 46 fe <0f> 0b 65 44 8b 2d 27 b7 c7 7c bf 07 00 00 00 44 89 ee e8 b2 2a 46 RSP: 0018:ffffc90003246a20 EFLAGS: 00010287 RAX: ffffffff833a5e27 RBX: 00000000ffffffff RCX: 0000000000080000 RDX: ffffc9000f65e000 RSI: 000000000000ab3b RDI: 000000000000ab3c RBP: ffffc90003246c30 R08: ffffffff833a4f7e R09: fffff52000648d2d R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003246b40 R13: ffff88805e03b338 R14: ffff88805f9eda00 R15: ffff8880628c6c00 FS: 00007fea5d9dd6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd561fba290 CR3: 00000000240a6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400