syzbot


upstream test error: WARNING in wg_cpumask_next_online

Status: closed as dup on 2022/10/15 16:02
Subsystems: wireguard
[Documentation on labels]
Reported-by: syzbot+4d46c43d81c3bd155060@syzkaller.appspotmail.com
First crash: 775d, last: 770d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING in c_start kernel 75097 769d 771d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] upstream test error: WARNING in wg_cpumask_next_online 0 (1) 2022/10/11 08:44

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 51 at include/linux/cpumask.h:110 wg_cpumask_next_online+0x1c0/0x2c0 drivers/net/wireguard/queueing.h:132
Modules linked in:
CPU: 0 PID: 51 Comm: kworker/u4:3 Tainted: G        W          6.0.0-syzkaller-12196-g1501278bb7ba #0
Hardware name: linux,dummy-virt (DT)
Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker
pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : cpu_max_bits_warn include/linux/cpumask.h:110 [inline]
pc : cpumask_check include/linux/cpumask.h:117 [inline]
pc : cpumask_next include/linux/cpumask.h:178 [inline]
pc : wg_cpumask_next_online+0x1c0/0x2c0 drivers/net/wireguard/queueing.h:133
lr : wg_packet_receive+0x978/0x1560 drivers/net/wireguard/receive.c:568
sp : ffff800008007480
x29: ffff800008007480 x28: 0000000000000001 x27: 1fffe00001d58219
x26: 0000000000000000 x25: ffff80000de5c000 x24: 0000000000000000
x23: 0000000000000003 x22: ffff80000de5cb68 x21: 0000000000000001
x20: ffff00000eac10c8 x19: ffff80000de5cd50 x18: 00000000022bc28a
x17: ffff80005cbc5000 x16: ffff800008008000 x15: ffff000014351028
x14: 1ffff00001000e68 x13: 0000000000000000 x12: ffff600001d58291
x11: 1fffe00001d58290 x10: ffff600001d58290 x9 : dfff800000000000
x8 : ffff00000eac1483 x7 : 00009ffffe2a7d70 x6 : 0000000000000001
x5 : ffff00000eac1480 x4 : ffff700001bcb9aa x3 : dfff800000000000
x2 : 0000000000000002 x1 : 0000000000000002 x0 : 0000000000000001
Call trace:
 wg_cpumask_next_online+0x1c0/0x2c0 drivers/net/wireguard/queueing.h:132
 wg_packet_receive+0x978/0x1560 drivers/net/wireguard/receive.c:568
 wg_receive+0x58/0xb0 drivers/net/wireguard/socket.c:326
 udpv6_queue_rcv_one_skb+0x8f4/0x17c0 net/ipv6/udp.c:727
 udpv6_queue_rcv_skb+0x134/0x7e0 net/ipv6/udp.c:788
 udp6_unicast_rcv_skb+0xe8/0x270 net/ipv6/udp.c:931
 __udp6_lib_rcv+0x8a4/0x2330 net/ipv6/udp.c:1016
 udpv6_rcv+0x1c/0x2c net/ipv6/udp.c:1124
 ip6_protocol_deliver_rcu+0x154/0x14f0 net/ipv6/ip6_input.c:439
 ip6_input_finish+0x108/0x220 net/ipv6/ip6_input.c:484
 NF_HOOK include/linux/netfilter.h:302 [inline]
 NF_HOOK include/linux/netfilter.h:296 [inline]
 ip6_input+0xbc/0x2b0 net/ipv6/ip6_input.c:493
 dst_input include/net/dst.h:455 [inline]
 ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline]
 NF_HOOK include/linux/netfilter.h:302 [inline]
 NF_HOOK include/linux/netfilter.h:296 [inline]
 ipv6_rcv+0x39c/0x47c net/ipv6/ip6_input.c:309
 __netif_receive_skb_one_core+0xf4/0x170 net/core/dev.c:5485
 __netif_receive_skb+0x24/0x184 net/core/dev.c:5599
 process_backlog+0x24c/0x6b0 net/core/dev.c:5927
 __napi_poll+0x94/0x3a4 net/core/dev.c:6494
 napi_poll net/core/dev.c:6561 [inline]
 net_rx_action+0x78c/0xb60 net/core/dev.c:6672
 _stext+0x28c/0x107c
 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79
 call_on_irq_stack+0x2c/0x54 arch/arm64/kernel/entry.S:889
 do_softirq_own_stack+0x1c/0x30 arch/arm64/kernel/irq.c:84
 do_softirq.part.0+0xd0/0xf4 kernel/softirq.c:472
 do_softirq kernel/softirq.c:464 [inline]
 __local_bh_enable_ip+0x50c/0x5d0 kernel/softirq.c:396
 __raw_read_unlock_bh include/linux/rwlock_api_smp.h:257 [inline]
 _raw_read_unlock_bh+0x54/0x64 kernel/locking/spinlock.c:284
 wg_socket_send_skb_to_peer+0xf0/0x190 drivers/net/wireguard/socket.c:184
 wg_socket_send_buffer_to_peer+0x110/0x160 drivers/net/wireguard/socket.c:200
 wg_packet_send_handshake_initiation+0x1a8/0x274 drivers/net/wireguard/send.c:40
 wg_packet_handshake_send_worker+0x1c/0x34 drivers/net/wireguard/send.c:51
 process_one_work+0x780/0x184c kernel/workqueue.c:2289
 worker_thread+0x3cc/0xc40 kernel/workqueue.c:2436
 kthread+0x23c/0x2a0 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860
irq event stamp: 44695
hardirqs last  enabled at (44694): [<ffff80000816e9e4>] __local_bh_enable_ip+0x1e4/0x5d0 kernel/softirq.c:401
hardirqs last disabled at (44695): [<ffff80000c8f3f94>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (44686): [<ffff800009f38980>] wg_socket_send_skb_to_peer+0xf0/0x190 drivers/net/wireguard/socket.c:184
softirqs last disabled at (44687): [<ffff800008019cb0>] ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---

Crashes (156):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/16 00:26 upstream 1501278bb7ba 67cb024c .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/15 02:40 upstream 19d17ab7c68b 67cb024c .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/15 01:36 upstream b7cef0d21c37 67cb024c .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/15 01:36 upstream b7cef0d21c37 67cb024c .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/14 20:29 upstream 1df046ab1c65 4954e4b2 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/14 19:26 upstream f2e44139f3e0 4954e4b2 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/14 05:36 upstream 9c9155a3509a 4954e4b2 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/14 05:26 upstream 9c9155a3509a 4954e4b2 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/14 02:21 upstream 6d84c258e804 4954e4b2 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/13 19:06 upstream f2b220ef93ea e3cf86a1 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/13 18:55 upstream f2b220ef93ea e3cf86a1 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/13 14:19 upstream a185a0995518 e3cf86a1 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/13 02:17 upstream a185a0995518 3f6b40a1 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 23:23 upstream a185a0995518 89b5a509 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 19:47 upstream 1440f5760228 89b5a509 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 18:43 upstream 95b8b5953a31 89b5a509 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 14:14 upstream 49da07006239 89b5a509 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 05:05 upstream 49da07006239 16a9c9e0 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 03:28 upstream f311d498be8f 16a9c9e0 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/12 02:04 upstream d465bff130bf 16a9c9e0 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 23:18 upstream d465bff130bf 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 23:18 upstream d465bff130bf 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:43 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:43 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:43 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:34 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:34 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 18:34 upstream 041bc24d867a 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:51 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:51 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:51 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:09 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:09 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 14:09 upstream 60bb8154d1d7 1353c374 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:11 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:11 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:11 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:01 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:01 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 04:01 upstream 60bb8154d1d7 2b253ced .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 02:24 upstream 27bc50fc9064 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 02:24 upstream 27bc50fc9064 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 02:24 upstream 27bc50fc9064 2b253ced .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
2022/10/11 02:14 upstream 27bc50fc9064 2b253ced .config console log report ci-qemu2-arm64-compat upstream test error: WARNING in wg_cpumask_next_online
2022/10/10 21:51 upstream aa512c115a09 5bcf0c31 .config console log report ci-qemu2-arm64 upstream test error: WARNING in wg_cpumask_next_online
* Struck through repros no longer work on HEAD.