[Impact]
Focal linux 5.4.0-57.63 backported from v5.4.78 upstream stable release the following commit, which broke the build of west-chamber dkms modules on Focal and Bionic for all 5.4 kernels based on this release:
"netfilter: use actual socket sk rather than skb sk when routing harder" (Upstream commit 46d6c5ae953cc0be38efd0e469284df7c4328cf8).
This is the same issue found on xtables-addons (bug 1907109).
Build of the dkms is failing with the following error:
/usr/src/west-chamber-20100405+svn20111107.r124/extensions/xt_CUI.c:106:30: error: passing argument 2 of ‘ip_route_me_harder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
106 | if (ip_route_me_harder(net, skb, addr_type))
| ^~~
| |
| struct sk_buff *
In file included from ./include/linux/netfilter/x_tables.h:245, from /usr/src/west-chamber-20100405+svn20111107.r124/extensions/xt_CUI.c:19:
./include/linux/netfilter_ipv4.h:19:54: note: expected ‘struct sock *’ but argument is of type ‘struct sk_buff *’
19 | int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
|
[Impact]
Focal linux 5.4.0-57.63 backported from v5.4.78 upstream stable release the following commit, which broke the build of west-chamber dkms modules on Focal and Bionic for all 5.4 kernels based on this release:
"netfilter: use actual socket sk rather than skb sk when routing harder" (Upstream commit 46d6c5ae953cc0b e38efd0e469284d f7c4328cf8) .
This is the same issue found on xtables-addons (bug 1907109).
[Test case]
Install west-chamber-dkms package.
[Fix]
[Where problems could occur]
----- /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- focal/focal/ amd64/w/ west-chamber/ 20210121_ 172911_ d9f41@/ log.gz /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- focal/focal/ arm64/w/ west-chamber/ 20210113_ 011159_ 54cdf@/ log.gz /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- focal/focal/ armhf/w/ west-chamber/ 20210113_ 010911_ 54cdf@/ log.gz /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- focal/focal/ ppc64el/ w/west- chamber/ 20210113_ 010547_ 54cdf@/ log.gz /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- focal/focal/ s390x/w/ west-chamber/ 20210113_ 010347_ cc516@/ log.gz
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/ west-chamber- 20100405+ svn20111107. r124/extensions /xt_CUI. c:106:30: error: passing argument 2 of ‘ip_route_ me_harder’ from incompatible pointer type [-Werror= incompatible- pointer- types] me_harder( net, skb, addr_type)) linux/netfilter /x_tables. h:245,
from /usr/src/ west-chamber- 20100405+ svn20111107. r124/extensions /xt_CUI. c:19: linux/netfilter _ipv4.h: 19:54: note: expected ‘struct sock *’ but argument is of type ‘struct sk_buff *’ me_harder( struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
106 | if (ip_route_
| ^~~
| |
| struct sk_buff *
In file included from ./include/
./include/
19 | int ip_route_
|