This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][ASAN] Allow mlock, munlock
Needs ReviewPublic

Authored by jump_ripatel on Jan 12 2023, 7:10 AM.

Details

Reviewers
kcc
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

Event Timeline

jump_ripatel created this revision.Jan 12 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 7:10 AM
jump_ripatel requested review of this revision.Jan 12 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 7:11 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Fixed weird clang-format output