syzbot


WARNING in nilfs_dat_prepare_end

Status: fixed on 2023/06/08 14:41
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+5d5d25f90f195a3cfcb4@syzkaller.appspotmail.com
Fix commit: 5124a0a54985 nilfs2: replace WARN_ONs for invalid DAT metadata block requests
First crash: 514d, last: 360d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.10/5.15/6.1 0/1] nilfs2: fix WARNING in nilfs_dat_prepare_end() 4 (4) 2024/02/20 14:09
[PATCH] nilfs2: replace WARN_ONs for invalid DAT metadata block requests 1 (1) 2023/01/26 16:41
[syzbot] WARNING in nilfs_dat_prepare_end 0 (1) 2022/10/03 16:30
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in nilfs_dat_prepare_end nilfs2 C error 8 365d 508d 0/1 upstream: reported C repro on 2022/10/09 12:14
linux-6.1 WARNING in nilfs_dat_prepare_end origin:lts-only C done 754 7d22h 353d 0/3 upstream: reported C repro on 2023/03/13 20:57
linux-4.14 WARNING in nilfs_dat_prepare_end nilfs2 C 8 360d 507d 0/1 upstream: reported C repro on 2022/10/10 02:44
linux-5.15 WARNING in nilfs_dat_prepare_end origin:lts-only C done 842 6d22h 356d 0/3 upstream: reported C repro on 2023/03/09 23:37

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 (288):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/17 18:37 upstream 55be6084c8e0 67cb024c .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in nilfs_dat_prepare_end
2022/10/10 00:48 upstream a6afa4199d3d aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in nilfs_dat_prepare_end
2022/10/09 18:16 upstream a6afa4199d3d aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs WARNING in nilfs_dat_prepare_end
2022/10/03 01:49 upstream a962b54e162c feb56351 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_prepare_end
2022/11/17 04:30 linux-next 15f3bff12cf6 3a127a31 .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_prepare_end
2022/11/06 03:04 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_prepare_end
2023/02/23 03:21 upstream 5b7c4cabbb65 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_prepare_end
2023/02/22 21:46 upstream 5b7c4cabbb65 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_dat_prepare_end
2023/02/15 03:05 upstream 82eac0c830b7 1d6b4af7 .config console log report info ci-upstream-kasan-gce-root WARNING in nilfs_dat_prepare_end
2023/01/30 18:25 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in nilfs_dat_prepare_end
2023/01/30 10:37 upstream ab072681eabe 9dfcf09c .config console log report info ci-upstream-kasan-gce-smack-root WARNING in nilfs_dat_prepare_end
2022/10/03 01:32 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in nilfs_dat_prepare_end
2022/12/24 04:16 upstream a27405b2ed9c 9da18ae8 .config console log report info ci-qemu-upstream-386 WARNING in nilfs_dat_prepare_end
2023/01/21 18:18 linux-next d514392f17fd 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_dat_prepare_end
2023/03/06 04:54 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_prepare_end
2023/03/05 21:38 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_prepare_end
2023/03/05 12: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_prepare_end
2023/03/05 09:56 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_prepare_end
2023/03/05 00:07 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_prepare_end
2023/03/04 15:15 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_prepare_end
2023/03/03 19:44 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_prepare_end
2023/03/03 08:52 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_prepare_end
2023/03/03 03:16 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_prepare_end
2023/03/03 00:47 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_prepare_end
2023/03/02 16:11 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_prepare_end
2023/03/02 02:27 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_prepare_end
2023/03/01 15:53 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_prepare_end
2023/03/01 14:21 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_prepare_end
2023/03/01 13:11 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_prepare_end
2023/03/01 11:48 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_prepare_end
2023/03/01 10:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/03/01 06:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/03/01 00:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/28 19:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/28 07:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/28 05:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/27 11:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/27 09:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d e792ae78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/27 04:22 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_prepare_end
2023/02/26 22:43 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_prepare_end
2023/02/26 17:11 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_prepare_end
2023/02/26 00:34 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_prepare_end
2023/02/25 09:52 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_prepare_end
2023/02/25 05:07 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_prepare_end
2023/02/25 02:15 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_prepare_end
2023/02/24 17:50 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_prepare_end
2023/02/24 09:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/24 05:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/24 01:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/23 20:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/23 17:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/23 10:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/23 07:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/23 04:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/22 17:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 409945bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/22 14:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 409945bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/22 13:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 409945bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/21 23:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 42a4d508 .config console log report info ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/21 20:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 42a4d508 .config console log report info ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/21 09:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f f949448d .config console log report info ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/20 23:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 4f5f5209 .config console log report info ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
2023/02/20 19:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 4f5f5209 .config console log report info ci-upstream-gce-arm64 WARNING in nilfs_dat_prepare_end
* Struck through repros no longer work on HEAD.