------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2542! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5334 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-10681-g65ae975e97d5 #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_free_suballoc_bits+0x11a2/0x14a0 fs/ocfs2/suballoc.c:2542 Code: 18 e9 8f fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 92 fb ff ff 4c 89 e7 e8 f9 87 67 fe e9 85 fb ff ff e8 1f a0 fc fd 90 <0f> 0b e8 17 a0 fc fd 90 0f 0b f3 0f 1e fa 65 8b 1d 55 90 6a 7c bf RSP: 0018:ffffc9000d516e00 EFLAGS: 00010287 RAX: ffffffff83994461 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ec62000 RSI: 00000000000025c9 RDI: 00000000000025ca RBP: ffffc9000d516fa8 R08: ffffffff839933bc R09: 0000000000000081 R10: dffffc0000000000 R11: fffffbfff203c697 R12: ffff8880443aa488 R13: dffffc0000000000 R14: ffff888052bfce00 R15: dffffc0000000000 FS: 00007f051ed316c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558a48351618 CR3: 0000000043520000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: _ocfs2_free_clusters+0x5ff/0xad0 fs/ocfs2/suballoc.c:2646 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5971 [inline] __ocfs2_flush_truncate_log+0x760/0x1250 fs/ocfs2/alloc.c:6054 ocfs2_flush_truncate_log fs/ocfs2/alloc.c:6076 [inline] ocfs2_try_to_free_truncate_log+0x1bb/0x410 fs/ocfs2/alloc.c:6135 ocfs2_reserve_clusters_with_limit+0x4ea/0xb60 fs/ocfs2/suballoc.c:1184 ocfs2_reserve_clusters fs/ocfs2/suballoc.c:1227 [inline] ocfs2_lock_allocators+0x30a/0x630 fs/ocfs2/suballoc.c:2746 ocfs2_extend_allocation+0x4ed/0x1c20 fs/ocfs2/file.c:589 ocfs2_allocate_unwritten_extents+0x398/0x9f0 fs/ocfs2/file.c:1496 __ocfs2_change_file_space+0x97d/0xfd0 fs/ocfs2/file.c:2023 ocfs2_fallocate+0x2e4/0x350 fs/ocfs2/file.c:2138 vfs_fallocate+0x569/0x6e0 fs/open.c:327 ksys_fallocate fs/open.c:351 [inline] __do_sys_fallocate fs/open.c:356 [inline] __se_sys_fallocate fs/open.c:354 [inline] __x64_sys_fallocate+0xbc/0x110 fs/open.c:354 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:0x7f051df80809 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:00007f051ed31058 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f051e146080 RCX: 00007f051df80809 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009 RBP: 00007f051dff393e R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001001f0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f051e146080 R15: 00007ffc8b42f988 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x11a2/0x14a0 fs/ocfs2/suballoc.c:2542 Code: 18 e9 8f fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 92 fb ff ff 4c 89 e7 e8 f9 87 67 fe e9 85 fb ff ff e8 1f a0 fc fd 90 <0f> 0b e8 17 a0 fc fd 90 0f 0b f3 0f 1e fa 65 8b 1d 55 90 6a 7c bf RSP: 0018:ffffc9000d516e00 EFLAGS: 00010287 RAX: ffffffff83994461 RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000ec62000 RSI: 00000000000025c9 RDI: 00000000000025ca RBP: ffffc9000d516fa8 R08: ffffffff839933bc R09: 0000000000000081 R10: dffffc0000000000 R11: fffffbfff203c697 R12: ffff8880443aa488 R13: dffffc0000000000 R14: ffff888052bfce00 R15: dffffc0000000000 FS: 00007f051ed316c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0d941b9580 CR3: 0000000043520000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400