Conversation
Treat bad link-header CRCs and impossible link lengths as recoverable errors and attempt to resynchronize. Also consume a response frame whose trusted length is too short for the required response headers, so later responses remain available. Ticket: 8980
Create a TX to carry the event if needed. Requires passing if the event is created on the request or response, for the tx allocation. Ticket: 8979
|
AI-generated review posted automatically by Suricata ai-review. Verdict: request changes
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #16170 +/- ##
==========================================
+ Coverage 83.14% 83.15% +0.01%
==========================================
Files 1004 1004
Lines 277579 277596 +17
==========================================
+ Hits 230789 230848 +59
+ Misses 46790 46748 -42
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Information: QA ran without warnings. Pipeline = 33714 |
|
Is the review bot comment something that still needs looking into @jasonish ? |
No, this is calculated changed based on discussion with @catenacyber and I added it to the ticket: https://redmine.openinfosecfoundation.org/issues/8980#note-10 for transparency. The @suricata-review-bot doesn't appear to pick that up, but it shoud. |
Question from @jasonish:
Understood. The linked tracker note was unavailable to the runner, and the public inline discussion only explained why Given your clarification that this behavior is an accepted tradeoff, the finding can be treated as resolved. Recording that rationale directly in the PR discussion or description will make it visible to future bot reviews. |
catenacyber
left a comment
There was a problem hiding this comment.
Thanks for the work,
CI/QA/AI : ✅
Git ID set : looks fine for me
CLA : you already contributed
Doc update : not needed
Redmine ticket : ok, maybe we should create a tracking ticket for all the protocols to "preserve events when no current tx"
Tests : cool
Dependencies added: none
Code : good
Commits segmentation : cool
Commit messages : ok, but I do not understand (nor see in the code) " Also consume a response frame whose trusted length is too short for the required response headers, so later responses remain available."
If the outer header was valid but the has user data check failed, we would error out the protocol. As the outer header is trusted (crc check), we can skip to the next frame instead of error'ing out in this case - consume what we have as we know its good. Not the best wording I suppose. |
|
This was merged, thanks! |
Ticket: https://redmine.openinfosecfoundation.org/issues/8979
Ticket: https://redmine.openinfosecfoundation.org/issues/8980
SV_BRANCH=OISF/suricata-verify#3347