syzbot


KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (8)

Status: moderation: reported on 2026/02/16 17:03
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+7aaf0fda4d5e3ca1dd06@syzkaller.appspotmail.com
First crash: 14d, last: 14d
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (3) wireguard 6 6 563d 622d 0/29 auto-obsoleted due to no activity on 2024/09/08 23:48
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer wireguard 6 1 909d 905d 0/29 auto-obsoleted due to no activity on 2023/09/29 08:20
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (2) wireguard 6 1 807d 804d 0/29 auto-obsoleted due to no activity on 2024/01/08 19:50
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (6) wireguard 6 3 162d 244d 0/29 auto-obsoleted due to no activity on 2025/11/04 23:24
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (5) wireguard 6 3 347d 378d 0/29 auto-obsoleted due to no activity on 2025/05/03 20:15
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (4) wireguard 6 3 472d 518d 0/29 auto-obsoleted due to no activity on 2024/12/29 16:46
upstream KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer (7) wireguard 6 3 78d 45d 0/29 auto-obsoleted due to no activity on 2026/01/27 23:01

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

read-write to 0xffff88811ad03d48 of 8 bytes by task 3427 on cpu 0:
 wg_socket_send_skb_to_peer+0xe8/0x130 drivers/net/wireguard/socket.c:183
 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline]
 wg_packet_tx_worker+0x12d/0x330 drivers/net/wireguard/send.c:276
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0x4cd/0x9d0 kernel/workqueue.c:3340
 worker_thread+0x6bc/0x8b0 kernel/workqueue.c:3421
 kthread+0x488/0x510 kernel/kthread.c:463
 ret_from_fork+0x148/0x280 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

read-write to 0xffff88811ad03d48 of 8 bytes by task 37 on cpu 1:
 wg_socket_send_skb_to_peer+0xe8/0x130 drivers/net/wireguard/socket.c:183
 wg_socket_send_buffer_to_peer+0xf1/0x120 drivers/net/wireguard/socket.c:200
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0x10d/0x160 drivers/net/wireguard/send.c:51
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0x4cd/0x9d0 kernel/workqueue.c:3340
 worker_thread+0x6bc/0x8b0 kernel/workqueue.c:3421
 kthread+0x488/0x510 kernel/kthread.c:463
 ret_from_fork+0x148/0x280 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

value changed: 0x000000000000014c -> 0x000000000000016c

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 37 Comm: kworker/u8:2 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/05 10:25 upstream f14faaf3a1fb 4936e85c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_socket_send_skb_to_peer / wg_socket_send_skb_to_peer
* Struck through repros no longer work on HEAD.