HomeFreeBSD

libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined

Description

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>
MFC after: 1 week
Reviewed by: brooks, kib
Differential Revision: https://reviews.freebsd.org/D37036

Details

Provenance
markjAuthored on Oct 18 2022, 10:11 PM
Reviewer
brooks
Differential Revision
D37036: libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined
Parents
rGe03b7883e97c: mbuf: don't include lock.h conditionally
Branches
Unknown
Tags
Unknown