From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934900AbdBQSpu (ORCPT ); Fri, 17 Feb 2017 13:45:50 -0500 Received: from mga14.intel.com ([192.55.52.115]:44116 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934074AbdBQSps (ORCPT ); Fri, 17 Feb 2017 13:45:48 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,173,1484035200"; d="scan'208";a="66547469" Date: Fri, 17 Feb 2017 20:45:46 +0200 From: Jarkko Sakkinen To: Mimi Zohar Cc: James Morris , Stefan Berger , tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend Message-ID: <20170217184546.ik2vv5bleahqhkwv@intel.com> References: <1487177783-15687-1-git-send-email-stefanb@linux.vnet.ibm.com> <20170215180903.3simazptqnlhbqi6@intel.com> <1487335598.15611.9.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487335598.15611.9.camel@linux.vnet.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2017 at 07:46:38AM -0500, Mimi Zohar wrote: > Hi James, > > On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote: > > On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote: > > > The TPM1.2 PCR Extend operation only returns 20 bytes in the body, > > > which is the size of the PCR state. > > > > > > This fixes a problem where IMA gets errors with every PCR Extend. > > > > > > Fixes: c659af78eb7b ("tpm: Check size of response before accessing data") > > > Signed-off-by: Stefan Berger > > > Acked-by: Mimi Zohar > > > > Reviewed-by: Jarkko Sakkinen > > This patch needs to be included with the rest of the patches being > upstreamed in the next open window. Should Jarkko or I send you a pull > request for it? > > thanks, > > Mimi I'm sending a pull request after the weekend. It will contain only a few small scoped fixes so wouldn't it be easiest if I just include this to the pack? /Jarkko