[PATCH] D54113: [sanitizer] Use AT_EXECFN in ReExec() if available
Benjamin Kramer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 5 15:00:05 PST 2018
bkramer added inline comments.
================
Comment at: test/msan/Linux/reexec_unlimited_stack.cc:16
+int main() {
+#if __GLIBC_PREREQ(2, 16)
+ puts(reinterpret_cast<const char *>(getauxval(AT_EXECFN)));
----------------
vitalybuka wrote:
> How this test triggers changed code?
The idea is that the `ulimit -s unlimited` makes msan re-exec on startup. Currently this overwrites AT_EXECFN with `/proc/self/exe`. With this change it's preserved.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D54113
More information about the llvm-commits
mailing list