Public bug reported:

Summary

Disabling Wi-Fi (rfkill via NetworkManager) sometimes hangs the system's
networking; this leads to a load of weird symptoms - "ip addr" hangs,
docker containers can't exit, sudo stops working, and so on. I had to
reboot to recover.

I toggle wifi a few times a day, because my docking station has a wired
ethernet connection.

Suspected Cause

The rfkill write path holds "rtnl_lock" and "trans_pcie->mutex", then
waits in "synchronize_irq()". The threaded MSI-X handler is blocked on
"trans_pcie->mutex" in "iwl_pcie_handle_rfkill_irq()" so
"synchronize_irq()" never returns. Every subsequent "rtnl_lock" user
then hangs.

Key log excerpts

Wi-Fi disabled at 11:45:08

Nov 10 11:45:08 kernel: wlp0s20f3: deauthenticating from 5c:5b:35:f7:f5:ba by 
local choice (Reason: 3=DEAUTH_LEAVING)
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: timeout waiting for FW reset ACK 
(inta_hw=0x0)
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: Transport status: 0x0000004A, 
valid: 6
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: Loaded firmware version: 
86.fb5c9aeb.0 so-a0-gf-a0-86.ucode
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: 0x00000084 | NMI_INTERRUPT_UNKNOWN
[...]
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: Transport status: 0x0000004A, 
valid: 7
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: 0x20000074 | ADVANCED_SYSASSERT
[...]
Nov 10 11:45:08 kernel: iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 
4 fired (delay=0ms).


IRQ thread

Nov 10 11:47:56 kernel: INFO: task irq/208-iwlwifi:1364 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel:       Tainted: P           O       6.8.0-147-generic 
#147-Ubuntu
Nov 10 11:47:56 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" 
disables this message.
Nov 10 11:47:56 kernel: task:irq/208-iwlwifi state:D stack:0     pid:1364  
tgid:1364  ppid:2      flags:0x00004000
Nov 10 11:47:56 kernel: Call Trace:
Nov 10 11:47:56 kernel:  <TASK>
Nov 10 11:47:56 kernel:  __schedule+0x27c/0x6b0
Nov 10 11:47:56 kernel:  schedule+0x33/0x110
Nov 10 11:47:56 kernel:  schedule_preempt_disabled+0x15/0x30
Nov 10 11:47:56 kernel:  __mutex_lock.constprop.0+0x47f/0x790
Nov 10 11:47:56 kernel:  __mutex_lock_slowpath+0x13/0x20
Nov 10 11:47:56 kernel:  mutex_lock+0x3c/0x50
Nov 10 11:47:56 kernel:  iwl_pcie_handle_rfkill_irq+0x2b/0x200 [iwlwifi]
Nov 10 11:47:56 kernel:  iwl_pcie_irq_msix_handler+0x420/0x660 [iwlwifi]
Nov 10 11:47:56 kernel:  ? __pfx_irq_thread_fn+0x10/0x10
Nov 10 11:47:56 kernel:  irq_thread_fn+0x21/0x70
Nov 10 11:47:56 kernel:  irq_thread+0xf8/0x1c0
Nov 10 11:47:56 kernel:  ? __pfx_irq_thread_dtor+0x10/0x10
Nov 10 11:47:56 kernel:  ? __pfx_irq_thread+0x10/0x10
Nov 10 11:47:56 kernel:  kthread+0xef/0x120
Nov 10 11:47:56 kernel:  ? __pfx_kthread+0x10/0x10
Nov 10 11:47:56 kernel:  ret_from_fork+0x44/0x70
Nov 10 11:47:56 kernel:  ? __pfx_kthread+0x10/0x10
Nov 10 11:47:56 kernel:  ret_from_fork_asm+0x1b/0x30
Nov 10 11:47:56 kernel:  </TASK>


NetworkManager (rfkill write, holds rtnl_lock and trans_pcie->mutex)

Nov 10 11:47:56 kernel: INFO: task NetworkManager:2700 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel:       Tainted: P           O       6.8.0-147-generic 
#147-Ubuntu
Nov 10 11:47:56 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" 
disables this message.
Nov 10 11:47:56 kernel: task:NetworkManager  state:D stack:0     pid:2700  
tgid:2700  ppid:1      flags:0x00004002
Nov 10 11:47:56 kernel: Call Trace:
Nov 10 11:47:56 kernel:  <TASK>
Nov 10 11:47:56 kernel:  __schedule+0x27c/0x6b0
Nov 10 11:47:56 kernel:  schedule+0x33/0x110
Nov 10 11:47:56 kernel:  __synchronize_irq+0xa4/0xe0
Nov 10 11:47:56 kernel:  ? __pfx_autoremove_wake_function+0x10/0x10
Nov 10 11:47:56 kernel:  synchronize_irq+0x1b/0x30
Nov 10 11:47:56 kernel:  iwl_pcie_synchronize_irqs+0x4c/0xa0 [iwlwifi]
Nov 10 11:47:56 kernel:  _iwl_trans_pcie_gen2_stop_device+0x32e/0x360 [iwlwifi]
Nov 10 11:47:56 kernel:  iwl_trans_pcie_gen2_stop_device+0x59/0x90 [iwlwifi]
Nov 10 11:47:56 kernel:  iwl_mvm_stop_device+0x5c/0xa0 [iwlmvm]
Nov 10 11:47:56 kernel:  __iwl_mvm_mac_stop+0x62/0x180 [iwlmvm]
Nov 10 11:47:56 kernel:  iwl_mvm_mac_stop+0xa0/0xf0 [iwlmvm]
Nov 10 11:47:56 kernel:  drv_stop+0x45/0x120 [mac80211]
Nov 10 11:47:56 kernel:  ieee80211_stop_device+0x76/0x90 [mac80211]
Nov 10 11:47:56 kernel:  ieee80211_do_stop+0x688/0xb30 [mac80211]
Nov 10 11:47:56 kernel:  ? __pfx_wait_rcu_exp_gp+0x10/0x10
Nov 10 11:47:56 kernel:  ieee80211_stop+0x59/0x190 [mac80211]
Nov 10 11:47:56 kernel:  __dev_close_many+0xab/0x140
Nov 10 11:47:56 kernel:  dev_close_many+0x99/0x170
Nov 10 11:47:56 kernel:  ? ieee80211_sdata_stop+0x1e/0x40 [mac80211]
Nov 10 11:47:56 kernel:  dev_close+0x70/0x90
Nov 10 11:47:56 kernel:  cfg80211_shutdown_all_interfaces+0x50/0x100 [cfg80211]
Nov 10 11:47:56 kernel:  cfg80211_rfkill_set_block+0x2e/0x50 [cfg80211]
Nov 10 11:47:56 kernel:  rfkill_set_block+0x97/0x180
Nov 10 11:47:56 kernel:  rfkill_fop_write+0x15e/0x220
Nov 10 11:47:56 kernel:  vfs_write+0xfd/0x470
Nov 10 11:47:56 kernel:  ? __bpf_prog_exit_recur+0x31/0x70
Nov 10 11:47:56 kernel:  ? bpf_trampoline_6442578309+0x65/0xbc
Nov 10 11:47:56 kernel:  ksys_write+0xc9/0x100
Nov 10 11:47:56 kernel:  __x64_sys_write+0x19/0x30
Nov 10 11:47:56 kernel:  bpf_trampoline_6442568943+0x71/0x118
Nov 10 11:47:56 kernel:  __x64_sys_write+0x5/0x30
Nov 10 11:47:56 kernel:  ? x64_sys_call+0x7e/0x25a0
Nov 10 11:47:56 kernel:  do_syscall_64+0x87/0x180
Nov 10 11:47:56 kernel:  ? update_blocked_averages+0x172/0x300
Nov 10 11:47:56 kernel:  ? raw_spin_rq_lock_nested+0x1d/0x90
Nov 10 11:47:56 kernel:  ? sched_balance_newidle+0x3e7/0x570
Nov 10 11:47:56 kernel:  ? psi_group_change+0x25a/0x570
Nov 10 11:47:56 kernel:  ? psi_task_switch+0x130/0x3a0
Nov 10 11:47:56 kernel:  ? finish_task_switch.isra.0+0x93/0x300
Nov 10 11:47:56 kernel:  ? __schedule+0x284/0x6b0
Nov 10 11:47:56 kernel:  ? _raw_spin_lock_irqsave+0xe/0x20
Nov 10 11:47:56 kernel:  ? finish_wait+0x5b/0x80
Nov 10 11:47:56 kernel:  ? jbd2_log_wait_commit+0x110/0x150
Nov 10 11:47:56 kernel:  ? __pfx_autoremove_wake_function+0x10/0x10
Nov 10 11:47:56 kernel:  ? rseq_get_rseq_cs+0x22/0x280
Nov 10 11:47:56 kernel:  ? file_check_and_advance_wb_err+0x36/0xe0
Nov 10 11:47:56 kernel:  ? rseq_ip_fixup+0x90/0x170
Nov 10 11:47:56 kernel:  ? arch_exit_to_user_mode_prepare.isra.0+0x9c/0xe0
Nov 10 11:47:56 kernel:  ? syscall_exit_to_user_mode+0x43/0x1e0
Nov 10 11:47:56 kernel:  ? do_syscall_64+0x94/0x180
Nov 10 11:47:56 kernel:  ? do_syscall_64+0x94/0x180
Nov 10 11:47:56 kernel:  ? irqentry_exit_to_user_mode+0x38/0x1e0
Nov 10 11:47:56 kernel:  ? irqentry_exit+0x43/0x50
Nov 10 11:47:56 kernel:  entry_SYSCALL_64_after_hwframe+0x78/0x80
Nov 10 11:47:56 kernel: RIP: 0033:0x7d08e391c87d
Nov 10 11:47:56 kernel: RSP: 002b:00007ffd0293f080 EFLAGS: 00000293 ORIG_RAX: 
0000000000000001
Nov 10 11:47:56 kernel: RAX: ffffffffffffffda RBX: 000000000000001e RCX: 
00007d08e391c87d
Nov 10 11:47:56 kernel: RDX: 0000000000000008 RSI: 00007ffd0293f0c8 RDI: 
000000000000001e
Nov 10 11:47:56 kernel: RBP: 00007ffd0293f0a0 R08: 0000000000000000 R09: 
0000000000000007
Nov 10 11:47:56 kernel: R10: 0000000000000000 R11: 0000000000000293 R12: 
0000000000000000
Nov 10 11:47:56 kernel: R13: 0000000000000000 R14: 000060cca3967a70 R15: 
000060cca39219e0
Nov 10 11:47:56 kernel:  </TASK>


Hung-task reports
All tasks other than the two above are blocked in `rtnl_lock` or `netlink_dump` 
(full traces available).

Nov 10 11:47:56 kernel: INFO: task irq/208-iwlwifi:1364 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task systemd-resolve:2371 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task tokio-rt-worker:2767 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task tokio-rt-worker:756360 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task NetworkManager:2700 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task wpa_supplicant:2714 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task lldpd:3151 blocked for more than 122 seconds.
Nov 10 11:47:56 kernel: INFO: task DNS Res~r #1300:759962 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task ThreadPoolForeg:326679 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: INFO: task kworker/17:1:634281 blocked for more than 
122 seconds.
Nov 10 11:47:56 kernel: Future hung task reports are suppressed, see sysctl 
kernel.hung_task_warnings


An earlier occurrence - Same kernel, identical traces

Nov 06 09:13:36 kernel: INFO: task irq/208-iwlwifi:1763 blocked for more than 
122 seconds.
Nov 06 09:13:36 kernel: INFO: task NetworkManager:3289 blocked for more than 
122 seconds.
Nov 06 09:13:36 kernel: INFO: task launcher:217357 blocked for more than 122 
seconds.
Nov 06 09:13:36 kernel: INFO: task Socket Thread:10106 blocked for more than 
122 seconds.
Nov 06 09:13:36 kernel: INFO: task DNS Res~r #7428:936686 blocked for more than 
122 seconds.
Nov 06 09:13:36 kernel: INFO: task DartWorker:937395 blocked for more than 122 
seconds.
Nov 06 09:13:36 kernel: INFO: task tokio-rt-worker:1425767 blocked for more 
than 122 seconds.
Nov 06 09:13:36 kernel: INFO: task tokio-rt-worker:1425918 blocked for more 
than 122 seconds.
Nov 06 09:13:36 kernel: INFO: task tokio-rt-worker:2662163 blocked for more 
than 122 seconds.
Nov 06 09:13:36 kernel: INFO: task tokio-rt-worker:649304 blocked for more than 
122 seconds.
Nov 06 09:13:36 kernel: Future hung task reports are suppressed, see sysctl 
kernel.hung_task_warnings

Thanks for taking the time to read my bug report!

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-149-generic 6.8.0-149.149
ProcVersionSignature: Ubuntu 6.8.0-149.149-generic 6.8.12
Uname: Linux 6.8.0-149-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  mtandy     6006 F.... wireplumber
 /dev/snd/seq:        mtandy     6001 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 11 17:49:41 2026
InstallationDate: Installed on 2022-10-03 (1500 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: Dell Inc. Precision 5570
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-149-generic 
root=/dev/mapper/vgubuntu-root ro
RelatedPackageVersions:
 linux-restricted-modules-6.8.0-149-generic N/A
 linux-backports-modules-6.8.0-149-generic  N/A
 linux-firmware                             20240318.git3b128b60.0ubuntu3.1
SourcePackage: linux
UpgradeStatus: Upgraded to noble on 2026-03-16 (240 days ago)
dmi.bios.date: 04/23/2026
dmi.bios.release: 1.41
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.41.0
dmi.board.name: 02JH00
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.ec.firmware.release: 1.20
dmi.modalias: 
dmi:bvnDellInc.:bvr1.41.0:bd04/23/2026:br1.41:efr1.20:svnDellInc.:pnPrecision5570:pvr:rvnDellInc.:rn02JH00:rvrA00:cvnDellInc.:ct10:cvr:sku0B1A:
dmi.product.family: Precision
dmi.product.name: Precision 5570
dmi.product.sku: 0B1A
dmi.sys.vendor: Dell Inc.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173996

Title:
  iwlwifi: pcie: gen2 stop_device deadlocks against rfkill IRQ thread on
  trans_pcie->mutex

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2173996/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to