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 #1432

Merged
merged 1 commit into from Sep 6, 2023

Conversation

tpapagian
Copy link
Member

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

@tpapagian tpapagian added the release-note/bug This PR fixes an issue in a previous release of Tetragon. label Sep 5, 2023
@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit a81851a
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/64f70dd14634ba00081b97e7
😎 Deploy Preview https://deploy-preview-1432--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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 <tasos.papagiannnis@gmail.com>
@tpapagian tpapagian marked this pull request as ready for review September 5, 2023 13:11
@tpapagian tpapagian requested a review from a team as a code owner September 5, 2023 13:11
Copy link
Contributor

@willfindlay willfindlay left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this

@tpapagian tpapagian merged commit dca73e3 into main Sep 6, 2023
27 checks passed
@tpapagian tpapagian deleted the pr/apapag/no_fieldfilter_exec branch September 6, 2023 15:01
willfindlay added a commit that referenced this pull request Nov 1, 2023
We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering.

Signed-off-by: William Findlay <will@isovalent.com>
willfindlay added a commit that referenced this pull request Nov 1, 2023
We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering. Also optimize copying logic to only perform the copy when absolutely necessary.

Signed-off-by: William Findlay <will@isovalent.com>
willfindlay added a commit that referenced this pull request Nov 2, 2023
We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering. Also optimize copying logic to only perform the copy when absolutely necessary.

Signed-off-by: William Findlay <will@isovalent.com>
willfindlay added a commit that referenced this pull request Nov 2, 2023
We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering. Also optimize copying logic to only perform the copy when absolutely necessary.

Signed-off-by: William Findlay <will@isovalent.com>
willfindlay added a commit that referenced this pull request Nov 2, 2023
[upstream commit 6b34552]

We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering. Also optimize copying logic to only perform the copy when absolutely necessary.

Signed-off-by: William Findlay <will@isovalent.com>
willfindlay added a commit that referenced this pull request Nov 2, 2023
[upstream commit 6b34552]

We encountered another segfault similar to the one fixed in #1432. This time, it's related
to the pid field in exit events. Fix this by making a copy of the exit event before
filtering. Also optimize copying logic to only perform the copy when absolutely necessary.

Signed-off-by: William Findlay <will@isovalent.com>
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.

invalid memory address or nil pointer dereference
2 participants