Your message dated Thu, 06 Aug 2026 12:33:53 +0000
with message-id <[email protected]>
and subject line Bug#1142917: fixed in openvpn-dco-dkms 0.0+git20260804-1
has caused the Debian Bug report #1142917,
regarding openvpn-dco-dkms: Pointer type mismatch compiling for kernel
7.1.5+deb14-amd64
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1142917: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142917
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openvpn-dco-dkms
Version: 0.0+git20260519-1
Severity: important
Tags: ftbfs patch
Dear Maintainer,
After a system upgrade today, openvpn-dco-dkms failed to build against
the newly installed kernel with headers from the
linux-headers-7.1.5+deb14-amd64 package. It looks like the interface to
setup_udp_tunnel_sock has changed, with the second argument now being a
"struct sock *" instead of a "struct socket *", as per
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/include/net/udp_tunnel.h?id=v7.1.5&id2=v7.1.4
Here's the build log that backs that up:
--- Build log start ---
DKMS (dkms-3.2.2) make.log for ovpn-dco/0.0+git20260519 for kernel
7.1.5+deb14-amd64 (x86_64)
Tue 28 Jul 07:17:39 BST 2026
Building module(s)
# command: make -j4 KERNELRELEASE=7.1.5+deb14-amd64 VER=7.1.5+deb14-amd64
KERNEL_SRC=/lib/modules/7.1.5+deb14-amd64/build REVISION=0.0+git20260519
/var/lib/dkms/ovpn-dco/0.0+git20260519/build/gen-compat-autoconf.sh
/var/lib/dkms/ovpn-dco/0.0+git20260519/build/compat-autoconf.h
make -C /lib/modules/7.1.5+deb14-amd64/build
M=/var/lib/dkms/ovpn-dco/0.0+git20260519/build
PWD=/var/lib/dkms/ovpn-dco/0.0+git20260519/build REVISION=0.0+git20260519
CONFIG_OVPN_DCO_V2=m INSTALL_MOD_DIR=updates/ modules
make[1]: Entering directory '/usr/src/linux-headers-7.1.5+deb14-amd64'
make[2]: Entering directory '/var/lib/dkms/ovpn-dco/0.0+git20260519/build'
CC [M] drivers/net/ovpn-dco/main.o
CC [M] drivers/net/ovpn-dco/bind.o
CC [M] drivers/net/ovpn-dco/crypto.o
CC [M] drivers/net/ovpn-dco/ovpn.o
CC [M] drivers/net/ovpn-dco/peer.o
CC [M] drivers/net/ovpn-dco/sock.o
CC [M] drivers/net/ovpn-dco/stats.o
CC [M] drivers/net/ovpn-dco/netlink.o
CC [M] drivers/net/ovpn-dco/crypto_aead.o
CC [M] drivers/net/ovpn-dco/pktid.o
CC [M] drivers/net/ovpn-dco/tcp.o
CC [M] drivers/net/ovpn-dco/udp.o
drivers/net/ovpn-dco/udp.c: In function ‘ovpn_udp_socket_attach’:
drivers/net/ovpn-dco/udp.c:346:51: error: passing argument 2 of
‘setup_udp_tunnel_sock’ from incompatible pointer type
[-Wincompatible-pointer-types]
346 | setup_udp_tunnel_sock(sock_net(sock->sk), sock, &cfg);
| ^~~~
| |
| struct socket *
In file included from drivers/net/ovpn-dco/udp.c:25:
/usr/src/linux-headers-7.1.5+deb14-common/include/net/udp_tunnel.h:97:58: note:
expected ‘struct sock *’ but argument is of type ‘struct socket *’
97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
| ~~~~~~~~~~~~~^~
drivers/net/ovpn-dco/udp.c: In function ‘ovpn_udp_socket_detach’:
drivers/net/ovpn-dco/udp.c:356:51: error: passing argument 2 of
‘setup_udp_tunnel_sock’ from incompatible pointer type
[-Wincompatible-pointer-types]
356 | setup_udp_tunnel_sock(sock_net(sock->sk), sock, &cfg);
| ^~~~
| |
| struct socket *
/usr/src/linux-headers-7.1.5+deb14-common/include/net/udp_tunnel.h:97:58: note:
expected ‘struct sock *’ but argument is of type ‘struct socket *’
97 | void setup_udp_tunnel_sock(struct net *net, struct sock *sk,
| ~~~~~~~~~~~~~^~
make[5]: ***
[/usr/src/linux-headers-7.1.5+deb14-common/scripts/Makefile.build:294:
drivers/net/ovpn-dco/udp.o] Error 1
make[4]: ***
[/usr/src/linux-headers-7.1.5+deb14-common/scripts/Makefile.build:553:
drivers/net/ovpn-dco] Error 2
make[3]: *** [/usr/src/linux-headers-7.1.5+deb14-common/Makefile:2186: .] Error
2
make[2]: *** [/usr/src/linux-headers-7.1.5+deb14-common/Makefile:260:
__sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/ovpn-dco/0.0+git20260519/build'
make[1]: *** [/usr/src/linux-headers-7.1.5+deb14-common/Makefile:260:
__sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-7.1.5+deb14-amd64'
make: *** [Makefile:51: all] Error 2
# exit code: 2
# elapsed time: 00:00:04
--- Build log end ---
The solution feels like passing in sock->sk would do the trick if
compiling for >=7.1.5. I've tried this locally, and it seems to work.
I've attached the patch, but as I'm not a seasoned kernel developer it
might need a bit of cleaning or, or there could be better ways to do it,
but at least it unambiguously shows the path to the fix.
If I can be of any further assistance, just let me know.
-DH.
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 7.1.4+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages openvpn-dco-dkms depends on:
ii dkms 3.2.2-1
openvpn-dco-dkms recommends no packages.
openvpn-dco-dkms suggests no packages.
-- no debconf information
Example to work with interface changes in 7.1.5
--- a/drivers/net/ovpn-dco/udp.c
+++ b/drivers/net/ovpn-dco/udp.c
@@ -18,12 +18,19 @@
#include <linux/inetdevice.h>
#include <linux/skbuff.h>
#include <linux/socket.h>
+#include <linux/version.h>
#include <net/addrconf.h>
#include <net/dst_cache.h>
#include <net/route.h>
#include <net/ipv6.h>
#include <net/udp_tunnel.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(7,1,5)
+#define setup_socket sock
+#else
+#define setup_socket sock->sk
+#endif
+
/**
* ovpn_udp_encap_recv() - Start processing a received UDP packet.
* If the first byte of the payload is DATA_V2, the packet is further
processed,
@@ -343,7 +350,7 @@
return -EBUSY;
}
- setup_udp_tunnel_sock(sock_net(sock->sk), sock, &cfg);
+ setup_udp_tunnel_sock(sock_net(sock->sk), setup_socket, &cfg);
return 0;
}
@@ -353,5 +360,5 @@
{
struct udp_tunnel_sock_cfg cfg = { };
- setup_udp_tunnel_sock(sock_net(sock->sk), sock, &cfg);
+ setup_udp_tunnel_sock(sock_net(sock->sk), setup_socket, &cfg);
}
--- End Message ---
--- Begin Message ---
Source: openvpn-dco-dkms
Source-Version: 0.0+git20260804-1
Done: Bernhard Schmidt <[email protected]>
We believe that the bug you reported is fixed in the latest version of
openvpn-dco-dkms, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bernhard Schmidt <[email protected]> (supplier of updated openvpn-dco-dkms
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 06 Aug 2026 14:07:15 +0200
Source: openvpn-dco-dkms
Architecture: source
Version: 0.0+git20260804-1
Distribution: unstable
Urgency: medium
Maintainer: Bernhard Schmidt <[email protected]>
Changed-By: Bernhard Schmidt <[email protected]>
Closes: 1142917
Changes:
openvpn-dco-dkms (0.0+git20260804-1) unstable; urgency=medium
.
* New upstream version 0.0+git20260804
- really fixes FTBFS on 7.1.5+ (Closes: #1142917)
* Drop patches included upstream
Checksums-Sha1:
83660c7d5f372dfc54b554f2f6cea07e8aa028dc 2053
openvpn-dco-dkms_0.0+git20260804-1.dsc
4f95b3cf4825a2e680b8cfbdfc19a47bb9545e18 71830
openvpn-dco-dkms_0.0+git20260804.orig.tar.gz
40298d86b440024c9a3281cfb3b3712accff6194 3792
openvpn-dco-dkms_0.0+git20260804-1.debian.tar.xz
1501440bafa5b7f6a17a8ca65b2c25af30bbae54 5686
openvpn-dco-dkms_0.0+git20260804-1_amd64.buildinfo
Checksums-Sha256:
9cdb79db8af0ecf72c2d1fb588ab98c6d053c7261c548ce7543dfcfe5db5351d 2053
openvpn-dco-dkms_0.0+git20260804-1.dsc
2b60c22316c458192701ffa5e346279aac2e079980d823c72fdaee2836edbe32 71830
openvpn-dco-dkms_0.0+git20260804.orig.tar.gz
7eaf38393a1a9c4955a9a05c5f9ee265950b897951a70500f9ac261ba9b818d4 3792
openvpn-dco-dkms_0.0+git20260804-1.debian.tar.xz
dc7858beeeff94df2656bc112b258b75d0502dae3df5f538e36787d537934ee9 5686
openvpn-dco-dkms_0.0+git20260804-1_amd64.buildinfo
Files:
adff4a72307adcbad2d246ffe6f6c166 2053 net optional
openvpn-dco-dkms_0.0+git20260804-1.dsc
8f1d8708282353a515625d883576f6b8 71830 net optional
openvpn-dco-dkms_0.0+git20260804.orig.tar.gz
dcac81a8dd9a8678ecd10810c45508a5 3792 net optional
openvpn-dco-dkms_0.0+git20260804-1.debian.tar.xz
e44615500e8830d2ac5dee5b47790390 5686 net optional
openvpn-dco-dkms_0.0+git20260804-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE1uAexRal3873GVbTd1B55bhQvJMFAmp0eiIRHGJlcm5pQGRl
Ymlhbi5vcmcACgkQd1B55bhQvJP5Hg//RK4zoGInZ52YCUXyajRLCs8JxsiuOomT
9pK7hMosKydcLjq5OZRlc8ng4y8cUGnynA5KCi066dJ3LBDRtsaKGox3CXOYlWJR
tjLHXZRfv93SuK52qlQlOBcd1FZOsBCO6ir1qAY9M5pxqFgelVb2Nyy2rMMoTDQv
OHyKFr9BXyHoi9yHA/0peNE4hu3MYZChiswoQXJaFUeV2oze1NS0x2W2NL2pp9+4
ZTNQTrwBHrQwszFQUOkwwlbQ29tX3VqCWVaGprAKW9ORn1YOmmuPfApId+y3Ids6
aPpZ3+AdOaCV+L8nr8IXWJfdlqGivuby7M+X437WCH+u5Q96XEKN1QZtrX2/839p
uPNIYUTPGqyWXhngQ3G2TiLDO6ILErPVgtegXhA7/x6ZCwqHIeiU2Nxt+zzrnCEq
rspomlMtXfVb/SFgRfZrmDKsNJaDE9NxV05BFdXeDVsjFhEIfRr3A2NLIVdRDnsw
N+aYvr9sw5vxEzc218AiJUt4Yr6dsXy+zvvpcm2Xhcu0H9k+us2HpYZd8Jahg5Ej
wSdbj/u0nMBw74mkGnoTRwv5szIvvOnGf2YBrNSto+OKyD9IRWk4xSXyUR7fis56
ZhRAYHdwLYdGYBW6CIQZSkqb5z8YJfmVOntsfu6+Tq1c4FheaDDubx4eQBMMBXZJ
R3Twkvd9ZSA=
=5qoU
-----END PGP SIGNATURE-----
pgpHph_toyVlA.pgp
Description: PGP signature
--- End Message ---