aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorAlexei Starovoitov2021-02-01 21:38:37 -0800
committerDaniel Borkmann2021-02-04 16:46:44 +0100
commit4c5de127598e1b725aa3a5e38ac711472566ca60 (patch)
tree0a1cdb904666323a00bb0c46c1825df2b2983750 /kernel/bpf
parent5f10c1aac8b29d225d19a74656865d1ee3db6eaa (diff)
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
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions