Skip to content
Commit 1d712839 authored by David Vernet's avatar David Vernet Committed by Alexei Starovoitov
Browse files

bpf: Make bpf_cgroup_acquire() KF_RCU | KF_RET_NULL



struct cgroup is already an RCU-safe type in the verifier. We can
therefore update bpf_cgroup_acquire() to be KF_RCU | KF_RET_NULL, and
subsequently remove bpf_cgroup_kptr_get(). This patch does the first of
these by updating bpf_cgroup_acquire() to be KF_RCU | KF_RET_NULL, and
also updates selftests accordingly.

Signed-off-by: default avatarDavid Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230411041633.179404-1-void@manifault.com
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 10fd5f70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment