syzbot


WARNING in nilfs_dat_commit_end

Status: upstream: reported C repro on 2022/09/30 22:26
Reported-by: syzbot+cbff7a52b6f99059e67f@syzkaller.appspotmail.com
First crash: 58d, last: 13h38m

Cause bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in nilfs_dat_commit_end C error 3 54d 57d 0/1 upstream: reported C repro on 2022/09/30 13:59
linux-4.14 WARNING in nilfs_dat_commit_end C 3 22d 56d 0/1 upstream: reported C repro on 2022/10/01 18:00

Sample crash report:
NILFS error (device loop0): nilfs_check_page: bad entry in directory #2: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
Remounting filesystem read-only
NILFS error (device loop0): nilfs_check_page: bad entry in directory #2: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3605 at fs/nilfs2/dat.c:186 nilfs_dat_commit_end+0x49a/0x5f0 fs/nilfs2/dat.c:186
Modules linked in:
CPU: 1 PID: 3605 Comm: syz-executor110 Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:nilfs_dat_commit_end+0x49a/0x5f0 fs/nilfs2/dat.c:186
Code: 41 5f e9 39 06 59 fe e8 34 06 59 fe 48 89 ee 4c 89 e7 e8 09 f0 ff ff eb db e8 22 06 59 fe e8 b7 63 de fd eb b4 e8 16 06 59 fe <0f> 0b 4d 89 ef e9 35 fd ff ff e8 07 06 59 fe e8 9c 63 de fd e9 c6
RSP: 0018:ffffc90003e3f5d8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88806ec15a80 RCX: 0000000000000000
RDX: ffff888021df0000 RSI: ffffffff8322111a RDI: 0000000000000006
RBP: ffffc90003e3f680 R08: 0000000000000006 R09: 00000026ae000002
R10: 0000000000000003 R11: 1ffffffff17f21b1 R12: ffff888073d20158
R13: 0000000000000003 R14: ffffc90003e3f698 R15: 00000026ae000002
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f046e0fe1d0 CR3: 000000000bc8e000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 nilfs_dat_commit_update+0x26/0x40 fs/nilfs2/dat.c:236
 nilfs_direct_propagate fs/nilfs2/direct.c:277 [inline]
 nilfs_direct_propagate+0x244/0x320 fs/nilfs2/direct.c:256
 nilfs_bmap_propagate+0x73/0x170 fs/nilfs2/bmap.c:337
 nilfs_collect_file_data+0x45/0xd0 fs/nilfs2/segment.c:568
 nilfs_segctor_apply_buffers+0x14a/0x470 fs/nilfs2/segment.c:1012
 nilfs_segctor_scan_file+0x3f4/0x6f0 fs/nilfs2/segment.c:1061
 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1191 [inline]
 nilfs_segctor_collect fs/nilfs2/segment.c:1497 [inline]
 nilfs_segctor_do_construct+0x12f6/0x6970 fs/nilfs2/segment.c:2039
 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2375
 nilfs_segctor_write_out fs/nilfs2/segment.c:2697 [inline]
 nilfs_segctor_destroy fs/nilfs2/segment.c:2730 [inline]
 nilfs_detach_log_writer+0x3bb/0x9f0 fs/nilfs2/segment.c:2810
 nilfs_put_super+0x3f/0x1a0 fs/nilfs2/super.c:468
 generic_shutdown_super+0x154/0x410 fs/super.c:491
 kill_block_super+0x97/0xf0 fs/super.c:1427
 deactivate_locked_super+0x94/0x160 fs/super.c:331
 deactivate_super+0xad/0xd0 fs/super.c:362
 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1186
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xad5/0x29b0 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 __do_sys_exit_group kernel/exit.c:936 [inline]
 __se_sys_exit_group kernel/exit.c:934 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:934
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f046e085b49
Code: Unable to access opcode bytes at 0x7f046e085b1f.
RSP: 002b:00007ffd3cac1028 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f046e0fd330 RCX: 00007f046e085b49
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007f046e0f7e40
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f046e0fd330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (166):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/09 19:49 upstream a6afa4199d3d aea5da89 .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/07 08:40 upstream ffb39098bf87 8a212197 .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/04 20:51 upstream a5088ee7251e eab8f949 .config log report syz C WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/04 00:10 upstream 4fe89d07dcc2 feb56351 .config log report syz C WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/01 23:34 upstream ffb4d94b4314 feb56351 .config log report syz C WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/09/29 21:21 upstream c3e0e1e23c70 45fd7169 .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-linux-next-kasan-gce-root 2022/11/05 22:33 linux-next 0cdb3579f1ee 6d752409 .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-linux-next-kasan-gce-root 2022/11/01 00:07 linux-next 4d48f589d294 2a71366b .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-linux-next-kasan-gce-root 2022/10/31 00:10 linux-next 4d48f589d294 2a71366b .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-gce-arm64 2022/10/03 03:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config log report syz C WARNING in nilfs_dat_commit_end
ci-upstream-gce-arm64 2022/09/30 00:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5911b92626df 1d385642 .config log report syz C WARNING in nilfs_dat_commit_end
ci-qemu-upstream 2022/11/26 11:37 upstream 0b1dcc2cf55a f4470a7b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/21 17:23 upstream eb7081409f94 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/21 10:25 upstream eb7081409f94 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/20 22:05 upstream 77c51ba552a1 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/19 19:48 upstream fe24a97cf254 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/19 04:15 upstream ab290eaddc4c 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/18 12:24 upstream 84368d882b96 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/17 08:09 upstream cc675d22e422 3a127a31 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/17 06:25 upstream 59d0d52c30d4 3a127a31 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/17 03:05 upstream 59d0d52c30d4 3a127a31 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/14 16:08 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/12 05:59 upstream eb037f16f7e8 f42ee5d8 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/11 09:36 upstream 4bbf3422df78 f42ee5d8 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/11 06:21 upstream 4bbf3422df78 f42ee5d8 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/09 21:13 upstream f141df371335 bebca8b7 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/09 17:52 upstream f141df371335 bebca8b7 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/09 10:25 upstream f141df371335 5fa28208 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/09 05:22 upstream f141df371335 5fa28208 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/08 18:03 upstream 59f2f4b8a757 060f945e .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/08 05:08 upstream 59f2f4b8a757 6feb842b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/08 03:00 upstream 59f2f4b8a757 6feb842b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/07 23:13 upstream f0c4d9fc9cc9 a779b11a .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/06 15:43 upstream b208b9fbbcba 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/05 17:46 upstream b208b9fbbcba 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/04 23:02 upstream ee6050c8af96 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/04 15:12 upstream ee6050c8af96 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/04 04:43 upstream f2f32f8af2b0 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/03 23:54 upstream f2f32f8af2b0 6d752409 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/02 22:35 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/02 15:14 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/02 12:11 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/02 05:04 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/11/01 06:43 upstream b229b6ca5abb a1d8560a .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/31 22:16 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/31 14:38 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/31 07:29 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/31 04:03 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/30 23:41 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/30 05:56 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/30 03:57 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/30 02:11 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/29 22:49 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/29 21:38 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-root 2022/10/29 16:10 upstream b229b6ca5abb 899d812a .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/10/29 09:34 upstream b229b6ca5abb 899d812a .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-smack-root 2022/10/29 05:03 upstream b229b6ca5abb ea12ae9b .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-kasan-gce-selinux-root 2022/10/22 02:45 upstream e35184f32151 4bfd3c27 .config log report info WARNING in nilfs_dat_commit_end
ci2-upstream-fs 2022/09/29 21:03 upstream c3e0e1e23c70 45fd7169 .config log report info WARNING in nilfs_dat_commit_end
ci-qemu-upstream-386 2022/10/22 18:32 upstream 4da34b7d175d c0b80a55 .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-linux-next-kasan-gce-root 2022/11/19 13:53 linux-next 15f3bff12cf6 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-linux-next-kasan-gce-root 2022/11/02 02:22 linux-next 4d48f589d294 edac4fd1 .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-gce-arm64 2022/11/20 01:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 5bb70014 .config log report info WARNING in nilfs_dat_commit_end
ci-upstream-gce-arm64 2022/11/06 06:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in nilfs_dat_commit_end
* Struck through repros no longer work on HEAD.