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

Status: moderation: reported on 2026/07/05 21:41
Subsystems: fs
Labels: race:benign prio:high
[Documentation on labels]
Reported-by: syzbot+72bbfd57f17fc438a0a4@syzkaller.appspotmail.com
First crash: 29d, last: 11h01m
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
cb7e9ebe assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ KCSAN: data-race in __d_lookup / __d_rehash (12) 2026/07/07 00:17 2026/07/07 00:17 2026/07/07 00:44 93f57954

			
		
e634b50f assessment-kcsan Benign: ✅ KCSAN: data-race in __d_lookup / __d_rehash (12) 2026/07/05 21:40 2026/07/05 21:40 2026/07/05 22:01 93f57954

			
		
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_lookup / __d_rehash (8) ext4 6 8 719d 836d 0/29 auto-obsoleted due to no activity on 2024/09/19 14:50
upstream KCSAN: data-race in __d_lookup / __d_rehash (6) fs 6 1 1074d 1074d 0/29 auto-obsoleted due to no activity on 2023/09/29 22:29
upstream KCSAN: data-race in __d_lookup / __d_rehash (4) ext4 6 1 1192d 1192d 0/29 auto-obsoleted due to no activity on 2023/06/04 03:50
upstream KCSAN: data-race in __d_lookup / __d_rehash fs 6 1 2454d 2454d 0/29 auto-closed as invalid on 2020/01/24 17:56
upstream KCSAN: data-race in __d_lookup / __d_rehash (3) fs 6 1 1363d 1363d 0/29 auto-obsoleted due to no activity on 2022/12/14 23:50
upstream KCSAN: data-race in __d_lookup / __d_rehash (10) fs 6 2 192d 227d 0/29 auto-obsoleted due to no activity on 2026/03/21 13:46
upstream KCSAN: data-race in __d_lookup / __d_rehash (2) fs 6 1 1557d 1557d 0/29 auto-closed as invalid on 2022/06/04 08:25
upstream KCSAN: data-race in __d_lookup / __d_rehash (11) fs 6 1 131d 131d 0/29 auto-obsoleted due to no activity on 2026/05/21 04:20
upstream KCSAN: data-race in __d_lookup / __d_rehash (9) fs 6 21 299d 584d 0/29 auto-obsoleted due to no activity on 2025/12/04 01:21
upstream KCSAN: data-race in __d_lookup / __d_rehash (5) ext4 6 2 1133d 1134d 0/29 auto-obsoleted due to no activity on 2023/08/02 16:55
upstream KCSAN: data-race in __d_lookup / __d_rehash (7) ext4 6 1 1028d 1028d 0/29 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 0xffff888107255a90 of 8 bytes by task 3299 on cpu 0:
 hlist_bl_add_head_rcu include/linux/rculist_bl.h:91 [inline]
 __d_rehash+0xa3/0x1d0 fs/dcache.c:2709
 __d_add+0x326/0x490 fs/dcache.c:2937
 d_splice_alias_ops+0xe3/0x370 fs/dcache.c:3286
 proc_sys_lookup+0x1ed/0x310 fs/proc/proc_sysctl.c:544
 lookup_open fs/namei.c:4481 [inline]
 open_last_lookups fs/namei.c:4608 [inline]
 path_openat+0xb8c/0x2000 fs/namei.c:4860
 do_file_open+0x16c/0x290 fs/namei.c:4892
 do_sys_openat2+0xa0/0x130 fs/open.c:1368
 do_sys_open fs/open.c:1374 [inline]
 __do_sys_openat fs/open.c:1390 [inline]
 __se_sys_openat fs/open.c:1385 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1385
 x64_sys_call+0x1e39/0x3020 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888107255a90 of 8 bytes by task 3300 on cpu 1:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:396 [inline]
 __d_lookup+0xf8/0x340 fs/dcache.c:2620
 lookup_fast+0x5e/0x320 fs/namei.c:1878
 lookup_fast_for_open fs/namei.c:4545 [inline]
 open_last_lookups fs/namei.c:4579 [inline]
 path_openat+0x423/0x2000 fs/namei.c:4860
 do_file_open+0x16c/0x290 fs/namei.c:4892
 do_sys_openat2+0xa0/0x130 fs/open.c:1368
 do_sys_open fs/open.c:1374 [inline]
 __do_sys_openat fs/open.c:1390 [inline]
 __se_sys_openat fs/open.c:1385 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1385
 x64_sys_call+0x1e39/0x3020 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888237ab75d8 -> 0xffff888105e5a9c8

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3300 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================
bridge0: port 1(bridge_slave_0) entered blocking state
bridge0: port 1(bridge_slave_0) entered disabled state
bridge_slave_0: entered allmulticast mode
bridge_slave_0: entered promiscuous mode
bridge0: port 2(bridge_slave_1) entered blocking state
bridge0: port 2(bridge_slave_1) entered disabled state
bridge_slave_1: entered allmulticast mode
bridge_slave_1: entered promiscuous mode
bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
team0: Port device team_slave_0 added
team0: Port device team_slave_1 added
batman_adv: batadv0: Adding interface: batadv_slave_0
batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
batman_adv: batadv0: Adding interface: batadv_slave_1
batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
hsr_slave_0: entered promiscuous mode
hsr_slave_1: entered promiscuous mode
debugfs: 'hsr0' already exists in 'hsr'
Cannot create hsr debugfs directory
netdevsim netdevsim3 netdevsim0: renamed from eth0
8021q: adding VLAN 0 to HW filter on device netdevsim0
netdevsim netdevsim3 netdevsim1: renamed from eth1
8021q: adding VLAN 0 to HW filter on device netdevsim1
netdevsim netdevsim3 netdevsim2: renamed from eth2
8021q: adding VLAN 0 to HW filter on device netdevsim2
netdevsim netdevsim3 netdevsim3: renamed from eth3
8021q: adding VLAN 0 to HW filter on device netdevsim3
8021q: adding VLAN 0 to HW filter on device bond0
8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device batadv0
veth0_vlan: entered promiscuous mode
veth1_vlan: entered promiscuous mode
veth0_macvtap: entered promiscuous mode
veth1_macvtap: entered promiscuous mode
batman_adv: batadv0: Interface activated: batadv_slave_0
batman_adv: batadv0: Interface activated: batadv_slave_1

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/04 09:33 upstream 848acc8ffe1b 9451e17e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup / __d_rehash
2026/07/05 21:40 upstream f105f3631d51 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_lookup / __d_rehash
* Struck through repros no longer work on HEAD.