Skip to content

Backport8 8731 8799 8995 v1 - #16189

Closed
catenacyber wants to merge 4 commits into
OISF:main-8.0.xfrom
catenacyber:backport8-8731-8799-8995-v2
Closed

Backport8 8731 8799 8995 v1#16189
catenacyber wants to merge 4 commits into
OISF:main-8.0.xfrom
catenacyber:backport8-8731-8799-8995-v2

Conversation

catenacyber and others added 4 commits September 5, 2026 16:46
Ticket: 8731

Adds a configurable limit to string lengths to avoid to retain
too much memory for too long, and avoid producing log events
that are too big

(cherry picked from commit f9515dc)
And log it with from_utf8_lossy

Since we may now cut a too big failure_reason breaking a valid
utf-8 string

Ticket: 8731
(cherry picked from commit c608165)
Suricata never removed the unix command socket file after shutdown.
The socket path (sockettarget) is now preserved in the struct
UnixCommand_, because it is needed on shutdown to close the socket.

The cleanup is done in the shutdown path of UnixManager(), which is
reached uniformly whether shutdown is triggered by a fatal error or
a signal (e.g. SIGTERM) via THV_KILL. This also applies for a clean
shutdown via 'suricatasc -c shutdown'.

Ticket: 8799
(cherry picked from commit 011f523)
A server can reject a BDAT command before the client sends the
advertised chunk. Suricata would keep waiting for those bytes and treat
the rest of the SMTP session as chunk data.

Keeps subsequent SMTP commands and message data in sync with the
server.

Ticket: 8995
(cherry picked from commit 51ac400)
@suricata-review-bot

Copy link
Copy Markdown

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

Verdict: request changes

  • Medium — rust/src/rfb/logger.rs:84: The RFB backport omits the mainline schema prerequisite for rfb.server_security_failure_reason. Consequently, the RFB regressions enabled by suricata-verify PR #3356 fail EVE schema validation on Fedora and macOS, and the shipped schema rejects valid RFB failure events. Backport the etc/schema.json entry from mainline commit d0cc39c79 and rerun the linked tests.

@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.60274% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.14%. Comparing base (0f3be94) to head (d1461f6).

Additional details and impacted files
@@              Coverage Diff               @@
##           main-8.0.x   #16189      +/-   ##
==============================================
- Coverage       81.76%   78.14%   -3.63%     
==============================================
  Files            1017     1017              
  Lines          277394   277270     -124     
==============================================
- Hits           226815   216673   -10142     
- Misses          50579    60597   +10018     
Flag Coverage Δ
fuzzcorpus 63.88% <51.51%> (-0.02%) ⬇️
livemode 18.63% <13.63%> (-0.06%) ⬇️
netns 20.15% <13.88%> (-0.01%) ⬇️
pcap 44.48% <75.75%> (-0.07%) ⬇️
suricata-verify ?
unittests 58.56% <26.86%> (-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
Copy Markdown

Information: QA ran without warnings.

Pipeline = 33825

@catenacyber

Copy link
Copy Markdown
Contributor Author

Replaced by #16191

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.

5 participants