bpf: Rework ptr_limit into alu_limit and add common error path
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Mar 2021 08:04:10 +0000 (09:04 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Apr 2021 21:51:43 +0000 (23:51 +0200)
commitb658bbb844e28f1862867f37e8ca11a8e2aa94a3
treeb342f07b0438c09019ccd2f5fac52808a9a7d81e
parent24c109bb1537c12c02aeed2d51a347b4d6a9b76e
bpf: Rework ptr_limit into alu_limit and add common error path

Small refactor with no semantic changes in order to consolidate the max
ptr_limit boundary check.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c