diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-08-13 22:49:39 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-14 01:45:41 +0200 |
commit | 15728ad3e71c120278105f20fa65b3735e715e0f (patch) | |
tree | e3535002fcf2fec5cddcf456ed3a54318289a689 /tools/lib/bpf/btf.h | |
parent | selftest/bpf: Fix compilation warnings in 32-bit mode (diff) | |
download | linux-15728ad3e71c120278105f20fa65b3735e715e0f.tar.xz linux-15728ad3e71c120278105f20fa65b3735e715e0f.zip |
libbpf: Fix BTF-defined map-in-map initialization on 32-bit host arches
Libbpf built in 32-bit mode should be careful about not conflating 64-bit BPF
pointers in BPF ELF file and host architecture pointers. This patch fixes
issue of incorrect initializating of map-in-map inner map slots due to such
difference.
Fixes: 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map support")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200813204945.1020225-4-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/btf.h')
0 files changed, 0 insertions, 0 deletions