Do not use tail calls in execve sensor - #5353
Open
olsajiri wants to merge 9 commits into
Open
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
olsajiri
force-pushed
the
pr/olsajiri/execve_notc
branch
5 times, most recently
from
July 31, 2026 07:29
6a0572d to
e960f0d
Compare
olsajiri
marked this pull request as ready for review
July 31, 2026 13:39
As a preparation for execve code sharing moving read_args to bpf_execve_event.h header, no function change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
As a preparation for execve code sharing moving read_envs to bpf_execve_event.h header, no function change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
As a preparation for execve code sharing moving read_path to bpf_execve_event.h header, no function change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
As a preparation for execve code sharing moving read_cwd to bpf_execve_event.h header, no function change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
As a preparation for execve code sharing moving read_execve_shared_info to bpf_execve_event.h header, no function change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Adding execve_event_init function that initialize exeve event, no functional change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Add execve_rate_check function that does the cgroup rate check, no functional change. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Add execve_send_event function that sends the execve event, no functional change. Note I added few small changes to keep linter/checkpatch happy. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Add execve program without tailcalls, it is used on v53, v511, v61 kernels and compiled instead of the tail-call object. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
olsajiri
force-pushed
the
pr/olsajiri/execve_notc
branch
from
August 1, 2026 21:07
e960f0d to
2448423
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The execve sensor fits into single program (on large kernel forward) which enable
us to use ring-buffer reserve api and get rid of per-cpu buffers (coming next).
Keeping tail-calls in execve program for 4.19 kernels.