loop0: detected capacity change from 32768 to 32511 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2579! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5339 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~bpo12+1 04/01/2014 RIP: 0010:_ocfs2_free_suballoc_bits+0x108a/0x1330 fs/ocfs2/suballoc.c:2579 Code: 4c 89 f1 e9 87 f9 ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 95 fb ff ff 48 89 df e8 b1 65 76 fe e9 88 fb ff ff e8 37 ba 0e fe 90 <0f> 0b e8 2f ba 0e fe 90 0f 0b f3 0f 1e fa 65 44 8b 25 04 55 ce 0e RSP: 0018:ffffc9000e8af500 EFLAGS: 00010283 RAX: ffffffff83b24b19 RBX: ffff888000b0be00 RCX: 0000000000100000 RDX: ffffc90021a23000 RSI: 0000000000001b63 RDI: 0000000000001b64 RBP: ffffc9000e8af6a8 R08: 0000000000000020 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1f0484f R12: ffff888047d65160 R13: dffffc0000000000 R14: 00000000ffffffff R15: 0000000000000004 FS: 00007f11db4c06c0(0000) GS:ffff88808d416000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0b9768000 CR3: 0000000043b68000 CR4: 0000000000352ef0 Call Trace: _ocfs2_free_clusters+0x5d4/0xa50 fs/ocfs2/suballoc.c:2683 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5979 [inline] __ocfs2_flush_truncate_log+0x75d/0x1150 fs/ocfs2/alloc.c:6062 ocfs2_flush_truncate_log+0x4f/0x70 fs/ocfs2/alloc.c:6084 ocfs2_sync_fs+0x116/0x310 fs/ocfs2/super.c:406 sync_filesystem+0x1cf/0x230 fs/sync.c:66 ocfs2_reconfigure+0x139/0xb90 fs/ocfs2/super.c:616 reconfigure_super+0x227/0x880 fs/super.c:1077 do_remount fs/namespace.c:3264 [inline] path_mount+0xd29/0xff0 fs/namespace.c:4014 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f11da590f6a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f11db4bfe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f11db4bfef0 RCX: 00007f11da590f6a RDX: 0000200000000f40 RSI: 0000200000000f00 RDI: 0000000000000000 RBP: 0000200000000f40 R08: 00007f11db4bfef0 R09: 0000000001a4a438 R10: 0000000001a4a438 R11: 0000000000000246 R12: 0000200000000f00 R13: 00007f11db4bfeb0 R14: 0000000000000000 R15: 0000200000000100 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x108a/0x1330 fs/ocfs2/suballoc.c:2579 Code: 4c 89 f1 e9 87 f9 ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 95 fb ff ff 48 89 df e8 b1 65 76 fe e9 88 fb ff ff e8 37 ba 0e fe 90 <0f> 0b e8 2f ba 0e fe 90 0f 0b f3 0f 1e fa 65 44 8b 25 04 55 ce 0e RSP: 0018:ffffc9000e8af500 EFLAGS: 00010283 RAX: ffffffff83b24b19 RBX: ffff888000b0be00 RCX: 0000000000100000 RDX: ffffc90021a23000 RSI: 0000000000001b63 RDI: 0000000000001b64 RBP: ffffc9000e8af6a8 R08: 0000000000000020 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1f0484f R12: ffff888047d65160 R13: dffffc0000000000 R14: 00000000ffffffff R15: 0000000000000004 FS: 00007f11db4c06c0(0000) GS:ffff88808d416000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0b9768000 CR3: 0000000043b68000 CR4: 0000000000352ef0