syzbot


KCSAN: data-race in d_alloc_parallel / d_set_d_op (2)

Status: auto-closed as invalid on 2020/09/29 03:57
Subsystems: fs
[Documentation on labels]
First crash: 1481d, last: 1481d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (4) fs 1 1321d 1321d 0/28 auto-closed as invalid on 2021/03/08 01:09
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op fs 23 1618d 1782d 0/28 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (9) fs 29 21d 225d 0/28 moderation: reported on 2024/02/01 22:34
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (7) fs 4 814d 870d 0/28 auto-closed as invalid on 2022/07/28 05:03
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (8) fs 43 263d 280d 0/28 auto-obsoleted due to no activity on 2024/01/30 06:40
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (6) fs 3 907d 953d 0/28 auto-closed as invalid on 2022/04/26 06:41
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (3) fs 2 1385d 1377d 0/28 auto-closed as invalid on 2021/01/03 18:19
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (5) fs 13 1191d 1280d 0/28 auto-closed as invalid on 2021/07/16 11:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_alloc_parallel / d_set_d_op

write to 0xffff888125090f00 of 4 bytes by task 22508 on cpu 1:
 d_set_d_op+0x10f/0x220 fs/dcache.c:1871
 proc_pid_instantiate+0xf3/0x120 fs/proc/base.c:3337
 proc_fill_cache+0x18e/0x220 fs/proc/base.c:2042
 proc_pid_readdir+0x324/0x410 fs/proc/base.c:3446
 proc_root_readdir+0x7a/0x90 fs/proc/root.c:336
 iterate_dir+0x16e/0x370 fs/readdir.c:65
 __do_sys_getdents fs/readdir.c:283 [inline]
 __se_sys_getdents+0x7f/0x190 fs/readdir.c:268
 __x64_sys_getdents+0x3f/0x50 fs/readdir.c:268
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888125090f00 of 4 bytes by task 22507 on cpu 0:
 d_in_lookup include/linux/dcache.h:362 [inline]
 d_wait_lookup fs/dcache.c:2521 [inline]
 d_alloc_parallel+0x5f8/0xd10 fs/dcache.c:2609
 proc_fill_cache+0x134/0x220 fs/proc/base.c:2037
 proc_pid_readdir+0x324/0x410 fs/proc/base.c:3446
 proc_root_readdir+0x7a/0x90 fs/proc/root.c:336
 iterate_dir+0x16e/0x370 fs/readdir.c:65
 __do_sys_getdents fs/readdir.c:283 [inline]
 __se_sys_getdents+0x7f/0x190 fs/readdir.c:268
 __x64_sys_getdents+0x3f/0x50 fs/readdir.c:268
 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: 0 PID: 22507 Comm: syz-executor.0 Not tainted 5.9.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/25 03:51 upstream 6a9dc5fd6170 344da168 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.