BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 30s! Showing busy workqueues and worker pools: workqueue events: flags=0x0 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=7 refcnt=8 in-flight: 13463:nsim_dev_trap_report_work pending: psi_avgs_work, nsim_dev_hwstats_traffic_work, vmstat_shepherd, 2*psi_avgs_work, kfree_rcu_monitor pwq 6: cpus=1 node=0 flags=0x0 nice=0 active=1 refcnt=2 in-flight: 9157:nsim_dev_trap_report_work workqueue events_unbound: flags=0x2 pwq 8: cpus=0-1 flags=0x4 nice=0 active=4 refcnt=5 in-flight: 20252:fsnotify_connector_destroy_workfn fsnotify_connector_destroy_workfn ,16149:fsnotify_mark_destroy_workfn fsnotify_mark_destroy_workfn workqueue rcu_gp: flags=0x8 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: srcu_invoke_callbacks workqueue mm_percpu_wq: flags=0x8 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: vmstat_update workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-crypt-wg1: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=1 refcnt=2 pending: wg_packet_encrypt_worker workqueue wg-crypt-wg0: flags=0x28 pwq 2: cpus=0 node=0 flags=0x0 nice=0 active=2 refcnt=3 pending: wg_packet_encrypt_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-crypt-wg2: flags=0x28 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=30s workers=3 idle: 19000 9 pool 6: cpus=1 node=0 flags=0x0 nice=0 hung=0s workers=4 idle: 18610 17036 6017 pool 8: cpus=0-1 flags=0x4 nice=0 hung=0s workers=7 idle: 14132 18509 16656 18512 12005 Showing backtraces of running workers in stalled CPU-bound worker pools: pool 2: task:kworker/0:0 state:R running task stack:0 pid:13463 tgid:13463 ppid:2 flags:0x00000008 Workqueue: events nsim_dev_trap_report_work Call trace: __switch_to+0x1c8/0x2a0 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5409 [inline] __schedule+0xad8/0x2b14 kernel/sched/core.c:6746 preempt_schedule_common kernel/sched/core.c:6925 [inline] preempt_schedule+0xf4/0x254 kernel/sched/core.c:6949 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x6c/0x84 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:823 [inline] nsim_dev_trap_report_work+0x6c4/0xa40 drivers/net/netdevsim/dev.c:850 process_one_work+0x78c/0x1898 kernel/workqueue.c:3254 process_scheduled_works kernel/workqueue.c:3335 [inline] worker_thread+0x764/0xc24 kernel/workqueue.c:3416 kthread+0x27c/0x300 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860