loop0: detected capacity change from 0 to 4096 loop0: detected capacity change from 4096 to 4095 ------------[ cut here ]------------ le32_to_cpu(cp->cp_checkpoints_count) < n WARNING: fs/nilfs2/cpfile.c:94 at nilfs_cpfile_block_sub_valid_checkpoints fs/nilfs2/cpfile.c:94 [inline], CPU#0: syz.0.0/5325 WARNING: fs/nilfs2/cpfile.c:94 at nilfs_cpfile_delete_checkpoints+0x913/0xce0 fs/nilfs2/cpfile.c:522, CPU#0: syz.0.0/5325 Modules linked in: CPU: 0 UID: 0 PID: 5325 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:nilfs_cpfile_block_sub_valid_checkpoints fs/nilfs2/cpfile.c:94 [inline] RIP: 0010:nilfs_cpfile_delete_checkpoints+0x913/0xce0 fs/nilfs2/cpfile.c:522 Code: fb ff 41 89 c6 31 ff 89 c6 e8 f9 16 f2 fd 45 85 f6 0f 85 6a 03 00 00 e8 ab 12 f2 fd 45 31 f6 e9 23 fd ff ff e8 9e 12 f2 fd 90 <0f> 0b 90 e9 d0 fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 0a f9 RSP: 0018:ffffc9000fc2f4e0 EFLAGS: 00010287 RAX: ffffffff83d51292 RBX: 1ffff110085b5680 RCX: 0000000000100000 RDX: ffffc9000f281000 RSI: 0000000000001320 RDI: 0000000000001321 RBP: ffffc9000fc2f630 R08: ffffea00010b6ac7 R09: 1ffffd4000216d58 R10: dffffc0000000000 R11: fffff94000216d59 R12: 0000000000000004 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888042dab404 FS: 00007f38fb7256c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fad94866000 CR3: 0000000042d53000 CR4: 0000000000352ef0 Call Trace: nilfs_ioctl_delete_checkpoints fs/nilfs2/ioctl.c:680 [inline] nilfs_ioctl_prepare_clean_segments+0x158/0x840 fs/nilfs2/ioctl.c:787 nilfs_clean_segments+0x2b6/0xbb0 fs/nilfs2/segment.c:2546 nilfs_ioctl_clean_segments fs/nilfs2/ioctl.c:922 [inline] nilfs_ioctl+0x2619/0x2780 fs/nilfs2/ioctl.c:1352 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 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:0x7f38fa79e019 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:00007f38fb724fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f38faa25fa0 RCX: 00007f38fa79e019 RDX: 0000200000000640 RSI: 0000000040786e88 RDI: 0000000000000007 RBP: 00007f38fa83500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f38faa26038 R14: 00007f38faa25fa0 R15: 00007ffd0613cdf8