]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined
authorMark Johnston <markj@FreeBSD.org>
Tue, 18 Oct 2022 22:11:26 +0000 (18:11 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 25 Oct 2022 12:45:08 +0000 (08:45 -0400)
commit6dde65fa74a3a442973039bcad33b2f145439ec9
tree9bffc0bcb08a6caf3a3c28793b5e3120cd890c14
parentbc53b440fbd232ee4fb6ef3bab15bed71085de43
libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined

Otherwise we do not fall back to sysctls if the auxv entries are not
defined by the kernel.  Arguably this is not a bug since we do not
support newer libc running on an older kernel, but we can be a bit more
gentle for the benefit of Valgrind or any other software which
synthesizes the auxv for virtualization purposes.

Reported by: Paul Floyd <paulf2718@gmail.com>
Reviewed by: brooks, kib

(cherry picked from commit a4ee0edc4a0b3f880463021c7ae1bdcf7112f3d6)
lib/libc/gen/auxv.c