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

Add commandline option to simulate alert queue expand failure - v3 (again) #7649

Closed

Conversation

jufajardini
Copy link
Contributor

This is the same work from #7622 but in a new PR to see how the CI checks perform without the SV tests I wrote to test Suri behavior when the tmp alert queue reallocation fails.

Usage in IPS mode, to simulate a failure for debugging purposes. Command-line arguments: --simulate-ips --simulate-alert-queue-realloc-failure. This will return the default packet_alert_max capacity when Suri tries to expand det_ctx->alert_queue, instead realloc'ng.

For testing purposes. Meant to simulate a reallocation failure when
dynamically growing the alert queue in DetectEngineThreadCtx, so we can
check that Suri's behavior doesn't break under such circumstances.

Task OISF#5319
@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

Merging #7649 (c12ae13) into master (f8bf581) will increase coverage by 3.51%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #7649      +/-   ##
==========================================
+ Coverage   75.75%   79.26%   +3.51%     
==========================================
  Files         659      659              
  Lines      185743   229933   +44190     
==========================================
+ Hits       140713   182265   +41552     
- Misses      45030    47668    +2638     
Flag Coverage Δ
fuzzcorpus 61.58% <0.00%> (+1.43%) ⬆️
suricata-verify 55.67% <ø> (+3.23%) ⬆️
unittests 64.64% <ø> (+3.93%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

ERROR:

ERROR: QA failed on ips_afp_drop_chk.

Pipeline 8334

This was referenced Jul 28, 2022
@victorjulien
Copy link
Member

Merged in #7653, thanks!

@jufajardini
Copy link
Contributor Author

Seems like this one was left Home Alone :P
Reopening.

@jufajardini jufajardini reopened this Jul 28, 2022
@catenacyber
Copy link
Contributor

I guess you need to rebase and open a new PR as one commit out of 2 was merged

@jufajardini
Copy link
Contributor Author

I guess you need to rebase and open a new PR as one commit out of 2 was merged

roger that!

Replaced by #7656

@jufajardini jufajardini deleted the alert-expand-fail-5319/v3 branch August 2, 2022 12:15
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.

4 participants