diff options
author | Matt Mullins <mmullins@fb.com> | 2019-06-11 14:53:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 13:13:43 +0200 |
commit | 2a9fedc1ef4be2acb4fd4674f405c21c811e1505 (patch) | |
tree | 78716d1e7e7f68fe35a9867c621485d28b7a6358 /net | |
parent | 7cec89761822f911527ba89ffda314fa4c0fad67 (diff) | |
download | linux-stable-2a9fedc1ef4be2acb4fd4674f405c21c811e1505.tar.gz linux-stable-2a9fedc1ef4be2acb4fd4674f405c21c811e1505.tar.bz2 linux-stable-2a9fedc1ef4be2acb4fd4674f405c21c811e1505.zip |
bpf: fix nested bpf tracepoints with per-cpu data
commit 9594dc3c7e71b9f52bee1d7852eb3d4e3aea9e99 upstream.
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@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions