Page MenuHomeFreeBSD

getentropy(3): Trap non-API errnos from getrandom(2) and abort
ClosedPublic

Authored by cem on Sep 5 2018, 3:54 PM.
Tags
None
Referenced Files
F114796846: D17050.id47701.diff
Thu, Apr 17, 12:45 AM
Unknown Object (File)
Mon, Apr 14, 1:49 PM
Unknown Object (File)
Wed, Apr 9, 4:26 AM
Unknown Object (File)
Feb 24 2025, 8:45 AM
Unknown Object (File)
Feb 21 2025, 2:03 PM
Unknown Object (File)
Feb 21 2025, 12:21 PM
Unknown Object (File)
Feb 20 2025, 12:54 AM
Unknown Object (File)
Feb 18 2025, 8:18 PM
Subscribers

Details

Summary

Additionally, reconcile our abort behavior with arc4random(3). Unlike
SIGABRT, SIGKILL cannot be caught by the user program. These failures
are fatal conditions and should not return to the caller, as they did in
the instance that resulted in D17049.

While here, fix some minor typos in a comment.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable