summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2025-12-16 12:33:23 -0500
committerAndrii Nakryiko <andrii@kernel.org>2025-12-16 10:42:55 -0800
commit0aa721437e4b74d737f58582f1bbf2eea3e038c7 (patch)
treed61f0206a4fd00d997c883e692065dcbf91ba6ad /include/linux
parent12a1fe6e12dbad39f2f0dad1a385625f0298eff4 (diff)
libbpf: Turn relo_core->sym_off unsigned
The symbols' relocation offsets in BPF are stored in an int field, but cannot actually be negative. When in the next patch libbpf relocates globals to the end of the arena, it is also possible to have valid offsets > 2GiB that are used to calculate the final relo offsets. Avoid accidentally interpreting large offsets as negative by turning the sym_off field unsigned. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20251216173325.98465-4-emil@etsalapatis.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions