syzbot


ID Workflow Result Correct Bug Created Started Finished Revision Error
66f97263-73a2-44ad-b815-544877f813e4 repro KCSAN: data-race in d_invalidate / fast_dput (6) 2026/03/07 01:52 2026/03/07 01:52 2026/03/07 02:00 31e9c887f7dc24e04b3ca70d0d54fc34141844b0


ReproOpts:
threaded=true,collide=true,repeat=true,procs=8


ReproSyz:
mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='mnt\x00', 0x1ed)
mount(0x0, &(0x7f0000000000)='mnt\x00', &(0x7f0000000040)='tmpfs\x00', 0x0, 0x0)
chdir(&(0x7f0000000000)='mnt\x00')
mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='lower\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='work\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x1ed)
mount(0x0, &(0x7f0000000140)='merge\x00', &(0x7f0000000180)='overlay\x00', 0x0, &(0x7f0000000200)='lowerdir=lower,upperdir=upper,workdir=work\x00')
r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x0, 0x0)
r1 = openat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x0, 0x0)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r2 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r2)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r3 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r3)


SyzkallerCommit:
31e9c887f7dc24e04b3ca70d0d54fc34141844b0

Crash report:
==================================================================
BUG: KCSAN: data-race in d_invalidate / fast_dput

write to 0xffff888110ac1cd0 of 8 bytes by task 10725 on cpu 1:
 __d_drop fs/dcache.c:576 [inline]
 d_invalidate+0x5b/0x200 fs/dcache.c:1691
 lookup_open fs/namei.c:4378 [inline]
 open_last_lookups fs/namei.c:4549 [inline]
 path_openat+0x1670/0x23c0 fs/namei.c:4793
 do_filp_open+0x15d/0x280 fs/namei.c:4823
 do_sys_openat2+0xa6/0x150 fs/open.c:1430
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1447
 x64_sys_call+0x2b07/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888110ac1cd0 of 8 bytes by task 10721 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:366 [inline]
 retain_dentry fs/dcache.c:753 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:849
 dput+0x24/0x60 fs/dcache.c:924
 end_dirop fs/namei.c:2898 [inline]
 end_creating include/linux/namei.h:126 [inline]
 end_creating_path fs/namei.c:4931 [inline]
 do_mknodat+0x2c2/0x4f0 fs/namei.c:5062
 __do_sys_mknodat fs/namei.c:5080 [inline]
 __se_sys_mknodat fs/namei.c:5077 [inline]
 __x64_sys_mknodat+0x5e/0x70 fs/namei.c:5077
 x64_sys_call+0x2b33/0x3000 arch/x86/include/generated/asm/syscalls_64.h:260
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff88823741a658 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 10721 Comm: syz.8.2163 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Trajectory:
Seq Timestamp Type Name Duration
0/0 2026/03/07 01:52 flow repro
7m Results:
map[ReproOpts:threaded=true,collide=true,repeat=true,procs=8 ReproSyz:mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='mnt\x00', 0x1ed)
mount(0x0, &(0x7f0000000000)='mnt\x00', &(0x7f0000000040)='tmpfs\x00', 0x0, 0x0)
chdir(&(0x7f0000000000)='mnt\x00')
mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='lower\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='work\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x1ed)
mount(0x0, &(0x7f0000000140)='merge\x00', &(0x7f0000000180)='overlay\x00', 0x0, &(0x7f0000000200)='lowerdir=lower,upperdir=upper,workdir=work\x00')
r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x0, 0x0)
r1 = openat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x0, 0x0)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r2 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r2)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r3 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r3)
 SyzkallerCommit:31e9c887f7dc24e04b3ca70d0d54fc34141844b0]

1/1 2026/03/07 01:52 action provide-var
0m Results:
map[DescriptionFiles:[acpi_thermal_rel.txt aio.txt auto.txt binfmt.txt bpf.txt bpf_prog.txt bpf_trace.txt cgroup.txt damon.txt dev_ashmem.txt dev_bifrost.txt dev_binder.txt dev_binderfs.txt dev_block.txt dev_bsg.txt dev_bus_usb.txt dev_camx.txt dev_cdrom.txt dev_cec.txt dev_char_usb.txt dev_comedi.txt dev_dma_heap.txt dev_dri.txt dev_dsp.txt dev_dvb_demux.txt dev_dvb_dvr.txt dev_dvb_frontend.txt dev_fb.txt dev_floppy.txt dev_hidraw.txt dev_i2c.txt dev_i915.txt dev_img_rogue.txt dev_infiniband_rdma.txt dev_infiniband_rdma_cm.txt dev_input.txt dev_iommu.txt dev_kvm.txt dev_kvm_amd64.txt dev_kvm_arm64.txt dev_kvm_extra.txt dev_kvm_riscv64.txt dev_loop.txt dev_mali.txt dev_media.txt dev_msm.txt dev_msr.txt dev_nbd.txt dev_net_tun.txt dev_panthor.txt dev_ppp.txt dev_ptmx.txt dev_ptp.txt dev_qat_adf_ctl.txt dev_qrtr_tun.txt dev_random.txt dev_rfkill.txt dev_rtc.txt dev_sequencer.txt dev_sg.txt dev_snapshot.txt dev_snd_control.txt dev_snd_hw.txt dev_snd_midi.txt dev_snd_pcm.txt dev_snd_seq.txt dev_snd_timer.txt dev_sr.txt dev_sw_sync.txt dev_tlk_device.txt dev_trusty.txt dev_udmabuf.txt dev_uhid.txt dev_uinput.txt dev_usb_hiddev.txt dev_usbmon.txt dev_userio.txt dev_vfio.txt dev_vga_arbiter.txt dev_vhci.txt dev_video4linux.txt dev_video4linux_vim2m.txt dev_virtual_nci.txt dev_vtpm.txt fanotify.txt filesystem.txt fs_9p.txt fs_fuse.txt fs_incfs.txt fs_ioctl.txt fs_ioctl_autofs.txt fs_ioctl_btrfs.txt fs_ioctl_ext4.txt fs_ioctl_f2fs.txt fs_ioctl_fat.txt fs_ioctl_fscrypt.txt fs_ioctl_fsverity.txt fs_ioctl_xfs.txt futex.txt hafnium.txt inotify.txt io_uring.txt ipc.txt key.txt kfuzztest.txt l2cap.txt landlock.txt lsm.txt namespaces.txt net_80211.txt netfilter.txt netfilter_arp.txt netfilter_bridge.txt netfilter_ipv4.txt netfilter_ipv6.txt netfilter_ipvs.txt netfilter_targets.txt pagemap_ioctl.txt perf.txt prctl.txt quotactl.txt seccomp.txt security_apparmor.txt security_selinux.txt security_smack.txt socket.txt socket_alg.txt socket_ax25.txt socket_bluetooth.txt socket_caif.txt socket_can.txt socket_ieee802154.txt socket_inet.txt socket_inet6.txt socket_inet_dccp.txt socket_inet_icmp.txt socket_inet_igmp.txt socket_inet_l2tp.txt socket_inet_sctp.txt socket_inet_tcp.txt socket_inet_udp.txt socket_ip_tunnel.txt socket_isdn.txt socket_kcm.txt socket_key.txt socket_llc.txt socket_netlink.txt socket_netlink_audit.txt socket_netlink_crypto.txt socket_netlink_generic.txt socket_netlink_generic_80211.txt socket_netlink_generic_batadv.txt socket_netlink_generic_devlink.txt socket_netlink_generic_ethtool.txt socket_netlink_generic_fou.txt socket_netlink_generic_gtp.txt socket_netlink_generic_mptcp.txt socket_netlink_generic_net_dm.txt socket_netlink_generic_netlabel.txt socket_netlink_generic_nfc.txt socket_netlink_generic_seg6.txt socket_netlink_generic_smc.txt socket_netlink_generic_team.txt socket_netlink_generic_wireguard.txt socket_netlink_netfilter.txt socket_netlink_netfilter_acct.txt socket_netlink_netfilter_conntrack.txt socket_netlink_netfilter_conntrack_exp.txt socket_netlink_netfilter_conntrack_helper.txt socket_netlink_netfilter_ipset.txt socket_netlink_netfilter_log.txt socket_netlink_netfilter_nft_compat.txt socket_netlink_netfilter_nftables.txt socket_netlink_netfilter_osf.txt socket_netlink_netfilter_queue.txt socket_netlink_netfilter_timeout.txt socket_netlink_rdma.txt socket_netlink_route.txt socket_netlink_route_sched.txt socket_netlink_route_sched_retired.txt socket_netlink_sock_diag.txt socket_netlink_xfrm.txt socket_netrom.txt socket_nfc.txt socket_nvme_of_tcp.txt socket_packet.txt socket_phonet.txt socket_pppox.txt socket_qipcrtr.txt socket_rds.txt socket_rose.txt socket_rxrpc.txt socket_tipc.txt socket_tipc_netlink.txt socket_unix.txt socket_vnet.txt socket_x25.txt socket_xdp.txt sys.txt uffd.txt usbip.txt vmw_vmci.txt vnet.txt vnet_mptcp.txt vusb.txt watch_queue.txt xattr.txt] SyzkallerCommit:31e9c887f7dc24e04b3ca70d0d54fc34141844b0]

2/1 2026/03/07 01:52 action kernel-checkouter
1m Results:
map[KernelSrc:/usr/local/google/home/dvyukov/syzkaller/agent/workdir/cache/src/2642fa7629c5424fce8f203f307b063c2f008d9f]

3/1 2026/03/07 01:53 action kernel-builder
4m Results:
map[KernelObj:/usr/local/google/home/dvyukov/syzkaller/agent/workdir/cache/build/8a8d223043183454fcb320f80eb129c08706d7cc]

4/1 2026/03/07 01:57 agent crash-repro-finder
2m Model:
gemini-3-pro-preview

Results:
map[ReproOpts:threaded=true,collide=true,repeat=true,procs=8]

Instruction:
You are an expert in linux kernel fuzzing. Your goal is to write a syzkaller program to trigger a specific bug.
Print only the syz program that could be executed directly, without backticks.




Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Bug Title: KCSAN: data-race in d_invalidate / fast_dput

Original Crash Report:
==================================================================
BUG: KCSAN: data-race in d_invalidate / fast_dput

write to 0xffff888110ac1cd0 of 8 bytes by task 10725 on cpu 1:
 __d_drop fs/dcache.c:576 [inline]
 d_invalidate+0x5b/0x200 fs/dcache.c:1691
 lookup_open fs/namei.c:4378 [inline]
 open_last_lookups fs/namei.c:4549 [inline]
 path_openat+0x1670/0x23c0 fs/namei.c:4793
 do_filp_open+0x15d/0x280 fs/namei.c:4823
 do_sys_openat2+0xa6/0x150 fs/open.c:1430
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0xf2/0x120 fs/open.c:1447
 x64_sys_call+0x2b07/0x3000 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888110ac1cd0 of 8 bytes by task 10721 on cpu 0:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:366 [inline]
 retain_dentry fs/dcache.c:753 [inline]
 fast_dput+0x5f/0x2c0 fs/dcache.c:849
 dput+0x24/0x60 fs/dcache.c:924
 end_dirop fs/namei.c:2898 [inline]
 end_creating include/linux/namei.h:126 [inline]
 end_creating_path fs/namei.c:4931 [inline]
 do_mknodat+0x2c2/0x4f0 fs/namei.c:5062
 __do_sys_mknodat fs/namei.c:5080 [inline]
 __se_sys_mknodat fs/namei.c:5077 [inline]
 __x64_sys_mknodat+0x5e/0x70 fs/namei.c:5077
 x64_sys_call+0x2b33/0x3000 arch/x86/include/generated/asm/syscalls_64.h:260
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff88823741a658 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 10721 Comm: syz.8.2163 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================


The list of existing description files:
acpi_thermal_rel.txt
aio.txt
auto.txt
binfmt.txt
bpf.txt
bpf_prog.txt
bpf_trace.txt
cgroup.txt
damon.txt
dev_ashmem.txt
dev_bifrost.txt
dev_binder.txt
dev_binderfs.txt
dev_block.txt
dev_bsg.txt
dev_bus_usb.txt
dev_camx.txt
dev_cdrom.txt
dev_cec.txt
dev_char_usb.txt
dev_comedi.txt
dev_dma_heap.txt
dev_dri.txt
dev_dsp.txt
dev_dvb_demux.txt
dev_dvb_dvr.txt
dev_dvb_frontend.txt
dev_fb.txt
dev_floppy.txt
dev_hidraw.txt
dev_i2c.txt
dev_i915.txt
dev_img_rogue.txt
dev_infiniband_rdma.txt
dev_infiniband_rdma_cm.txt
dev_input.txt
dev_iommu.txt
dev_kvm.txt
dev_kvm_amd64.txt
dev_kvm_arm64.txt
dev_kvm_extra.txt
dev_kvm_riscv64.txt
dev_loop.txt
dev_mali.txt
dev_media.txt
dev_msm.txt
dev_msr.txt
dev_nbd.txt
dev_net_tun.txt
dev_panthor.txt
dev_ppp.txt
dev_ptmx.txt
dev_ptp.txt
dev_qat_adf_ctl.txt
dev_qrtr_tun.txt
dev_random.txt
dev_rfkill.txt
dev_rtc.txt
dev_sequencer.txt
dev_sg.txt
dev_snapshot.txt
dev_snd_control.txt
dev_snd_hw.txt
dev_snd_midi.txt
dev_snd_pcm.txt
dev_snd_seq.txt
dev_snd_timer.txt
dev_sr.txt
dev_sw_sync.txt
dev_tlk_device.txt
dev_trusty.txt
dev_udmabuf.txt
dev_uhid.txt
dev_uinput.txt
dev_usb_hiddev.txt
dev_usbmon.txt
dev_userio.txt
dev_vfio.txt
dev_vga_arbiter.txt
dev_vhci.txt
dev_video4linux.txt
dev_video4linux_vim2m.txt
dev_virtual_nci.txt
dev_vtpm.txt
fanotify.txt
filesystem.txt
fs_9p.txt
fs_fuse.txt
fs_incfs.txt
fs_ioctl.txt
fs_ioctl_autofs.txt
fs_ioctl_btrfs.txt
fs_ioctl_ext4.txt
fs_ioctl_f2fs.txt
fs_ioctl_fat.txt
fs_ioctl_fscrypt.txt
fs_ioctl_fsverity.txt
fs_ioctl_xfs.txt
futex.txt
hafnium.txt
inotify.txt
io_uring.txt
ipc.txt
key.txt
kfuzztest.txt
l2cap.txt
landlock.txt
lsm.txt
namespaces.txt
net_80211.txt
netfilter.txt
netfilter_arp.txt
netfilter_bridge.txt
netfilter_ipv4.txt
netfilter_ipv6.txt
netfilter_ipvs.txt
netfilter_targets.txt
pagemap_ioctl.txt
perf.txt
prctl.txt
quotactl.txt
seccomp.txt
security_apparmor.txt
security_selinux.txt
security_smack.txt
socket.txt
socket_alg.txt
socket_ax25.txt
socket_bluetooth.txt
socket_caif.txt
socket_can.txt
socket_ieee802154.txt
socket_inet.txt
socket_inet6.txt
socket_inet_dccp.txt
socket_inet_icmp.txt
socket_inet_igmp.txt
socket_inet_l2tp.txt
socket_inet_sctp.txt
socket_inet_tcp.txt
socket_inet_udp.txt
socket_ip_tunnel.txt
socket_isdn.txt
socket_kcm.txt
socket_key.txt
socket_llc.txt
socket_netlink.txt
socket_netlink_audit.txt
socket_netlink_crypto.txt
socket_netlink_generic.txt
socket_netlink_generic_80211.txt
socket_netlink_generic_batadv.txt
socket_netlink_generic_devlink.txt
socket_netlink_generic_ethtool.txt
socket_netlink_generic_fou.txt
socket_netlink_generic_gtp.txt
socket_netlink_generic_mptcp.txt
socket_netlink_generic_net_dm.txt
socket_netlink_generic_netlabel.txt
socket_netlink_generic_nfc.txt
socket_netlink_generic_seg6.txt
socket_netlink_generic_smc.txt
socket_netlink_generic_team.txt
socket_netlink_generic_wireguard.txt
socket_netlink_netfilter.txt
socket_netlink_netfilter_acct.txt
socket_netlink_netfilter_conntrack.txt
socket_netlink_netfilter_conntrack_exp.txt
socket_netlink_netfilter_conntrack_helper.txt
socket_netlink_netfilter_ipset.txt
socket_netlink_netfilter_log.txt
socket_netlink_netfilter_nft_compat.txt
socket_netlink_netfilter_nftables.txt
socket_netlink_netfilter_osf.txt
socket_netlink_netfilter_queue.txt
socket_netlink_netfilter_timeout.txt
socket_netlink_rdma.txt
socket_netlink_route.txt
socket_netlink_route_sched.txt
socket_netlink_route_sched_retired.txt
socket_netlink_sock_diag.txt
socket_netlink_xfrm.txt
socket_netrom.txt
socket_nfc.txt
socket_nvme_of_tcp.txt
socket_packet.txt
socket_phonet.txt
socket_pppox.txt
socket_qipcrtr.txt
socket_rds.txt
socket_rose.txt
socket_rxrpc.txt
socket_tipc.txt
socket_tipc_netlink.txt
socket_unix.txt
socket_vnet.txt
socket_x25.txt
socket_xdp.txt
sys.txt
uffd.txt
usbip.txt
vmw_vmci.txt
vnet.txt
vnet_mptcp.txt
vusb.txt
watch_queue.txt
xattr.txt


Reply:
mkdirat(0xffffffffffffff9c, &(0x7f0000000000)='mnt\x00', 0x1ed)
mount(0x0, &(0x7f0000000000)='mnt\x00', &(0x7f0000000040)='tmpfs\x00', 0x0, 0x0)
chdir(&(0x7f0000000000)='mnt\x00')
mkdirat(0xffffffffffffff9c, &(0x7f0000000080)='lower\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000100)='work\x00', 0x1ed)
mkdirat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x1ed)
mount(0x0, &(0x7f0000000140)='merge\x00', &(0x7f0000000180)='overlay\x00', 0x0, &(0x7f0000000200)='lowerdir=lower,upperdir=upper,workdir=work\x00')
r0 = openat(0xffffffffffffff9c, &(0x7f0000000140)='merge\x00', 0x0, 0x0)
r1 = openat(0xffffffffffffff9c, &(0x7f00000000c0)='upper\x00', 0x0, 0x0)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r2 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r2)
mknodat(r0, &(0x7f0000000300)='file\x00', 0x11c0, 0x0)
unlinkat(r1, &(0x7f0000000300)='file\x00', 0x0)
r3 = openat(r0, &(0x7f0000000300)='file\x00', 0x800, 0x0)
close(r3)

5/2 2026/03/07 01:57 llm crash-repro-finder
2m Model:
gemini-3-pro-preview

Tokens:
							input: 2911
							output: 33
							thoughts: 17663
						

Thoughts:
**Reproducing the KCSAN Data Race in `d_invalidate` / `fast_dput`**

Okay, here's the deal. We've got a KCSAN data race on our hands, and my job is to whip up a syzkaller program to reproduce it. The report points to a race between `d_invalidate` (called by `openat` during a revalidation failure) and `fast_dput` (called by `mknodat` or `dput` during dentry release). It looks like one thread is invalidating a dentry while another is trying to quickly determine if that dentry is still hashed. The critical section appears to be the read/write of `dentry->d_hash.pprev`, or equivalent list head manipulations.

I dug into the stack traces, and it looks like `openat` is calling `d_invalidate` because a cached dentry's revalidation failed, a common thing with filesystems having `d_revalidate`. The other thread, running `mknodat`, creates a dentry. `d_invalidate` calls `__d_drop` that tries to remove the dentry, while `fast_dput` (called by `dput`) is racing trying to use the dentry.

We need a filesystem that supports `d_revalidate` and `mknod`. This narrows things down. Fuse is a good candidate since it's frequently fuzzed, and we can control `d_revalidate`. Standard filesystems with `d_revalidate` include `fuse`, `9p`, and some others like `vfat` or `overlayfs`. I thought maybe `vfat` with the case-insensitive issue, but we need to create the node, so `vfat` and `mknod` don't mix.

So, let's go with overlayfs. It's the most reliable option and we have a path to make `d_revalidate` return 0: Create the node via overlay (which makes a new dentry, and it's positive). Then `unlinkat` from the *underlying* (upper) layer, invalidating the overlay's cached dentry in a way that will make the next `openat` fail. The magic is in invalidating the underlying dentry. And we need to have a new `dput` happening concurrently. So create a positive dentry (from an overlay) and *unlink* the file in the upper, then race the opening/revalidation of the stale dentry from overlay with the `dput`.

Now, here's how we'll do it. I'll construct a syzkaller program. This program mounts overlayfs using `tmpfs` as both upper and lower layers. We'll set up `mnt`, `lower`, `upper`, `work`, and `merge` and set up the mount. We can easily get the overlay mount options right. We'll do a simple setup, so we use relative paths.

We'll start two threads. The first thread will do `mknodat` to create a FIFO in the overlay. The second thread will do `unlinkat` on the *upper* overlay directory to remove the backing file. Then we can race `openat` and `dput`. Now, the important thing is to make sure we do the unlink from upper, so the overlay dentry is actually revalidated.

To maximize the probability of hitting the race, I'm just going to have those three syscalls repeat in a loop. I will provide the program.
Finally, to avoid blocking during open, I'll use `O_NONBLOCK` in the `openat` calls, or `openat` with flags `0x800`.
I need to be careful with string address pointers, and I should use `chdir` and relative paths. Also I need to `close` each open FD to avoid FD exhaustion. I'll need `collide=true` for races, `threaded=true` for multithreading, and `repeat=true` for multiple tries. I'll also use `procs=8`.
So, here is the syzkaller program I came up with. I think it should trigger the race.



6/2 2026/03/07 02:00 tool set-results
0m Args:
map[ReproOpts:threaded=true,collide=true,repeat=true,procs=8]

Results:
map[ReproOpts:threaded=true,collide=true,repeat=true,procs=8]

7/2 2026/03/07 02:00 llm crash-repro-finder
0m Model:
gemini-3-pro-preview

Tokens:
							input: 21540
							output: 744
							thoughts: 0
						

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)