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: 194d, last: 9h50m
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 404d 645d 0/22 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 0xffff888133627888 of 8 bytes by interrupt on cpu 0:
 counter_validate drivers/net/wireguard/receive.c:328 [inline]
 wg_packet_rx_poll+0x417/0x1090 drivers/net/wireguard/receive.c:468
 __napi_poll+0x65/0x390 net/core/dev.c:6413
 napi_poll net/core/dev.c:6480 [inline]
 net_rx_action+0x29e/0x650 net/core/dev.c:6567
 __do_softirq+0x158/0x2e3 kernel/softirq.c:558
 do_softirq+0xb1/0xf0 kernel/softirq.c:459
 __local_bh_enable_ip+0x6f/0x80 kernel/softirq.c:383
 __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+0x181/0x770 drivers/net/wireguard/receive.c:506
 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

read to 0xffff888133627888 of 8 bytes by task 893 on cpu 1:
 decrypt_packet drivers/net/wireguard/receive.c:259 [inline]
 wg_packet_decrypt_worker+0x230/0x770 drivers/net/wireguard/receive.c:508
 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

value changed: 0x0000000000000975 -> 0x0000000000000976

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 893 Comm: kworker/1:2 Tainted: G        W         5.18.0-syzkaller-01157-g143a6252e1b8-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker
==================================================================

Crashes (159):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/24 12:41 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/21 04:43 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/19 15:08 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/18 14:58 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/18 00:40 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/16 07:37 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/13 10:36 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/12 14:51 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/11 21:36 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/11 00:52 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/09 14:12 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/09 06:54 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/09 04:25 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 18:39 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 11:39 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 08:02 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 06:07 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 03:38 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/07 01:36 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/06 22:52 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/06 18:54 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/05 20:07 upstream 0f5d752b1395 b3f09415 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/04 21:29 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/04 19:52 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/04 17:58 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/04 07:35 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/03 18:32 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/03 16:48 upstream 9050ba3a61a4 dc9e5259 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/03 02:15 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/02 21:51 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/02 16:54 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/05/01 11:28 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/30 19:45 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/30 07:17 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/28 19:06 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/25 15:39 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/24 08:09 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/23 13:55 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/21 15:09 upstream b253435746d9 2738b391 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/20 02:58 upstream 559089e0a93d 7d7bc738 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/19 18:08 upstream b7f73403a3e9 33fc6ed6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/19 14:37 upstream b2d229d4ddb1 33fc6ed6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/18 19:26 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/17 16:28 upstream a2c29ccd9477 8bcc32a6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/15 16:11 upstream 028192fea1de 8bcc32a6 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/14 10:48 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/13 08:57 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/12 03:08 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/11 05:36 upstream ce522ba9ef7e e22c3da3 .config log report info KCSAN: data-race in wg_packet_decrypt_worker / wg_packet_rx_poll
ci2-upstream-kcsan-gce 2022/04/10 07:33 upstream e1f700ebd6be e22c3da3 .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