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

tetragon: fix crash in kprobe validation #1551

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Oct 4, 2023

fix crash in kprobe validation

Currently having 'return: true' without returnArg being defined
will cause crash in validateSycall. Adding the missing check.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@olsajiri olsajiri added the release-note/bug This PR fixes an issue in a previous release of Tetragon. label Oct 4, 2023
@olsajiri olsajiri marked this pull request as ready for review October 4, 2023 13:58
@olsajiri olsajiri requested a review from a team as a code owner October 4, 2023 13:58
@olsajiri olsajiri requested a review from kevsecurity October 4, 2023 13:58
Copy link
Contributor

@kevsecurity kevsecurity left a comment

Choose a reason for hiding this comment

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

LGTM

@mtardy
Copy link
Member

mtardy commented Oct 4, 2023

btw this is the kind of stuff (interdependence between two fields) that we can manage directly with https://kubernetes.io/blog/2022/09/23/crd-validation-rules-beta/. It could be interesting to have more validation directly in spec!

@olsajiri olsajiri merged commit 8146f48 into cilium:main Oct 4, 2023
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