Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481932

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

From Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] tpm: tpm_transmit() does not check for minimum buffer size.
Date 2016-09-12 22:20 +0200
Message-ID <sgFRT-8ja-7@gated-at.bofh.it> (permalink)
References <sgwYh-268-7@gated-at.bofh.it> <sgDn5-6mO-59@gated-at.bofh.it>
Organization Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo

Show all headers | View raw


On Mon, Sep 12, 2016 at 11:32:19AM -0600, Jason Gunthorpe wrote:
> 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

Duh, right. Thanks.

> Jason

/Jarkko

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] tpm: tpm_transmit() does not check for minimum buffer size. Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-09-12 12:50 +0200
  Re: [PATCH v2] tpm: tpm_transmit() does not check for minimum buffer  size. Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-09-12 19:40 +0200
    Re: [PATCH v2] tpm: tpm_transmit() does not check for minimum buffer  size. Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-09-12 22:20 +0200

csiph-web