-
Notifications
You must be signed in to change notification settings - Fork 1.7k
next/1194/20260129/v1 #14712
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/1194/20260129/v1 #14712
Conversation
To explain a bit more the TOCTOU issue found, we can consider a case where Suricata starts to prune, yet externally somebody also starts erasing cache files. Right after Suricata checks the file age with the stat function, somebody may delete or update the file of our interest. Suricata aging decision doesn't reflect the actual state of the file. This commit additionally adds a check for noent failure of the unlink operation (considered as a success). The code can still delete a file that is recently updated but was considered stale. In the documentation-following deployments this should not happen anyway as one cache folder should only be used by a single Suricata instance (and within Suricata instance only one thread handles cache eviction). Additionally, the `stat` and `unlink` command are immediatelly followed, making this scenario extra unlikely. Additional comment in the code explains problems of using fstat and potential issues on Windows. Ticket: 8243
Some drivers (e.g. BNXT) fail to report stats after the device is stopped. Move stats collection (DPDKDumpCounters and PrintDPDKPortXstats) to run before rte_eth_dev_stop() in HandleShutdown. Also change PrintDPDKPortXstats error handling from FatalError to graceful return since stats collection failures during shutdown should not crash the application. The commit removes ThreadExitPrintStats callback as the function had no useful features after the stats were moved. Ticket: 8251
bindgen needed SCSigMatchSilentErrorEnabled on the way
Will allow for generic callbacks, that can be used from rust
Introduces helper SCDetectRegisterBufferLowerMd5Callbacks
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14712 +/- ##
==========================================
+ Coverage 82.13% 82.14% +0.01%
==========================================
Files 1011 1007 -4
Lines 263295 263194 -101
==========================================
- Hits 216258 216210 -48
+ Misses 47037 46984 -53
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Staging OK
No SV ok
CI ok, waiting for QA
|
Information: QA ran without warnings. Pipeline = 29331 |
Staging: