syzbot


WARNING in nilfs_sufile_set_segment_usage

Status: fixed on 2023/12/18 16:47
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+e9c5f3245bb1654e79eb@syzkaller.appspotmail.com
Fix commit: 3907e9cc85ff nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage()
First crash: 597d, last: 351d
Fix bisection: fixed by (bisect log) :
commit 3907e9cc85ffc49b232dd0b0e8ebe12d3c835a2d
Author: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Date: Tue Dec 5 08:59:47 2023 +0000

  nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage()

  
Bug presence (1)
Date Name Commit Repro Result
2023/05/11 upstream (ToT) 80e62bc8487b C [report] WARNING in nilfs_sufile_set_segment_usage
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in nilfs_sufile_set_segment_usage C 1 608d 608d 0/1 upstream: reported C repro on 2023/03/02 13:59
linux-5.15 WARNING in nilfs_sufile_set_segment_usage C error 2 491d 597d 0/3 auto-obsoleted due to no activity on 2023/12/21 09:47
upstream WARNING in nilfs_sufile_set_segment_usage nilfs C inconclusive 341 342d 760d 25/28 fixed on 2024/01/20 21:18
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2023/12/15 17:12 2h58m bisect fix linux-6.1.y OK (1) job log
2023/11/14 18:12 1h01m bisect fix linux-6.1.y OK (0) job log log
2023/10/12 02:39 1h16m bisect fix linux-6.1.y OK (0) job log log
2023/09/02 16:23 57m bisect fix linux-6.1.y OK (0) job log log
2023/06/26 02:36 1h06m bisect fix linux-6.1.y OK (0) job log log
2023/05/25 00:01 43m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4324 at fs/nilfs2/sufile.c:539 nilfs_sufile_set_segment_usage+0x4a0/0x5a4 fs/nilfs2/sufile.c:539
Modules linked in:
CPU: 1 PID: 4324 Comm: segctord Not tainted 6.1.18-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : nilfs_sufile_set_segment_usage+0x4a0/0x5a4 fs/nilfs2/sufile.c:539
lr : nilfs_sufile_set_segment_usage+0x4a0/0x5a4 fs/nilfs2/sufile.c:539
sp : ffff80001dcd7480
x29: ffff80001dcd7520 x28: dfff800000000000 x27: ffff0000c4ec806c
x26: ffff0000cd6ae708 x25: ffff0000c4ec8060 x24: 0000000000000006
x23: ffff0000cd6ad1c0 x22: 0000000000000026 x21: 0000000000000007
x20: ffff80001dcd74e0 x19: ffff0000de10a5e8 x18: ffff0000de10a22a
x17: ffff800009e12f94 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 00000000ffffffef x12: ffff0000cd6ad1c0
x11: ff80800009e537bc x10: 0000000000000000 x9 : ffff800009e537bc
x8 : ffff0000cd6ad1c0 x7 : ffff800008760b7c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008b3d16c
x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000000
Call trace:
 nilfs_sufile_set_segment_usage+0x4a0/0x5a4 fs/nilfs2/sufile.c:539
 nilfs_segctor_update_segusage fs/nilfs2/segment.c:1447 [inline]
 nilfs_segctor_do_construct+0x3d4c/0x6604 fs/nilfs2/segment.c:2071
 nilfs_segctor_construct+0x110/0x768 fs/nilfs2/segment.c:2379
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2487 [inline]
 nilfs_segctor_thread+0x3e0/0xd88 fs/nilfs2/segment.c:2570
 kthread+0x24c/0x2d4 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860
irq event stamp: 196
hardirqs last  enabled at (195): [<ffff80000897d020>] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242
hardirqs last disabled at (196): [<ffff80001224fb14>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (0): [<ffff8000081a7244>] copy_process+0x13c0/0x38d0 kernel/fork.c:2201
softirqs last disabled at (0): [<0000000000000000>] 0x0
---[ end trace 0000000000000000 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/13 00:08 linux-6.1.y 1cc3fcf63192 5205ef30 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_sufile_set_segment_usage
2023/04/01 01:46 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in nilfs_sufile_set_segment_usage
2023/04/15 18:09 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_sufile_set_segment_usage
2023/03/12 23:55 linux-6.1.y 1cc3fcf63192 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in nilfs_sufile_set_segment_usage
* Struck through repros no longer work on HEAD.