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: attempt to access beyond end of device loop0: rw=34817, sector=19792, nr_sectors = 8 limit=19792 (syz.0.0,5318,0):ocfs2_dio_end_io:2401 ERROR: Direct IO failed, bytes = -5 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:2568! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5318 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+0x107c/0x1330 fs/ocfs2/suballoc.c:2568 Code: 89 f1 e9 8f fa ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 4d fc ff ff 4c 89 f7 e8 ff 9a 78 fe e9 40 fc ff ff e8 15 4f 11 fe 90 <0f> 0b e8 0d 4f 11 fe 90 0f 0b f3 0f 1e fa 65 44 8b 25 e2 4b c0 0e RSP: 0018:ffffc9000d397800 EFLAGS: 00010287 RAX: ffffffff83aec43b RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000e2e2000 RSI: 0000000000001f65 RDI: 0000000000001f66 RBP: ffffc9000d3979a8 R08: 0000000000000020 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1efa1ef R12: ffff888042ee6e00 R13: dffffc0000000000 R14: 0000000000000020 R15: ffff8880435ccfb8 FS: 00007f342fca46c0(0000) GS:ffff88808d72f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f2a995000 CR3: 000000003ede4000 CR4: 0000000000352ef0 Call Trace: _ocfs2_free_clusters+0x5e4/0xa70 fs/ocfs2/suballoc.c:2672 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5979 [inline] __ocfs2_flush_truncate_log+0x706/0x10e0 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 __iterate_supers+0x13d/0x290 fs/super.c:923 ksys_sync+0xb2/0x150 fs/sync.c:104 __ia32_sys_sync+0xe/0x20 fs/sync.c:113 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f342ed8f749 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:00007f342fca4038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f342efe5fa0 RCX: 00007f342ed8f749 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f342efe5fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f342efe6038 R14: 00007f342efe5fa0 R15: 00007fffb24f69d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:_ocfs2_free_suballoc_bits+0x107c/0x1330 fs/ocfs2/suballoc.c:2568 Code: 89 f1 e9 8f fa ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 4d fc ff ff 4c 89 f7 e8 ff 9a 78 fe e9 40 fc ff ff e8 15 4f 11 fe 90 <0f> 0b e8 0d 4f 11 fe 90 0f 0b f3 0f 1e fa 65 44 8b 25 e2 4b c0 0e RSP: 0018:ffffc9000d397800 EFLAGS: 00010287 RAX: ffffffff83aec43b RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc9000e2e2000 RSI: 0000000000001f65 RDI: 0000000000001f66 RBP: ffffc9000d3979a8 R08: 0000000000000020 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1efa1ef R12: ffff888042ee6e00 R13: dffffc0000000000 R14: 0000000000000020 R15: ffff8880435ccfb8 FS: 00007f342fca46c0(0000) GS:ffff88808d72f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f2a995000 CR3: 000000003ede4000 CR4: 0000000000352ef0