syzbot


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

Status: moderation: reported on 2024/10/05 03:32
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+2c167a88c95ba9499bdb@syzkaller.appspotmail.com
First crash: 14h48m, last: 14h48m
Similar bugs (9)
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 1342d 1342d 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 1639d 1803d 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 42d 246d 0/28 auto-obsoleted due to no activity on 2024/09/27 23:53
upstream KCSAN: data-race in d_alloc_parallel / d_set_d_op (7) fs 4 835d 891d 0/28 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 1502d 1502d 0/28 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 284d 301d 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 928d 974d 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 1406d 1398d 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 1212d 1301d 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

read-write to 0xffff888106ca06c0 of 4 bytes by task 5929 on cpu 1:
 d_set_d_op+0xfb/0x1f0 fs/dcache.c:1804
 proc_ns_instantiate fs/proc/namespaces.c:114 [inline]
 proc_ns_dir_lookup+0x180/0x220 fs/proc/namespaces.c:172
 lookup_open fs/namei.c:3573 [inline]
 open_last_lookups fs/namei.c:3694 [inline]
 path_openat+0xd40/0x1fa0 fs/namei.c:3930
 do_filp_open+0xf7/0x200 fs/namei.c:3960
 do_sys_openat2+0xab/0x120 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1441
 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888106ca06c0 of 4 bytes by task 5928 on cpu 0:
 d_in_lookup include/linux/dcache.h:378 [inline]
 d_wait_lookup fs/dcache.c:2459 [inline]
 d_alloc_parallel+0x60b/0xc80 fs/dcache.c:2547
 lookup_open fs/namei.c:3517 [inline]
 open_last_lookups fs/namei.c:3694 [inline]
 path_openat+0x6c8/0x1fa0 fs/namei.c:3930
 do_filp_open+0xf7/0x200 fs/namei.c:3960
 do_sys_openat2+0xab/0x120 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1441
 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x10000000 -> 0x1000000c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 5928 Comm: syz.2.803 Not tainted 6.12.0-rc1-syzkaller-00257-g2f91ff27b0ee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/05 03:32 upstream 2f91ff27b0ee d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_alloc_parallel / d_set_d_op
* Struck through repros no longer work on HEAD.