BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 199s! BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 197s! Showing busy workqueues and worker pools: workqueue events: flags=0x0 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=11/256 refcnt=12 pending: 2*nsim_dev_hwstats_traffic_work, 4*psi_avgs_work, 2*ovs_dp_masks_rebalance, ima_keys_handler, switchdev_deferred_process_work, rht_deferred_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=10/256 refcnt=11 pending: 2*nsim_dev_hwstats_traffic_work, psi_avgs_work, vmstat_shepherd, 3*ovs_dp_masks_rebalance, kfree_rcu_monitor, 2*rht_deferred_worker workqueue events_long: flags=0x0 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=7/256 refcnt=8 pending: 3*defense_work_handler, 2*br_multicast_gc_work, 2*br_fdb_cleanup pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=5/256 refcnt=6 pending: 2*defense_work_handler, br_multicast_gc_work, 2*br_fdb_cleanup workqueue events_unbound: flags=0x2 pwq 4: cpus=0-1 flags=0x4 nice=0 active=14/512 refcnt=15 in-flight: 6833:toggle_allocation_gate pending: 2*cfg80211_wiphy_work, 4*nsim_dev_trap_report_work, flush_memcg_stats_dwork, cfg80211_wiphy_work, crng_reseed, 3*macvlan_process_broadcast, idle_cull_fn pwq 4: cpus=0-1 flags=0x4 nice=0 active=13/512 refcnt=14 in-flight: 6599:cfg80211_wiphy_work cfg80211_wiphy_work pending: 3*cfg80211_wiphy_work, 5*macvlan_process_broadcast, 3*idle_cull_fn workqueue events_freezable: flags=0x4 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: update_balloon_stats_func workqueue events_power_efficient: flags=0x80 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 pending: neigh_managed_work, neigh_periodic_work pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=7/256 refcnt=8 in-flight: 9:wg_ratelimiter_gc_entries pending: hash_ipport6_gc, neigh_periodic_work, neigh_managed_work, do_cache_clean, gc_worker, check_lifetime workqueue mm_percpu_wq: flags=0x8 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: vmstat_update workqueue writeback: flags=0x4a pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wb_workfn workqueue iou_exit: flags=0x2 pwq 4: cpus=0-1 flags=0x4 nice=0 active=6/64 refcnt=7 in-flight: 3527:io_ring_exit_work, 138:io_ring_exit_work, 50:io_ring_exit_work, 3515:io_ring_exit_work, 3497:io_ring_exit_work, 6793:io_ring_exit_work pwq 4: cpus=0-1 flags=0x4 nice=0 active=4/64 refcnt=5 in-flight: 3470:io_ring_exit_work, 12:io_ring_exit_work, 41:io_ring_exit_work, 1090:io_ring_exit_work workqueue dm_bufio_cache: flags=0x8 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: work_fn workqueue ipv6_addrconf: flags=0xe000a pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/1 refcnt=8 pending: addrconf_verify_work inactive: 4*addrconf_verify_work workqueue bat_events: flags=0xe000a pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/1 refcnt=36 in-flight: 6876:batadv_nc_worker inactive: 3*batadv_nc_worker, 2*batadv_iv_send_outstanding_bat_ogm_packet, 4*batadv_purge_orig, 4*batadv_mcast_mla_update, 7*batadv_iv_send_outstanding_bat_ogm_packet, 4*batadv_tt_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, 2*batadv_dat_purge, 2*batadv_bla_periodic_work, batadv_dat_purge workqueue wg-kex-wg0: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 pending: wg_packet_tx_worker, wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg0: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg0: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg0: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg0: flags=0x28 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg1: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256 refcnt=3 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x6 pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/256 refcnt=2 pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x28 pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: wg_packet_encrypt_worker pool 0: cpus=0 node=0 flags=0x0 nice=0 hung=200s workers=8 idle: 42 5835 8 5813 5814 5836 5765 pool 4: cpus=0-1 flags=0x4 nice=0 hung=200s workers=18 idle: 60 6275 6909 11 6766 Showing backtraces of running workers in stalled CPU-bound worker pools: pool 0: task:kworker/0:1 state:R running task stack:24464 pid:9 ppid:2 flags:0x00004000 Workqueue: events_power_efficient wg_ratelimiter_gc_entries Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1553/0x45a0 kernel/sched/core.c:6700 preempt_schedule_irq+0xbf/0x150 kernel/sched/core.c:7010 irqentry_exit+0x67/0x70 kernel/entry/common.c:438 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:__might_resched+0x280/0x630 kernel/sched/core.c:10213 Code: c8 48 83 c0 9c 79 40 48 c7 44 24 40 0e 36 e0 45 4a c7 04 2b 00 00 00 00 4a c7 44 2b 08 00 00 00 00 65 48 8b 04 25 28 00 00 00 <48> 3b 84 24 c0 00 00 00 0f 85 58 02 00 00 48 8d 65 d8 5b 41 5c 41 RSP: 0018:ffffc900000e7a40 EFLAGS: 00000246 RAX: 197157210ba0b100 RBX: 1ffff9200001cf50 RCX: 197157210ba0b100 RDX: ffff88801aa40000 RSI: ffffffff8acadd60 RDI: ffffffff8b1c9c20 RBP: ffffc900000e7b58 R08: ffffffff8db73363 R09: 1ffffffff1b6e66c R10: dffffc0000000000 R11: fffffbfff1b6e66d R12: ffff88801aa40a70 R13: dffffc0000000000 R14: ffff88801aa4043c R15: 1ffff11003548087 wg_ratelimiter_gc_entries+0x3a6/0x450 drivers/net/wireguard/ratelimiter.c:78 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ---------------- Code disassembly (best guess): 0: c8 48 83 c0 enter $0x8348,$0xc0 4: 9c pushf 5: 79 40 jns 0x47 7: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp) e: e0 45 10: 4a c7 04 2b 00 00 00 movq $0x0,(%rbx,%r13,1) 17: 00 18: 4a c7 44 2b 08 00 00 movq $0x0,0x8(%rbx,%r13,1) 1f: 00 00 21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 28: 00 00 * 2a: 48 3b 84 24 c0 00 00 cmp 0xc0(%rsp),%rax <-- trapping instruction 31: 00 32: 0f 85 58 02 00 00 jne 0x290 38: 48 8d 65 d8 lea -0x28(%rbp),%rsp 3c: 5b pop %rbx 3d: 41 5c pop %r12 3f: 41 rex.B