From: Stefan Berger Subject: Re: [PATCH 01/10] tpm: Check received number of bytes against length indicator in header Date: Tue, 10 Jan 2017 14:59:08 -0500 Message-ID: References: <1484057900-17871-1-git-send-email-stefanb@linux.vnet.ibm.com> <20170110161519.GC15493@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170110161519.GC15493-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Jason Gunthorpe Cc: linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On 01/10/2017 11:15 AM, Jason Gunthorpe wrote: > On Tue, Jan 10, 2017 at 09:18:11AM -0500, Stefan Berger wrote: >> Make sure that we have not received less bytes than what is indicated >> in the header of the TPM response. > IMHO this entire series should be tagged for stable, can you please > add a Cc: and Fixes: I don't have a way to test all the commands to make sure whether one is now failing. Several ones for TPM 1.2 are reachable via sysfs, but not so easy for TPM2. So I would suggest to try it out first, then propagate it into stable after some time. Stefan > > Thanks, > Jason > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi