]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/bpf/verifier.c
bpf: Generalize ptr_or_null regs check
authorJoe Stringer <joe@wand.net.nz>
Tue, 2 Oct 2018 20:35:32 +0000 (13:35 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Oct 2018 00:53:47 +0000 (02:53 +0200)
commit840b9615d6e9d134178b4dd4f3c30aa30643a379
treee18e8e895b5e88bbe0eb938fe8719276b398e01b
parent9d2be44a7f33d5ec4fbd3368317bcf5f404bb8f7
bpf: Generalize ptr_or_null regs check

This check will be reused by an upcoming commit for conditional jump
checks for sockets. Refactor it a bit to simplify the later commit.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/verifier.c