Re: [PATCH bpf-next v3 0/4] bpf: Check recursion per task for preemptible programs

From: Alexei Starovoitov

Date: Tue Nov 24 2026 - 23:02:28 EST


On Tue, Nov 24, 2026 at 06:06 PM JP Kobryn (CrowdStrike) <jp.kobryn@xxxxxxxxx> wrote:
> The patch below is a proof of concept scoped only to x86_64 trampolines.
> It was validated with the bpftrace prog that precedes the patch, along
> with jited assembly dump to inspect the new private frame API calls.
> Overhead measured was roughly 60ns, but this was just a first take and I
> believe it can be optimized especially in the JIT area. If it makes
> sense, this could be integrated into the series or sent as a follow-up.

If you want to redesign private stack please take inspiration
from insert_arena_stack_get(). Much lower overhead and no artificial limits.