aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePassManager.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2020-08-12 19:32:15 -0700
committerPeter Collingbourne <peter@pcc.me.uk>2020-08-13 13:09:02 -0700
commit9f8c4039f202c4f8e8b820bce6f05039d53ea005 (patch)
tree5b28f06296df3ea80a07b545f5123ebe256e612a /llvm/lib/CodeGen/MachinePassManager.cpp
parent114c9fa0e46f7bf1d05d92da70da116b19f16911 (diff)
downloadllvm-9f8c4039f202c4f8e8b820bce6f05039d53ea005.zip
llvm-9f8c4039f202c4f8e8b820bce6f05039d53ea005.tar.gz
llvm-9f8c4039f202c4f8e8b820bce6f05039d53ea005.tar.bz2
sanitizer_common: Introduce internal_madvise and start using it.
A recent change to sanitizer_common caused us to issue the syscall madvise(MADV_HUGEPAGE) during HWASAN initialization. This may lead to a problem if madvise is instrumented (e.g. because libc is instrumented or the user intercepted it). For example, on Android the syscall may fail if the kernel does not support transparent hugepages, which leads to an attempt to set errno in a HWASAN instrumented function. Avoid this problem by introducing a syscall wrapper and using it to issue this syscall. Tested only on Linux; includes untested updates for the other platforms. Differential Revision: https://reviews.llvm.org/D85870
Diffstat (limited to 'llvm/lib/CodeGen/MachinePassManager.cpp')
0 files changed, 0 insertions, 0 deletions