aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-05-09 06:55:02 +0000
committerAlexei Starovoitov <[email protected]>2023-05-12 19:05:21 +0000
commitbdeeed3498c7871c17465bb4f11d1bc67f9098af (patch)
treeb221e4b559bc7a642dd03266074cdb91ecdabbd7 /drivers/net/ethernet/intel/igc/igc_main.c
parentbpf: Address KCSAN report on bpf_lru_list (diff)
downloadkernel-bdeeed3498c7871c17465bb4f11d1bc67f9098af.tar.gz
kernel-bdeeed3498c7871c17465bb4f11d1bc67f9098af.zip
libbpf: fix offsetof() and container_of() to work with CO-RE
It seems like __builtin_offset() doesn't preserve CO-RE field relocations properly. So if offsetof() macro is defined through __builtin_offset(), CO-RE-enabled BPF code using container_of() will be subtly and silently broken. To avoid this problem, redefine offsetof() and container_of() in the form that works with CO-RE relocations more reliably. Fixes: 5fbc220862fc ("tools/libpf: Add offsetof/container_of macro in bpf_helpers.h") Reported-by: Lennart Poettering <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions