syzbot


KCSAN: data-race in __d_lookup_rcu / __d_rehash (2)

Status: auto-closed as invalid on 2022/01/31 01:45
Subsystems: fs
[Documentation on labels]
First crash: 884d, last: 884d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash fs 1 1579d 1579d 0/26 auto-closed as invalid on 2020/04/10 19:18
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash (6) ext4 1 190d 189d 0/26 auto-obsoleted due to no activity on 2023/12/25 18:18
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash (3) ext4 3 769d 746d 0/26 auto-closed as invalid on 2022/05/28 02:05
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash (5) fs 1 454d 454d 0/26 auto-obsoleted due to no activity on 2023/04/05 19:44
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash (4) fs 1 614d 613d 0/26 auto-obsoleted due to no activity on 2022/10/27 12:04
upstream KCSAN: data-race in __d_lookup_rcu / __d_rehash (7) fs 1 89d 89d 0/26 auto-obsoleted due to no activity on 2024/04/05 04:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_lookup_rcu / __d_rehash

read to 0xffff8881013da610 of 8 bytes by task 25063 on cpu 1:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:342 [inline]
 __d_lookup_rcu+0x13f/0x3e0 fs/dcache.c:2322
 lookup_fast+0xc1/0x360 fs/namei.c:1580
 walk_component+0x6d/0x360 fs/namei.c:1966
 link_path_walk+0x56b/0x930
 path_openat+0x1a7/0x1eb0 fs/namei.c:3555
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212
 do_sys_open fs/open.c:1228 [inline]
 __do_sys_openat fs/open.c:1244 [inline]
 __se_sys_openat fs/open.c:1239 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1239
 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

write to 0xffff8881013da610 of 8 bytes by task 25062 on cpu 0:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:81 [inline]
 __d_rehash+0xb9/0x1f0 fs/dcache.c:2519
 __d_add+0x345/0x450 fs/dcache.c:2713
 d_splice_alias+0xd9/0x460 fs/dcache.c:3100
 proc_pid_instantiate+0xfe/0x120 fs/proc/base.c:3366
 proc_pid_lookup+0x123/0x1c0 fs/proc/base.c:3397
 proc_root_lookup+0x1b/0x40 fs/proc/root.c:322
 __lookup_slow+0x182/0x250 fs/namei.c:1657
 lookup_slow fs/namei.c:1674 [inline]
 walk_component+0x2b6/0x360 fs/namei.c:1970
 link_path_walk+0x56b/0x930
 path_openat+0x1a7/0x1eb0 fs/namei.c:3555
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212
 do_sys_open fs/open.c:1228 [inline]
 __do_sys_openat fs/open.c:1244 [inline]
 __se_sys_openat fs/open.c:1239 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1239
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25062 Comm: syz-executor.1 Not tainted 5.16.0-rc7-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
2021/12/27 01:45 upstream fc74e0a40e4f e4f103c4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup_rcu / __d_rehash
* Struck through repros no longer work on HEAD.