]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Move check_ptr_off_reg before check_map_access
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 15 Apr 2022 16:03:43 +0000 (21:33 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Apr 2022 14:31:10 +0000 (16:31 +0200)
commitf8d794ff96e5ea2691bd6de7745a256360334689
tree6e4741901d2b8a13d4f01fc083ac64892fd2f74a
parent863db08494271a56818c1a74f6edd41fd6601165
bpf: Move check_ptr_off_reg before check_map_access

Some functions in next patch want to use this function, and those
functions will be called by check_map_access, hence move it before
check_map_access.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://lore.kernel.org/bpf/20220415160354.1050687-3-memxor@gmail.com
kernel/bpf/verifier.c