]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a cv_wait to the TPM2.0 harvesting function
authormw <mw@FreeBSD.org>
Wed, 3 Apr 2019 08:22:58 +0000 (08:22 +0000)
committermw <mw@FreeBSD.org>
Wed, 3 Apr 2019 08:22:58 +0000 (08:22 +0000)
commit77b8255fbc4e7b9150b6fb509a3898ee93abc270
treefe0bae34b281693c4a580b67bf695b321d545ab1
parentf7ba4b241eb6add8d1fdbcb543cd6a4949c1049f
Add a cv_wait to the TPM2.0 harvesting function

Harvesting has to compete for the TPM chip with userspace.
Before this change the callout could hijack an unread buffer
causing a userspace call to the TPM to fail.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: delphij
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D19712
sys/dev/tpm/tpm20.c