]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Move off_reg into sanitize_ptr_alu
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 22 Mar 2021 14:45:52 +0000 (15:45 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Apr 2021 21:51:36 +0000 (23:51 +0200)
commit75ee9bc1110a73d6f735ccdfd59cc436252249de
tree9e259148696b9f2331746ad16e7fec8f8c211ef6
parent549a7508829e5a4f7e5a454d741049ce2fa56cd2
bpf: Move off_reg into sanitize_ptr_alu

Small refactor to drag off_reg into sanitize_ptr_alu(), so we later on can
use off_reg for generalizing some of the checks for all pointer types.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c