FS#65041 - [linux] Unable to associate with WiFi wireless network with kernel 5.4.7-arch1-1

Attached to Project: Arch Linux
Opened by Colton Lewis (cowile) - Saturday, 04 January 2020, 07:38 GMT
Last edited by freswa (frederik) - Sunday, 13 September 2020, 14:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
Architecture x86_64
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

Immediately after upgrading to kernel 5.4.7-arch1-1, my previously working netctl profiles stopped working and continued not to work after reboot. Driver nl80211 produces a warning on attempting, causing a nonzero exit code.

Additional info:
* package version(s)
linux 5.4.7.arch1-1
linux-firmware 20191220.6871bff-1
netctl 1.20-2

* config and/or log files etc.

journalctl -xe:
Jan 04 01:21:43 x1-carbon systemd[1]: Starting Networking for netctl profile amber...
-- Subject: A start job for unit netctl@amber.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit netctl@amber.service has begun execution.
--
-- The job identifier is 1783.
Jan 04 01:21:43 x1-carbon network[1662]: Starting network profile 'amber'...
Jan 04 01:21:43 x1-carbon kernel: ------------[ cut here ]------------
Jan 04 01:21:43 x1-carbon kernel: WARNING: CPU: 1 PID: 1670 at net/wireless/nl80211.c:7024 nl80211_get_reg_do+0x228/0x290 [cfg80211]
Jan 04 01:21:43 x1-carbon kernel: Modules linked in: 8021q garp mrp stp llc cdc_ether usbnet r8152 mii nls_iso8859_1 nls_cp437 vfat fat joydev mousedev rmi_smbus rmi_core intel_rapl_msr snd_hda_codec_hdmi intel_rapl_common snd_hda_codec_conexant snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp i915 coretemp iTCO_wdt iTCO_vendor_support kvm_intel mei_hdcp kvm wmi_bmof snd_hda_intel snd_intel_nhlt iwlmvm snd_hda_codec intel_wmi_thunderbolt irqbypass intel_cstate i2c_algo_bit mac80211 drm_kms_helper btusb snd_hda_core uvcvideo libarc4 intel_uncore btrtl videobuf2_vmalloc btbcm btintel snd_hwdep intel_rapl_perf videobuf2_memops iwlwifi psmouse input_leds pcspkr snd_pcm e1000e drm bluetooth videobuf2_v4l2 i2c_i801 videobuf2_common snd_timer cfg80211 intel_gtt rtsx_pci_ms videodev thinkpad_acpi ecdh_generic memstick ucsi_acpi agpgart nvram ecc mc mei_me syscopyarea ledtrig_audio typec_ucsi sysfillrect rfkill mei sysimgblt crc16 intel_xhci_usb_role_switch intel_pch_thermal fb_sys_fops typec roles snd wmi ac
Jan 04 01:21:43 x1-carbon kernel: evdev battery soundcore i2c_hid mac_hid hid usbip_host usbip_core ip_tables x_tables btrfs libcrc32c crc32c_generic xor raid6_pq sd_mod uas usb_storage scsi_mod dm_crypt dm_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 aesni_intel crypto_simd cryptd xhci_pci glue_helper xhci_hcd rtsx_pci i8042 serio
Jan 04 01:21:43 x1-carbon kernel: CPU: 1 PID: 1670 Comm: wpa_supplicant Tainted: G W 5.4.7-arch1-1 #1
Jan 04 01:21:43 x1-carbon kernel: Hardware name: LENOVO 20HRCTO1WW/20HRCTO1WW, BIOS N1MET37W (1.22 ) 07/04/2017
Jan 04 01:21:43 x1-carbon kernel: RIP: 0010:nl80211_get_reg_do+0x228/0x290 [cfg80211]
Jan 04 01:21:43 x1-carbon kernel: Code: 89 ef c7 44 24 0c 01 00 00 00 e8 c3 15 e1 e3 85 c0 74 cc e9 ff fe ff ff 48 89 ef 48 89 04 24 e8 9e 1c 0d e4 48 8b 04 24 eb 89 <0f> 0b 48 89 ef e8 8e 1c 0d e4 b8 ea ff ff ff e9 75 ff ff ff b8 97
Jan 04 01:21:43 x1-carbon kernel: RSP: 0018:ffffaa2481d03a30 EFLAGS: 00010202
Jan 04 01:21:43 x1-carbon kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
Jan 04 01:21:43 x1-carbon kernel: RDX: ffff9b670cbf0008 RSI: 0000000000000000 RDI: ffff9b670cbf0300
Jan 04 01:21:43 x1-carbon kernel: RBP: ffff9b66cba66e00 R08: 0000000000000004 R09: ffff9b6662cac014
Jan 04 01:21:43 x1-carbon kernel: R10: 000000000000001e R11: ffffffffc0add050 R12: ffffaa2481d03af8
Jan 04 01:21:43 x1-carbon kernel: R13: ffff9b6662cac014 R14: 0000000000000000 R15: ffff9b670cbf0300
Jan 04 01:21:43 x1-carbon kernel: FS: 00007ff17e849680(0000) GS:ffff9b6712480000(0000) knlGS:0000000000000000
Jan 04 01:21:43 x1-carbon kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 04 01:21:43 x1-carbon kernel: CR2: 0000558d2341b090 CR3: 00000003a6bd8002 CR4: 00000000003606e0
Jan 04 01:21:43 x1-carbon kernel: Call Trace:
Jan 04 01:21:43 x1-carbon kernel: genl_family_rcv_msg+0x1f9/0x470
Jan 04 01:21:43 x1-carbon kernel: genl_rcv_msg+0x47/0x90
Jan 04 01:21:43 x1-carbon kernel: ? genl_family_rcv_msg+0x470/0x470
Jan 04 01:21:43 x1-carbon kernel: netlink_rcv_skb+0x75/0x140
Jan 04 01:21:43 x1-carbon kernel: genl_rcv+0x24/0x40
Jan 04 01:21:43 x1-carbon kernel: netlink_unicast+0x179/0x210
Jan 04 01:21:43 x1-carbon kernel: netlink_sendmsg+0x208/0x3d0
Jan 04 01:21:43 x1-carbon kernel: sock_sendmsg+0x5e/0x60
Jan 04 01:21:43 x1-carbon kernel: ____sys_sendmsg+0x21b/0x290
Jan 04 01:21:43 x1-carbon kernel: ___sys_sendmsg+0xa3/0xf0
Jan 04 01:21:43 x1-carbon kernel: __sys_sendmsg+0x81/0xd0
Jan 04 01:21:43 x1-carbon kernel: do_syscall_64+0x4e/0x140
Jan 04 01:21:43 x1-carbon kernel: entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jan 04 01:21:43 x1-carbon kernel: RIP: 0033:0x7ff17ebb27b7
Jan 04 01:21:43 x1-carbon kernel: Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00 00 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
Jan 04 01:21:43 x1-carbon kernel: RSP: 002b:00007ffd3cc50d78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
Jan 04 01:21:43 x1-carbon kernel: RAX: ffffffffffffffda RBX: 0000558d24c7d910 RCX: 00007ff17ebb27b7
Jan 04 01:21:43 x1-carbon kernel: RDX: 0000000000000000 RSI: 00007ffd3cc50db0 RDI: 0000000000000004
Jan 04 01:21:43 x1-carbon kernel: RBP: 0000558d24c7d820 R08: 0000000000000004 R09: 0000558d24c7f570
Jan 04 01:21:43 x1-carbon kernel: R10: 00007ffd3cc50e84 R11: 0000000000000246 R12: 0000558d24c7f570
Jan 04 01:21:43 x1-carbon kernel: R13: 00007ffd3cc50db0 R14: 00007ffd3cc50e84 R15: 0000558d24c829b0
Jan 04 01:21:43 x1-carbon kernel: ---[ end trace d4601ecee794081e ]---
Jan 04 01:21:43 x1-carbon kernel: ------------[ cut here ]------------
Jan 04 01:21:43 x1-carbon kernel: WARNING: CPU: 3 PID: 1670 at net/wireless/nl80211.c:7024 nl80211_get_reg_do+0x228/0x290 [cfg80211]
Jan 04 01:21:43 x1-carbon kernel: Modules linked in: 8021q garp mrp stp llc cdc_ether usbnet r8152 mii nls_iso8859_1 nls_cp437 vfat fat joydev mousedev rmi_smbus rmi_core intel_rapl_msr snd_hda_codec_hdmi intel_rapl_common snd_hda_codec_conexant snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp i915 coretemp iTCO_wdt iTCO_vendor_support kvm_intel mei_hdcp kvm wmi_bmof snd_hda_intel snd_intel_nhlt iwlmvm snd_hda_codec intel_wmi_thunderbolt irqbypass intel_cstate i2c_algo_bit mac80211 drm_kms_helper btusb snd_hda_core uvcvideo libarc4 intel_uncore btrtl videobuf2_vmalloc btbcm btintel snd_hwdep intel_rapl_perf videobuf2_memops iwlwifi psmouse input_leds pcspkr snd_pcm e1000e drm bluetooth videobuf2_v4l2 i2c_i801 videobuf2_common snd_timer cfg80211 intel_gtt rtsx_pci_ms videodev thinkpad_acpi ecdh_generic memstick ucsi_acpi agpgart nvram ecc mc mei_me syscopyarea ledtrig_audio typec_ucsi sysfillrect rfkill mei sysimgblt crc16 intel_xhci_usb_role_switch intel_pch_thermal fb_sys_fops typec roles snd wmi ac
Jan 04 01:21:43 x1-carbon kernel: evdev battery soundcore i2c_hid mac_hid hid usbip_host usbip_core ip_tables x_tables btrfs libcrc32c crc32c_generic xor raid6_pq sd_mod uas usb_storage scsi_mod dm_crypt dm_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 aesni_intel crypto_simd cryptd xhci_pci glue_helper xhci_hcd rtsx_pci i8042 serio
Jan 04 01:21:43 x1-carbon kernel: CPU: 3 PID: 1670 Comm: wpa_supplicant Tainted: G W 5.4.7-arch1-1 #1
Jan 04 01:21:43 x1-carbon kernel: Hardware name: LENOVO 20HRCTO1WW/20HRCTO1WW, BIOS N1MET37W (1.22 ) 07/04/2017
Jan 04 01:21:43 x1-carbon kernel: RIP: 0010:nl80211_get_reg_do+0x228/0x290 [cfg80211]
Jan 04 01:21:43 x1-carbon kernel: Code: 89 ef c7 44 24 0c 01 00 00 00 e8 c3 15 e1 e3 85 c0 74 cc e9 ff fe ff ff 48 89 ef 48 89 04 24 e8 9e 1c 0d e4 48 8b 04 24 eb 89 <0f> 0b 48 89 ef e8 8e 1c 0d e4 b8 ea ff ff ff e9 75 ff ff ff b8 97
Jan 04 01:21:43 x1-carbon kernel: RSP: 0018:ffffaa2481d03a30 EFLAGS: 00010202
Jan 04 01:21:43 x1-carbon kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
Jan 04 01:21:43 x1-carbon kernel: RDX: ffff9b670cbf0008 RSI: 0000000000000000 RDI: ffff9b670cbf0300
Jan 04 01:21:43 x1-carbon kernel: RBP: ffff9b670aa51800 R08: 0000000000000004 R09: ffff9b6662c98014
Jan 04 01:21:43 x1-carbon kernel: R10: 000000000000001e R11: ffffffffc0add050 R12: ffffaa2481d03af8
Jan 04 01:21:43 x1-carbon kernel: R13: ffff9b6662c98014 R14: 0000000000000000 R15: ffff9b670cbf0300
Jan 04 01:21:43 x1-carbon kernel: FS: 00007ff17e849680(0000) GS:ffff9b6712580000(0000) knlGS:0000000000000000
Jan 04 01:21:43 x1-carbon kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 04 01:21:43 x1-carbon kernel: CR2: 0000558d24cb0000 CR3: 00000003a6bd8006 CR4: 00000000003606e0
Jan 04 01:21:43 x1-carbon kernel: Call Trace:
Jan 04 01:21:43 x1-carbon kernel: genl_family_rcv_msg+0x1f9/0x470
Jan 04 01:21:43 x1-carbon kernel: genl_rcv_msg+0x47/0x90
Jan 04 01:21:43 x1-carbon kernel: ? genl_family_rcv_msg+0x470/0x470
Jan 04 01:21:43 x1-carbon kernel: netlink_rcv_skb+0x75/0x140
Jan 04 01:21:43 x1-carbon kernel: genl_rcv+0x24/0x40
Jan 04 01:21:43 x1-carbon kernel: netlink_unicast+0x179/0x210
Jan 04 01:21:43 x1-carbon kernel: netlink_sendmsg+0x208/0x3d0
Jan 04 01:21:43 x1-carbon kernel: sock_sendmsg+0x5e/0x60
Jan 04 01:21:43 x1-carbon kernel: ____sys_sendmsg+0x21b/0x290
Jan 04 01:21:43 x1-carbon kernel: ___sys_sendmsg+0xa3/0xf0
Jan 04 01:21:43 x1-carbon kernel: __sys_sendmsg+0x81/0xd0
Jan 04 01:21:43 x1-carbon kernel: do_syscall_64+0x4e/0x140
Jan 04 01:21:43 x1-carbon kernel: entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jan 04 01:21:43 x1-carbon kernel: RIP: 0033:0x7ff17ebb27b7
Jan 04 01:21:43 x1-carbon kernel: Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00 00 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
Jan 04 01:21:43 x1-carbon kernel: RSP: 002b:00007ffd3cc50b18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
Jan 04 01:21:43 x1-carbon kernel: RAX: ffffffffffffffda RBX: 0000558d24c7d910 RCX: 00007ff17ebb27b7
Jan 04 01:21:43 x1-carbon kernel: RDX: 0000000000000000 RSI: 00007ffd3cc50b50 RDI: 0000000000000004
Jan 04 01:21:43 x1-carbon kernel: RBP: 0000558d24c7d820 R08: 0000000000000004 R09: 0000558d24c7b010
Jan 04 01:21:43 x1-carbon kernel: R10: 00007ffd3cc50c24 R11: 0000000000000246 R12: 0000558d24cac120
Jan 04 01:21:43 x1-carbon kernel: R13: 00007ffd3cc50b50 R14: 00007ffd3cc50c24 R15: 0000558d24cafa60
Jan 04 01:21:43 x1-carbon kernel: ---[ end trace d4601ecee794081f ]---
Jan 04 01:21:49 x1-carbon network[1662]: Failed to bring the network up for profile 'amber'
Jan 04 01:21:49 x1-carbon systemd[1]: netctl@amber.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit netctl@amber.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jan 04 01:21:49 x1-carbon systemd[1]: netctl@amber.service: Failed with result 'exit-code'.

sample profile:
Description='apartment wireless connection'
Interface=wlp4s0
Connection=wireless
Security=wpa
IP=dhcp
ESSID=Falon_2G
Key=53e5cfa1926f2eef1ab328706badb8b9c625f30a8221261fc44903d65d86a40d
Priority=10


* link to upstream bug report, if any

Steps to reproduce:
1. netctl start [profile]
This task depends upon

Closed by  freswa (frederik)
Sunday, 13 September 2020, 14:46 GMT
Reason for closing:  Upstream
Additional comments about closing:  Not a packaging bug. Please report upstream. Thank you.
Comment by Colton Lewis (cowile) - Saturday, 04 January 2020, 07:42 GMT
Should specify, this is a Lenovo Carbon X1 Laptop, 6th gen.

04:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 88)
Comment by Colton Lewis (cowile) - Sunday, 05 January 2020, 03:59 GMT
Found Related Upstream Bugs:

https://bugzilla.kernel.org/show_bug.cgi?id=204613
https://bugzilla.kernel.org/show_bug.cgi?id=205005

The fix reported in the comments of the second bug resolved my issue.

[blockquote]
Enabling and disabling rfkill (no physical switch, Fn key combo) fixes the issue.

To summarize:
Out of the blue that WARN_ON was hit on every boot. Reboots, poweroffs or detaching the battery (not physically, but there's Fn+s+v for "shipping mode") didn't help. Booting kernel 4.19, 5.2 or 5.3 all yielded the same issue.

Toggling rfkill twice "fixed" the issue across reboots and poweroffs.
[/blockquote]
Comment by Julian Phillips (chr0mag) - Sunday, 26 July 2020, 14:36 GMT
dmesg log from latest kernel. Please re-open.
   dmesg.log (68.1 KiB)
Comment by gyaru (gyaru) - Wednesday, 05 August 2020, 09:06 GMT
Having the exact same issue and flipping rfkill does not solve the issue for me.

network controller:
00:14.3 Network controller: Intel Corporation Killer Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter (201NGW) (rev 30)

The weird part is that does not actually crash when establishing a Wi-Fi connection on the live installer environment. (modinfo and firmware loaded for the driver is identical too)
I've tried replicating the same older packages (kernel/firmware) that the installer iso has but no success.

I'm attaching dmesg for both environments.
Comment by Julian Phillips (chr0mag) - Sunday, 30 August 2020, 00:05 GMT
On my system this seems to be caused by the following IWD upgrade:
[2020-06-28T12:06:34-0700] [ALPM] upgraded iwd (1.7-1 -> 1.8-1)

When I downgrade to v1.7-1 I no longer see the stack trace on boot.
Comment by Eivind (mokkurkalve) - Tuesday, 01 September 2020, 10:12 GMT
I have the same stack trace on boot, but I don't see any problems with my wi-fi.
I have current Arch system, and using linux 5.8.5.arch1-1 and iwd 1.8-1.
Stack trace: https://pastebin.com/FLcz6ydb

Loading...