bpf: move arg:ctx type enforcement check inside the main logic loop
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 25 Jan 2024 20:55:06 +0000 (12:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 29 Jan 2024 20:34:13 +0000 (12:34 -0800)
commitadd9c58cd44e88a15f285945e26bf0d9d81c5890
treec1d2907a12d225121b23ffc703031d33f9f48cc4
parent9eea8fafe33eb70868f6ace2fc1e17c4ff5539c3
bpf: move arg:ctx type enforcement check inside the main logic loop

Now that bpf and bpf-next trees converged and we don't run the risk of
merge conflicts, move btf_validate_prog_ctx_type() into its most logical
place inside the main logic loop.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240125205510.3642094-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c