[PR #157] fix(compat): resolve blake2s regression from 26f5df0 on Ubuntu 20.04 (Kernel 5.4) #209

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

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/157
Author: @h1de0x
Created: 3/24/2026
Status: 🔄 Open

Base: master ← Head: fix-ubuntu-20-04-v2


📝 Commits (1)

  • 8d79252 fix: resolve blake2s header collision on Ubuntu 20.04

📊 Changes

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

View changed files

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

📄 Description

Fixes #158

Fixes a regression for older kernels (specifically 5.4 on Ubuntu 20.04) introduced in commit 26f5df0.

Commit [26f5df0] updated the blake2s API to support kernels ≥ 6.19 by renaming the context and swapping argument order. However, this caused a regression on older distributions like Ubuntu 20.04, where:

Including system headers leads to symbol collisions with internal Zinc code.

The kernel still expects the legacy argument order for blake2s().


🔄 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/157 **Author:** [@h1de0x](https://github.com/h1de0x) **Created:** 3/24/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix-ubuntu-20-04-v2` --- ### 📝 Commits (1) - [`8d79252`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/8d79252ffe647a44f62cec9285329e44b2909ff1) fix: resolve blake2s header collision on Ubuntu 20.04 ### 📊 Changes **1 file changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/compat/compat.h` (+10 -4) </details> ### 📄 Description Fixes #158 Fixes a regression for older kernels (specifically 5.4 on Ubuntu 20.04) introduced in commit 26f5df0. Commit [26f5df0] updated the blake2s API to support kernels ≥ 6.19 by renaming the context and swapping argument order. However, this caused a regression on older distributions like Ubuntu 20.04, where: Including system headers leads to symbol collisions with internal Zinc code. The kernel still expects the legacy argument order for blake2s(). --- <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#209
No description provided.