syzbot


WARNING in nilfs_dat_prepare_end

Status: upstream: reported C repro on 2022/10/03 16:30
Reported-by: syzbot+5d5d25f90f195a3cfcb4@syzkaller.appspotmail.com
First crash: 55d, last: 5d10h

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_prepare_end C error 3 5d21h 48d 0/1 upstream: reported C repro on 2022/10/09 12:14
linux-4.14 WARNING in nilfs_dat_prepare_end C 1 17d 48d 0/1 upstream: reported C repro on 2022/10/10 02:44

Sample crash report:
NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
Remounting filesystem read-only
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3603 at fs/nilfs2/dat.c:151 nilfs_dat_prepare_end+0x215/0x320 fs/nilfs2/dat.c:151
Modules linked in:
CPU: 0 PID: 3603 Comm: syz-executor357 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:nilfs_dat_prepare_end+0x215/0x320 fs/nilfs2/dat.c:151
Code: 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e c3 e8 c3 d2 58 fe 44 89 e6 bf fe ff ff ff e8 76 cf 58 fe 41 83 fc fe 75 d3 e8 ab d2 58 fe <0f> 0b eb ca e8 a2 d2 58 fe 48 89 de 4c 89 ef e8 27 a2 03 00 31 ff
RSP: 0018:ffffc9000400f918 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc9000400f980 RCX: 0000000000000000
RDX: ffff888025b19d80 RSI: ffffffff83227795 RDI: 0000000000000005
RBP: ffffc9000400f998 R08: 0000000000000005 R09: 00000000fffffffe
R10: 00000000fffffffe R11: 000000000008c07d R12: 00000000fffffffe
R13: ffff888073f90158 R14: ffff888073f90158 R15: ffff888073ea0770
FS:  00005555559c6300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1677df6260 CR3: 000000002711e000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 nilfs_bmap_prepare_end_ptr fs/nilfs2/bmap.h:211 [inline]
 nilfs_direct_delete+0x20c/0x2d0 fs/nilfs2/direct.c:155
 nilfs_bmap_do_delete+0x225/0x2e0 fs/nilfs2/bmap.c:176
 nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline]
 nilfs_bmap_truncate+0x109/0x300 fs/nilfs2/bmap.c:297
 nilfs_truncate_bmap+0x14a/0x360 fs/nilfs2/inode.c:829
 nilfs_evict_inode+0x14d/0x440 fs/nilfs2/inode.c:916
 evict+0x2ed/0x6b0 fs/inode.c:664
 iput_final fs/inode.c:1747 [inline]
 iput.part.0+0x55d/0x810 fs/inode.c:1773
 iput+0x58/0x70 fs/inode.c:1763
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir.part.0+0x496/0x5a0 fs/namei.c:4111
 vfs_rmdir fs/namei.c:4083 [inline]
 do_rmdir+0x3a6/0x430 fs/namei.c:4159
 __do_sys_rmdir fs/namei.c:4178 [inline]
 __se_sys_rmdir fs/namei.c:4176 [inline]
 __x64_sys_rmdir+0xc6/0x110 fs/namei.c:4176
 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:0x7f12b580f269
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff4e3ba6e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f12b580f269
RDX: 00007f12b57cd763 RSI: 0000000000000000 RDI: 0000000020000780
RBP: 00007f12b57cea30 R08: 00005555559c62c0 R09: 0000000000000000
R10: 00007fff4e3ba5b0 R11: 0000000000000246 R12: 00007f12b57ceac0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (100):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/17 18:37 upstream 55be6084c8e0 67cb024c .config log report syz C WARNING in nilfs_dat_prepare_end
ci-upstream-kasan-gce-root 2022/10/10 00:48 upstream a6afa4199d3d aea5da89 .config log report syz C WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/09 18:16 upstream a6afa4199d3d aea5da89 .config log report syz C WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/03 01:49 upstream a962b54e162c feb56351 .config log report syz C WARNING in nilfs_dat_prepare_end
ci-upstream-linux-next-kasan-gce-root 2022/11/17 04:30 linux-next 15f3bff12cf6 3a127a31 .config log report syz C WARNING in nilfs_dat_prepare_end
ci-upstream-linux-next-kasan-gce-root 2022/11/06 03:04 linux-next 0cdb3579f1ee 6d752409 .config log report syz C WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/21 16:26 upstream eb7081409f94 5bb70014 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/20 20:09 upstream 77c51ba552a1 5bb70014 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/20 02:36 upstream fe24a97cf254 5bb70014 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/19 21:37 upstream fe24a97cf254 5bb70014 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/18 22:26 upstream ab290eaddc4c 5bb70014 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/16 11:48 upstream 81e7cfa3a9eb 3a127a31 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/15 07:52 upstream e01d50cbd6ee 97de9cfc .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/14 21:06 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/14 17:07 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/14 13:19 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/14 12:12 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/14 02:27 upstream af7a05689189 7ba4d859 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/13 12:40 upstream fef7fd48922d f42ee5d8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/13 06:19 upstream fef7fd48922d f42ee5d8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/12 21:34 upstream 8f2975c2bb4c f42ee5d8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/11 12:03 upstream 4bbf3422df78 f42ee5d8 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/10 21:17 upstream 1767a722a708 3ead01ad .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/10 17:31 upstream f67dd6ce0723 3ead01ad .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/09 19:53 upstream f141df371335 bebca8b7 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/08 17:23 upstream 59f2f4b8a757 060f945e .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/08 09:05 upstream 59f2f4b8a757 6feb842b .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/08 06:01 upstream 59f2f4b8a757 6feb842b .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/07 11:02 upstream 089d1c31224e 6d752409 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/07 06:07 upstream 089d1c31224e 6d752409 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/05 15:41 upstream b208b9fbbcba 6d752409 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/05 06:01 upstream 64c3dd0b98f5 6d752409 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/03 23:41 upstream f2f32f8af2b0 6d752409 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/03 10:42 upstream b229b6ca5abb 7a2ebf95 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/02 15:30 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/02 11:43 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/02 09:45 upstream b229b6ca5abb 08977f5d .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/11/01 15:10 upstream b229b6ca5abb a1d8560a .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/31 20:55 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/31 19:21 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/30 03:02 upstream b229b6ca5abb 2a71366b .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/28 10:19 upstream b229b6ca5abb 5c716ff6 .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-kasan-gce-root 2022/10/28 09:41 upstream b229b6ca5abb 86777b7f .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/27 09:25 upstream 4dc12f37a8e9 86777b7f .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/26 20:29 upstream 4dc12f37a8e9 86777b7f .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/25 16:53 upstream 337a0a0b63f1 45645420 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/24 16:19 upstream 247f34f7b803 faae2fda .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/23 20:10 upstream d47136c28015 23bf86af .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/20 09:11 upstream 493ffd6605b2 b31320fc .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/17 13:50 upstream 493ffd6605b2 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/16 03:54 upstream 493ffd6605b2 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/15 09:08 upstream 493ffd6605b2 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-kasan-gce-selinux-root 2022/10/13 17:36 upstream 55be6084c8e0 adf90437 .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-kasan-gce-smack-root 2022/10/12 20:37 upstream 55be6084c8e0 89b5a509 .config log report info WARNING in nilfs_dat_prepare_end
ci2-upstream-fs 2022/10/03 01:32 upstream a962b54e162c feb56351 .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-linux-next-kasan-gce-root 2022/10/27 14:24 linux-next 4d48f589d294 86777b7f .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-gce-arm64 2022/10/17 20:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-gce-arm64 2022/10/17 15:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-gce-arm64 2022/10/16 19:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
ci-upstream-gce-arm64 2022/10/15 13:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info WARNING in nilfs_dat_prepare_end
* Struck through repros no longer work on HEAD.