HardenedBSD/contrib/llvm-project
Dimitry Andric 4c9a0adad1 compiler-rt: avoid segfaults when re-exec'ing with ASLR
After 930a7c2ac6 ("compiler-rt: re-exec with ASLR disabled when
necessary") and 96fe7c8ab0 ("compiler-rt: support ReExec() on
FreeBSD"), binaries linked against the sanitizer libraries may segfault
due to procctl(2) being intercepted. Instead, the non-intercepted
internal_procctl() should be called.

Similarly, the ReExec() function that re-executes the binary after
turning off ASLR should not call elf_aux_info(3) and realpath(3), since
these will also be intercepted. Instead, loop directly over the elf aux
info vector to find the executable path, and avoid calling realpath(3)
since it is actually unwanted for this use case.

Fixes:		930a7c2ac6, 96fe7c8ab0
MFC after:	3 days
2023-11-22 19:23:06 +01:00
..
clang
compiler-rt compiler-rt: avoid segfaults when re-exec'ing with ASLR 2023-11-22 19:23:06 +01:00
libcxx Merge commit 3537338d1ab9 from llvm git (by Nikolas Klauser): 2023-11-14 18:34:45 -08:00
libunwind
lld
lldb
llvm
openmp
FREEBSD-Xlist