Commit 45251bcf authored by Alan Maguire's avatar Alan Maguire Committed by Greg Kroah-Hartman
Browse files

libbpf/btf: Fix string handling to support multi-split BTF



[ Upstream commit 4e29128a ]

libbpf handling of split BTF has been written largely with the
assumption that multiple splits are possible, i.e. split BTF on top of
split BTF on top of base BTF.  One area where this does not quite work
is string handling in split BTF; the start string offset should be the
base BTF string section length + the base BTF string offset.  This
worked in the past because for a single split BTF with base the start
string offset was always 0.

Signed-off-by: default avatarAlan Maguire <alan.maguire@oracle.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250519165935.261614-2-alan.maguire@oracle.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ec7d08ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment