stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
564 stars 136 forks source link

swtpm: cuse: Lock file_ops_lock before reading tpm_running #846

Closed stefanberger closed 5 months ago

stefanberger commented 5 months ago

Lock the file_ops_lock before reading the tpm_running variable so that access to access to it is serialized among all possible threads.