[PATCH] D56141: [asan] Support running without /proc
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 28 15:14:53 PST 2018
eugenis created this revision.
eugenis added reviewers: vitalybuka, pcc, krytarowski.
Herald added a subscriber: kubamracek.
This patch lets ASan run when /proc is not accessible (ex. not mounted
yet). It includes a special test-only flag that emulates this condition
in an unpriviledged process.
This only matters on Linux, where /proc is necessary to enumerate
virtual memory mappings.
https://reviews.llvm.org/D56141
Files:
compiler-rt/lib/asan/asan_thread.cc
compiler-rt/lib/hwasan/hwasan_thread.cc
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/lib/sanitizer_common/sanitizer_posix.cc
compiler-rt/lib/sanitizer_common/sanitizer_posix.h
compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cc
compiler-rt/test/asan/TestCases/Posix/no-fd.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56141.179665.patch
Type: text/x-patch
Size: 11168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181228/a90633a8/attachment.bin>
More information about the llvm-commits
mailing list