syzbot


WARNING in nilfs_dat_commit_end

Status: fixed on 2023/06/08 14:41
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+cbff7a52b6f99059e67f@syzkaller.appspotmail.com
Fix commit: 602ce7b8e134 nilfs2: prevent WARNING in nilfs_dat_commit_end()
First crash: 736d, last: 579d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] nilfs2: prevent WARNING in nilfs_dat_commit_end() 1 (1) 2023/01/27 13:22
[syzbot] WARNING in nilfs_dat_commit_end 0 (1) 2022/09/30 22:26
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in nilfs_dat_commit_end origin:lts-only C done 3250 29m 565d 0/3 upstream: reported C repro on 2023/03/19 13:38
linux-4.19 WARNING in nilfs_dat_commit_end C error 4 583d 735d 0/1 upstream: reported C repro on 2022/09/30 13:59
linux-6.1 WARNING in nilfs_dat_commit_end origin:lts-only C done 3102 36d 565d 0/3 upstream: reported C repro on 2023/03/19 21:57
linux-4.14 WARNING in nilfs_dat_commit_end nilfs2 C 6 583d 734d 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 (267):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/09 19:49 upstream a6afa4199d3d aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/10/07 08:40 upstream ffb39098bf87 8a212197 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/10/04 20:51 upstream a5088ee7251e eab8f949 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/10/04 00:10 upstream 4fe89d07dcc2 feb56351 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2022/10/01 23:34 upstream ffb4d94b4314 feb56351 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2022/09/29 21:21 upstream c3e0e1e23c70 45fd7169 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2022/11/05 22:33 linux-next 0cdb3579f1ee 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/11/01 00:07 linux-next 4d48f589d294 2a71366b .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/10/31 00:10 linux-next 4d48f589d294 2a71366b .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_dat_commit_end
2022/10/03 03:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2022/09/30 00:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5911b92626df 1d385642 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/02/21 16:59 upstream 89f5349e0673 f949448d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/20 01:33 upstream 925cf0457d7e bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/17 23:59 upstream ec35307e18ba cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/17 12:55 upstream ec35307e18ba 3e7039f4 .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/11 21:16 upstream d12aca5c0cee 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/11 15:04 upstream 420b2d431d18 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/08 06:07 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in nilfs_dat_commit_end
2023/02/08 02:46 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/07 15:42 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/05 12:13 upstream 837c07cf68fe be607b78 .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/05 03:05 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/04 23:13 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/03 00:13 upstream e7368fd30165 16d19e30 .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/02/01 17:44 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/31 14:02 upstream 22b8077d0fce 7374c4e5 .config console log report info ci-qemu-upstream WARNING in nilfs_dat_commit_end
2023/01/29 02:21 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/28 08:04 upstream 83abd4d4c4be 9dfcf09c .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/27 11:46 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/25 17:46 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/20 17:19 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/19 16:53 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/19 12:54 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/16 13:27 upstream 5dc4c995db9e a63719e7 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in nilfs_dat_commit_end
2023/01/16 09:00 upstream 5dc4c995db9e a63719e7 .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/15 16:38 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/15 03:11 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/13 21:56 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/13 00:11 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in nilfs_dat_commit_end
2023/01/12 19:11 upstream e8f60cd7db24 96166539 .config console log report info ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/12 17:04 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in nilfs_dat_commit_end
2023/01/11 20:21 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2023/01/11 12:20 upstream 7dd4b804e080 1dac8c7a .config console log report info ci-upstream-kasan-gce-smack-root WARNING in nilfs_dat_commit_end
2023/01/11 10:10 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2022/09/29 21:03 upstream c3e0e1e23c70 45fd7169 .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_commit_end
2022/10/22 18:32 upstream 4da34b7d175d c0b80a55 .config console log report info ci-qemu-upstream-386 WARNING in nilfs_dat_commit_end
2022/12/18 06:50 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_dat_commit_end
2023/03/06 05:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/06 03:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/05 16:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/05 13:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/05 05:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/04 18:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/04 17:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/04 04:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/03 16:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/03 03:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/03 00:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/01 20:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/03/01 18:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/02/26 12:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/02/26 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/02/20 02:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/02/17 21:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 3e7039f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/01/24 01:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
2023/01/18 01:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9598c377d828 aedf5331 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_commit_end
* Struck through repros no longer work on HEAD.