mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
vtpm_handle_cmd doesn't ensure there is enough space before unpacking the req buffer. Add a minimum size check. Called functions will have to do their own checking if they need more data from the request. The error case is tricky since abort_egress wants to rely with a corresponding tag. Just hardcode TPM_TAG_RQU_COMMAND since the vtpm is sending in malformed commands in the first place. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
About ===== This documents the upstream sources for files in this directory. According to the header files, the following files are based off the original tools/vtpm_manager code base in xen.git. This directory has since been (commit b918dce5bb2a665a34ff893a9df5392fb8ea429d) init.c log.c log.h marshal.h tcg.h tpm.c tpm.h tpm2.c tpm2.h tpm2_marshal.h vtpm_cmd_handler.c vtpm_manager.h vtpmmgr.c vtpmmgr.h uuid.h - This file does not appear to be part of the original tools/vtpm_manager code. It's origin is unclear, but it is trivial and likely not copyrightable under "fair use" provisions.