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/20210305/v3 #5958

Merged
merged 6 commits into from Mar 5, 2021
Merged

Next/20210305/v3 #5958

merged 6 commits into from Mar 5, 2021

Conversation

victorjulien
Copy link
Member

#5957 with formatting fixes

@victorjulien victorjulien requested a review from a team as a code owner March 5, 2021 12:10
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #5958 (d582b77) into master (68f8b2f) will increase coverage by 0.01%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master    #5958      +/-   ##
==========================================
+ Coverage   76.74%   76.75%   +0.01%     
==========================================
  Files         604      604              
  Lines      187904   187853      -51     
==========================================
- Hits       144213   144195      -18     
+ Misses      43691    43658      -33     
Flag Coverage Δ
fuzzcorpus 52.75% <69.23%> (+0.01%) ⬆️
suricata-verify 49.91% <61.53%> (+0.03%) ⬆️
unittests 63.08% <72.22%> (+<0.01%) ⬆️

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

@victorjulien victorjulien merged commit c3075cb into OISF:master Mar 5, 2021
@victorjulien victorjulien mentioned this pull request Mar 5, 2021
@victorjulien victorjulien deleted the next/20210305/v3 branch March 7, 2021 08:24
lukashino pushed a commit to lukashino/suricata that referenced this pull request Mar 30, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 3, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 3, 2023
BPF codebase queried engine mode earlier than it was determined from
the configuration file/command line. As a result it used the default (IDS)
mode where it could've been configured later on to the IPS mode.
This could lead into an undefined behavior as some Suricata modules behave
according to the engine mode.

PF-Ring, Netmap and AF-Packet all shared almost identical code for
determining the engine mode. It was put into one common function.
Omitted the usage of SCStrdup function in PF-Ring module as it is
uppercased during thread initialization phase.

Ticket: OISF#5958
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 3, 2023
Move evaluation of engine runmode to an earlier
phase so that dependend modules rely on properly
configured engine runmode.

Ticket: OISF#5958
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request May 4, 2023
BPF codebase queried engine mode earlier than it was determined from
the configuration file/command line. As a result it used the default (IDS)
mode where it could've been configured later on to the IPS mode.
This could lead into an undefined behavior as some Suricata modules behave
according to the engine mode.

PF-Ring, Netmap and AF-Packet all shared almost identical code for
determining the engine mode. It was put into one common function.
Omitted the usage of SCStrdup function in PF-Ring module as it is
uppercased during thread initialization phase.

Ticket: OISF#5958
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request May 4, 2023
Move evaluation of engine runmode to an earlier
phase so that dependend modules rely on properly
configured engine runmode.

Ticket: OISF#5958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant