bpf: Allowlist few fields similar to __rcu tag.
authorAlexei Starovoitov <ast@kernel.org>
Tue, 4 Apr 2023 04:50:27 +0000 (21:50 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 4 Apr 2023 23:57:21 +0000 (16:57 -0700)
commit30ee9821f9430c34a6254134a5f0e8db227510be
treedaf6942e6fc678d9bd71f3ec35e9f4e43e3442dd
parentadd68b843f33d4e5dcbdc7ba6dffe7750a964159
bpf: Allowlist few fields similar to __rcu tag.

Allow bpf program access cgrp->kn, mm->exe_file, skb->sk, req->sk.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20230404045029.82870-7-alexei.starovoitov@gmail.com
kernel/bpf/verifier.c