syzbot


KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread (2)

Status: auto-closed as invalid on 2021/03/22 01:37
Subsystems: nilfs
[Documentation on labels]
First crash: 1166d, last: 1159d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread (3) nilfs 1 1123d 1123d 0/26 auto-closed as invalid on 2021/04/27 09:37
upstream KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread nilfs 7 1210d 1229d 0/26 auto-closed as invalid on 2021/01/30 16:17

Sample crash report:
NILFS (loop4): recovery complete
==================================================================
BUG: KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread

write to 0xffff888130be03e8 of 8 bytes by task 18715 on cpu 0:
 nilfs_segctor_thread+0x7a/0x700 fs/nilfs2/segment.c:2541
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff888130be03e8 of 8 bytes by task 18706 on cpu 1:
 nilfs_segctor_start_thread fs/nilfs2/segment.c:2623 [inline]
 nilfs_attach_log_writer+0x467/0x560 fs/nilfs2/segment.c:2785
 nilfs_fill_super fs/nilfs2/super.c:1072 [inline]
 nilfs_mount+0x8e5/0xaa0 fs/nilfs2/super.c:1316
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1496
 do_new_mount fs/namespace.c:2881 [inline]
 path_mount+0x11b6/0x1ca0 fs/namespace.c:3211
 do_mount fs/namespace.c:3224 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3409
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3409
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 18706 Comm: syz-executor.4 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/15 01:31 upstream f40ddce88593 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread
2021/02/08 14:05 upstream 92bf22614b21 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nilfs_attach_log_writer / nilfs_segctor_thread
* Struck through repros no longer work on HEAD.