Skip to content

Do not use tail calls in execve sensor - #5353

Open
olsajiri wants to merge 9 commits into
mainfrom
pr/olsajiri/execve_notc
Open

Do not use tail calls in execve sensor#5353
olsajiri wants to merge 9 commits into
mainfrom
pr/olsajiri/execve_notc

Conversation

@olsajiri

@olsajiri olsajiri commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

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.

@netlify

netlify Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 2448423
🔍 Latest deploy log https://app.netlify.com/projects/tetragon/deploys/6a6e6012f7f5d9000839188e
😎 Deploy Preview https://deploy-preview-5353--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 project configuration.

@olsajiri olsajiri added the release-note/minor This PR introduces a minor user-visible change label Jul 27, 2026
@olsajiri
olsajiri force-pushed the pr/olsajiri/execve_notc branch 5 times, most recently from 6a0572d to e960f0d Compare July 31, 2026 07:29
@olsajiri olsajiri changed the title Pr/olsajiri/execve notc Do not use tail calls in execve sensor Jul 31, 2026
@olsajiri
olsajiri marked this pull request as ready for review July 31, 2026 13:39
@olsajiri
olsajiri requested review from a team and kkourt as code owners 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
olsajiri force-pushed the pr/olsajiri/execve_notc branch from e960f0d to 2448423 Compare August 1, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/minor This PR introduces a minor user-visible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant