BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 39s! Showing busy workqueues and worker pools: workqueue events: flags=0x0 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=15 refcnt=16 pending: 5*nsim_dev_hwstats_traffic_work, 2*psi_avgs_work, vmstat_shepherd, 4*ovs_dp_masks_rebalance, psi_avgs_work, free_obj_work, psi_avgs_work workqueue events_long: flags=0x0 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: 3*defense_work_handler pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 pending: 2*defense_work_handler workqueue events_unbound: flags=0x2 pwq 8: cpus=0-1 flags=0x6 nice=0 active=14 refcnt=15 in-flight: 124:cfg80211_wiphy_work cfg80211_wiphy_work ,44:cfg80211_wiphy_work cfg80211_wiphy_work ,496:cfg80211_wiphy_work cfg80211_wiphy_work ,6725:nsim_dev_trap_report_work ,260:cfg80211_wiphy_work cfg80211_wiphy_work ,6728:cfg80211_wiphy_work cfg80211_wiphy_work ,45:cfg80211_wiphy_work cfg80211_wiphy_work pending: nsim_dev_trap_report_work pwq 8: cpus=0-1 flags=0x6 nice=0 active=13 refcnt=14 in-flight: 3761:cfg80211_wiphy_work cfg80211_wiphy_work ,12:cfg80211_wiphy_work cfg80211_wiphy_work ,315:cfg80211_wiphy_work cfg80211_wiphy_work ,486:cfg80211_wiphy_work cfg80211_wiphy_work pending: nsim_dev_trap_report_work, flush_memcg_stats_dwork, toggle_allocation_gate, 2*nsim_dev_trap_report_work workqueue events_power_efficient: flags=0x82 pwq 8: cpus=0-1 flags=0x6 nice=0 active=3 refcnt=4 in-flight: 6732:neigh_periodic_work ,6735:reg_check_chans_work ,6726:crda_timeout_work pwq 8: cpus=0-1 flags=0x6 nice=0 active=7 refcnt=8 pending: do_cache_clean, neigh_managed_work, wg_ratelimiter_gc_entries, fb_flashcursor, gc_worker, neigh_periodic_work, neigh_managed_work workqueue mm_percpu_wq: flags=0x8 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: vmstat_update pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: vmstat_update workqueue kblockd: flags=0x18 pwq 7: cpus=1 node=0 flags=0x0 nice=-20 active=1 refcnt=2 pending: blk_mq_timeout_work workqueue mld: flags=0x40008 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=37 in-flight: 9:mld_dad_work inactive: mld_dad_work, mld_ifc_work, 33*mld_dad_work workqueue ipv6_addrconf: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=255 in-flight: 3684:addrconf_dad_work inactive: 250*addrconf_dad_work, addrconf_verify_work workqueue krxrpcd: flags=0x2001a pwq 9: cpus=0-1 node=0 flags=0x4 nice=-20 active=1 refcnt=5 pending: rxrpc_peer_keepalive_worker inactive: rxrpc_peer_keepalive_worker workqueue bat_events: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=47 in-flight: 4223(RESCUER):batadv_tt_purge inactive: 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 4*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 4*batadv_iv_send_outstanding_bat_ogm_packet, batadv_nc_worker, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_tt_purge, 2*batadv_nc_worker, 2*batadv_bla_periodic_work, 2*batadv_nc_worker, batadv_tt_purge, batadv_dat_purge, 2*batadv_bla_periodic_work, batadv_dat_purge, 5*batadv_mcast_mla_update, batadv_dat_purge, batadv_purge_orig, batadv_iv_send_outstanding_bat_ogm_packet, batadv_bla_periodic_work, batadv_purge_orig, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, batadv_dat_purge, batadv_tt_purge workqueue wg-kex-wg0: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 in-flight: 13:wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=3 refcnt=4 in-flight: 6598:wg_packet_encrypt_worker ,6734:wg_packet_tx_worker pending: wg_packet_tx_worker workqueue wg-kex-wg1: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-kex-wg1: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 in-flight: 6597:wg_packet_handshake_receive_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg0: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_tx_worker, wg_packet_decrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg0: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 in-flight: 26:wg_packet_tx_worker wg_packet_tx_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_decrypt_worker workqueue wg-kex-wg2: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 in-flight: 6598:wg_packet_encrypt_worker pending: wg_packet_tx_worker workqueue wg-kex-wg2: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg0: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_decrypt_worker workqueue wg-kex-wg1: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg0: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 in-flight: 6736:wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg2: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 in-flight: 6504:wg_packet_handshake_receive_worker pending: wg_packet_handshake_receive_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 in-flight: 1805:wg_packet_handshake_receive_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 in-flight: 6729:wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x24 pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 in-flight: 24:wg_packet_handshake_receive_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg2: flags=0x24 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 in-flight: 6737:wg_packet_handshake_receive_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_tx_worker, wg_packet_decrypt_worker, wg_packet_encrypt_worker pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=39s workers=11 idle: 6704 6733 10 6541 6677 2300 6676 6727 6675 pool 6: cpus=1 node=0 flags=0x2 nice=0 hung=0s workers=8 manager: 6731 pool 8: cpus=0-1 flags=0x6 nice=0 hung=2s workers=19 manager: 6738 Showing backtraces of running workers in stalled CPU-bound worker pools: pool 2: task:kworker/0:3 state:R running task stack:0 pid:6504 tgid:6504 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: wg-kex-wg2 wg_packet_handshake_receive_worker Call trace: __switch_to+0x414/0x834 arch/arm64/kernel/process.c:734 (T) context_switch kernel/sched/core.c:5382 [inline] __schedule+0x13b0/0x28d4 kernel/sched/core.c:6767 preempt_schedule_irq+0x80/0x188 kernel/sched/core.c:7090 arm64_preempt_schedule_irq+0x44/0x58 arch/arm64/kernel/entry-common.c:301 __el1_irq arch/arm64/kernel/entry-common.c:586 [inline] el1_interrupt+0x3c/0x54 arch/arm64/kernel/entry-common.c:598 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:603 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:596 slab_update_freelist+0xcc/0x118 mm/slub.c:739 (P) __slab_free+0x7c/0x280 mm/slub.c:4494 do_slab_free mm/slub.c:4594 [inline] ___cache_free+0x150/0x170 mm/slub.c:4700 qlink_free+0x48/0x94 mm/kasan/quarantine.c:163 qlist_free_all+0x44/0xb8 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x118/0x124 mm/kasan/quarantine.c:286 __kasan_kmalloc+0x2c/0xb4 mm/kasan/common.c:385 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x2a4/0x3fc mm/slub.c:4358 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] keypair_create drivers/net/wireguard/noise.c:100 [inline] wg_noise_handshake_begin_session+0xb8/0x9c0 drivers/net/wireguard/noise.c:827 wg_receive_handshake_packet drivers/net/wireguard/receive.c:176 [inline] wg_packet_handshake_receive_worker+0x530/0xc20 drivers/net/wireguard/receive.c:213 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 pool 2: task:kworker/0:0 state:R running task stack:0 pid:9 tgid:9 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: mld mld_dad_work Call trace: __switch_to+0x414/0x834 arch/arm64/kernel/process.c:734 (T) context_switch kernel/sched/core.c:5382 [inline] __schedule+0x13b0/0x28d4 kernel/sched/core.c:6767 preempt_schedule_irq+0x80/0x188 kernel/sched/core.c:7090 arm64_preempt_schedule_irq+0x44/0x58 arch/arm64/kernel/entry-common.c:301 __el1_irq arch/arm64/kernel/entry-common.c:586 [inline] el1_interrupt+0x3c/0x54 arch/arm64/kernel/entry-common.c:598 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:603 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:596 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] (P) arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] (P) put_cpu_partial+0x154/0x1c0 mm/slub.c:3257 (P) __slab_free+0x1b0/0x280 mm/slub.c:4512 do_slab_free mm/slub.c:4594 [inline] ___cache_free+0x150/0x170 mm/slub.c:4700 qlink_free+0x48/0x94 mm/kasan/quarantine.c:163 qlist_free_all+0x44/0xb8 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x118/0x124 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x2c/0x88 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_node_track_caller_noprof+0x2b4/0x4d0 mm/slub.c:4346 kmalloc_reserve+0x124/0x268 net/core/skbuff.c:599 __alloc_skb+0x170/0x2ec net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1340 [inline] mld_newpack+0x130/0xa28 net/ipv6/mcast.c:1788 add_grhead+0x6c/0x25c net/ipv6/mcast.c:1899 add_grec+0x1144/0x1324 net/ipv6/mcast.c:2037 mld_send_initial_cr+0x234/0x4a8 net/ipv6/mcast.c:2282 mld_dad_work+0x40/0x4c8 net/ipv6/mcast.c:2308 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847