------------[ cut here ]------------ WARNING: CPU: 0 PID: 9 at include/linux/cpumask.h:110 wg_cpumask_next_online+0x1c0/0x2c0 drivers/net/wireguard/queueing.h:132 Modules linked in: CPU: 0 PID: 9 Comm: kworker/u4:0 Tainted: G W 6.0.0-syzkaller-10822-g60bb8154d1d7 #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 : ffff800008007440 x29: ffff800008007440 x28: 0000000000000001 x27: 1fffe000029e4a19 x26: 0000000000000000 x25: ffff80000de5c000 x24: 0000000000000000 x23: 0000000000000003 x22: ffff80000de5cb68 x21: 0000000000000001 x20: ffff000014f250c8 x19: ffff80000de5cd50 x18: ffff000013297d38 x17: 1fffe00002b7f90c x16: 1fffe00002652f97 x15: ffff000013297cc0 x14: 1ffff00001000e60 x13: 0000000000000000 x12: ffff6000029e4a91 x11: 1fffe000029e4a90 x10: ffff6000029e4a90 x9 : dfff800000000000 x8 : ffff000014f25483 x7 : 00009ffffd61b570 x6 : 0000000000000001 x5 : ffff000014f25480 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 udp_queue_rcv_one_skb+0x820/0x1a8c net/ipv4/udp.c:2153 udp_queue_rcv_skb+0x134/0x7e0 net/ipv4/udp.c:2230 udp_unicast_rcv_skb+0xe8/0x2e0 net/ipv4/udp.c:2390 __udp4_lib_rcv+0xcf0/0x31b0 net/ipv4/udp.c:2462 udp_rcv+0x20/0x30 net/ipv4/udp.c:2635 ip_protocol_deliver_rcu+0xbc/0x634 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x248/0x3ac net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] ip_local_deliver+0x16c/0x384 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:455 [inline] ip_rcv_finish+0x144/0x224 net/ipv4/ip_input.c:444 NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] ip_rcv+0xc0/0x2b0 net/ipv4/ip_input.c:564 __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: 313283 hardirqs last enabled at (313282): [] __local_bh_enable_ip+0x1e4/0x5d0 kernel/softirq.c:401 hardirqs last disabled at (313283): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (313274): [] wg_socket_send_skb_to_peer+0xf0/0x190 drivers/net/wireguard/socket.c:184 softirqs last disabled at (313275): [] ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]---