[PR #1057] [MERGED] Fix/ebpf free #14791

Closed
opened 2026-08-05 03:06:20 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1057
Author: @pappz
Created: 8/7/2023
Status: Merged
Merged: 8/7/2023
Merged by: @pappz

Base: mainHead: fix/ebpf_free


📝 Commits (2)

📊 Changes

4 files changed (+4 additions, -2 deletions)

View changed files

📝 client/internal/wgproxy/ebpf/loader.go (+1 -1)
📝 client/internal/wgproxy/factory.go (+1 -1)
📝 client/internal/wgproxy/proxy_ebpf.go (+1 -0)
📝 client/internal/wgproxy/proxy_userspace.go (+1 -0)

📄 Description

Describe your changes

Fix eBPF free call and add debug logs.
Because of a typo we never detached the loaded eBPF program.
It can cause problems if we start to reuse the proxy factory.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/1057 **Author:** [@pappz](https://github.com/pappz) **Created:** 8/7/2023 **Status:** ✅ Merged **Merged:** 8/7/2023 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix/ebpf_free` --- ### 📝 Commits (2) - [`afee520`](https://github.com/netbirdio/netbird/commit/afee5205cd433175a65d2ac1b8cad95993c27adf) Fix ebpf free call - [`8aaa9d7`](https://github.com/netbirdio/netbird/commit/8aaa9d78aefae432886dfc20076a553f40f629a3) Add debug logs ### 📊 Changes **4 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/wgproxy/ebpf/loader.go` (+1 -1) 📝 `client/internal/wgproxy/factory.go` (+1 -1) 📝 `client/internal/wgproxy/proxy_ebpf.go` (+1 -0) 📝 `client/internal/wgproxy/proxy_userspace.go` (+1 -0) </details> ### 📄 Description ## Describe your changes Fix eBPF free call and add debug logs. Because of a typo we never detached the loaded eBPF program. It can cause problems if we start to reuse the proxy factory. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:20 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14791