]> 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)
commit32ab6a0c2230e8efc78bfa08fb45a70a173be819
treee18e8e895b5e88bbe0eb938fe8719276b398e01b
parent30de6938e14a9d6b6c8f068a8044b944b2a9fb26
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