[PR #269] Fix setup_udp_tunnel_sock compilation error for Linux kernel >= 7.0 #269

Open
opened 2026-10-13 21:08:09 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/269
Author: @LAG-Lagendary
Created: 10/13/2026
Status: 🔄 Open

Base: master ← Head: fix-kernel-7-build


📝 Commits (1)

  • 541d783 Fix setup_udp_tunnel_sock macro compatibility for Linux kernel 7.0

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 src/compat/compat.h (+4 -0)

📄 Description

Issue:
DKMS module fails to build on Ubuntu Linux kernel 7.0.0 due to an incompatible pointer type in setup_udp_tunnel_sock. The function signature has been backported/updated in 7.0 to expect struct sock * instead of struct socket *, but udp_tunnel_sock_release still expects struct socket *.

Fix:
Updated src/compat/compat.h to stop redefining setup_udp_tunnel_sock for kernels >= 7.0.0, while keeping the redefinition for udp_tunnel_sock_release intact.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/269 **Author:** [@LAG-Lagendary](https://github.com/LAG-Lagendary) **Created:** 10/13/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix-kernel-7-build` --- ### 📝 Commits (1) - [`541d783`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/541d7834923feb8d8831d314b9ed400d686cfd4e) Fix setup_udp_tunnel_sock macro compatibility for Linux kernel 7.0 ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/compat/compat.h` (+4 -0) </details> ### 📄 Description Issue: DKMS module fails to build on Ubuntu Linux kernel 7.0.0 due to an incompatible pointer type in setup_udp_tunnel_sock. The function signature has been backported/updated in 7.0 to expect struct sock * instead of struct socket *, but udp_tunnel_sock_release still expects struct socket *. Fix: Updated src/compat/compat.h to stop redefining setup_udp_tunnel_sock for kernels >= 7.0.0, while keeping the redefinition for udp_tunnel_sock_release intact. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#269
No description provided.