Re: [PATCH bpf v2] bpf: fix nested bpf tracepoints with per-cpu data

From: Alexei Starovoitov
Date: Sat Jun 15 2019 - 19:40:27 EST


On Tue, Jun 11, 2019 at 2:54 PM Matt Mullins <mmullins@xxxxxx> wrote:
>
> BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on the same CPU, as
> they do not increment bpf_prog_active while executing.
>
> This enables three levels of nesting, to support
> - a kprobe or raw tp or perf event,
> - another one of the above that irq context happens to call, and
> - another one in nmi context
> (at most one of which may be a kprobe or perf event).
>
> Fixes: 20b9d7ac4852 ("bpf: avoid excessive stack usage for perf_sample_data")
> Signed-off-by: Matt Mullins <mmullins@xxxxxx>

Applied. Thanks