Page MenuHomeFreeBSD

Ensure random_source_descr[] does not get out of sync
Needs ReviewPublic

Authored by obrien on Oct 27 2017, 10:05 PM.
Tags
None
Referenced Files
F81578474: D12813.id34412.diff
Thu, Apr 18, 10:03 AM
Unknown Object (File)
Tue, Apr 16, 6:49 AM
Unknown Object (File)
Dec 24 2023, 2:20 AM
Unknown Object (File)
Nov 1 2023, 6:07 AM
Unknown Object (File)
Mar 21 2023, 11:42 AM
Unknown Object (File)
Mar 3 2023, 4:15 PM
Subscribers

Details

Reviewers
delphij
jmg
Summary

Ensure random_source_descr[] does not get out of sync with
'enum random_entropy_source'.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 12409
Build 12685: arc lint + arc unit

Event Timeline

obrien retitled this revision from <<Replace this line with your revision title> Ensure random_source_descr[] does not get out of sync to Ensure random_source_descr[] does not get out of sync.Oct 27 2017, 10:30 PM

The change itself looks Okay to me, but I might have missed some background discussion -- why do we need to CTASSERT for something already defined in that way a few lines above?

sys/dev/random/random_harvestq.c
285 ↗(On Diff #34412)

It's probably worthy to add a comment here?

No you didn't miss anything. Bug in my forward porting of this change from just before r324393 to after. I'll upload an updated diff. With r324393 we can still have the r260847 & r303035 bugs.

Address delphij's comment.

I don't see an issue with this change, looks good to me.