BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 148s! Showing busy workqueues and worker pools: workqueue events: flags=0x100 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=17 refcnt=18 in-flight: 5926:xfrm_state_gc_task pending: 7*nsim_dev_hwstats_traffic_work, psi_avgs_work, vmstat_shepherd, xfrm_state_gc_task, 4*ovs_dp_masks_rebalance, psi_avgs_work, delayed_vfree_work pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=8 refcnt=9 pending: 3*nsim_dev_hwstats_traffic_work, 2*ovs_dp_masks_rebalance, delayed_vfree_work, switchdev_deferred_process_work, rht_deferred_worker workqueue events_long: flags=0x100 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=5 refcnt=6 pending: 5*defense_work_handler pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: 2*defense_work_handler, br_multicast_gc_work workqueue events_unbound: flags=0x2 pwq 8: cpus=0-1 flags=0x6 nice=0 active=2 refcnt=3 in-flight: 6092:cfg80211_wiphy_work cfg80211_wiphy_work pwq 8: cpus=0-1 flags=0x6 nice=0 active=27 refcnt=28 in-flight: 6096:toggle_allocation_gate ,6109:cfg80211_wiphy_work cfg80211_wiphy_work ,6105:nsim_dev_trap_report_work ,1139:cfg80211_wiphy_work cfg80211_wiphy_work ,6089:nsim_dev_trap_report_work ,993:cfg80211_wiphy_work cfg80211_wiphy_work ,6103:crng_reseed ,6110:nsim_dev_trap_report_work ,36:cfg80211_wiphy_work cfg80211_wiphy_work ,1155:nsim_dev_trap_report_work ,6087:cfg80211_wiphy_work cfg80211_wiphy_work ,6083:fsnotify_mark_destroy_workfn ,6098:fsnotify_connector_destroy_workfn ,13:nsim_dev_trap_report_work ,169:nsim_dev_trap_report_work pending: 2*macvlan_process_broadcast, nsim_dev_trap_report_work, flush_memcg_stats_dwork, 3*nsim_dev_trap_report_work workqueue events_freezable: flags=0x104 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: update_balloon_stats_func workqueue events_power_efficient: flags=0x180 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=7 refcnt=8 pending: do_cache_clean, neigh_managed_work, neigh_periodic_work, 4*check_lifetime pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=9 refcnt=10 in-flight: 24:reg_check_chans_work pending: gc_worker, wg_ratelimiter_gc_entries, 3*nf_flow_offload_work_gc, neigh_periodic_work, neigh_managed_work, hash_netiface6_gc workqueue rcu_gp: flags=0x108 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: srcu_invoke_callbacks pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 in-flight: 29:process_srcu workqueue mm_percpu_wq: flags=0x108 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=3 MAYDAY pending: vmstat_update workqueue ipv6_addrconf: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=9 in-flight: 77:addrconf_verify_work inactive: 5*addrconf_verify_work workqueue bat_events: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=27 in-flight: 8314:batadv_tt_purge inactive: 4*batadv_iv_send_outstanding_bat_ogm_packet, 2*batadv_purge_orig, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, batadv_dat_purge, batadv_bla_periodic_work, batadv_tt_purge, batadv_dat_purge, 2*batadv_bla_periodic_work, batadv_dat_purge, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_tt_purge, 3*batadv_mcast_mla_update, batadv_iv_send_outstanding_bat_ogm_packet workqueue wg-kex-wg1: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=2 refcnt=3 in-flight: 12:wg_packet_handshake_send_worker pending: wg_packet_handshake_send_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=2 refcnt=3 in-flight: 6094:wg_packet_handshake_send_worker pending: wg_packet_handshake_send_worker workqueue wg-kex-wg0: flags=0x124 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=2 refcnt=3 in-flight: 5885:wg_packet_handshake_receive_worker wg_packet_handshake_receive_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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_tx_worker, wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x124 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=2 refcnt=3 in-flight: 795:wg_packet_handshake_receive_worker 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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_tx_worker, wg_packet_encrypt_worker workqueue wg-kex-wg2: flags=0x124 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=2 refcnt=3 in-flight: 5882:wg_packet_handshake_receive_worker pending: wg_packet_handshake_receive_worker workqueue wg-kex-wg2: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=2 refcnt=3 in-flight: 48:wg_packet_handshake_send_worker pending: wg_packet_handshake_send_worker workqueue wg-crypt-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue hci0: flags=0x20012 pwq 9: cpus=0-1 node=0 flags=0x4 nice=-20 active=1 refcnt=4 in-flight: 5142:hci_cmd_sync_work workqueue wg-kex-wg0: flags=0x124 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=2 refcnt=3 in-flight: 5898:wg_packet_handshake_receive_worker pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg0: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_tx_worker, wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x124 pwq 6: cpus=1 node=0 flags=0x2 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=0x128 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=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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue hci5: flags=0x20012 pwq 9: cpus=0-1 node=0 flags=0x4 nice=-20 active=1 refcnt=4 in-flight: 5820:hci_cmd_sync_work workqueue wg-kex-wg0: flags=0x124 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 pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg0: flags=0x128 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-crypt-wg1: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=3 refcnt=4 pending: wg_packet_decrypt_worker, wg_packet_tx_worker, wg_packet_encrypt_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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=149s workers=7 idle: 5929 5914 10 5835 979 9 pool 6: cpus=1 node=0 flags=0x2 nice=0 hung=2s workers=7 manager: 5822 pool 8: cpus=0-1 flags=0x6 nice=0 hung=0s workers=22 manager: 8313 pool 9: cpus=0-1 node=0 flags=0x4 nice=-20 hung=0s workers=4 idle: 5832 5828 Showing backtraces of running workers in stalled CPU-bound worker pools: pool 2: task:kworker/0:5 state:R running task stack:24616 pid:5926 tgid:5926 ppid:2 task_flags:0x4208060 flags:0x00080000 Workqueue: events xfrm_state_gc_task Call Trace: context_switch kernel/sched/core.c:5295 [inline] __schedule+0x15dd/0x52d0 kernel/sched/core.c:6908 __schedule_loop kernel/sched/core.c:6990 [inline] schedule+0x164/0x360 kernel/sched/core.c:7005 synchronize_rcu_expedited+0x584/0x770 kernel/rcu/tree_exp.h:976 xfrm_state_gc_task+0xdc/0x950 net/xfrm/xfrm_state.c:633 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245