syzbot


KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll (2)

Status: upstream: reported on 2022/02/08 08:33
Reported-by: syzbot+d1de830e4ecdaac83d89@syzkaller.appspotmail.com
First crash: 322d, last: 17h34m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll 253 532d 773d 0/24 auto-closed as invalid on 2021/05/20 04:01

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

write to 0xffff88815b022088 of 8 bytes by interrupt on cpu 0:
 counter_validate drivers/net/wireguard/receive.c:321 [inline]
 wg_packet_rx_poll+0x426/0x10c0 drivers/net/wireguard/receive.c:461
 __napi_poll+0x65/0x390 net/core/dev.c:6511
 napi_poll net/core/dev.c:6578 [inline]
 net_rx_action+0x37e/0x730 net/core/dev.c:6689
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 do_softirq+0xb1/0xf0 kernel/softirq.c:472
 __local_bh_enable_ip+0x6f/0x80 kernel/softirq.c:396
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
 _raw_spin_unlock_bh+0x32/0x40 kernel/locking/spinlock.c:210
 spin_unlock_bh include/linux/spinlock.h:394 [inline]
 ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
 wg_packet_decrypt_worker+0x737/0x770 drivers/net/wireguard/receive.c:499
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read to 0xffff88815b022088 of 8 bytes by task 1917 on cpu 1:
 decrypt_packet drivers/net/wireguard/receive.c:252 [inline]
 wg_packet_decrypt_worker+0x230/0x770 drivers/net/wireguard/receive.c:501
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

value changed: 0x0000000000000023 -> 0x0000000000000024

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1917 Comm: kworker/1:3 Not tainted 6.0.0-rc7-syzkaller-00068-g49c13ed0316d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker
==================================================================

Crashes (299):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/29 04:06 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/27 20:51 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/25 09:59 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/24 19:59 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/21 22:15 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/20 19:34 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/20 17:56 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/20 08:58 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/19 12:14 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/18 18:07 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/18 01:27 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/15 08:11 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/14 18:07 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/13 20:53 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/13 01:38 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/12 18:22 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/11 21:56 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/10 02:48 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/07 15:08 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/06 21:46 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/05 10:03 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/04 21:08 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/04 07:56 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/03 23:54 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/03 08:02 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/02 15:41 upstream 42e66b1cc3a0 25194605 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/02 00:06 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/09/01 02:33 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/31 10:13 upstream dcf8e5633e2e 51e54e30 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/30 18:26 upstream dcf8e5633e2e 4a380809 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/29 11:31 upstream b90cb1053190 94da0b6b .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/28 09:12 upstream 10d4879f9ef0 07177916 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/27 18:40 upstream 89b749d8552d 07177916 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/27 02:37 upstream e022620b5d05 07177916 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/24 17:26 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/24 01:38 upstream df0219d11b6f cea8b0f7 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/23 13:57 upstream 072e51356cd5 cea8b0f7 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/23 02:02 upstream 072e51356cd5 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/22 12:53 upstream 1c23f9e627a7 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/22 01:08 upstream e3f259d33c0e 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/21 11:28 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/20 18:21 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/20 11:59 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/19 11:19 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/19 02:47 upstream 573ae4f13f63 26a13b38 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/17 03:50 upstream 7ebfc85e2cd7 9e4b39c2 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/16 02:00 upstream 7ebfc85e2cd7 7a7cb304 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/12 22:22 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/12 03:13 upstream 2ae08b36c06e 21724cb2 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/08/11 11:05 upstream ffcf9c5700e4 787ed7e0 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/02/07 22:27 upstream 2ade8eef993c a7dab638 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2021/11/11 20:10 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
* Struck through repros no longer work on HEAD.