Re: [PATCH v2 0/2] tpm: Resolve potential blocking-forever issue

2024-10-16 Thread Stefan Berger
On 10/16/24 9:34 AM, Stefan Berger wrote: In case swtpm was to return a control channel message with an error code it would only return 4 bytes. However, some of the commands expect a response with more bytes and QEMU would get stuck in qemu_chr_fe_read_all() waiting for bytes following the er

[PATCH v2 0/2] tpm: Resolve potential blocking-forever issue

2024-10-16 Thread Stefan Berger
In case swtpm was to return a control channel message with an error code it would only return 4 bytes. However, some of the commands expect a response with more bytes and QEMU would get stuck in qemu_chr_fe_read_all() waiting for bytes following the error code. Therefore, read the response in 2 pas