bpf: Remove tracing program restriction on map types
authorAlexei Starovoitov <ast@kernel.org>
Fri, 2 Sep 2022 21:10:54 +0000 (14:10 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 5 Sep 2022 13:33:06 +0000 (15:33 +0200)
commit96da3f7d489d11b43e7c1af90d876b9a2492cca8
tree45ddc0b1d6da09d1acfe4f9be1de97b490dad59c
parentee4ed53c5eb62f49f23560cc2642353547e46c32
bpf: Remove tracing program restriction on map types

The hash map is now fully converted to bpf_mem_alloc. Its implementation is not
allocating synchronously and not calling call_rcu() directly. It's now safe to
use non-preallocated hash maps in all types of tracing programs including
BPF_PROG_TYPE_PERF_EVENT that runs out of NMI context.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220902211058.60789-13-alexei.starovoitov@gmail.com
kernel/bpf/verifier.c