syzbot


KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets (3)

Status: upstream: reported on 2022/02/08 08:32
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+6ba34f16b98fe40daef1@syzkaller.appspotmail.com
First crash: 948d, last: 1d10h
Discussions (10)
Title Replies (including bot) Last reply
[syzbot] Monthly wireguard report (Jun 2024) 0 (1) 2024/06/03 07:52
[syzbot] Monthly wireguard report (May 2024) 0 (1) 2024/05/02 12:38
[syzbot] Monthly wireguard report (Feb 2024) 0 (1) 2024/02/21 10:58
[syzbot] Monthly wireguard report (Jan 2024) 0 (1) 2024/01/17 22:20
[syzbot] Monthly wireguard report (Dec 2023) 0 (1) 2023/12/02 14:45
[syzbot] Monthly wireguard report (Aug 2023) 0 (1) 2023/08/21 20:40
[syzbot] Monthly wireguard report (Jul 2023) 0 (1) 2023/07/14 09:49
Re: [syzbot] Monthly wireguard report (Apr 2023) 1 (1) 2023/05/02 09:03
[syzbot] Monthly wireguard report (Apr 2023) 0 (1) 2023/05/01 09:03
[syzbot] KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets (3) 0 (1) 2022/02/08 08:32
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets wireguard 15 1461d 1499d 0/27 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets (2) wireguard 108 1164d 1330d 0/27 auto-closed as invalid on 2021/05/13 03:09

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

write to 0xffff888122e3fb28 of 4 bytes by task 3177 on cpu 0:
 wg_cpumask_next_online drivers/net/wireguard/queueing.h:130 [inline]
 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:173 [inline]
 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline]
 wg_packet_send_staged_packets+0x6e5/0xac0 drivers/net/wireguard/send.c:388
 wg_packet_send_keepalive+0xe2/0x100 drivers/net/wireguard/send.c:239
 wg_receive_handshake_packet drivers/net/wireguard/receive.c:186 [inline]
 wg_packet_handshake_receive_worker+0x449/0x5f0 drivers/net/wireguard/receive.c:213
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888122e3fb28 of 4 bytes by task 9906 on cpu 1:
 wg_cpumask_next_online drivers/net/wireguard/queueing.h:127 [inline]
 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:173 [inline]
 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline]
 wg_packet_send_staged_packets+0x60e/0xac0 drivers/net/wireguard/send.c:388
 wg_packet_send_keepalive+0xe2/0x100 drivers/net/wireguard/send.c:239
 wg_receive_handshake_packet drivers/net/wireguard/receive.c:186 [inline]
 wg_packet_handshake_receive_worker+0x449/0x5f0 drivers/net/wireguard/receive.c:213
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0xffffffff -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9906 Comm: kworker/1:7 Tainted: G        W          6.10.0-rc3-syzkaller-00099-gd20f6b3d747c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: wg-kex-wg2 wg_packet_handshake_receive

Crashes (985):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/13 22:09 upstream d20f6b3d747c a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/13 16:30 upstream 2ccbdf43d5e7 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/13 11:32 upstream 2ccbdf43d5e7 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/12 04:56 upstream 2ef5971ff345 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/10 22:21 upstream 83a7eefedc9b 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/10 10:45 upstream 83a7eefedc9b 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/08 16:37 upstream dc772f8237f9 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/06 06:18 upstream 2df0193e62cf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/05 19:57 upstream 71d7b52cc33b 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/05 09:45 upstream 32f88d65f01b e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/04 13:03 upstream 2ab795141095 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/04 02:37 upstream f06ce441457d a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/03 14:49 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/03 00:25 upstream 83814698cf48 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/02 04:45 upstream 89be4025b0db 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/06/01 02:03 upstream d8ec19857b09 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/31 09:23 upstream 4a4be1ad3a6e 0c378259 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/31 01:13 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/29 13:46 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/28 12:54 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/27 22:56 upstream 2bfcfd584ff5 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/27 13:02 upstream 1613e604df0c 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/26 13:23 upstream c13320499ba0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/25 20:59 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/24 03:07 upstream 2a8120d7b482 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/23 01:49 upstream 2a8120d7b482 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/22 02:37 upstream 2a8120d7b482 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/21 06:11 upstream daa121128a2d c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/20 15:19 upstream eb6a9339efeb c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/18 23:34 upstream 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/16 19:01 upstream 3c999d1ae3c7 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/16 05:18 upstream 8c06da67d0bd ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/14 19:55 upstream a5131c3fdf26 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/14 07:13 upstream 8815da98e06a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/13 14:05 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/12 19:41 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/11 21:13 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/10 07:23 upstream 448b3fe5a0ea de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/09 21:25 upstream 45db3ab70092 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/09 07:36 upstream 45db3ab70092 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/08 20:52 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/08 07:55 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/07 18:16 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/05 20:19 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/04 22:15 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2024/05/03 22:30 upstream ddb4c3f25b7b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2022/02/08 02:40 upstream 2ade8eef993c a7dab638 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2022/01/11 04:05 upstream 133d9c53c9dc ddb0ab8c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
2021/11/10 04:03 upstream cb690f5238d7 55fa030c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wg_packet_send_staged_packets / wg_packet_send_staged_packets
* Struck through repros no longer work on HEAD.