Re: [PATCH v2] tpm: tpm_transmit() does not check for minimum buffer size.

From: Jason Gunthorpe
Date: Mon Sep 12 2016 - 13:32:37 EST


On Mon, Sep 12, 2016 at 01:43:30PM +0300, Jarkko Sakkinen wrote:
> tpm_transmit() does not check that bufsiz is at least TPM_HEADER_SIZE
> before accessing data. This commit adds the check and returns -ENOMEM.

-EINVAL

> v2: Updated commit msg

After the diffstat, do not commit that to the tree

Jason