Skip to content

Conversation

@jufajardini
Copy link
Contributor

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

Describe changes:

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

SV_BRANCH=OISF/suricata-verify#2884

In corner case scenarios of the engine seeing a single-packet flow
started midstream, it would skip certain inspections for the packet due
to TCP connection not being established yet.

This led to the possibility of a real packet not being blocked, in iPS,
or matched against rules, as the corresponding portion of the stream
was only inspected later, as part of the stream/flow-timeout logic.

Checking if midstream is enabled allows the engine to inspect that
traffic earlier, and block the corresponding packet, if need be.

Related to
Bug OISF#5180
During initialization, the engine reports how many rules were loaded, as
well as which types. Pkt-only or stream-pkt rules would cause a "hole"
in such stats, as they're not counted.
@jufajardini jufajardini force-pushed the bug-5180-01-single-pkt/v1 branch from bad716a to 59d6c49 Compare January 22, 2026 19:39
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.12%. Comparing base (c333b28) to head (59d6c49).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14677   +/-   ##
=======================================
  Coverage   82.11%   82.12%           
=======================================
  Files        1011     1011           
  Lines      262812   262825   +13     
=======================================
+ Hits       215812   215839   +27     
+ Misses      47000    46986   -14     
Flag Coverage Δ
fuzzcorpus 60.21% <88.88%> (+0.03%) ⬆️
livemode 18.74% <83.33%> (+0.02%) ⬆️
pcap 44.63% <88.88%> (+0.03%) ⬆️
suricata-verify 65.30% <88.88%> (+0.01%) ⬆️
unittests 59.27% <88.88%> (+<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.

@jufajardini
Copy link
Contributor Author

Forced-push the clang-format fix.

@victorjulien
Copy link
Member

"In corner case scenarios" - please describe the scenario(s) in which this can happen.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 29251

@catenacyber catenacyber added the needs rebase Needs rebase to main label Jan 23, 2026
Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in commit message iPS

Also needs rebase

@jufajardini
Copy link
Contributor Author

another attempt: #14704

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

Labels

needs rebase Needs rebase to main

Development

Successfully merging this pull request may close these issues.

4 participants