summaryrefslogtreecommitdiffstats
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2022-09-02 23:10:56 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2022-09-05 15:33:06 +0200
commit02cc5aa29e8cef4c1d710accd423546ab63f4eda (patch)
tree6621deafbb666f230e4b4836247a9b1113a58f7e /kernel/profile.c
parentbpf: Prepare bpf_mem_alloc to be used by sleepable bpf programs. (diff)
downloadlinux-02cc5aa29e8cef4c1d710accd423546ab63f4eda.tar.xz
linux-02cc5aa29e8cef4c1d710accd423546ab63f4eda.zip
bpf: Remove prealloc-only restriction for sleepable bpf programs.
Since hash map is now converted to bpf_mem_alloc and it's waiting for rcu and rcu_tasks_trace GPs before freeing elements into global memory slabs it's safe to use dynamically allocated hash maps in sleepable bpf programs. 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-15-alexei.starovoitov@gmail.com
Diffstat (limited to 'kernel/profile.c')
0 files changed, 0 insertions, 0 deletions