Alexei Starovoitov 4c5de12759 bpf: Emit explicit NULL pointer checks for PROBE_LDX instructions.
PTR_TO_BTF_ID registers contain either kernel pointer or NULL.
Emit the NULL check explicitly by JIT instead of going into
do_user_addr_fault() on NULL deference.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210202053837.95909-1-alexei.starovoitov@gmail.com
2021-02-04 16:46:44 +01:00
..
2020-12-19 11:18:38 -08:00
2020-12-14 17:34:12 -08:00
2021-01-11 11:28:58 -08:00
2021-01-11 11:28:58 -08:00
2021-01-08 15:06:02 -08:00
2020-12-14 18:29:11 -08:00
2021-01-05 11:40:23 +01:00
2020-12-16 16:38:41 -08:00
2020-08-09 14:10:26 -07:00
2021-01-20 11:46:38 -08:00