syzbot


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

Status: auto-closed as invalid on 2021/01/03 18:19
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c564fa9f48ce68aff141@syzkaller.appspotmail.com
First crash: 1287d, last: 1275d
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 1211d 1211d 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 1508d 1672d 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 14 13d 116d 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 704d 760d 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 1371d 1371d 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 153d 170d 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 (6) fs 3 797d 843d 0/26 auto-closed as invalid on 2022/04/26 06:41
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (5) fs 13 1081d 1170d 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

read-write to 0xffff888037646240 of 4 bytes by task 4891 on cpu 0:
 d_set_d_op+0x14c/0x1e0 fs/dcache.c:1875
 simple_lookup+0x78/0x90 fs/libfs.c:73
 lookup_open fs/namei.c:3083 [inline]
 open_last_lookups fs/namei.c:3178 [inline]
 path_openat+0xb8f/0x20a0 fs/namei.c:3366
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888037646240 of 4 bytes by task 5160 on cpu 1:
 d_in_lookup include/linux/dcache.h:362 [inline]
 d_wait_lookup fs/dcache.c:2521 [inline]
 d_alloc_parallel+0x60e/0xcc0 fs/dcache.c:2609
 lookup_open fs/namei.c:3031 [inline]
 open_last_lookups fs/namei.c:3178 [inline]
 path_openat+0x682/0x20a0 fs/namei.c:3366
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 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: 5160 Comm: systemd-udevd Not tainted 5.10.0-rc5-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
2020/11/29 18:18 upstream aae5ab854e38 a0092f9d .config console log report info ci2-upstream-kcsan-gce
2020/11/17 18:56 upstream 9c87c9f41245 bd2a760b .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.