Removes interceptors for mlock(), munlock().
On recent Linux kernels, calling mlock(2) while ASan is active does not pose any problem. mlockall(2) remains problematic.
The sanitizers currently also don't block mlock2(2).
Paths
| Differential D141610
[compiler-rt][ASAN] Allow mlock, munlock Needs ReviewPublic Authored by jump_ripatel on Jan 12 2023, 7:10 AM.
Details
Summary Removes interceptors for mlock(), munlock(). On recent Linux kernels, calling mlock(2) while ASan is active does not pose any problem. mlockall(2) remains problematic. The sanitizers currently also don't block mlock2(2).
Diff Detail
Revision Contents
Diff 488710 compiler-rt/lib/asan/tests/asan_test.cpp
compiler-rt/lib/msan/tests/msan_test.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cpp
|