Bug#1061390: iwlwifi: crash when disabling wifi

2024-01-23 Thread Salvatore Bonaccorso
Control: forcemerge 1058887 -1

Hi Thomas,

On Tue, Jan 23, 2024 at 04:19:18PM +0100, Thomas Goirand wrote:
> Source: linux
> Version: 6.1.69-1
> Severity: important
> 
> Hi,
> 
> In some cases, when I disable wifi with the network manager GUI
> (ie: right click, "Enable Wifi" to disable it), my iwlwifi driver
> crashes, with the crash dump attached to this bug report.
> 
> When this happen, then my network stack is kind of completely
> broken, and I have to reboot.
> 
> Let me know what I can do to improve this bug report. Maybe
> install the debug kernel?
> 
> Cheers,
> 
> Thomas Goirand (zigo)

> [114704.251050] iwlwifi :6f:00.0: RF_KILL bit toggled to disable radio.
> [114704.251053] iwlwifi :6f:00.0: reporting RF_KILL (radio disabled)
> [114704.265509] wlp111s0: deauthenticating from f0:9f:c2:ff:9f:62 by local 
> choice (Reason: 3=DEAUTH_LEAVING)
> [114706.269470] iwlwifi :6f:00.0: fail to flush all tx fifo queues Q 5
> [114706.271154] iwlwifi :6f:00.0: Queue 5 is active on fifo 3 and stuck 
> for 1 ms. SW [5, 6] HW [6, 6] FH TRB=0x080305005
> [114708.273433] iwlwifi :6f:00.0: fail to flush all tx fifo queues Q 5
> [114708.274068] iwlwifi :6f:00.0: Queue 5 is active on fifo 3 and stuck 
> for 1 ms. SW [5, 6] HW [6, 6] FH TRB=0x080305005
> [114708.274125] [ cut here ]
> [114708.274127] WARNING: CPU: 0 PID: 80864 at net/mac80211/sta_info.c:1297 
> __sta_info_destroy_part2+0x12e/0x160 [mac80211]
> [114708.274291] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi 
> snd_seq_device tun ctr ccm rfcomm xt_conntrack xt_MASQUERADE 
> nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_nat 
> nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter 
> br_netfilter bridge stp llc cpufreq_ondemand cpufreq_userspace 
> cpufreq_conservative cpufreq_powersave scsi_transport_iscsi nvme_fabrics cmac 
> algif_hash algif_skcipher af_alg overlay qrtr bnep snd_hda_codec_hdmi 
> snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel 
> soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci 
> snd_sof_xtensa_dsp binfmt_misc snd_sof xfs snd_sof_utils nls_ascii 
> soundwire_bus nls_cp437 snd_soc_skl vfat squashfs fat snd_soc_hdac_hda 
> snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match 
> snd_soc_acpi iwlmvm snd_ctl_led snd_soc_core x86_pkg_temp_thermal 
> snd_hda_codec_realtek intel_powerclamp btusb coretemp snd_hda_codec_generic 
> btrtl snd_compress
> [114708.274367]  mac80211 btbcm snd_hda_intel btintel snd_intel_dspcfg 
> kvm_intel btmtk snd_intel_sdw_acpi dell_rbtn bluetooth libarc4 snd_hda_codec 
> kvm uvcvideo snd_hda_core jitterentropy_rng snd_hwdep videobuf2_vmalloc 
> dell_laptop iwlwifi snd_pcm_oss irqbypass videobuf2_memops ledtrig_audio 
> dell_wmi drbg snd_mixer_oss videobuf2_v4l2 
> processor_thermal_device_pci_legacy joydev mei_hdcp mei_wdt rapl 
> processor_thermal_device dell_smbios intel_rapl_msr ansi_cprng dell_smm_hwmon 
> snd_pcm videobuf2_common iTCO_wdt cfg80211 processor_thermal_rfim 
> intel_cstate ucsi_acpi dcdbas dell_wmi_sysman ecdh_generic 
> processor_thermal_mbox snd_timer intel_pmc_bxt intel_uncore videodev 
> processor_thermal_rapl mei_me dell_wmi_descriptor typec_ucsi 
> firmware_attributes_class pcspkr roles iTCO_vendor_support snd 
> intel_rapl_common intel_wmi_thunderbolt wmi_bmof mc watchdog rfkill ee1004 
> soundcore mei ecc typec int3403_thermal intel_soc_dts_iosf int3400_thermal 
> intel_hid intel_pch_thermal int340x_thermal_zone
> [114708.274434]  dell_smo8800 ac intel_pmc_core acpi_thermal_rel acpi_pad 
> sparse_keymap hid_multitouch evdev serio_raw msr i2c_dev parport_pc ppdev lp 
> parport fuse loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 
> mbcache jbd2 btrfs blake2b_generic zstd_compress usbhid dm_crypt dm_mod 
> efivarfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor 
> async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear 
> md_mod i915 crc32_pclmul drm_buddy crc32c_intel i2c_algo_bit nvme 
> drm_display_helper ghash_clmulni_intel sha512_ssse3 nvme_core cec ahci 
> sha512_generic hid_generic t10_pi rc_core rtsx_pci_sdmmc libahci sha256_ssse3 
> xhci_pci crc64_rocksoft_generic ttm sha1_ssse3 crc64_rocksoft xhci_hcd libata 
> crc_t10dif mmc_core drm_kms_helper crct10dif_generic usbcore intel_lpss_pci 
> i2c_hid_acpi aesni_intel scsi_mod i2c_i801 i2c_hid video crct10dif_pclmul 
> crypto_simd intel_lpss crc64 cryptd drm e1000e i2c_smbus rtsx_pci 
> crct10dif_common scsi_common idma64 usb_common
> [114708.274507]  hid battery wmi button
> [114708.274511] CPU: 0 PID: 80864 Comm: kworker/0:0 Tainted: G   
> X   6.1.0-17-amd64 #1  Debian 6.1.69-1
> [114708.274514] Hardware name: Dell Inc. Precision 7530/0C1D71, BIOS 1.29.1 
> 07/05/2023
> [114708.274516] Workqueue: events cfg80211_rfkill_block_work [cfg80211]
> [114708.274576] RIP: 0010:__sta_info_destroy_part2+0x12e/0x

Bug#1061390: iwlwifi: crash when disabling wifi

2024-01-23 Thread Thomas Goirand
Source: linux
Version: 6.1.69-1
Severity: important

Hi,

In some cases, when I disable wifi with the network manager GUI
(ie: right click, "Enable Wifi" to disable it), my iwlwifi driver
crashes, with the crash dump attached to this bug report.

When this happen, then my network stack is kind of completely
broken, and I have to reboot.

Let me know what I can do to improve this bug report. Maybe
install the debug kernel?

Cheers,

Thomas Goirand (zigo)
[114704.251050] iwlwifi :6f:00.0: RF_KILL bit toggled to disable radio.
[114704.251053] iwlwifi :6f:00.0: reporting RF_KILL (radio disabled)
[114704.265509] wlp111s0: deauthenticating from f0:9f:c2:ff:9f:62 by local 
choice (Reason: 3=DEAUTH_LEAVING)
[114706.269470] iwlwifi :6f:00.0: fail to flush all tx fifo queues Q 5
[114706.271154] iwlwifi :6f:00.0: Queue 5 is active on fifo 3 and stuck for 
1 ms. SW [5, 6] HW [6, 6] FH TRB=0x080305005
[114708.273433] iwlwifi :6f:00.0: fail to flush all tx fifo queues Q 5
[114708.274068] iwlwifi :6f:00.0: Queue 5 is active on fifo 3 and stuck for 
1 ms. SW [5, 6] HW [6, 6] FH TRB=0x080305005
[114708.274125] [ cut here ]
[114708.274127] WARNING: CPU: 0 PID: 80864 at net/mac80211/sta_info.c:1297 
__sta_info_destroy_part2+0x12e/0x160 [mac80211]
[114708.274291] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi 
snd_seq_device tun ctr ccm rfcomm xt_conntrack xt_MASQUERADE 
nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_nat 
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter 
br_netfilter bridge stp llc cpufreq_ondemand cpufreq_userspace 
cpufreq_conservative cpufreq_powersave scsi_transport_iscsi nvme_fabrics cmac 
algif_hash algif_skcipher af_alg overlay qrtr bnep snd_hda_codec_hdmi 
snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel 
soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci 
snd_sof_xtensa_dsp binfmt_misc snd_sof xfs snd_sof_utils nls_ascii 
soundwire_bus nls_cp437 snd_soc_skl vfat squashfs fat snd_soc_hdac_hda 
snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match 
snd_soc_acpi iwlmvm snd_ctl_led snd_soc_core x86_pkg_temp_thermal 
snd_hda_codec_realtek intel_powerclamp btusb coretemp snd_hda_codec_generic 
btrtl snd_compress
[114708.274367]  mac80211 btbcm snd_hda_intel btintel snd_intel_dspcfg 
kvm_intel btmtk snd_intel_sdw_acpi dell_rbtn bluetooth libarc4 snd_hda_codec 
kvm uvcvideo snd_hda_core jitterentropy_rng snd_hwdep videobuf2_vmalloc 
dell_laptop iwlwifi snd_pcm_oss irqbypass videobuf2_memops ledtrig_audio 
dell_wmi drbg snd_mixer_oss videobuf2_v4l2 processor_thermal_device_pci_legacy 
joydev mei_hdcp mei_wdt rapl processor_thermal_device dell_smbios 
intel_rapl_msr ansi_cprng dell_smm_hwmon snd_pcm videobuf2_common iTCO_wdt 
cfg80211 processor_thermal_rfim intel_cstate ucsi_acpi dcdbas dell_wmi_sysman 
ecdh_generic processor_thermal_mbox snd_timer intel_pmc_bxt intel_uncore 
videodev processor_thermal_rapl mei_me dell_wmi_descriptor typec_ucsi 
firmware_attributes_class pcspkr roles iTCO_vendor_support snd 
intel_rapl_common intel_wmi_thunderbolt wmi_bmof mc watchdog rfkill ee1004 
soundcore mei ecc typec int3403_thermal intel_soc_dts_iosf int3400_thermal 
intel_hid intel_pch_thermal int340x_thermal_zone
[114708.274434]  dell_smo8800 ac intel_pmc_core acpi_thermal_rel acpi_pad 
sparse_keymap hid_multitouch evdev serio_raw msr i2c_dev parport_pc ppdev lp 
parport fuse loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 
mbcache jbd2 btrfs blake2b_generic zstd_compress usbhid dm_crypt dm_mod 
efivarfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor 
async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear 
md_mod i915 crc32_pclmul drm_buddy crc32c_intel i2c_algo_bit nvme 
drm_display_helper ghash_clmulni_intel sha512_ssse3 nvme_core cec ahci 
sha512_generic hid_generic t10_pi rc_core rtsx_pci_sdmmc libahci sha256_ssse3 
xhci_pci crc64_rocksoft_generic ttm sha1_ssse3 crc64_rocksoft xhci_hcd libata 
crc_t10dif mmc_core drm_kms_helper crct10dif_generic usbcore intel_lpss_pci 
i2c_hid_acpi aesni_intel scsi_mod i2c_i801 i2c_hid video crct10dif_pclmul 
crypto_simd intel_lpss crc64 cryptd drm e1000e i2c_smbus rtsx_pci 
crct10dif_common scsi_common idma64 usb_common
[114708.274507]  hid battery wmi button
[114708.274511] CPU: 0 PID: 80864 Comm: kworker/0:0 Tainted: G   X  
 6.1.0-17-amd64 #1  Debian 6.1.69-1
[114708.274514] Hardware name: Dell Inc. Precision 7530/0C1D71, BIOS 1.29.1 
07/05/2023
[114708.274516] Workqueue: events cfg80211_rfkill_block_work [cfg80211]
[114708.274576] RIP: 0010:__sta_info_destroy_part2+0x12e/0x160 [mac80211]
[114708.274631] Code: bb d4 00 00 00 00 0f 84 71 ff ff ff 45 31 c0 b9 01 00 00 
00 48 89 da 4c 89 e6 48 89 ef e8 2a 94 ff ff 85 c0 0f 84 53 ff ff ff <0f> 0b e9 
4c ff ff ff be 03 00 00 00 48 89 df e8 be e9 ff ff 85 c0
[114708.274634] RSP: 0018:ac53c6e879b8