syzbot


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

Status: auto-closed as invalid on 2022/06/04 08:25
Subsystems: fs
[Documentation on labels]
First crash: 726d, last: 726d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_lookup / __d_rehash (8) fs 1 5d05h 5d05h 0/26 moderation: reported on 2024/04/20 12:09
upstream KCSAN: data-race in __d_lookup / __d_rehash (6) fs 1 243d 243d 0/26 auto-obsoleted due to no activity on 2023/09/29 22:29
upstream KCSAN: data-race in __d_lookup / __d_rehash (4) ext4 1 361d 361d 0/26 auto-obsoleted due to no activity on 2023/06/04 03:50
upstream KCSAN: data-race in __d_lookup / __d_rehash fs 1 1622d 1622d 0/26 auto-closed as invalid on 2020/01/24 17:56
upstream KCSAN: data-race in __d_lookup / __d_rehash (3) fs 1 532d 532d 0/26 auto-obsoleted due to no activity on 2022/12/14 23:50
upstream KCSAN: data-race in __d_lookup / __d_rehash (5) ext4 2 302d 303d 0/26 auto-obsoleted due to no activity on 2023/08/02 16:55
upstream KCSAN: data-race in __d_lookup / __d_rehash (7) ext4 1 197d 197d 0/26 auto-obsoleted due to no activity on 2023/11/15 16:47

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

write to 0xffff888103668250 of 8 bytes by task 11676 on cpu 0:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:81 [inline]
 __d_rehash+0xb9/0x1f0 fs/dcache.c:2545
 __d_add+0x355/0x470 fs/dcache.c:2739
 d_splice_alias+0xd5/0x310 fs/dcache.c:3126
 proc_pid_instantiate+0xe9/0x100 fs/proc/base.c:3365
 proc_pid_lookup+0x123/0x1c0 fs/proc/base.c:3396
 proc_root_lookup+0x1b/0x40 fs/proc/root.c:322
 __lookup_slow+0x182/0x250 fs/namei.c:1707
 lookup_slow+0x3c/0x60 fs/namei.c:1724
 walk_component+0x23d/0x280 fs/namei.c:2020
 link_path_walk+0x459/0x7a0
 path_openat+0x199/0x1b30 fs/namei.c:3605
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888103668250 of 8 bytes by task 1442 on cpu 1:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:332 [inline]
 __d_lookup+0x12a/0x3d0 fs/dcache.c:2457
 lookup_fast+0x67/0x360 fs/namei.c:1665
 walk_component+0x6b/0x280 fs/namei.c:2016
 link_path_walk+0x459/0x7a0
 path_openat+0x199/0x1b30 fs/namei.c:3605
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff888237a625d0 -> 0xffff88811ff44488

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1442 Comm: udevd Not tainted 5.18.0-rc4-syzkaller-00291-g8013d1d3d2e3-dirty #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
2022/04/30 08:24 upstream 8013d1d3d2e3 ad6b95d8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup / __d_rehash
* Struck through repros no longer work on HEAD.