Page MenuHomeFreeBSD

tpm: Fix entropy harvesting logic
ClosedPublic

Authored by kd on Sep 1 2022, 12:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 10 2024, 1:44 AM
Unknown Object (File)
May 10 2024, 1:41 AM
Unknown Object (File)
May 10 2024, 1:40 AM
Unknown Object (File)
May 9 2024, 4:22 PM
Unknown Object (File)
Apr 21 2024, 5:41 PM
Unknown Object (File)
Mar 18 2024, 5:49 PM
Unknown Object (File)
Jan 31 2024, 3:53 AM
Unknown Object (File)
Jan 27 2024, 2:37 PM
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

Lint
Lint Skipped
Unit
Tests Skipped