From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:32461 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752248AbcKHX3N (ORCPT ); Tue, 8 Nov 2016 18:29:13 -0500 Date: Tue, 8 Nov 2016 15:29:01 -0800 From: Jarkko Sakkinen To: gregkh@linuxfoundation.org Cc: james.l.morris@oracle.com, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] tpm: remove invalid min length check from tpm_do_selftest()" failed to apply to 4.8-stable tree Message-ID: <20161108232901.4pek5cuv2luucxvm@intel.com> References: <147862190929230@kroah.com> <20161108232806.bcvpb6byh5ucjwdy@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161108232806.bcvpb6byh5ucjwdy@intel.com> Sender: stable-owner@vger.kernel.org List-ID: Adding stable@vger.kernel.org to this patch was human error from my side. Sorry about that. /Jarkko On Tue, Nov 08, 2016 at 03:28:06PM -0800, Jarkko Sakkinen wrote: > Hi > > This is needed only for 4.9. > > BR > /Jarkko > > On Tue, Nov 08, 2016 at 05:18:29PM +0100, gregkh@linuxfoundation.org wrote: > > > > The patch below does not apply to the 4.8-stable tree. > > If someone wants it applied there, or to any other stable or longterm > > tree, then please email the backport, including the original git commit > > id to . > > > > thanks, > > > > greg k-h > > > > ------------------ original commit in Linus's tree ------------------ > > > > From befd99656c5eb765fe9d96045c4cba099fd938db Mon Sep 17 00:00:00 2001 > > From: Jarkko Sakkinen > > Date: Tue, 4 Oct 2016 09:49:47 +0300 > > Subject: [PATCH] tpm: remove invalid min length check from tpm_do_selftest() > > > > Removal of this check was not properly amended to the original commit. > > > > Cc: stable@vger.kernel.org > > Fixes: 0c541332231e ("tpm: use tpm_pcr_read_dev() in tpm_do_selftest()") > > Signed-off-by: Jarkko Sakkinen > > Signed-off-by: James Morris > > > > diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c > > index 8de61876f633..3a9149cf0110 100644 > > --- a/drivers/char/tpm/tpm-interface.c > > +++ b/drivers/char/tpm/tpm-interface.c > > @@ -813,9 +813,6 @@ int tpm_do_selftest(struct tpm_chip *chip) > > continue; > > } > > > > - if (rc < TPM_HEADER_SIZE) > > - return -EFAULT; > > - > > if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) { > > dev_info(&chip->dev, > > "TPM is disabled/deactivated (0x%X)\n", rc); > >