HomeFreeBSD

Fortuna: Add failpoints to simulate initial seeding conditions

Description

Fortuna: Add failpoints to simulate initial seeding conditions

Set debug.fail_point.random_fortuna_pre_read=return(1) and
debug.fail_point.random_fortuna_seeded=return(1) to return to unseeded
status (sort of). See the Differential URL for more detail.

The goal is to reproduce e.g. Lev's recent CURRENT report[1] about failing
newfs arc4random(3) usage (fixed in r338542).

No functional change when failpoints are not set.

[1]: https://lists.freebsd.org/pipermail/freebsd-current/2018-September/071067.html

Reported by: lev
Reviewed by: delphij, markm
Approved by: secteam (delphij)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D17047
(cherry picked from commit 9b8d0fe462b2f3f689cb87fe34bd42c388e23d49)

Details

Provenance
cemAuthored on Oct 26 2018, 9:03 PM
obrienCommitted on Aug 6 2021, 5:12 AM
Reviewer
delphij
Differential Revision
D17047: Fortuna: Add failpoints to simulate initial seeding conditions
Parents
R10:1ae8bd9a7d5a: fortuna: Drop global lock to zero stack variables
Branches
Unknown
Tags
Unknown