Skip to content

Next/20220727/v8#7653

Merged
victorjulien merged 19 commits intoOISF:masterfrom
victorjulien:next/20220727/v8
Jul 28, 2022
Merged

Next/20220727/v8#7653
victorjulien merged 19 commits intoOISF:masterfrom
victorjulien:next/20220727/v8

Conversation

jufajardini and others added 19 commits July 25, 2022 20:51
alert_queue_overflow and alerts_suppressed were not being
reinitialized when there was a reload of Suricata rules, leading to
non-valid stats counters if that happened.

Bug OISF#5457
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@c3f1317...0865c47)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
The image describing Suricata's sliding window had two of the "packets"
with the same text. Now they actually give the sense of a sliding
window.

This was found by Zhiyuan-liao.
@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #7653 (6f8ca41) into master (f8bf581) will increase coverage by 0.00%.
The diff coverage is 95.00%.

@@           Coverage Diff           @@
##           master    #7653   +/-   ##
=======================================
  Coverage   75.75%   75.76%           
=======================================
  Files         659      659           
  Lines      185743   185748    +5     
=======================================
+ Hits       140713   140726   +13     
+ Misses      45030    45022    -8     
Flag Coverage Δ
fuzzcorpus 60.18% <85.00%> (+0.03%) ⬆️
suricata-verify 52.50% <85.00%> (+0.07%) ⬆️
unittests 60.70% <0.00%> (-0.01%) ⬇️

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

This was referenced Jul 28, 2022
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 8368

@victorjulien victorjulien deleted the next/20220727/v8 branch July 17, 2023 11:56
victorjulien added a commit to victorjulien/suricata that referenced this pull request Apr 11, 2025
If for the same a packet a drop rule and a pass rule would match,
the applying of actions could be contradictionary:

- the drop would be applied to the packet
- the pass rule would also be considered, not overriding the drop,
  but still setting the flow pass flag.

This would lead to the packet being dropped, but the rest of the
flow getting passed, including retransmissions of the dropped
packet.

This patch only sets drop/pass actions if no conflicting action
has been set on the packet before. It respects the action-order.

Bug: OISF#7653.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Apr 17, 2025
If for the same a packet a drop rule and a pass rule would match,
the applying of actions could be contradictionary:

- the drop would be applied to the packet
- the pass rule would also be considered, not overriding the drop,
  but still setting the flow pass flag.

This would lead to the packet being dropped, but the rest of the
flow getting passed, including retransmissions of the dropped
packet.

This patch only sets drop/pass actions if no conflicting action
has been set on the packet before. It respects the action-order.

Bug: OISF#7653.
victorjulien added a commit to victorjulien/suricata that referenced this pull request May 13, 2025
If for the same a packet a drop rule and a pass rule would match,
the applying of actions could be contradictionary:

- the drop would be applied to the packet
- the pass rule would also be considered, not overriding the drop,
  but still setting the flow pass flag.

This would lead to the packet being dropped, but the rest of the
flow getting passed, including retransmissions of the dropped
packet.

This patch only sets drop/pass actions if no conflicting action
has been set on the packet before. It respects the action-order.

Bug: OISF#7653.

Fix based on:
57b17fb ("detect: don't set conflicting packet/flow actions")
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