syzbot


WARNING in nilfs_segctor_do_construct

Status: fixed on 2023/02/24 13:50
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+fbb3e0b24e8dae5a16ee@syzkaller.appspotmail.com
Fix commit: 723ac751208f nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure
First crash: 523d, last: 395d
Discussions (10)
Title Replies (including bot) Last reply
[syzbot] WARNING in nilfs_segctor_do_construct 1 (3) 2022/12/10 01:29
[PATCH 4.19 000/229] 4.19.262-rc1 review 242 (242) 2022/11/01 13:44
[PATCH 4.9 000/159] 4.9.331-rc1 review 165 (165) 2022/10/25 17:41
[PATCH 4.14 000/210] 4.14.296-rc1 review 213 (213) 2022/10/25 17:38
[PATCH 5.4 00/38] 5.4.218-rc1 review 45 (45) 2022/10/17 01:35
[PATCH 5.10 00/54] 5.10.148-rc1 review 64 (64) 2022/10/17 01:33
[PATCH 6.0 00/34] 6.0.2-rc1 review 49 (49) 2022/10/15 01:33
[PATCH 5.19 00/33] 5.19.16-rc1 review 44 (44) 2022/10/14 23:08
[PATCH 5.15 00/27] 5.15.74-rc1 review 31 (31) 2022/10/14 16:33
[PATCH] nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure 1 (1) 2022/09/29 12:33
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in nilfs_segctor_do_construct nilfs2 C 1 363d 437d 0/1 upstream: reported C repro on 2022/12/18 15:02
linux-5.15 WARNING in nilfs_segctor_do_construct C done 2 265d 286d 3/3 fixed on 2023/07/20 13:49
upstream WARNING in nilfs_segctor_do_construct (2) nilfs C error 3 291d 289d 23/26 fixed on 2023/07/04 09:17
linux-6.1 WARNING in nilfs_segctor_do_construct C done 2 261d 291d 3/3 fixed on 2023/07/26 10:02

Sample crash report:
NILFS (loop0): nilfs_sufile_update: invalid segment number: 46
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5081 at fs/nilfs2/segment.c:1484 nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1484 [inline]
WARNING: CPU: 1 PID: 5081 at fs/nilfs2/segment.c:1484 nilfs_segctor_collect fs/nilfs2/segment.c:1536 [inline]
WARNING: CPU: 1 PID: 5081 at fs/nilfs2/segment.c:1484 nilfs_segctor_do_construct+0x4473/0x7100 fs/nilfs2/segment.c:2047
Modules linked in:
CPU: 1 PID: 5081 Comm: segctord Not tainted 6.2.0-rc5-next-20230127-syzkaller-08766-ge2f86c02fdc9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1484 [inline]
RIP: 0010:nilfs_segctor_collect fs/nilfs2/segment.c:1536 [inline]
RIP: 0010:nilfs_segctor_do_construct+0x4473/0x7100 fs/nilfs2/segment.c:2047
Code: dd 0f 84 90 15 00 00 e8 5b 8f 50 fe 49 83 ed 48 41 bc 18 00 00 00 31 db 4c 89 ac 24 60 01 00 00 e9 17 f9 ff ff e8 3d 8f 50 fe <0f> 0b e9 f5 cc ff ff e8 31 8f 50 fe 48 8b ac 24 40 01 00 00 48 85
RSP: 0018:ffffc90003d2fb38 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88807df7f000 RCX: 0000000000000000
RDX: ffff88807aefd7c0 RSI: ffffffff833425e3 RDI: 0000000000000005
RBP: 00000000ffffffea R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffffffea R11: 0000000000000000 R12: ffff888076dea160
R13: ffffed100fbefe1b R14: dffffc0000000000 R15: ffff88807359f600
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056221fd5b0a8 CR3: 000000002bca8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2381
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2489 [inline]
 nilfs_segctor_thread+0x3c7/0xf30 fs/nilfs2/segment.c:2572
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/29 05:52 linux-next e2f86c02fdc9 9dfcf09c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_segctor_do_construct
2022/12/10 00:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in nilfs_segctor_do_construct
2022/10/27 04:04 upstream 4dc12f37a8e9 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in nilfs_segctor_do_construct
2022/10/24 08:16 upstream 247f34f7b803 faae2fda .config console log report info ci-qemu-upstream WARNING in nilfs_segctor_do_construct
2022/09/24 02:03 linux-next aaa11ce2ffc8 0042f2b4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in nilfs_segctor_do_construct
* Struck through repros no longer work on HEAD.