[all-commits] [llvm/llvm-project] f64223: [scudo] Only read urandom if getrandom syscall isn...
Christopher Ferris via All-commits
all-commits at lists.llvm.org
Mon Oct 6 13:17:53 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f64223647e1969253ddc1bd8725bfacfc0456215
https://github.com/llvm/llvm-project/commit/f64223647e1969253ddc1bd8725bfacfc0456215
Author: Christopher Ferris <cferris1000 at users.noreply.github.com>
Date: 2025-10-06 (Mon, 06 Oct 2025)
Changed paths:
M compiler-rt/lib/scudo/standalone/linux.cpp
Log Message:
-----------
[scudo] Only read urandom if getrandom syscall isn't available. (#161889)
If the getrandom system call is available, but the call returns an
error, it could mean that the system doesn't have enough randomness to
respond yet. Trying to read /dev/urandom will likely block and cause
initialization to be stalled. Therefore, return false in this case and
use the backup random data.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list