2021-06-08 20:08:44 |
Sebastian Schauenburg |
bug |
|
|
added bug |
2021-06-21 19:03:48 |
Launchpad Janitor |
network-manager (Ubuntu): status |
New |
Confirmed |
|
2021-06-28 17:59:23 |
Dan Streetman |
affects |
network-manager (Ubuntu) |
linux (Ubuntu) |
|
2021-07-03 19:08:50 |
Mike Holmes |
bug |
|
|
added subscriber Mike Holmes |
2021-07-07 06:12:46 |
Chris Chiu |
attachment added |
|
5.11.0-22-generic.dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931301/+attachment/5509551/+files/5.11.0-22-generic.dmesg.txt |
|
2021-07-07 06:13:01 |
Chris Chiu |
attachment added |
|
5.11.0-24-generic.dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931301/+attachment/5509552/+files/5.11.0-24-generic.dmesg.txt |
|
2021-07-07 19:15:25 |
Sebastian Schauenburg |
attachment added |
|
5.11.0-24-generic.dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931301/+attachment/5509673/+files/5.11.0-24-generic.dmesg.txt |
|
2021-07-07 19:16:25 |
Sebastian Schauenburg |
attachment added |
|
5.13.0-051300-generic.dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931301/+attachment/5509674/+files/5.13.0-051300-generic.dmesg.txt |
|
2021-07-10 07:14:26 |
Sebastian Schauenburg |
attachment added |
|
5.11.0-24-generic.dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931301/+attachment/5510164/+files/5.11.0-24-generic.dmesg.txt |
|
2021-07-15 13:04:40 |
Chris Chiu |
linux (Ubuntu): assignee |
|
Chris Chiu (mschiu77) |
|
2021-07-15 13:05:27 |
Chris Chiu |
nominated for series |
|
Ubuntu Hirsute |
|
2021-07-15 13:05:27 |
Chris Chiu |
bug task added |
|
linux (Ubuntu Hirsute) |
|
2021-07-15 13:05:41 |
Chris Chiu |
linux (Ubuntu Hirsute): assignee |
|
Chris Chiu (mschiu77) |
|
2021-07-15 13:05:47 |
Chris Chiu |
linux (Ubuntu Hirsute): status |
New |
Confirmed |
|
2021-07-15 13:09:00 |
Chris Chiu |
description |
Upgraded to 21.04 (hirsute) and now the network card is unavailable after suspend to RAM (sleep state S3). It worked flawlessly up until 20.10. My workaround for now is unloading and reloading the kernel module, but that won't work for normal users, hence this report.
NIC in its unavailable state:
2: enp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether d0:50:99:27:02:11 brd ff:ff:ff:ff:ff:ff
NIC (from lspci):
04:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 10)
Trying to ifconfig it down/up results in:
SIOCSIFFLAGS: No such device
journalctl shows (right after recovering from suspend):
NetworkManager[1911]: <info> [1623181236.9371] manager: sleep: wake requested (sleeping: yes enabled: yes)
NetworkManager[1911]: <info> [1623181236.9372] device (enp4s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
NetworkManager[1911]: <info> [1623181236.9382] manager: NetworkManager state is now CONNECTED_LOCAL
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: network-manager 1.30.0-1ubuntu3
ProcVersionSignature: Ubuntu 5.11.0-18.19-generic 5.11.17
Uname: Linux 5.11.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jun 8 21:59:15 2021
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
InstallationDate: Installed on 2016-08-25 (1748 days ago)
InstallationMedia: Ubuntu-MATE 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RfKill:
SourcePackage: network-manager
UpgradeStatus: Upgraded to hirsute on 2021-06-04 (4 days ago)
nmcli-nm:
RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
running 1.30.0 connected started full enabled enabled enabled enabled enabled |
[SRU Justification]
[Impact]
The network card will be unavailable after system resume if the interface is not UP before suspend.
[Fix]
It's because we added the WOL support for this driver. The driver with WoL feature does detach the network interface even the interface is DOWN. However, it doesn't attach the network interface back on resume if it was DOWN. That's why it's unavailable after resume. Fix this by correctly netif_device_attach according to the interface status.
[Test Case]
1. Plug the ethernet cable to the Atheros E220x ethernet adapter
2. Suspend the system and check if the ethernet interface available after resume
3. Unplug the ethernet cable
4. Suspend the system and check if the ethernet interface available after resume
[Regression Potential]
Low. The driver code would be identical to working Groovy version after fix.
========== Original Bug Description ==========
Upgraded to 21.04 (hirsute) and now the network card is unavailable after suspend to RAM (sleep state S3). It worked flawlessly up until 20.10. My workaround for now is unloading and reloading the kernel module, but that won't work for normal users, hence this report.
NIC in its unavailable state:
2: enp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether d0:50:99:27:02:11 brd ff:ff:ff:ff:ff:ff
NIC (from lspci):
04:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 10)
Trying to ifconfig it down/up results in:
SIOCSIFFLAGS: No such device
journalctl shows (right after recovering from suspend):
NetworkManager[1911]: <info> [1623181236.9371] manager: sleep: wake requested (sleeping: yes enabled: yes)
NetworkManager[1911]: <info> [1623181236.9372] device (enp4s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
NetworkManager[1911]: <info> [1623181236.9382] manager: NetworkManager state is now CONNECTED_LOCAL
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: network-manager 1.30.0-1ubuntu3
ProcVersionSignature: Ubuntu 5.11.0-18.19-generic 5.11.17
Uname: Linux 5.11.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jun 8 21:59:15 2021
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
InstallationDate: Installed on 2016-08-25 (1748 days ago)
InstallationMedia: Ubuntu-MATE 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RfKill:
SourcePackage: network-manager
UpgradeStatus: Upgraded to hirsute on 2021-06-04 (4 days ago)
nmcli-nm:
RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
running 1.30.0 connected started full enabled enabled enabled enabled enabled |
|
2021-07-19 13:16:08 |
Javier Carrera |
bug |
|
|
added subscriber Javier Carrera |
2021-08-04 07:51:30 |
Stefan Bader |
linux (Ubuntu Hirsute): importance |
Undecided |
Medium |
|
2021-08-04 07:51:46 |
Stefan Bader |
linux (Ubuntu): status |
Confirmed |
Invalid |
|
2021-08-06 21:10:03 |
Kelsey Steele |
linux (Ubuntu Hirsute): status |
Confirmed |
Fix Committed |
|
2021-08-17 14:41:50 |
Ubuntu Kernel Bot |
tags |
amd64 apport-bug hirsute |
amd64 apport-bug hirsute verification-needed-hirsute |
|
2021-08-18 16:16:04 |
Francis Kotarski |
bug |
|
|
added subscriber Francis Kotarski |
2021-08-19 10:13:31 |
Sebastian Schauenburg |
tags |
amd64 apport-bug hirsute verification-needed-hirsute |
amd64 apport-bug hirsute verification-done-hirsute |
|
2021-08-19 13:10:38 |
dhenry |
bug |
|
|
added subscriber dhenry |
2021-09-07 13:53:28 |
Launchpad Janitor |
linux (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2021-09-07 13:53:28 |
Launchpad Janitor |
cve linked |
|
2020-26541 |
|
2021-09-07 13:53:28 |
Launchpad Janitor |
cve linked |
|
2021-3653 |
|
2021-09-07 13:53:28 |
Launchpad Janitor |
cve linked |
|
2021-3656 |
|