[PATCH] D36399: [sanitizers] Add a blocking boolean to GetRandom prototype
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 07:53:25 PDT 2017
cryptoad created this revision.
Herald added a subscriber: kubamracek.
On platforms with `getrandom`, the system call defaults to blocking. This
becomes an issue in the very early stage of the boot for Scudo, when the RNG
source is not set-up yet: the syscall will block and we'll stall.
Introduce a parameter to specify that the function should not block, defaulting
to blocking as the underlying syscall does.
Update Scudo to use the non-blocking version.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5467 bytes
Desc: not available
More information about the llvm-commits