Straightforward implementation of getrandom syscall and libc
hooks.
Test Plan: Local MSAN failures caused by uninstrumented getrandom
calls stop failing.
Patch by Andrew Krieger.
Paths
| Differential D65551
[compiler-rt] Implement getrandom interception ClosedPublic Authored by akrieger on Jul 31 2019, 6:11 PM.
Details Summary Straightforward implementation of getrandom syscall and libc Test Plan: Local MSAN failures caused by uninstrumented getrandom Patch by Andrew Krieger.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 31 2019, 6:11 PM Herald added subscribers: llvm-commits, Restricted Project, dberris, kubamracek. · View Herald Transcript Comment Actions Can you please add some trivial test under compiler-rt/test/sanitizer_common ? You can't check sanitization there, just check that does not crash and return reasonable results This revision is now accepted and ready to land.Aug 5 2019, 1:43 PM Comment Actions @vitalybuka thanks for the quick review and accept. I need someone to commit this for me - can you do that or should I find someone else to push this for me? Closed by commit rL367999: [compiler-rt] Implement getrandom interception (authored by vitalybuka). · Explain WhyAug 6 2019, 1:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 213536 compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getrandom.cpp
|