BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 49s! BUG: workqueue lockup - pool cpus=1 node=0 flags=0x2 nice=0 stuck for 47s! Showing busy workqueues and worker pools: workqueue events: flags=0x100 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=25 refcnt=26 in-flight: 857:nsim_fib_event_work for 53s nsim_fib_event_work ,4808:nsim_fib_event_work for 48s ,9:nsim_fib_event_work for 46s pending: 3*nsim_dev_hwstats_traffic_work, vmstat_shepherd, 2*rht_deferred_worker, 3*psi_avgs_work, 8*ovs_dp_masks_rebalance, rht_deferred_worker, 2*nsim_fib_event_work, delayed_vfree_work pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=6 refcnt=7 pending: psi_avgs_work, nsim_dev_hwstats_traffic_work, free_obj_work, drm_fb_helper_damage_work, 2*ovs_dp_masks_rebalance workqueue events_long: flags=0x100 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=7 refcnt=8 pending: 7*defense_work_handler pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: 3*defense_work_handler workqueue events_unbound: flags=0x2 pwq 8: cpus=0-1 flags=0x6 nice=0 active=16 refcnt=17 in-flight: 39:cfg80211_wiphy_work for 51s cfg80211_wiphy_work ,3617:cfg80211_wiphy_work for 51s ,1879:cfg80211_wiphy_work for 51s cfg80211_wiphy_work pending: cfg80211_wiphy_work, 7*macvlan_process_broadcast, nsim_dev_trap_report_work, macvlan_process_broadcast, nsim_dev_trap_report_work pwq 8: cpus=0-1 flags=0x6 nice=0 active=11 refcnt=12 in-flight: 40:cfg80211_wiphy_work for 50s ,1125:cfg80211_wiphy_work for 50s ,254:cfg80211_wiphy_work for 52s cfg80211_wiphy_work pending: toggle_allocation_gate, cfg80211_wiphy_work, nsim_dev_trap_report_work, cfg80211_wiphy_work, nsim_dev_trap_report_work, flush_memcg_stats_dwork, crng_reseed workqueue events_power_efficient: flags=0x182 pwq 8: cpus=0-1 flags=0x6 nice=0 active=5 refcnt=6 in-flight: 1319:gc_worker for 2s pending: crda_timeout_work, neigh_managed_work, neigh_periodic_work, do_cache_clean pwq 8: cpus=0-1 flags=0x6 nice=0 active=4 refcnt=5 pending: neigh_managed_work, wg_ratelimiter_gc_entries, fb_flashcursor, neigh_periodic_work workqueue netns: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=4 in-flight: 15:cleanup_net for 55s 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=2 pending: vmstat_update workqueue writeback: flags=0x4a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=4 MAYDAY in-flight: 33(RESCUER):wb_workfn for 10s pending: mayday_cursor_func workqueue mld: flags=0x40108 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=137 pending: mld_dad_work inactive: mld_dad_work, 3*mld_ifc_work, 8*mld_dad_work, mld_ifc_work, 13*mld_dad_work, mld_ifc_work, 108*mld_dad_work pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=58 in-flight: 4825:mld_dad_work for 48s inactive: 3*mld_ifc_work, 2*mld_dad_work, mld_ifc_work, 2*mld_dad_work, 4*mld_ifc_work, mld_dad_work, 2*mld_ifc_work, 3*mld_dad_work, 2*mld_ifc_work, mld_dad_work, 3*mld_ifc_work, mld_dad_work, 2*mld_ifc_work, mld_dad_work, 6*mld_ifc_work, mld_dad_work, 5*mld_ifc_work, mld_dad_work, 11*mld_ifc_work, 4*mld_dad_work workqueue ipv6_addrconf: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=15 MAYDAY in-flight: 2785(RESCUER):addrconf_dad_work for 0s pending: mayday_cursor_func inactive: 9*addrconf_dad_work workqueue bat_events: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=51 MAYDAY in-flight: 2820(RESCUER):batadv_tt_purge for 6s pending: mayday_cursor_func inactive: 3*batadv_tt_purge, 5*batadv_mcast_mla_update, 7*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 4*batadv_iv_send_outstanding_bat_ogm_packet, 4*batadv_purge_orig, 5*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_dat_purge, batadv_bla_periodic_work, batadv_mcast_mla_update, 2*batadv_tt_purge 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=1 refcnt=2 pending: wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_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=2 refcnt=3 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 in-flight: 1488:wg_packet_decrypt_worker for 49s pending: wg_packet_encrypt_worker workqueue wg-crypt-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_tx_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-kex-wg1: flags=0x6 pwq 8: cpus=0-1 flags=0x6 nice=0 active=2 refcnt=3 pending: 2*wg_packet_handshake_send_worker workqueue wg-crypt-wg1: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_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-crypt-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-crypt-wg0: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_tx_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 in-flight: 26:wg_packet_encrypt_worker for 49s pending: wg_packet_encrypt_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=2 refcnt=3 pending: wg_packet_tx_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_decrypt_worker, wg_packet_encrypt_worker workqueue wg-crypt-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_tx_worker, wg_packet_encrypt_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=0x128 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-crypt-wg1: 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 pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: 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_decrypt_worker, wg_packet_encrypt_worker pwq 6: cpus=1 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker pool 2: cpus=0 node=0 flags=0x0 nice=0 hung=49s workers=8 idle: 4301 4764 4771 11 5504 pool 6: cpus=1 node=0 flags=0x2 nice=0 hung=47s workers=5 manager: 4782 idle: 24 pool 8: cpus=0-1 flags=0x6 nice=0 hung=0s workers=9 manager: 12 Showing backtraces of busy workers in stalled worker pools: pool 2: task:kworker/0:2 state:R running task stack:0 pid:857 tgid:857 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: events nsim_fib_event_work Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 irq_work_queue+0xa0/0xa4 kernel/irq_work.c:125 __rhashtable_insert_fast include/linux/rhashtable.h:851 [inline] rhashtable_insert_fast include/linux/rhashtable.h:885 [inline] nsim_fib6_rt_add drivers/net/netdevsim/fib.c:686 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:759 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event+0x5214/0x5f48 drivers/net/netdevsim/fib.c:889 nsim_fib_event_work+0x1cc/0x30c drivers/net/netdevsim/fib.c:1493 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 pool 2: task:kworker/0:6 state:R running task stack:0 pid:4808 tgid:4808 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: events nsim_fib_event_work Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 irq_work_queue+0xa0/0xa4 kernel/irq_work.c:125 __rhashtable_insert_fast include/linux/rhashtable.h:851 [inline] rhashtable_insert_fast include/linux/rhashtable.h:885 [inline] nsim_fib6_rt_add drivers/net/netdevsim/fib.c:686 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:759 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event+0x5214/0x5f48 drivers/net/netdevsim/fib.c:889 nsim_fib_event_work+0x1cc/0x30c drivers/net/netdevsim/fib.c:1493 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 pool 2: task:kworker/0:0 state:R running task stack:0 pid:9 tgid:9 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: events nsim_fib_event_work Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 irq_work_queue+0xa0/0xa4 kernel/irq_work.c:125 __rhashtable_insert_fast include/linux/rhashtable.h:851 [inline] rhashtable_insert_fast include/linux/rhashtable.h:885 [inline] nsim_fib6_rt_add drivers/net/netdevsim/fib.c:686 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:759 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event+0x5214/0x5f48 drivers/net/netdevsim/fib.c:889 nsim_fib_event_work+0x1cc/0x30c drivers/net/netdevsim/fib.c:1493 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 pool 6: task:kworker/1:4 state:R running task stack:0 pid:4825 tgid:4825 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: mld mld_dad_work Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 __local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:457 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:196 [inline] _raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:214 spin_unlock_bh include/linux/spinlock.h:396 [inline] rt6_uncached_list_add+0x108/0x124 net/ipv6/route.c:146 icmp6_dst_alloc+0x1c4/0x250 net/ipv6/route.c:3359 mld_sendpack+0x670/0xff0 net/ipv6/mcast.c:1844 mld_send_initial_cr+0x234/0x2f8 net/ipv6/mcast.c:2271 mld_dad_work+0x40/0x1d8 net/ipv6/mcast.c:2294 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 pool 6: task:kworker/1:1 state:R running task stack:0 pid:26 tgid:26 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 __local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:457 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:196 [inline] _raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:214 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:377 [inline] wg_packet_encrypt_worker+0x11d4/0x1254 drivers/net/wireguard/send.c:293 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 pool 6: task:kworker/1:2 state:R running task stack:0 pid:1488 tgid:1488 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker Call trace: __switch_to+0x2b0/0x6e0 arch/arm64/kernel/process.c:810 (T) context_switch kernel/sched/core.c:5388 [inline] __schedule+0x1bec/0x2dcc kernel/sched/core.c:7189 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7370 preempt_schedule+0x60/0x78 kernel/sched/core.c:7394 __local_bh_enable_ip+0x20c/0x35c kernel/softirq.c:457 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:196 [inline] _raw_spin_unlock_bh+0x3c/0x4c kernel/locking/spinlock.c:214 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:377 [inline] wg_packet_decrypt_worker+0x21c/0x9c0 drivers/net/wireguard/receive.c:499 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842