You are not logged in.

#26 2023-12-10 22:41:31

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

6.6.5.arch1 built with with https://lore.kernel.org/stable/20231210 … olam.fr/T/ applied:

https://drive.google.com/file/d/1cL00vz … sp=sharing linux-6.6.5.arch1-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/11OF9sx … sp=sharing linux-headers-6.6.5.arch1-1.2-x86_64.pkg.tar.zst

Offline

#27 2023-12-10 22:50:15

juanejot
Member
Registered: 2023-12-10
Posts: 1

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

This is an interesting thread, as I have experienced similar issues with kernel 6.6.5 running in Arch with a BCM4322, the same hardware running LMDE with kernel 6.1.66 (or as Debian calls it, "6.1.0-15-amd64," and had assumed it was a Core2Duo issue (the same hardware has a T9900 CPU). I assume whatever was wrong with 6.6.5 got backported to 6.1.x; as I'd bailed from Arch/XFCE when the issue cropped up upon install of kernel 6.6.5 over 6.6.4, only to have exactly the same issue occur in the update from kernel 6.1.64 ("6.1.0-14-amd64") to 6.1.66 ("6.1.0-15-amd64") on LMDE/Cinnamon.

It makes sense that it's WiFi-related, as after both of the above kernel updates (on either Arch or LMDE; it is a kernel, not a distro or packaging problem), I could run non-network-accessing processes while NetworkManager applet spun and tried to connect, but once I did anything that attempted to access the network, including simply clicking on the spinning icon, no more commands would be processed, be they on the GUI or the CLI; they'd just hang, and couldn't be control-C'ed out. Shutdown had to be manually via power button.

So thanks for submitting a kernel patch, leoetlino, and let's hope it addresses the issue!

Last edited by juanejot (2023-12-10 23:04:29)

Offline

#28 2023-12-10 23:46:27

HurricanePootis
Member
Registered: 2020-10-16
Posts: 22

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Hello,

I have a Ryzen 5 5625U Dell Laptop with a Mediatek MT7921 wifi card.

I discovered that if I was to use the iwd backend with NetworkManager instead of wpa_supplicant, my system would be able to shut down normally. Also, I discovered that using iwd gave me noticeably better wifi performance, up to 60 Mbps.

Offline

#29 2023-12-11 01:20:31

TwistedRisers
Member
Registered: 2023-05-30
Posts: 7

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

I'm seeing the same. If I use a cable its fine. As soon as I plugin a wifi adapter NetworkManager spins its icon then the system hangs after 122 seconds.

I can also report this is an issue with devices using the following chipset:
rtl8814au
rtl88x2bu

Last edited by TwistedRisers (2023-12-11 01:29:02)


"I have nothing to say."

Offline

#30 2023-12-11 04:27:10

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

As reported by HurricanePootis above, NetworkManager with iwd works without issue. It appears that bug affects wpa_supplicant.

https://wiki.archlinux.org/title/Networ … Fi_backend

Offline

#31 2023-12-11 05:23:30

TwistedRisers
Member
Registered: 2023-05-30
Posts: 7

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

@Docbroke What was your process for swapping to iwd?

I ran pacman -S iwd
Then created /etc/NetworkManager/conf.d/wifif_backend.conf containing:

[device]
wifi.backend=iwd

Tried systemctl restart NetworkManager and also a reboot but still see the same issue with the machine hanging when trying to connect wifi devices.


"I have nothing to say."

Offline

#32 2023-12-11 06:30:32

kevku
Member
From: Estonia
Registered: 2009-11-21
Posts: 73

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

same issue on the lts kernel 6.1.66

Offline

#33 2023-12-11 07:45:42

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

leoetlino wrote:

Thank You.  In case it helps answering Greg KH's follow up:

So this is only for the 6.6.y tree?  If so, you should at least cc: the
other wireless developers involved in the original fix, right?

Any tree that back-ported '7e7efdda6adb wifi: cfg80211: fix CQM for non-range use' but does not contain '076fc8775daf wifi: cfg80211: remove wdev mutex' so both  6.6.y and 6.1.y.

And what commit actually fixed this issue upstream, why not take that
instead?

'076fc8775daf wifi: cfg80211: remove wdev mutex' does not apply cleanly to either 6.6.y or 6.1.y

Last edited by loqs (2023-12-11 08:04:27)

Offline

#34 2023-12-11 08:33:08

aite
Member
Registered: 2023-12-11
Posts: 1

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Yep! Got the exact same problem as well running the `6.6.5-arch1-1` kernel. Was genuinely really suprised that all the comments were so recent on an issue for once, until I saw that it's actually a kernel update issue. Thanks for submitting the patch.

Offline

#35 2023-12-11 09:48:55

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

@TwistedRisers, I did the same, no issue with shutdown after one reboot.
However I think wpa_supplicant was better as iwd seem to disconnect frequently and has trouble with hidden networks.

Offline

#36 2023-12-11 10:48:31

luiscastro193
Member
Registered: 2023-12-11
Posts: 4

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Switching from wpa_supplicant to iwd also fixed it for me.

https://wiki.archlinux.org/title/Networ … Fi_backend

Offline

#37 2023-12-11 13:25:12

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Fixed in linux 6.6.6.arch1-1 currently in core-testing by https://github.com/archlinux/linux/comm … 5e50f62b17

Offline

#38 2023-12-11 23:05:42

philm
Member
From: Germany
Registered: 2013-12-25
Posts: 8
Website

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

@loqs: 6.6.6 reverted the patch, however everyone who had tested Léo Lam's patch, should reply with a `Tested-by`-tag upstream: https://lore.kernel.org/stable/20231210 … olam.fr/#R

A discussion on that topic can be found also here: https://lore.kernel.org/stable/e374bb16 … njaro.org/

Offline

#39 2023-12-12 16:07:53

hirak99
Member
Registered: 2023-11-04
Posts: 10

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Replied.

Offline

#40 2023-12-30 16:00:28

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

@leoetlino @philm the fixed commit is queued for 6.1.70 [1]?  Will it be applied to 6.6 at some later point?

[1]:  https://git.kernel.org/pub/scm/linux/ke … -use.patch

Offline

#41 2024-01-03 00:04:33

akanski
Member
Registered: 2011-09-30
Posts: 32

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

Uninstalling broadcom-wl has solved the hang issue for me in the meantime. Though now it seems that the Internet connection is not as painfully slow as it was until I installed this driver for the first time, it is still slower than running on it. So I hope there's a fix soon :-/

Offline

#42 2024-01-03 01:12:07

loqs
Member
Registered: 2014-03-06
Posts: 18,055

Re: NetworkManager won't shutdown, hangs kworker - after linux 6.6.5

@akanski this issue was solved in  linux 6.6.6.arch1-1 / linux-lts 6.1.67-1.  linux-lts 6.1.70-1 added a version of 'wifi: cfg80211: fix CQM for non-range use'  adjusted to not cause the this issue.
Edit:

loqs wrote:

@leoetlino @philm the fixed commit is queued for 6.1.70 [1]?  Will it be applied to 6.6 at some later point?

Queued for 6.6.10 [2].

[1]:  https://git.kernel.org/pub/scm/linux/ke … -use.patch
[2]:  https://git.kernel.org/pub/scm/linux/ke … .6.x.patch

Last edited by loqs (2024-01-04 15:08:01)

Offline

Board footer

Powered by FluxBB