------------[ cut here ]------------ WARNING: CPU: 1 PID: 9 at include/linux/cpumask.h:110 wg_cpumask_next_online+0x1c0/0x2c0 drivers/net/wireguard/queueing.h:132 Modules linked in: CPU: 1 PID: 9 Comm: kworker/u4:0 Tainted: G W 6.0.0-syzkaller-11840-gf2b220ef93ea #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 : ffff800010ab7480 x29: ffff800010ab7480 x28: 0000000000000001 x27: 1fffe000014b8219 x26: 0000000000000000 x25: ffff80000de5c000 x24: 0000000000000000 x23: 0000000000000003 x22: ffff80000de5cb68 x21: 0000000000000001 x20: ffff00000a5c10c8 x19: ffff80000de5cd50 x18: 0000000093ba0bb0 x17: ffff80005cbe4000 x16: ffff800010ab8000 x15: ffff00001186a528 x14: 1ffff00002156e68 x13: 0000000000000000 x12: ffff6000014b8291 x11: 1fffe000014b8290 x10: ffff6000014b8290 x9 : dfff800000000000 x8 : ffff00000a5c1483 x7 : 00009ffffeb47d70 x6 : 0000000000000001 x5 : ffff00000a5c1480 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: 117673 hardirqs last enabled at (117672): [] __local_bh_enable_ip+0x1e4/0x5d0 kernel/softirq.c:401 hardirqs last disabled at (117673): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (117664): [] wg_socket_send_skb_to_peer+0xf0/0x190 drivers/net/wireguard/socket.c:184 softirqs last disabled at (117665): [] ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 cpumask_check include/linux/cpumask.h:117 [inline] WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 cpumask_next include/linux/cpumask.h:178 [inline] WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 wg_cpumask_next_online drivers/net/wireguard/queueing.h:132 [inline] WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline] WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 wg_packet_create_data drivers/net/wireguard/send.c:320 [inline] WARNING: CPU: 1 PID: 21 at include/linux/cpumask.h:110 wg_packet_send_staged_packets+0xe38/0x1380 drivers/net/wireguard/send.c:387 Modules linked in: CPU: 1 PID: 21 Comm: kworker/1:0 Tainted: G W 6.0.0-syzkaller-11840-gf2b220ef93ea #0 Hardware name: linux,dummy-virt (DT) Workqueue: wg-crypt-wg0 wg_packet_decrypt_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 drivers/net/wireguard/queueing.h:133 [inline] pc : wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline] pc : wg_packet_create_data drivers/net/wireguard/send.c:320 [inline] pc : wg_packet_send_staged_packets+0xe38/0x1380 drivers/net/wireguard/send.c:387 lr : wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:170 [inline] lr : wg_packet_create_data drivers/net/wireguard/send.c:320 [inline] lr : wg_packet_send_staged_packets+0x524/0x1380 drivers/net/wireguard/send.c:387 sp : ffff800010ab7960 x29: ffff800010ab7960 x28: ffff000013cf4800 x27: 0000000000000001 x26: 0000000000000001 x25: 0000000000000002 x24: 1fffe000029e1b1e x23: ffff000014f0d8e8 x22: ffff80000de5cd50 x21: ffff00000f970960 x20: ffff000014f0d8c0 x19: ffff00000a5c0c40 x18: ffff00006a9eab88 x17: ffff80005cbe4000 x16: ffff800010ab8000 x15: 0000000000008000 x14: 1ffff00002156efa x13: 1fffe0000125b4b3 x12: ffff600001f2e12e x11: ffff700001bcb9aa x10: dfff800000000000 x9 : 0000000000000003 x8 : ffff80000de5c000 x7 : 1fffe000014b81b9 x6 : 0000000000000000 x5 : ffff00000a5c0dc8 x4 : ffff80000de5cb68 x3 : ffff800009f2c124 x2 : 0000000000000002 x1 : 0000000000000002 x0 : 0000000000000001 Call trace: cpumask_check include/linux/cpumask.h:117 [inline] cpumask_next include/linux/cpumask.h:178 [inline] wg_cpumask_next_online drivers/net/wireguard/queueing.h:132 [inline] wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:176 [inline] wg_packet_create_data drivers/net/wireguard/send.c:320 [inline] wg_packet_send_staged_packets+0xe38/0x1380 drivers/net/wireguard/send.c:387 wg_packet_consume_data_done drivers/net/wireguard/receive.c:348 [inline] wg_packet_rx_poll+0xd94/0x1580 drivers/net/wireguard/receive.c:474 __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_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline] _raw_spin_unlock_bh+0x54/0x64 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:395 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_decrypt_worker+0x210/0x3c0 drivers/net/wireguard/receive.c:499 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: 10029 hardirqs last enabled at (10028): [] seqcount_lockdep_reader_access.constprop.0+0xc4/0xe0 include/linux/seqlock.h:104 hardirqs last disabled at (10029): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:404 softirqs last enabled at (10006): [] spin_unlock_bh include/linux/spinlock.h:395 [inline] softirqs last enabled at (10006): [] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] softirqs last enabled at (10006): [] wg_packet_decrypt_worker+0x210/0x3c0 drivers/net/wireguard/receive.c:499 softirqs last disabled at (10007): [] ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]---