syzbot


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

Status: auto-closed as invalid on 2022/04/26 06:41
Subsystems: fs
[Documentation on labels]
First crash: 802d, last: 756d
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 1170d 1170d 0/26 auto-closed as invalid on 2021/03/08 01:09
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op fs 23 1467d 1631d 0/26 auto-closed as invalid on 2020/06/18 13:33
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (9) fs 12 9h10m 74d 0/26 moderation: reported on 2024/02/01 22:34
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (7) fs 4 663d 719d 0/26 auto-closed as invalid on 2022/07/28 05:03
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (2) fs 1 1330d 1330d 0/26 auto-closed as invalid on 2020/09/29 03:57
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (8) fs 43 112d 129d 0/26 auto-obsoleted due to no activity on 2024/01/30 06:40
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (3) fs 2 1233d 1226d 0/26 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 1040d 1129d 0/26 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 0xffff88813ea64000 of 4 bytes by task 5036 on cpu 1:
 d_set_d_op+0x10f/0x220 fs/dcache.c:1931
 proc_ns_instantiate fs/proc/namespaces.c:114 [inline]
 proc_ns_dir_lookup+0x186/0x220 fs/proc/namespaces.c:172
 lookup_open fs/namei.c:3308 [inline]
 open_last_lookups fs/namei.c:3400 [inline]
 path_openat+0xb27/0x1f30 fs/namei.c:3606
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1214
 do_sys_open fs/open.c:1230 [inline]
 __do_sys_openat fs/open.c:1246 [inline]
 __se_sys_openat fs/open.c:1241 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1241
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813ea64000 of 4 bytes by task 5037 on cpu 0:
 d_in_lookup include/linux/dcache.h:356 [inline]
 d_wait_lookup fs/dcache.c:2581 [inline]
 d_alloc_parallel+0x669/0xd00 fs/dcache.c:2669
 lookup_open fs/namei.c:3254 [inline]
 open_last_lookups fs/namei.c:3400 [inline]
 path_openat+0x687/0x1f30 fs/namei.c:3606
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1214
 do_sys_open fs/open.c:1230 [inline]
 __do_sys_openat fs/open.c:1246 [inline]
 __se_sys_openat fs/open.c:1241 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1241
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x10000000 -> 0x1000000c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5037 Comm: syz-executor.2 Not tainted 5.17.0-syzkaller-00192-geaa54b1458ca-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/22 06:37 upstream eaa54b1458ca e2d91b1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2022/02/17 18:23 upstream f71077a4d84b 2bea8a27 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2022/02/04 02:06 upstream c36c04c2e132 30646bfe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
* Struck through repros no longer work on HEAD.