]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: sym: don't crash on images linked at a fixed base
authorOlivier Houchard <ohouchard@haproxy.com>
Sat, 17 Oct 2026 22:19:01 +0000 (00:19 +0200)
committerOlivier Houchard <cognet@ci0.org>
Sat, 17 Oct 2026 22:39:36 +0000 (00:39 +0200)
commitfa2a35088bdbdea8a7322f176a74e0b1bc3d0adf
tree99973684ca95ba82d6819994201a717c9834298f
parenta383051731cfa80f0196bdecc4c6a2ab7c1ea234
BUG/MINOR: sym: don't crash on images linked at a fixed base

collect_dynsym_mem() biases the dynamic entries below the load
address, but those of an image linked at a fixed base sit far above
it and are used as is: this is the case of the vDSO image that old
kernels (e.g. 3.10) build prelinked, and haproxy then crashes at
start-up, the tables being read through unmapped pointers.
Fix that by trying to figure out if the pointer was already relocated
or not.
src/sym.c