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

Next/20200707/v5 #5139

Merged
merged 22 commits into from Jul 7, 2020
Merged

Next/20200707/v5 #5139

merged 22 commits into from Jul 7, 2020

Conversation

victorjulien
Copy link
Member

#5138 #5132 #5052 #5093

Misc fixes.

PRScript output (if applicable):
Passed.

#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

victorjulien and others added 22 commits July 6, 2020 22:50
In case of lossy connections the SMB state would properly clean up
transactions, including file transactions. However for files the
state was never set to 'truncated', leading to files to stay 'active'.

This would lead these files staying in the SMB's state. In long running
sessions with lots of files this would lead to performance and memory
use issues.

This patch cleans truncates the file that was being transmitted when
a file transaction is being closed.
This caused some arrays to be larger than needed.
TCP closed state was initialized to 0 by default.

Clean up 'closed' value setting for other protocols and the common
default.
When under stress, the packet threads ultimately fall back
to walking the hash table until they find a flow they can
safely evict and reuse. This could lead to all threads
fighting over the FlowBucket locks.

Fix by adding a limit to the number of hash rows that are
checked for a new flow. If the limit is reached, simply fail
to get a flow.
If GAP is not supported set EOF flags in the parser.
Does not proceed final chunk if we got an error previously
Flips the direction for last chunk as usual
Convert the IKEV2 Json logging to use JsonBuilder.
This commit adds support for the byte jump "from_end" keyword and
unittests.
This commit updates debug "printf" message to use SCLogDebug
This commit changes the flag bit values to be expressed using the
BIT_U16 macro instead with hex values.
@victorjulien victorjulien requested review from jasonish and a team as code owners July 7, 2020 11:51
@victorjulien
Copy link
Member Author

commit check fail is due to a random CI network issue.

@victorjulien victorjulien deleted the next/20200707/v5 branch July 17, 2020 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants