[SRU] r8168-dkms fails to build module on kernel 6.5.0-14-generic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
r8168 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
r8168-dkms fails to install if the user is using the hwe kernel which is v6.5 as the dkms module will fail to build during installation.
The error being:
/usr/src/
/usr/src/
27733 | segs = skb_gso_
| ^~~~~~~~~~~~~~~
[ Test Plan ]
This needs to be done on both the hwe kernel (v6.5) and the generic kernel (v5.15) to ensure it works on both.
* install r8168-dkms
* successfull installation will mean the build failure has been fixed.
* As a very basic test, try to load the module "sudo modprobe r8168"
Ideally someone with the hardware should test and confirm.
[ Where problems could occur ]
This change is only affecting the users of hwe kernel (v6.5) and the only change is adding a header file which declare the function its trying to use. Similar changes has been done to other upstream network drivers as can be seen at the upstream kernel patch link and has little chance of regression due to this.
[ Other Info ]
* The change in the upstream linux kernel has been done via: https://<email address hidden>/
[ Original Bug Description ]
After recent upgrade to kernel 6.5.0-14-generic my ethernet connection no longer works, because dkms is unable to compile module for this kernel. I'm on kubuntu lts 22.04.3. On all the previous kernels this worked fine.
$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
$ apt-cache policy r8168-dkms
r8168-dkms:
Instalovaná verze: 8.049.02-1ubuntu1.2
Kandidát: 8.049.02-1ubuntu1.2
Tabulka verzí:
*** 8.049.02-1ubuntu1.2 500
500 https:/
500 https:/
100 /var/lib/
8.
500 https:/
500 https:/
Expected behavior: dkms successfully builds the r8168 module when new kernel is installed and the ethernet connection works.
What happened instead: dkms failed to build the r8168 module for the new 6.5.0-14-generic kernel and the ethernet connection no longer works.
Please see attached crash log from dkms.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: r8168-dkms 8.049.02-1ubuntu1.2
ProcVersionSign
Uname: Linux 6.2.0-39-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed Jan 10 18:56:53 2024
InstallationDate: Installed on 2021-05-13 (972 days ago)
InstallationMedia: Kubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
PackageArchitec
SourcePackage: r8168
UpgradeStatus: Upgraded to jammy on 2022-08-15 (513 days ago)
Changed in r8168 (Ubuntu): | |
status: | New → Confirmed |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
tags: |
added: verification-done removed: verification-needed |
for me it helped to deinstall R8168-dkms and delete /etc/modprobe. d/blacklist- R8169.conf