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

Use a message copy to apply fieldFilters in exec events #1693

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

willfindlay
Copy link
Contributor

[upstream commit: dca73e3]

As we keep them in the process cache, removing fields may affect the correctness of the process cache. In order to fix that, we create a copy of the event and apply fieldFilters only on the copy.

FIXES: #1428

Fix an issue where using field filters could result in a segmentation fault in the message handler.

@willfindlay willfindlay added the release-note/bug This PR fixes an issue in a previous release of Tetragon. label Oct 31, 2023
@willfindlay willfindlay requested a review from jrfastab October 31, 2023 19:01
@willfindlay willfindlay requested a review from a team as a code owner October 31, 2023 19:01
[upstream commit: dca73e3]

As we keep them in the process cache, removing fields may affect the
correctness of the process cache. In order to fix that, we create a copy
of the event and apply fieldFilters only on the copy.

FIXES: #1428

Signed-off-by: Anastasios Papagiannis <[email protected]>
@willfindlay willfindlay force-pushed the backports/willfindlay/1432 branch from 9fe2004 to 5a43f7e Compare October 31, 2023 19:11
@willfindlay willfindlay merged commit 697dd77 into v0.10 Oct 31, 2023
17 checks passed
@willfindlay willfindlay deleted the backports/willfindlay/1432 branch October 31, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/bug This PR fixes an issue in a previous release of Tetragon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants