syzbot


WARNING in nilfs_dat_prepare_end

Status: upstream: reported C repro on 2022/10/09 12:14
Subsystems: nilfs2
[Documentation on labels]
Reported-by: syzbot+cc30088e2be0470cc7be@syzkaller.appspotmail.com
First crash: 775d, last: 632d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in nilfs_dat_prepare_end origin:lts-only C done 754 274d 619d 0/3 upstream: reported C repro on 2023/03/13 20:57
upstream WARNING in nilfs_dat_prepare_end nilfs C error 288 627d 781d 22/28 fixed on 2023/06/08 14:41
linux-4.14 WARNING in nilfs_dat_prepare_end nilfs2 C 8 627d 774d 0/1 upstream: reported C repro on 2022/10/10 02:44
linux-5.15 WARNING in nilfs_dat_prepare_end origin:upstream C done 842 273d 623d 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: 1 PID: 8101 at fs/nilfs2/dat.c:151 nilfs_dat_prepare_end.cold+0x11/0x18 fs/nilfs2/dat.c:151
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8101 Comm: syz-executor289 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:nilfs_dat_prepare_end.cold+0x11/0x18 fs/nilfs2/dat.c:151
Code: c1 e8 b0 4f 69 f9 48 c7 c7 80 df 9e 88 e8 0f 81 fa ff 0f 0b e9 20 61 b6 fa e8 98 4f 69 f9 48 c7 c7 80 df 9e 88 e8 f7 80 fa ff <0f> 0b e9 1a 66 b6 fa e8 80 4f 69 f9 48 c7 c7 80 df 9e 88 e8 df 80
RSP: 0018:ffff8880b0dbf8e8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b0dbf950 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10161b7f0f
RBP: ffff88808e5a49c0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffffe
R13: ffff8880b0dbf968 R14: ffff88808e5a49c0 R15: ffff8880a2cf78c8
 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+0x13d/0x350 fs/nilfs2/inode.c:710
 nilfs_evict_inode+0x14d/0x440 fs/nilfs2/inode.c:797
 evict+0x2ed/0x760 fs/inode.c:559
 iput_final fs/inode.c:1555 [inline]
 iput+0x4f1/0x860 fs/inode.c:1581
 dentry_unlink_inode+0x265/0x320 fs/dcache.c:374
 d_delete+0x210/0x280 fs/dcache.c:2372
 vfs_rmdir.part.0+0x28a/0x3d0 fs/namei.c:3895
 vfs_rmdir fs/namei.c:3868 [inline]
 do_rmdir+0x3fd/0x490 fs/namei.c:3943
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7efc3d39a289
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:00007ffc141eac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007efc3d39a289
RDX: 00007efc3d358823 RSI: 0000000000000000 RDI: 0000000020000780
RBP: 00007efc3d359af0 R08: 00005555572e82c0 R09: 0000000000000000
R10: 00007ffc141eab40 R11: 0000000000000246 R12: 00007efc3d359b80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/09 12:14 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2023/03/01 06:34 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2023/03/01 06:34 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2023/03/01 06:24 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2023/03/01 06:17 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2023/01/06 08:23 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2022/11/21 05:12 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
2022/11/15 03:58 linux-4.19.y 3f8a27f9e27b 97de9cfc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nilfs_dat_prepare_end
* Struck through repros no longer work on HEAD.