]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e0e9044b255748bac1849877a8caf3080d55f4e
treee18e8e895b5e88bbe0eb938fe8719276b398e01b
parent098421c5b853f5f59e6ee61c0de05644466fd551
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