Page MenuHomeFreeBSD

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

Authored by markj on Oct 18 2022, 3:47 PM.
Tags
None
Referenced Files
F111636505: D37036.id111940.diff
Thu, Mar 6, 8:21 AM
F111620089: D37036.diff
Thu, Mar 6, 2:52 AM
Unknown Object (File)
Mon, Feb 17, 6:49 AM
Unknown Object (File)
Dec 10 2024, 5:22 AM
Unknown Object (File)
Nov 20 2024, 3:45 PM
Unknown Object (File)
Nov 8 2024, 4:37 PM
Unknown Object (File)
Nov 8 2024, 3:37 PM
Unknown Object (File)
Nov 8 2024, 1:31 PM
Subscribers

Details

Summary

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 here.

I assume here that the kernel-provided values for AT_USRSTACK* are
always non-zero.

Reported by: Paul Floyd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable