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)
Fri, Dec 12, 7:18 AM
Unknown Object (File)
Wed, Dec 10, 7:59 AM
Unknown Object (File)
Tue, Dec 2, 8:25 PM
Unknown Object (File)
Sun, Nov 23, 12:10 PM
Unknown Object (File)
Nov 6 2025, 1:43 PM
Unknown Object (File)
Nov 4 2025, 3:19 AM
Unknown Object (File)
Nov 3 2025, 9:06 PM
Unknown Object (File)
Nov 3 2025, 9:06 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