| 0/0 |
2026/03/07 08:37 |
flow |
repro |
7m
Results: map[ReproOpts:threaded=true;collide=true ReproSyz:r0 = socket(0x2b, 0x801, 0x0)
r1 = socket(0x2, 0x1, 0x0)
bind(r1, &(0x7f0000000000)={0x2, 0x4e21, @local}, 0x10)
listen(r1, 0x1)
connect(r0, &(0x7f0000000040)={0x2, 0x4e21, @local}, 0x10)
sendmsg(r0, &(0x7f0000000080)={0x0, 0x0, &(0x7f00000000c0)=[{&(0x7f0000000100)="aa", 0x1}], 0x1, 0x0, 0x0, 0x0}, 0x0)
r2 = io_uring_setup(0x1, &(0x7f0000000200))
mmap(&(0x7f0000010000/0x2000)=nil, 0x2000, 0x3, 0x11, r2, 0x0)
mmap(&(0x7f0000012000/0x1000)=nil, 0x1000, 0x3, 0x11, r2, 0x10000000)
*(0x7f0000012000) = 0x6
*(0x7f0000012004) = r0
*(0x7f000001201c) = 0x5
*(0x7f0000010180) = 0x0
*(0x7f0000010040) = 0x1
io_uring_enter(r2, 0x1, 0x0, 0x0, 0x0, 0x0)
poll(&(0x7f0000000300)=[{r0, 0x5}], 0x1, 0x0) SyzkallerCommit:31e9c887f7dc24e04b3ca70d0d54fc34141844b0]
|
| 1/1 |
2026/03/07 08:37 |
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 08:37 |
action |
kernel-checkouter |
0m
Results: map[KernelSrc:/usr/local/google/home/dvyukov/syzkaller/agent/workdir/cache/src/45f71b52591409cd48a37f488666afc24544e8d5]
|
| 3/1 |
2026/03/07 08:38 |
action |
kernel-builder |
3m
Results: map[KernelObj:/usr/local/google/home/dvyukov/syzkaller/agent/workdir/cache/build/df6fbd2df1f59b5bfb5c47640fc9b11f93ac662d]
|
| 4/1 |
2026/03/07 08:42 |
agent |
crash-repro-finder |
2m
Model:
Results: map[ReproOpts:threaded=true;collide=true]
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 smc_poll / smc_switch_to_fallback
Original Crash Report:
SELinux: inode_doinit_use_xattr: getxattr returned 5 for dev=loop6 ino=12
SELinux: inode_doinit_use_xattr: getxattr returned 5 for dev=loop6 ino=13
==================================================================
BUG: KCSAN: data-race in smc_poll / smc_switch_to_fallback
write to 0xffff88811bf2d94d of 1 bytes by task 8404 on cpu 1:
smc_switch_to_fallback+0x5a/0x7f0 net/smc/af_smc.c:929
smc_sendmsg+0xce/0x2f0 net/smc/af_smc.c:2799
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
____sys_sendmsg+0x5af/0x600 net/socket.c:2592
___sys_sendmsg+0x195/0x1e0 net/socket.c:2646
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2683 [inline]
__se_sys_sendmsg net/socket.c:2681 [inline]
__x64_sys_sendmsg+0xd4/0x160 net/socket.c:2681
x64_sys_call+0x194c/0x3020 arch/x86/include/generated/asm/syscalls_64.h:47
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
read to 0xffff88811bf2d94d of 1 bytes by task 8390 on cpu 0:
smc_poll+0x4a/0x530 net/smc/af_smc.c:2885
sock_poll+0x21c/0x240 net/socket.c:1443
vfs_poll include/linux/poll.h:82 [inline]
__io_arm_poll_handler+0x1ec/0xc30 io_uring/poll.c:581
io_poll_add+0x69/0xf0 io_uring/poll.c:899
__io_issue_sqe+0xfd/0x2d0 io_uring/io_uring.c:1384
io_issue_sqe+0x206/0xc00 io_uring/io_uring.c:1407
io_queue_sqe io_uring/io_uring.c:1634 [inline]
io_submit_sqe io_uring/io_uring.c:1920 [inline]
io_submit_sqes+0x7fb/0x1270 io_uring/io_uring.c:2043
__do_sys_io_uring_enter io_uring/io_uring.c:2603 [inline]
__se_sys_io_uring_enter+0x1c9/0xf50 io_uring/io_uring.c:2538
__x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:2538
x64_sys_call+0x1e16/0x3020 arch/x86/include/generated/asm/syscalls_64.h:427
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
value changed: 0x00 -> 0x01
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 8390 Comm: syz.6.1361 Tainted: G W syzkaller #0 PREEMPT(full)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
==================================================================
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: r0 = socket(0x2b, 0x801, 0x0)
r1 = socket(0x2, 0x1, 0x0)
bind(r1, &(0x7f0000000000)={0x2, 0x4e21, @local}, 0x10)
listen(r1, 0x1)
connect(r0, &(0x7f0000000040)={0x2, 0x4e21, @local}, 0x10)
sendmsg(r0, &(0x7f0000000080)={0x0, 0x0, &(0x7f00000000c0)=[{&(0x7f0000000100)="aa", 0x1}], 0x1, 0x0, 0x0, 0x0}, 0x0)
r2 = io_uring_setup(0x1, &(0x7f0000000200))
mmap(&(0x7f0000010000/0x2000)=nil, 0x2000, 0x3, 0x11, r2, 0x0)
mmap(&(0x7f0000012000/0x1000)=nil, 0x1000, 0x3, 0x11, r2, 0x10000000)
*(0x7f0000012000) = 0x6
*(0x7f0000012004) = r0
*(0x7f000001201c) = 0x5
*(0x7f0000010180) = 0x0
*(0x7f0000010040) = 0x1
io_uring_enter(r2, 0x1, 0x0, 0x0, 0x0, 0x0)
poll(&(0x7f0000000300)=[{r0, 0x5}], 0x1, 0x0)
|
| 5/2 |
2026/03/07 08:42 |
llm |
crash-repro-finder |
2m
Model:
Tokens:
input: 3051
output: 24
thoughts: 14966
Thoughts: **Reproducing the KCSAN Data Race in `smc_poll` / `smc_switch_to_fallback`**
Okay, so the goal is to create a syzkaller program that reliably triggers the data race reported in the KCSAN crash dump, specifically the race condition between `smc_poll` and `smc_switch_to_fallback`. It's a classic read/write issue where one thread is reading a flag (`smc->use_fallback`) in `smc_poll`, and another is setting it in `smc_switch_to_fallback`. The crash dump indicates that `sendmsg` on an SMC socket is involved, triggering the fallback to TCP, and `io_uring` with a poll operation on the same socket is concurrently reading it. My thinking is that the race is most likely to happen during the transition to TCP fallback.
First, I need to create an SMC socket and a TCP socket listener. The idea is to connect the SMC socket to the TCP listener. This action itself will force the SMC socket to fall back to TCP because the peer isn't an SMC peer. The crash report shows that the crash is happening in the context of `io_uring`, so it's a good idea to create a `io_uring` instance. I'm going to create a non-blocking socket to allow a better chance of concurrency.
The reproduction strategy hinges on a threaded execution where, one thread will send data via `sendmsg` on the SMC socket connected to the TCP listener to trigger the fallback logic, and a second thread will submit a poll request using `io_uring` on the *same* SMC socket. The crucial part is the `connect` and `sendmsg` calls; they need to *trigger* the fallback state, which is when the race occurs.
Now, I'll construct the syzkaller program. I'll define the required socket descriptors and the `io_uring` file descriptor, and then I'll create two threads (that syzkaller will arrange), one for the writer using `sendmsg`, the other for the reader using `io_uring_enter` to submit a `IORING_OP_POLL_ADD` operation. Because the crash report shows `io_uring` in the stack, I *will* create the `io_uring` setup, mmap the rings, fill in the SQE (Submission Queue Entry), update the tail, and use `io_uring_enter`. It turns out that `syz_io_uring_setup` or `syz_io_uring_submit` are likely available, and I can use them, but I will stick with the manual memory operations to keep the program concise. The `io_uring` will add a poll waiter on the SMC socket to read the fallback state, and, in parallel, I will send data on the socket. However, for simplicity, and to match the crash report more reliably, I'll also add a `poll()` syscall, which simplifies the program. This is a good, reliable backup, in case my `io_uring` setup is slightly off. I believe the data race exists at any level that calls `smc_poll`, not just inside `io_uring`.
So, the plan is to create a non-blocking SMC socket, connect it to a TCP listener, send some data on it, set up an `io_uring` instance, *submit* a poll request via `io_uring`, *and* use the classic `poll` syscall, all done concurrently to maximize the chance of the race. The syzkaller executor will handle the threading and race condition.
|
| 6/2 |
2026/03/07 08:44 |
tool |
set-results |
0m
Args: map[ReproOpts:threaded=true;collide=true]
Results: map[ReproOpts:threaded=true;collide=true]
|
| 7/2 |
2026/03/07 08:44 |
llm |
crash-repro-finder |
0m
Model:
Tokens:
input: 18836
output: 566
thoughts: 5112
Thoughts: **Finalized Reproduction Program for SMC Fallback Race**
Okay, so the user needs this syzkaller program, and I have analyzed the issue and am now formulating the code. I'm going to set up the necessary file descriptors, using `r0` for the SMC socket, `r1` for the TCP listener, and `r2` for the io_uring instance. I've confirmed that `AF_SMC` is `0x2b`, and `SOCK_STREAM | SOCK_NONBLOCK` is `0x801`. `AF_INET` will be `0x2`, and the port number is `0x4e21` (20001). `SOCK_STREAM` will be `0x1`.
Here's the planned program structure, step-by-step:
1. **Socket Creation (SMC):** `r0 = socket(0x2b, 0x801, 0x0)`
2. **Socket Creation (TCP Listener):** `r1 = socket(0x2, 0x1, 0x0)`
3. **Bind:** `bind(r1, &(0x7f0000000000)={0x2, 0x4e21, @local}, 0x10)` - Binding the TCP listener.
4. **Listen:** `listen(r1, 0x1)` - Listening on the TCP socket.
5. **Connect (SMC):** `connect(r0, &(0x7f0000000040)={0x2, 0x4e21, @local}, 0x10)` - Connecting the SMC socket.
6. **Send Message:** `sendmsg(r0, &(0x7f0000000080)={0x0, 0x0, &(0x7f00000000c0)=[{&(0x7f0000000100)="aa", 0x1}], 0x1, 0x0, 0x0, 0x0}, 0x0)` - Sending a message.
7. **io\_uring Setup:** `r2 = io_uring_setup(0x1, &(0x7f0000000200))` - Setting up io\_uring.
8. **mmap (Ring):** `mmap(&(0x7f0000010000/0x2000)=nil, 0x2000, 0x3, 0x11, r2, 0x0)` - Mapping the io_uring ring buffer. I'm using `0x11` as the flags, which is shared and fixed address (`MAP_SHARED | MAP_FIXED`). I originally considered `0x12` (`MAP_FIXED | MAP_PRIVATE`), but `MAP_SHARED` is required.
9. **mmap (SQEs):** `mmap(&(0x7f0000012000/0x1000)=nil, 0x1000, 0x3, 0x11, r2, 0x10000000)` - Mapping the submission queue entries.
10. **SQE preparation**: `*(0x7f0000012000) = 0x6` (Opcode IORING\_OP\_POLL\_ADD), `*(0x7f0000012004) = r0` (fd), `*(0x7f000001201c) = 0x5` (events), `*(0x7f0000010180) = 0x0` (sq_tail), `*(0x7f0000010040) = 0x1` (sq\_head).
11. **io\_uring Submission:** `io_uring_enter(r2, 0x1, 0x0, 0x0, 0x0, 0x0)` - Submitting the io_uring entry.
12. **poll:** `poll(&(0x7f0000000300)=[{r0, 0x5}], 0x1, 0x0)` - Polling on the SMC socket `r0` with the `
|