Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/195/20231120/v1 #9847

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Conversation

victorjulien
Copy link
Member

joser12345678 and others added 3 commits November 20, 2023 12:44
To mitigate a bug with AF_XDP sockets in high traffic scenarios, the XDP program must be detatched before
the sockets are closed. This issue happens when large ammounts of traffic are sent to suricata and
the XDP program is not removed before AF_XDP sockets are closed. I believe this is a race
condition bug as detailed here: https://bugzilla.kernel.org/show_bug.cgi?id=217712

Further investigation shows this may be a bug exclusive to the driver/AMD processor combination.

This commit addresses the bug by ensuring the first thread to run the deinit function
removes the XDP program, which fixes the bug as detailed in the bugzilla link.

Bug OISF#6238
Copy link

NOTE: This PR may contain new authors.

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

Merging #9847 (90c1765) into master (180459e) will decrease coverage by 0.01%.
The diff coverage is 96.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9847      +/-   ##
==========================================
- Coverage   82.47%   82.46%   -0.01%     
==========================================
  Files         972      973       +1     
  Lines      273932   273962      +30     
==========================================
+ Hits       225915   225931      +16     
- Misses      48017    48031      +14     
Flag Coverage Δ
fuzzcorpus 64.37% <30.30%> (-0.03%) ⬇️
suricata-verify 61.08% <96.96%> (-0.01%) ⬇️
unittests 62.87% <30.30%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien merged commit 90c1765 into OISF:master Nov 20, 2023
45 checks passed
@victorjulien victorjulien deleted the next/195/20231120/v1 branch June 23, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants