west-chamber-dkms fails to build after ip_route_me_harder() signature change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
west-chamber (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Groovy |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Focal linux 5.4.0-57.63 and Groovy linux 5.8.0-44.50 backported from upstream stable releases the following commit, which broke the build of west-chamber dkms modules on Groovy, Focal and Bionic for all 5.4 and 5.8 kernels based on this release:
"netfilter: use actual socket sk rather than skb sk when routing harder" (Upstream commit 46d6c5ae953cc0b
This is the same issue found on xtables-addons (bug 1907109 and bug 1915177).
[Test case]
Install west-chamber-dkms package which builds the kernel modules.
[Fix]
The proposed fix is similar to what has been done for xtabled-addons and use a version of the API depending on the kernel version being built against.
However, the ABI version detection needs to be done differently between the 5.4 and the 5.8 kernels. For the 5.4 kernels the ABI change was applied as part of an upstream stable release which changed the SUBLEVEL version on the Makefile, so the detection can be done using the LINUX_VERSION_CODE macro. For the 5.8 kernels, this can't be done and another method is needed to check function declaration on the kernel headers. Therefore Focal also needs the same change as done in Groovy because of the HWE backport based on 5.8.
[Where problems could occur]
If any kernel version doesn't match the assumptions reflected by the ifdef's the modules can fail to build.
-----
Testing failing on:
amd64: https:/
arm64: https:/
armhf: https:/
ppc64el: https:/
s390x: https:/
Build of the dkms is failing with the following error:
/usr/src/
106 | if (ip_route_
| ^~~
| |
| struct sk_buff *
In file included from ./include/
./include/
19 | int ip_route_
|
Changed in west-chamber (Ubuntu): | |
status: | New → Fix Released |
Changed in west-chamber (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in west-chamber (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in west-chamber (Ubuntu Bionic): | |
status: | In Progress → Confirmed |
description: | updated |
description: | updated |
Changed in west-chamber (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in west-chamber (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in west-chamber (Ubuntu Focal): | |
status: | Confirmed → In Progress |
summary: |
- west-chamber-dkms fails to build with linux 5.4.0-57.63 + west-chamber-dkms fails to build after ip_route_me_harder() signature + change |
description: | updated |
Changed in west-chamber (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in west-chamber (Ubuntu Groovy): | |
importance: | Undecided → High |
tags: | removed: verification-needed |
Changed in west-chamber (Ubuntu): | |
importance: | Undecided → High |
Attached is the debdiff for west-chamber west-chamber_ 20100405+ svn20111107. r124-12ubuntu0. 1 to fix the build issue on Focal.
The source packages can be found at: /kernel. ubuntu. com/~ksouza/ lp1912783/
https:/
The package was built successfully on all arches on the following ppa: /launchpad. net/~kleber- souza/+ archive/ ubuntu/ ppa/+sourcepub/ 12090844/ +listing- archive- extra
https:/