Skip to content

Backport8 8942 v1 - #16131

Closed
catenacyber wants to merge 1 commit into
OISF:main-8.0.xfrom
catenacyber:backport8-8942-v1
Closed

Backport8 8942 v1#16131
catenacyber wants to merge 1 commit into
OISF:main-8.0.xfrom
catenacyber:backport8-8942-v1

Conversation

@catenacyber

Copy link
Copy Markdown
Contributor

Setting a cpu-affinity path with --set, like

  --set threading.cpu-affinity.worker-cpu-set.threads=28

creates an intermediate node under cpu-affinity whose val is NULL.

With a legacy list format cpu-affinity, AffinitySetupLoadFromConfig()
red the set name from the node val and passed it to
GetAffinitySetName(), which then dereferenced the NULL pointer.

Address it by simply checking for the NULL.

Ticket: OISF#6735.
(cherry picked from commit 54504ed)
@victorjulien victorjulien added this to the 8.0 milestone Aug 27, 2026
@suricata-review-bot

Copy link
Copy Markdown

AI-generated review posted automatically by Suricata ai-review.

Verdict: comment

No high- or medium-severity findings.

Commit message typo: b3bc68355 — “red the set name” → “read the set name”.

@suricata-qa

Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33412

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.71%. Comparing base (3b04b76) to head (b3bc683).

Additional details and impacted files
@@              Coverage Diff               @@
##           main-8.0.x   #16131      +/-   ##
==============================================
- Coverage       81.73%   81.71%   -0.02%     
==============================================
  Files            1017     1017              
  Lines          277278   277280       +2     
==============================================
- Hits           226628   226583      -45     
- Misses          50650    50697      +47     
Flag Coverage Δ
fuzzcorpus 63.86% <0.00%> (-0.01%) ⬇️
livemode 18.66% <50.00%> (+0.01%) ⬆️
netns 20.16% <0.00%> (-0.01%) ⬇️
pcap 44.44% <0.00%> (-0.07%) ⬇️
suricata-verify 65.27% <100.00%> (+0.02%) ⬆️
unittests 58.56% <50.00%> (-0.01%) ⬇️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@victorjulien

Copy link
Copy Markdown
Member

Merged in #16146, thanks!

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