diff options
| author | Yuntao Wang <[email protected]> | 2022-04-04 00:53:20 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-04-04 02:56:01 +0000 |
| commit | e93f39998d8f8ed456dfbb4ca68f9a159906cc6f (patch) | |
| tree | 2d6f3af729a40046500f17db7d3a589331d241aa /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'libbpf: name-based u[ret]probe attach' (diff) | |
| download | kernel-e93f39998d8f8ed456dfbb4ca68f9a159906cc6f.tar.gz kernel-e93f39998d8f8ed456dfbb4ca68f9a159906cc6f.zip | |
libbpf: Don't return -EINVAL if hdr_len < offsetofend(core_relo_len)
Since core relos is an optional part of the .BTF.ext ELF section, we should
skip parsing it instead of returning -EINVAL if header size is less than
offsetofend(struct btf_ext_header, core_relo_len).
Signed-off-by: Yuntao Wang <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
