qemu/qemu/0c2f2309cddf6dcb5a340e7838e2b37e3fc22bf8
tests: Add tests with commands with bad length
Add two test cases with commands with bad length:
- Send a command that indicates a very large size (0x10000 bytes) to the
TPM. This will only work with the CRB interface since the TIS wants
to receive all the bytes indicated by the command header.
- Send a command that indicates that its size is only 9 bytes, which is
too short to be valid since the command header alone is 10 bytes.
This test only works with the TIS. The CRB silently rejects commands
that are shorter than the command header.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20261002142516.2063735-11-stefanb@linux.ibm.com
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
7 files changed