On Tue, Feb 09, 2021 at 05:13:39PM -0500, Stefan Berger wrote:
When IMA is taking measurements during compilation for example and aWhy it is an issue?
user presses ctrl-c to abort the compilation, lots of these types of
messages will appear in the kernel log:
[ 7406.275163] tpm tpm0: tpm_transmit: tpm_recv: error -4
[ 7406.275242] ima: Error Communicating to TPM chip, result: -4
The issue is caused by the fact that the IBM vTPM driver's recv()
function is called immediately after send() without waiting for
status on whether a response was received. It currently waits for
the current command to finish using this call that ends up throwing
these error messages because it is 'interruptible':