summaryrefslogtreecommitdiff
path: root/include/linux/node.h
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2025-12-16 20:33:23 +0300
committerAndrii Nakryiko <andrii@kernel.org>2025-12-16 21:42:55 +0300
commit0aa721437e4b74d737f58582f1bbf2eea3e038c7 (patch)
treed61f0206a4fd00d997c883e692065dcbf91ba6ad /include/linux/node.h
parent12a1fe6e12dbad39f2f0dad1a385625f0298eff4 (diff)
downloadlinux-0aa721437e4b74d737f58582f1bbf2eea3e038c7.tar.xz
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/node.h')
0 files changed, 0 insertions, 0 deletions