Skip to content
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

6.0.x backport: multi-tenancy: ASAN error on engine analysis #9910

Closed
wants to merge 3 commits into from

Conversation

jlucovsky
Copy link
Contributor

Backport the multi-tenancy changes needed to avoid ASAN issues when running --engine-analysis

Additionally, update the suricata-verify tests to work in 6.0.x; there were 4 tests requiring message updates for successful test outcomes

Link to redmine ticket: 6549

Describe changes:

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

To use a pull request use a branch name like pr/N where N is the
pull request number.

Alternatively, SV_BRANCH may also be a link to an
OISF/suricata-verify pull-request.

SV_REPO=
SV_BRANCH=pr/1500
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

jlucovsky and others added 3 commits November 27, 2023 10:05
This commit adds validation of the bsize value(s) with the available
buffer size. Signatures are flagged if the bsize and buffer size are
incompatible.

Issue: 3682
(cherry picked from commit ecfdc24)
Ticket: 2982

This commit validates that the content usage in a rule will not exceed
the dsize value.

Values of distance that cause the right edge to be exceeded are
considered an error and the signature will be rejected.

(cherry picked from commit 7eb5fb1)
Issue: 6239

This commit moves the global variables associated with engine analysis
into the detect engine context. Doing so provides encapsulation of the
analysis components as well as thread-safe operation in a multi-tenant
(context) deployment.

(cherry picked from commit c8615bc)
@jlucovsky jlucovsky requested a review from a team as a code owner November 28, 2023 14:07
@victorjulien
Copy link
Member

Why are the bsize/dsize commits part of this?

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 16775

@jlucovsky
Copy link
Contributor Author

Continued in #9927

@jlucovsky jlucovsky closed this Nov 30, 2023
@jlucovsky jlucovsky deleted the 6549/1 branch February 8, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants