Skip to content

app-layer: track modified/processed txs (backport7)#12293

Closed
catenacyber wants to merge 1 commit intoOISF:main-7.0.xfrom
catenacyber:tx-track-modif-7087-backport7
Closed

app-layer: track modified/processed txs (backport7)#12293
catenacyber wants to merge 1 commit intoOISF:main-7.0.xfrom
catenacyber:tx-track-modif-7087-backport7

Conversation

@catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7087

Describe changes:

Not a clean cherry-pick
Conflicts:
rust/src/applayer.rs
rust/src/enip/enip.rs
rust/src/ldap/ldap.rs
src/app-layer-smtp.c

enip.rs and ldap.rs are only in 8

Other conflict fixes while just taking the changes brought by this commit, not the ones which were done nearby in recent work

To optimize detection, and logging, to avoid going through
all the live transactions when only a few were modified.

Two boolean fields are added to the tx data: updated_tc and ts
The app-layer parsers are now responsible to set these when
needed, and the logging and detection uses them to skip
transactions that were not updated.

There may some more optimization remaining by when we set
both updated_tc and updated_ts in functions returning
a mutable transaction, by checking if all the callers
are called in one direction only (request or response)

Ticket: 7087
(cherry picked from commit b02557a)

Conflicts:
	rust/src/applayer.rs
	rust/src/enip/enip.rs
	rust/src/ldap/ldap.rs
	src/app-layer-smtp.c
@codecov
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 98.26087% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.33%. Comparing base (e5ebe36) to head (6b129f6).
Report is 14 commits behind head on main-7.0.x.

Additional details and impacted files
@@              Coverage Diff               @@
##           main-7.0.x   #12293      +/-   ##
==============================================
+ Coverage       83.21%   83.33%   +0.11%     
==============================================
  Files             922      922              
  Lines          261173   261276     +103     
==============================================
+ Hits           217338   217723     +385     
+ Misses          43835    43553     -282     
Flag Coverage Δ
fuzzcorpus 64.49% <97.39%> (+0.28%) ⬆️
suricata-verify 63.47% <83.47%> (-0.01%) ⬇️
unittests 62.37% <45.21%> (-0.01%) ⬇️

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

@catenacyber
Copy link
Contributor Author

CI failure is tcp-urgp-07-oob-exceed-limit

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23985

@catenacyber catenacyber added this to the 7.0 milestone Jan 28, 2025
@jufajardini
Copy link
Contributor

Is it a good time to merge this now?

Copy link
Member

@inashivb inashivb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message needs to be reworked so this can be staged again.
See: #12549 (comment)

@catenacyber
Copy link
Contributor Author

Replaced by #12592

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.

5 participants