bpf: Rework ptr_limit into alu_limit and add common error path
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 31 May 2021 18:25:43 +0000 (18:25 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Thu, 16 May 2024 07:58:24 +0000 (10:58 +0300)
commitb91e7c1015d2fd71f1ae0ef30c9491a4297b3fbb
treea48986a35389fd3fdd4e9d32fd3192d3bd8e264d
parent90c4c695e7ca5f09249ec603544c80c833bc317f
bpf: Rework ptr_limit into alu_limit and add common error path

commit b658bbb844e28f1862867f37e8ca11a8e2aa94a3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/bpf/verifier.c