syzbot


KCSAN: data-race in wg_xmit / wg_xmit (2)

Status: auto-closed as invalid on 2021/02/22 13:14
Subsystems: wireguard
[Documentation on labels]
First crash: 1192d, last: 1192d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wg_xmit / wg_xmit (4) wireguard 1 166d 161d 25/26 fixed on 2024/01/22 01:16
upstream KCSAN: data-race in wg_xmit / wg_xmit wireguard 1 1289d 1289d 0/26 auto-closed as invalid on 2020/11/17 12:19
upstream KCSAN: data-race in wg_xmit / wg_xmit (3) wireguard 1 631d 631d 0/26 auto-closed as invalid on 2022/09/06 05:24

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

read-write to 0xffff8880270cf130 of 8 bytes by task 2426 on cpu 0:
 wg_xmit+0x5e7/0x680 drivers/net/wireguard/device.c:205
 __netdev_start_xmit include/linux/netdevice.h:4776 [inline]
 netdev_start_xmit include/linux/netdevice.h:4790 [inline]
 xmit_one+0xf9/0x2e0 net/core/dev.c:3574
 dev_hard_start_xmit net/core/dev.c:3590 [inline]
 __dev_queue_xmit+0xecf/0x1500 net/core/dev.c:4151
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4184
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2141 [inline]
 __bpf_redirect+0x544/0x750 net/core/filter.c:2164
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2420
 0xffffffffa00569a6
 bpf_dispatcher_nop_func include/linux/bpf.h:651 [inline]
 bpf_test_run+0x278/0x440 net/bpf/test_run.c:50
 bpf_prog_test_run_skb+0x6f0/0xe70 net/bpf/test_run.c:581
 bpf_prog_test_run kernel/bpf/syscall.c:3120 [inline]
 __do_sys_bpf+0x3a17/0x99c0 kernel/bpf/syscall.c:4398
 __se_sys_bpf kernel/bpf/syscall.c:4338 [inline]
 __x64_sys_bpf+0x3d/0x50 kernel/bpf/syscall.c:4338
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read-write to 0xffff8880270cf130 of 8 bytes by task 2416 on cpu 1:
 wg_xmit+0x5e7/0x680 drivers/net/wireguard/device.c:205
 __netdev_start_xmit include/linux/netdevice.h:4776 [inline]
 netdev_start_xmit include/linux/netdevice.h:4790 [inline]
 xmit_one+0xf9/0x2e0 net/core/dev.c:3574
 dev_hard_start_xmit net/core/dev.c:3590 [inline]
 __dev_queue_xmit+0xecf/0x1500 net/core/dev.c:4151
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4184
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2141 [inline]
 __bpf_redirect+0x544/0x750 net/core/filter.c:2164
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2420
 bpf_prog_049923eb4e3e016c+0x56/0x418
 bpf_dispatcher_nop_func include/linux/bpf.h:651 [inline]
 bpf_test_run+0x278/0x440 net/bpf/test_run.c:50
 bpf_prog_test_run_skb+0x6f0/0xe70 net/bpf/test_run.c:581
 bpf_prog_test_run kernel/bpf/syscall.c:3120 [inline]
 __do_sys_bpf+0x3a17/0x99c0 kernel/bpf/syscall.c:4398
 __se_sys_bpf kernel/bpf/syscall.c:4338 [inline]
 __x64_sys_bpf+0x3d/0x50 kernel/bpf/syscall.c:4338
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2416 Comm: syz-executor.5 Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/18 13:09 upstream 19c329f68089 fd103621 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wg_xmit / wg_xmit
* Struck through repros no longer work on HEAD.