Your message dated Mon, 03 Aug 2026 22:16:32 +0000
with message-id <[email protected]>
and subject line Bug#1142917: fixed in openvpn-dco-dkms 0.0+git20260519-2
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+git20260519-2
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: Mon, 03 Aug 2026 23:38:11 +0200
Source: openvpn-dco-dkms
Architecture: source
Version: 0.0+git20260519-2
Distribution: unstable
Urgency: medium
Maintainer: Bernhard Schmidt <[email protected]>
Changed-By: Bernhard Schmidt <[email protected]>
Closes: 1142917
Changes:
 openvpn-dco-dkms (0.0+git20260519-2) unstable; urgency=medium
 .
   * Cherry-pick proposed upstream commit to fix FTBFS on Linux 7.1.5+
     (Closes: #1142917)
Checksums-Sha1:
 3b128550fbba4a64aa87ed13cd19baa73ef8dead 2053 
openvpn-dco-dkms_0.0+git20260519-2.dsc
 b7ff615c43ee93baaaa616833e607210b61de581 4436 
openvpn-dco-dkms_0.0+git20260519-2.debian.tar.xz
 9de2d8eb64c4e20db8681e8bd4cacf65bca8864a 5686 
openvpn-dco-dkms_0.0+git20260519-2_amd64.buildinfo
Checksums-Sha256:
 eae5154fb2ca3d9e247a76f74451880ab7b685a93211cd3c6a61b847491a0d02 2053 
openvpn-dco-dkms_0.0+git20260519-2.dsc
 bcf06e2b05d8c535a0aa895c5b14c268b9a870ea1c9487f7704d90a178382822 4436 
openvpn-dco-dkms_0.0+git20260519-2.debian.tar.xz
 1fa65bf0d3467ba5cdbba52bbf60a6e2d797e96921c09f489d2c02eb30c4cf82 5686 
openvpn-dco-dkms_0.0+git20260519-2_amd64.buildinfo
Files:
 1b601e7f376b0343f77da5efcfe45641 2053 net optional 
openvpn-dco-dkms_0.0+git20260519-2.dsc
 44465905ee4b0e533983491c2e6c97b0 4436 net optional 
openvpn-dco-dkms_0.0+git20260519-2.debian.tar.xz
 92c0c84329036f91c1d19022ee51b061 5686 net optional 
openvpn-dco-dkms_0.0+git20260519-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE1uAexRal3873GVbTd1B55bhQvJMFAmpxC2oRHGJlcm5pQGRl
Ymlhbi5vcmcACgkQd1B55bhQvJOZvhAAopw8l3/uye6sN4Io+LADQ3jiQS33HuWc
g0jHK2afMVX1KNsu+aKl/Az4cjwgfcbzkOxQKRpj2Thxz3JiaVIr6l4VnAJwzSMu
+OMaA/McrsShBAzHOJlfUQ/sFPFYJuE42MjX8Zkm2llzOsx/ItLaKEIyl485jBQC
s0A/trDnnw0X07tjhu/mmaHr0g4WOQLDHNab8U22p9b3GyG2oIwG98G8ueNTIl+7
Q+VCEkfYTPYixvsd/L6gn90RroKiyvXnH78ZaZ5K75WKCiGtx+VJxXXerknuyfOy
yAZ8RBu4enb4ou9Tuye3lDwU/+8gKCtXn7S+EiyurbdGa7VmLa3tlL15QymS54Pa
UmAffDlngsiQY6wjh5Fj6+9TBX10GmbVqteb2/OsNgPM0qdiUqQV0sNu5S+gZ2o1
1maxpYPpZdf1zJ5naFwhF1fxSagLVM3UXgoXtLASFaeMplKkUmYL+cxCHcmKQBHj
/2DdZzLaZXRW15CynirQOICYGKJsIPOEzJiCRO7wnlLZgQAKH229mgoSpeaS0muu
BV3mmEwQGgA2p4eDAmTxyoW70hW4p9E4vKuU8F6f9/zeSWIbB0kCOGVMWu/UeJeN
hYdcehg85r2Jge9/xooJoAFjZ86wTTZW58HUFneTFbWlTdSKX7+gsF25us4JjZou
ovriRktw7b4=
=lkhx
-----END PGP SIGNATURE-----

Attachment: pgpXyKrb4ry7h.pgp
Description: PGP signature


--- End Message ---

Reply via email to