commit | 109cea5a594f921632ca599b385aaa0575971045 | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andriin@fb.com> | Tue Aug 18 14:33:53 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Tue Aug 18 17:16:15 2020 -0700 |
tree | 58f00ffee0aeb132a3db6ccb550902d1b4054130 | |
parent | bb180fb2401dfed0ba85699064e60d62af351ff9 [diff] |
libbpf: Sanitize BPF program code for bpf_probe_read_{kernel, user}[_str] Add BPF program code sanitization pass, replacing calls to BPF bpf_probe_read_{kernel,user}[_str]() helpers with bpf_probe_read[_str](), if libbpf detects that kernel doesn't support new variants. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200818213356.2629020-5-andriin@fb.com