Re: [PATCH bpf-next v3 0/4] bpf: Check recursion per task for preemptible programs
From: JP Kobryn (CrowdStrike)
Date: Wed Nov 25 2026 - 15:23:53 EST
On 11/24/26 8:02 PM, Alexei Starovoitov wrote:
> 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.
Thanks for taking a look. Since it looks like v4 will conditionally disable
preemption for run context entry to exit, this concept does not have to be
tied to this series.
We'll pursue the private stack work separately, but will continue testing
revisions of this series.