syzbot


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

Status: auto-obsoleted due to no activity on 2024/08/08 12:48
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+6ba34f16b98fe40daef1@syzkaller.appspotmail.com
First crash: 1107d, last: 133d
Discussions (11)
Title Replies (including bot) Last reply
[syzbot] Monthly wireguard report (Jul 2024) 0 (1) 2024/07/04 07:49
[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 1620d 1658d 0/28 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 1323d 1490d 0/28 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

read to 0xffff88810e990b28 of 4 bytes by task 12978 on cpu 0:
 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_xmit+0x5c8/0x6a0 drivers/net/wireguard/device.c:218
 __netdev_start_xmit include/linux/netdevice.h:4882 [inline]
 netdev_start_xmit include/linux/netdevice.h:4896 [inline]
 xmit_one net/core/dev.c:3578 [inline]
 dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3594
 __dev_queue_xmit+0xf83/0x1e50 net/core/dev.c:4393
 dev_queue_xmit include/linux/netdevice.h:3095 [inline]
 packet_xmit+0x4b/0x1e0 net/packet/af_packet.c:276
 packet_snd net/packet/af_packet.c:3080 [inline]
 packet_sendmsg+0x2ae1/0x3320 net/packet/af_packet.c:3112
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 __sys_sendto+0x1e5/0x260 net/socket.c:2192
 __do_sys_sendto net/socket.c:2204 [inline]
 __se_sys_sendto net/socket.c:2200 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2200
 x64_sys_call+0x16d7/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88810e990b28 of 4 bytes by task 12975 on cpu 1:
 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_xmit+0x5c8/0x6a0 drivers/net/wireguard/device.c:218
 __netdev_start_xmit include/linux/netdevice.h:4882 [inline]
 netdev_start_xmit include/linux/netdevice.h:4896 [inline]
 xmit_one net/core/dev.c:3578 [inline]
 dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3594
 __dev_queue_xmit+0xf83/0x1e50 net/core/dev.c:4393
 dev_queue_xmit include/linux/netdevice.h:3095 [inline]
 packet_xmit+0x4b/0x1e0 net/packet/af_packet.c:276
 packet_snd net/packet/af_packet.c:3080 [inline]
 packet_sendmsg+0x2ae1/0x3320 net/packet/af_packet.c:3112
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 __sys_sendto+0x1e5/0x260 net/socket.c:2192
 __do_sys_sendto net/socket.c:2204 [inline]
 __se_sys_sendto net/socket.c:2200 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2200
 x64_sys_call+0x16d7/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12975 Comm: syz.2.3164 Not tainted 6.10.0-rc7-syzkaller-00076-g9d9a2f29aefd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (1020):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/11 12:47 upstream 9d9a2f29aefd c699c2eb .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/07/11 00:34 upstream 34afb82a3c67 6f7fa383 .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/07/10 02:56 upstream 34afb82a3c67 bc144f9a .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/07/09 21:19 upstream 34afb82a3c67 79d68ada .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/07/09 09:47 upstream 4376e966ecb7 bc23a442 .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/07/08 02:51 upstream 256abd8e550c 2a40360c .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/07/08 01:10 upstream c6653f49e4fd 2a40360c .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/07/06 14:39 upstream 1dd28064d416 2a40360c .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/07/05 09:38 upstream 661e504db04c 2a40360c .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/07/05 04:06 upstream 661e504db04c 3f2748a3 .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/07/04 17:05 upstream 795c58e4c7fc 3f2748a3 .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/07/03 06:20 upstream e9d22f7a6655 1ecfa2d8 .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/07/03 00:40 upstream e9d22f7a6655 07f0a0a0 .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/07/02 19:30 upstream 1dfe225e9af5 07f0a0a0 .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/30 22:44 upstream 22a40d14b572 757f06b1 .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/30 02:17 upstream 27b31deb900d 757f06b1 .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/29 08:23 upstream de0a9f448633 757f06b1 .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/28 11:59 upstream 5bbd9b249880 6ef39602 .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/27 19:37 upstream 66e55ff12e73 6ef39602 .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/27 13:26 upstream afcd48134c58 6ef39602 .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/26 19:24 upstream 55027e689933 c6d33a01 .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/25 06:11 upstream 626737a5791b 215eef4a .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/23 00:40 upstream 563a50672d8a edc5149a .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/20 20:47 upstream 50736169ecc8 dac2aa43 .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/20 12:40 upstream e5b3efbe1ab1 dac2aa43 .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/19 22:39 upstream e5b3efbe1ab1 41b7e219 .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/19 02:09 upstream 3d54351c64e8 639d6cdf .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/18 14:13 upstream 14d7c92f8df9 639d6cdf .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/18 06:19 upstream 14d7c92f8df9 ce6011bc .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/17 18:15 upstream 6ba59ff42279 1f11cfd7 .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/17 03:32 upstream 6ba59ff42279 f429ab00 .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/16 02:00 upstream 08a6b55aa0c6 f429ab00 .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/15 22:28 upstream 08a6b55aa0c6 f429ab00 .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/15 15:32 upstream 44ef20baed8e f429ab00 .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/15 12:03 upstream 44ef20baed8e f429ab00 .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 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
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.