loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. (syz.0.0,5323,0):ocfs2_dio_end_io:2401 ERROR: Direct IO failed, bytes = 0 loop0: detected capacity change from 32768 to 32767 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2579! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5323 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+0x10d0/0x1370 fs/ocfs2/suballoc.c:2579 Code: 4c 89 f1 e9 56 f9 ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 8e fb ff ff 48 89 df e8 5b 08 6c fe e9 81 fb ff ff e8 c1 4d 01 fe 90 <0f> 0b e8 b9 4d 01 fe 90 0f 0b 65 44 8b 25 22 b6 53 0f bf 07 00 00 RSP: 0018:ffffc9000d4ff6c0 EFLAGS: 00010287 RAX: ffffffff83c339ff RBX: ffff8880442c8e00 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 000000000000c1ab RDI: 000000000000c1ac RBP: ffffc9000d4ff868 R08: 0000000000000020 R09: 0000000000000066 R10: dffffc0000000000 R11: fffffbfff2020f4f R12: 0000000000000066 R13: dffffc0000000000 R14: 00000000ffffffff R15: 1ffff92001a9feec FS: 00007f01fc83a6c0(0000) GS:ffff88808cab1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ed44864a70 CR3: 0000000011b21000 CR4: 0000000000352ef0 Call Trace: _ocfs2_free_clusters+0x5d6/0xa60 fs/ocfs2/suballoc.c:2683 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5979 [inline] __ocfs2_flush_truncate_log+0x768/0x11f0 fs/ocfs2/alloc.c:6062 ocfs2_flush_truncate_log+0x4f/0x70 fs/ocfs2/alloc.c:6084 ocfs2_sync_fs+0x11c/0x340 fs/ocfs2/super.c:406 sync_filesystem+0x1cf/0x230 fs/sync.c:66 generic_shutdown_super+0x6f/0x2d0 fs/super.c:624 kill_block_super+0x44/0x90 fs/super.c:1725 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f01fb99bf79 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:00007f01fc83a028 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f01fbc15fa0 RCX: 00007f01fb99bf79 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 RBP: 00007f01fba327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f01fbc16038 R14: 00007f01fbc15fa0 R15: 00007ffeeb73d6e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x10d0/0x1370 fs/ocfs2/suballoc.c:2579 Code: 4c 89 f1 e9 56 f9 ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 8e fb ff ff 48 89 df e8 5b 08 6c fe e9 81 fb ff ff e8 c1 4d 01 fe 90 <0f> 0b e8 b9 4d 01 fe 90 0f 0b 65 44 8b 25 22 b6 53 0f bf 07 00 00 RSP: 0018:ffffc9000d4ff6c0 EFLAGS: 00010287 RAX: ffffffff83c339ff RBX: ffff8880442c8e00 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 000000000000c1ab RDI: 000000000000c1ac RBP: ffffc9000d4ff868 R08: 0000000000000020 R09: 0000000000000066 R10: dffffc0000000000 R11: fffffbfff2020f4f R12: 0000000000000066 R13: dffffc0000000000 R14: 00000000ffffffff R15: 1ffff92001a9feec FS: 00007f01fc83a6c0(0000) GS:ffff88808cab1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ed44864a70 CR3: 0000000011b21000 CR4: 0000000000352ef0