bpf: Move BPF_STX reserved field check into BPF_STX verifier code
authorBrendan Jackman <jackmanb@google.com>
Thu, 14 Jan 2021 18:17:45 +0000 (18:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Jan 2021 02:34:29 +0000 (18:34 -0800)
commitc5bcb5eb4db632280b4123135d583a7bc8caea3e
tree220bf8ea301e5c89fa22fc74fa1e3ba854378c0f
parent91c960b0056672e74627776655c926388350fa30
bpf: Move BPF_STX reserved field check into BPF_STX verifier code

I can't find a reason why this code is in resolve_pseudo_ldimm64;
since I'll be modifying it in a subsequent commit, tidy it up.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210114181751.768687-6-jackmanb@google.com
kernel/bpf/verifier.c