------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2880! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:_ocfs2_free_suballoc_bits+0x24f9/0x2760 fs/ocfs2/suballoc.c:2880 Code: fe e9 84 f3 ff ff e8 06 2e f5 fd 48 c7 c7 a0 69 ef 8e 48 8b 74 24 38 4c 89 e2 e8 12 aa 21 01 e9 8e f3 ff ff e8 e8 2d f5 fd 90 <0f> 0b e8 e0 2d f5 fd 90 0f 0b 65 8b 1d 7a 1c 6b 0f bf 07 00 00 00 RSP: 0000:ffffc900039de7c0 EFLAGS: 00010283 RAX: ffffffff83d103a8 RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc90021804000 RSI: 000000000004076f RDI: 0000000000040770 RBP: ffffc900039dea28 R08: 0000000000007000 R09: 0000000000000001 R10: dffffc0000000000 R11: fffffbfff2062cff R12: ffff88801f091568 R13: 1ffff11003e122ad R14: 1ffff9200073bd0c R15: ffff888011c58e00 FS: 00007f5f5d1fc6c0(0000) GS:ffff88808c85e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f272c3fe000 CR3: 000000001327c000 CR4: 0000000000352ef0 Call Trace: _ocfs2_free_clusters+0x5c6/0xa80 fs/ocfs2/suballoc.c:2998 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5988 [inline] __ocfs2_flush_truncate_log+0x762/0x1230 fs/ocfs2/alloc.c:6071 ocfs2_remove_btree_range+0x724/0x15f0 fs/ocfs2/alloc.c:5762 ocfs2_commit_truncate+0xc60/0x2560 fs/ocfs2/alloc.c:7383 ocfs2_truncate_file+0xd24/0x1530 fs/ocfs2/file.c:510 ocfs2_setattr+0x1641/0x1d10 fs/ocfs2/file.c:1219 notify_change+0xbba/0xea0 fs/attr.c:556 do_truncate+0x1c2/0x250 fs/open.c:68 handle_truncate fs/namei.c:4305 [inline] do_open fs/namei.c:4704 [inline] path_openat+0x2fed/0x3830 fs/namei.c:4859 do_file_open+0x23e/0x4a0 fs/namei.c:4888 do_sys_openat2+0x115/0x200 fs/open.c:1395 do_sys_open fs/open.c:1401 [inline] __do_sys_creat fs/open.c:1479 [inline] __se_sys_creat fs/open.c:1473 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1473 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5f5c39ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5f5d1fbfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f5f5c616180 RCX: 00007f5f5c39ce59 RDX: 0000000000000000 RSI: 0000000027000000 RDI: 0000200000000e00 RBP: 00007f5f5c432e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5f5c616218 R14: 00007f5f5c616180 R15: 00007ffc3fa3b748 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x24f9/0x2760 fs/ocfs2/suballoc.c:2880 Code: fe e9 84 f3 ff ff e8 06 2e f5 fd 48 c7 c7 a0 69 ef 8e 48 8b 74 24 38 4c 89 e2 e8 12 aa 21 01 e9 8e f3 ff ff e8 e8 2d f5 fd 90 <0f> 0b e8 e0 2d f5 fd 90 0f 0b 65 8b 1d 7a 1c 6b 0f bf 07 00 00 00 RSP: 0000:ffffc900039de7c0 EFLAGS: 00010283 RAX: ffffffff83d103a8 RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc90021804000 RSI: 000000000004076f RDI: 0000000000040770 RBP: ffffc900039dea28 R08: 0000000000007000 R09: 0000000000000001 R10: dffffc0000000000 R11: fffffbfff2062cff R12: ffff88801f091568 R13: 1ffff11003e122ad R14: 1ffff9200073bd0c R15: ffff888011c58e00 FS: 00007f5f5d1fc6c0(0000) GS:ffff88808c85e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f272c3fe000 CR3: 000000001327c000 CR4: 0000000000352ef0