diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2023-03-08 10:41:14 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-08 16:19:50 -0800 |
commit | 07236eab7a3139da97aef9f5f21f403be82a82ea (patch) | |
tree | 2415c090bd26760344d2afce0eeaee57534ccf50 /kernel/bpf/helpers.c | |
parent | ed69e0667db5fd0f7eb1fdef329e0985939b0148 (diff) |
bpf: factor out fetching basic kfunc metadata
Factor out logic to fetch basic kfunc metadata based on struct bpf_insn.
This is not exactly short or trivial code to just copy/paste and this
information is sometimes necessary in other parts of the verifier logic.
Subsequent patches will rely on this to determine if an instruction is
a kfunc call to iterator next method.
No functional changes intended, including that verbose() warning
behavior when kfunc is not allowed for a particular program type.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230308184121.1165081-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions