Page MenuHomeFreeBSD

tpm: Fix entropy harvesting logic
ClosedPublic

Authored by kd on Sep 1 2022, 12:58 PM.
Tags
None
Referenced Files
F166365986: D36412.id110075.diff
Thu, Aug 13, 4:25 AM
Unknown Object (File)
Sun, Aug 9, 12:52 PM
Unknown Object (File)
Sat, Aug 8, 1:03 PM
Unknown Object (File)
Wed, Aug 5, 6:34 AM
Unknown Object (File)
Fri, Jul 31, 8:16 PM
Unknown Object (File)
Fri, Jul 31, 8:15 PM
Unknown Object (File)
Fri, Jul 31, 2:06 AM
Unknown Object (File)
Wed, Jul 29, 4:57 AM
Subscribers

Details

Summary

Use a taskqueue instead of a callout.
Callout functions mustn't sleep, where as the TPM driver uses an sx lock in order to serialize accesses to the device.
Note that the entropy harvesting feature is not enabled by default, so this commit should not bring any functional changes to the GENERIC kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable