This series addresses some issues with the handling of the negotiated buffer size that the TPM frontends tell the tpm_emulator (swtpm) to use. Also, it improves on limiting the number of bytes read from the packet sent from swtpm.
Stefan v3: - Changed 1/2 to require exact match of requested buffer size - Fixed to_read Stefan Berger (2): tpm_emulator: Reject a buffer size different than what was requested tpm_emulator: Limit number of bytes read to negotiated buffer size backends/tpm/tpm_emulator.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) -- 2.43.0
