syzbot


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

Status: auto-closed as invalid on 2021/07/16 11:19
Subsystems: fs
[Documentation on labels]
First crash: 1166d, last: 1076d
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 1207d 1207d 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 1504d 1667d 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 9d02h 111d 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 700d 756d 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 1367d 1367d 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 149d 166d 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 793d 839d 0/26 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 1270d 1262d 0/26 auto-closed as invalid on 2021/01/03 18:19

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

write to 0xffff8881211366c0 of 4 bytes by task 29311 on cpu 0:
 d_set_d_op+0x10f/0x220 fs/dcache.c:1906
 proc_lookup_de+0x1da/0x230 fs/proc/generic.c:257
 proc_tgid_net_lookup+0x3f/0xc0 fs/proc/proc_net.c:286
 lookup_open fs/namei.c:3193 [inline]
 open_last_lookups fs/namei.c:3285 [inline]
 path_openat+0xb5a/0x20b0 fs/namei.c:3491
 do_filp_open+0xd9/0x1f0 fs/namei.c:3521
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_openat fs/open.c:1219 [inline]
 __se_sys_openat fs/open.c:1214 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1214
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881211366c0 of 4 bytes by task 29309 on cpu 1:
 d_in_lookup include/linux/dcache.h:366 [inline]
 d_wait_lookup fs/dcache.c:2556 [inline]
 d_alloc_parallel+0x4ff/0xba0 fs/dcache.c:2644
 lookup_open fs/namei.c:3139 [inline]
 open_last_lookups fs/namei.c:3285 [inline]
 path_openat+0x659/0x20b0 fs/namei.c:3491
 do_filp_open+0xd9/0x1f0 fs/namei.c:3521
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_openat fs/open.c:1219 [inline]
 __se_sys_openat fs/open.c:1214 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1214
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x10000000 -> 0x1000000c

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

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/11 11:11 upstream 06af8679449d 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/06/02 11:08 upstream 231bc5390667 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/30 08:33 upstream b90e90f40b4f 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/27 21:34 upstream d7c5303fbc8a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/26 17:40 upstream ad9f25d33860 750ce164 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/25 16:21 upstream a050a6d2b7e8 93d3a9f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/21 14:20 upstream 79a106fc6585 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/14 12:37 upstream 315d99318179 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/06 10:02 upstream a79cdfba68a1 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/05/01 19:12 upstream 9f67672a817e 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/04/25 21:40 upstream d2d09fbe33f8 2a82f1b3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/04/18 15:14 upstream c98ff1d013d2 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
2021/03/14 10:48 upstream 88fe49249c99 4a003785 .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.