BUG: workqueue lockup - pool cpus=0 node=0 flags=0x2 nice=0 stuck for 41s! Showing busy workqueues and worker pools: workqueue events: flags=0x100 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=13 refcnt=14 in-flight: 1164:nsim_fib_event_work for 104s ,4810:nsim_fib_event_work for 103s pending: 2*nsim_dev_hwstats_traffic_work, vmstat_shepherd, psi_avgs_work, 4*ovs_dp_masks_rebalance, 3*psi_avgs_work pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=7 refcnt=8 in-flight: 4795:reg_todo for 96s pending: 5*nsim_dev_hwstats_traffic_work, psi_avgs_work workqueue events_unbound: flags=0x2 pwq 8: cpus=0-1 flags=0x6 nice=0 active=14 refcnt=15 in-flight: 5171:cfg80211_wiphy_work for 97s cfg80211_wiphy_work ,1290:cfg80211_wiphy_work for 85s cfg80211_wiphy_work ,14:cfg80211_wiphy_work for 102s cfg80211_wiphy_work ,1383:cfg80211_wiphy_work for 102s cfg80211_wiphy_work ,40:cfg80211_wiphy_work for 102s cfg80211_wiphy_work pending: toggle_allocation_gate, 2*nsim_dev_trap_report_work, 2*macvlan_process_broadcast pwq 8: cpus=0-1 flags=0x6 nice=0 active=23 refcnt=24 in-flight: 58:cfg80211_wiphy_work for 92s cfg80211_wiphy_work ,48:cfg80211_wiphy_work for 100s cfg80211_wiphy_work ,5017:cfg80211_wiphy_work for 101s cfg80211_wiphy_work ,931:cfg80211_wiphy_work for 74s cfg80211_wiphy_work ,12:nsim_dev_trap_report_work for 8s pending: 3*macvlan_process_broadcast, cfg80211_wiphy_work, 2*macvlan_process_broadcast, 2*nsim_dev_trap_report_work, macvlan_process_broadcast, nsim_dev_trap_report_work, flush_memcg_stats_dwork, nsim_dev_trap_report_work, macvlan_process_broadcast workqueue events_power_efficient: flags=0x82 pwq 8: cpus=0-1 flags=0x6 nice=0 active=4 refcnt=5 pending: fb_flashcursor, 3*check_lifetime pwq 8: cpus=0-1 flags=0x6 nice=0 active=9 refcnt=10 in-flight: 6294:gc_worker for 6s ,6293:neigh_periodic_work for 54s ,5250:crda_timeout_work for 69s pending: reg_check_chans_work, neigh_managed_work, check_lifetime, wg_ratelimiter_gc_entries, hash_mac4_gc, neigh_managed_work workqueue events_dfl_long: flags=0x2 pwq 8: cpus=0-1 flags=0x6 nice=0 active=6 refcnt=7 pending: 6*defense_work_handler workqueue mm_percpu_wq: flags=0x108 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: vmstat_update workqueue ipv6_addrconf: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=11 MAYDAY in-flight: 2823(RESCUER):addrconf_dad_work for 94s inactive: 3*addrconf_dad_work, 2*addrconf_verify_work workqueue bat_events: flags=0x6000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=44 MAYDAY in-flight: 2855(RESCUER):batadv_tt_purge for 2s pending: mayday_cursor_func inactive: 2*batadv_tt_purge, batadv_dat_purge, batadv_bla_periodic_work, batadv_iv_send_outstanding_bat_ogm_packet, 5*batadv_mcast_mla_update, 8*batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig, 4*batadv_iv_send_outstanding_bat_ogm_packet, 4*batadv_purge_orig, 2*batadv_iv_send_outstanding_bat_ogm_packet, batadv_tt_purge, 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 workqueue hci3: flags=0x20012 pwq 9: cpus=0-1 node=0 flags=0x4 nice=-20 active=1 refcnt=4 in-flight: 4709:hci_cmd_sync_work for 29s workqueue hci4: flags=0x20012 pwq 9: cpus=0-1 node=0 flags=0x4 nice=-20 active=1 refcnt=4 in-flight: 4713:hci_cmd_sync_work for 24s 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=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_tx_worker, 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=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_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=0x2 nice=0 active=3 refcnt=4 in-flight: 4794:wg_packet_encrypt_worker for 53s wg_packet_encrypt_worker pending: 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=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_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=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg2: 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-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2 in-flight: 4817:wg_packet_encrypt_worker for 4s workqueue wg-crypt-wg0: flags=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_tx_worker, 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=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_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=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue bond1: flags=0x2000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=6 MAYDAY pending: bond_mii_monitor inactive: bond_3ad_state_machine_handler workqueue bond2: flags=0x2000a pwq 8: cpus=0-1 flags=0x6 nice=0 active=1 refcnt=6 MAYDAY pending: bond_mii_monitor inactive: bond_alb_monitor 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=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-crypt-wg1: flags=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=4 refcnt=5 in-flight: 4468:wg_packet_decrypt_worker for 51s wg_packet_decrypt_worker pending: 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=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg0: flags=0x124 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: 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=0x2 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg1: flags=0x124 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg1: flags=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker workqueue wg-kex-wg2: flags=0x124 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=1 refcnt=2 pending: wg_packet_handshake_receive_worker workqueue wg-crypt-wg2: flags=0x128 pwq 2: cpus=0 node=0 flags=0x2 nice=0 active=3 refcnt=4 pending: wg_packet_encrypt_worker, wg_packet_decrypt_worker, wg_packet_tx_worker pool 2: cpus=0 node=0 flags=0x2 nice=0 hung=41s workers=8 manager: 4894 idle: 4809 10 9 pool 6: cpus=1 node=0 flags=0x0 nice=0 hung=0s workers=8 idle: 4802 4833 26 4887 24 1092 pool 8: cpus=0-1 flags=0x6 nice=0 hung=0s workers=14 manager: 6296 pool 9: cpus=0-1 node=0 flags=0x4 nice=-20 hung=0s workers=8 idle: 4722 51 4721 4719 4720 4716 Showing backtraces of busy workers in stalled worker pools: pool 2: task:kworker/0:3 state:R running task stack:0 pid:4468 tgid:4468 ppid:2 task_flags:0x4208060 flags:0x20000010 Workqueue: wg-crypt-wg1 wg_packet_decrypt_worker Call trace: __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T) context_switch kernel/sched/core.c:5533 [inline] __schedule+0x135c/0x2b00 kernel/sched/core.c:7284 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7463 preempt_schedule+0x60/0x78 kernel/sched/core.c:7487 __local_bh_enable_ip+0x16c/0x234 kernel/softirq.c:480 local_bh_enable include/linux/bottom_half.h:33 [inline] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline] kernel_neon_begin+0x29c/0x400 arch/arm64/kernel/fpsimd.c:1924 class_ksimd_constructor arch/arm64/include/asm/simd.h:48 [inline] poly1305_blocks+0x110/0x204 lib/crypto/arm64/poly1305.h:30 poly1305_update+0x168/0x39c lib/crypto/poly1305.c:59 chacha20poly1305_crypt_sg_inplace+0x888/0xc30 lib/crypto/chacha20poly1305.c:304 chacha20poly1305_decrypt_sg_inplace+0x6c/0x94 lib/crypto/chacha20poly1305.c:353 decrypt_packet drivers/net/wireguard/receive.c:278 [inline] wg_packet_decrypt_worker+0x490/0xa00 drivers/net/wireguard/receive.c:501 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 pool 2: task:kworker/0:4 state:R running task stack:0 pid:4794 tgid:4794 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: wg-crypt-wg2 wg_packet_encrypt_worker Call trace: __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T) context_switch kernel/sched/core.c:5533 [inline] __schedule+0x135c/0x2b00 kernel/sched/core.c:7284 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7463 preempt_schedule kernel/sched/core.c:7487 [inline] class_preempt_destructor include/linux/preempt.h:496 [inline] try_to_wake_up+0x5f8/0xdc4 kernel/sched/core.c:4445 wake_up_process+0x18/0x24 kernel/sched/core.c:4570 process_one_work kernel/workqueue.c:3364 [inline] process_scheduled_works+0x744/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 pool 2: task:kworker/0:2 state:R running task stack:0 pid:1164 tgid:1164 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: events nsim_fib_event_work Call trace: __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T) context_switch kernel/sched/core.c:5533 [inline] __schedule+0x135c/0x2b00 kernel/sched/core.c:7284 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7463 preempt_schedule+0x60/0x78 kernel/sched/core.c:7487 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] _raw_spin_unlock_irqrestore+0x94/0x98 kernel/locking/spinlock.c:221 __debug_check_no_obj_freed lib/debugobjects.c:1180 [inline] debug_check_no_obj_freed+0x2c8/0x3a4 lib/debugobjects.c:1201 __free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x470/0xbd0 mm/page_alloc.c:2962 free_frozen_pages+0x14/0x20 mm/page_alloc.c:2999 __free_slab+0x11c/0x1b4 mm/slub.c:3528 free_slab+0x2c/0x154 mm/slub.c:3562 discard_slab+0x48/0x90 mm/slub.c:3568 __slab_free+0x1a0/0x1d0 mm/slub.c:5823 ___cache_free+0x80/0x94 mm/slub.c:6581 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb4/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x118/0x124 mm/kasan/quarantine.c:286 __kasan_kmalloc+0x2c/0xb4 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x2f4/0x5fc mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] nsim_fib6_rt_create drivers/net/netdevsim/fib.c:547 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:752 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event+0xa04/0x60c4 drivers/net/netdevsim/fib.c:889 nsim_fib_event_work+0x1d8/0x320 drivers/net/netdevsim/fib.c:1493 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 pool 2: task:kworker/0:6 state:R running task stack:0 pid:4810 tgid:4810 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: events nsim_fib_event_work Call trace: __switch_to+0x2b4/0x6e4 arch/arm64/kernel/process.c:775 (T) context_switch kernel/sched/core.c:5533 [inline] __schedule+0x135c/0x2b00 kernel/sched/core.c:7284 preempt_schedule_common+0xd4/0x190 kernel/sched/core.c:7463 preempt_schedule+0x60/0x78 kernel/sched/core.c:7487 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline] _raw_spin_unlock_irqrestore+0x94/0x98 kernel/locking/spinlock.c:221 __debug_check_no_obj_freed lib/debugobjects.c:1180 [inline] debug_check_no_obj_freed+0x2c8/0x3a4 lib/debugobjects.c:1201 __free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x470/0xbd0 mm/page_alloc.c:2962 free_frozen_pages+0x14/0x20 mm/page_alloc.c:2999 __free_slab+0x11c/0x1b4 mm/slub.c:3528 free_slab+0x2c/0x154 mm/slub.c:3562 discard_slab+0x48/0x90 mm/slub.c:3568 __slab_free+0x1a0/0x1d0 mm/slub.c:5823 ___cache_free+0x80/0x94 mm/slub.c:6581 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb4/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x118/0x124 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x2c/0x88 mm/kasan/common.c:361 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] __kmalloc_cache_noprof+0x274/0x5fc mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] nsim_fib6_rt_nh_add+0x64/0x214 drivers/net/netdevsim/fib.c:500 nsim_fib6_rt_create drivers/net/netdevsim/fib.c:562 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:752 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event+0xb08/0x60c4 drivers/net/netdevsim/fib.c:889 nsim_fib_event_work+0x1d8/0x320 drivers/net/netdevsim/fib.c:1493 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854