Skip to content

[draft] do not review#5442

Draft
saxena-anurag wants to merge 15 commits into
mainfrom
user/anusa/issue_5238_3
Draft

[draft] do not review#5442
saxena-anurag wants to merge 15 commits into
mainfrom
user/anusa/issue_5238_3

Conversation

@saxena-anurag

Copy link
Copy Markdown
Contributor

Description

Describe the purpose of and changes within this Pull Request.
Please reference an issue with a keyword such as Fixes #abc, Closes #xyz, etc., so the work can be tracked.

Testing

Do any existing tests cover this change? Are new tests needed?

If new tests were added:

  • Unit tests are added.
  • Driver tests are added.
  • Fuzz tests are added.

Documentation

Is there any documentation impact for this change?

Installation

Is there any installer impact for this change?

saxena-anurag and others added 15 commits June 9, 2026 17:43
Instead of preventing cleanup on worker threads (which left leftover program
state), use a static CRITICAL_SECTION to serialize link cleanup across all
threads. This prevents races where one thread detaches links while another
is attaching them, while still ensuring all threads clean up their state.

- Add _cleanup_lock static mutex to _native_module_helper
- Initialize/destroy lock via static helper object
- Wrap bpf_link cleanup sequence in EnterCriticalSection/LeaveCriticalSection

This fixes API test failures that were caused by leftover programs from
previous test runs polluting the system state.
@github-actions

Copy link
Copy Markdown
Contributor

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant