Skip to content

Conversation

jlucovsky
Copy link
Contributor

Issue: 7819

DetectEngineReload must hold the master->lock; recent changes changed the locking usages to avoid deadlock when registering/handling tenants. These changes added the presumption that the master lock is held at a higher level. Coverity highlighted that the lock is not held consistently.

Link to ticket: https://redmine.openinfosecfoundation.org/issues/7819

Describe changes:

  • The recent fix for MT related deadlocks placed a new requirement that DetectEngineReload must be called w/the master->lock held.

Provide values to any of the below to override the defaults.

  • To use a Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=

Issue: 7819

DetectEngineReload must hold the `master->lock`; recent changes changed
the locking usages to avoid deadlock when registering/handling tenants.
These changes added the presumption that the master lock is held at a
higher level. Coverity highlighted that the lock is not held
consistently.
Copy link

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.72%. Comparing base (e57eeb2) to head (2e0d14a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13739   +/-   ##
=======================================
  Coverage   83.72%   83.72%           
=======================================
  Files        1011     1011           
  Lines      275065   275068    +3     
=======================================
+ Hits       230291   230301   +10     
+ Misses      44774    44767    -7     
Flag Coverage Δ
fuzzcorpus 62.93% <100.00%> (-0.01%) ⬇️
livemode 19.00% <100.00%> (+<0.01%) ⬆️
pcap 44.68% <0.00%> (+0.01%) ⬆️
suricata-verify 65.07% <0.00%> (-0.01%) ⬇️
unittests 59.18% <0.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.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 27187

@victorjulien
Copy link
Member

Passed my QA. Ran this PR with SV master. Local pipeline 5581, run 968.

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.

3 participants