]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:54:07 +0000 (09:54 +0200)
commit81526ed4f6a81985657b69ac9e84b4cb81b48cfe
tree6c447a3fa4519c5155514eab27a3a26999cfdeb4
parente13ecb7d815979d11c10268e155b8d0e6b81eb24
bpf: Rework ptr_limit into alu_limit and add common error path

BugLink: https://bugs.launchpad.net/bugs/1926999
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/bpf/verifier.c