diff options
| author | Alexei Starovoitov <[email protected]> | 2021-02-01 21:38:37 -0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-02-04 16:46:44 +0100 |
| commit | 4c5de127598e1b725aa3a5e38ac711472566ca60 (patch) | |
| tree | 0a1cdb904666323a00bb0c46c1825df2b2983750 /tools/perf/scripts/python/bin | |
| parent | 5f10c1aac8b29d225d19a74656865d1ee3db6eaa (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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions