Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1710035imj; Fri, 8 Feb 2019 06:10:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbD4o5kC9byaJPusLBa3TvtBDOtd+iZdROYfU+LO0RLHjCNY1afcH3gkxb9ZvxGd2xrSSeR X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr10020602plb.101.1549635032182; Fri, 08 Feb 2019 06:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549635032; cv=none; d=google.com; s=arc-20160816; b=FEISRW716/DnLISH2hT4dE0cFfiaKDwsR2dkykpgDVmpqavGU9BJ3JgEcU07LGIbWU IFHXwCsq69D80TdIwTyi07FHHQgBWY1MhayTvOv6NnXeDO2id2LQl9bczUrQW5ADd9nE c1dcj6nQE4yFGHBLn8lEhOX+Bj+SPZO231jj/XlXCD0q2mpKmZeNE2+G6WoX0EpAXeHN NnHBfdqGgGTOvGA+vMLvkgPgREZaui57orvgr0Ty7HETSeRxQsjfnxj0HACglTgwddUQ lw2oJRU3cyvSrbG+xfYUf78SlP/ebxt36oAYwyGQUKApWEVPOH/OqZfH5WlkOYSgAb/6 3LoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=u+g/3sGMazOrDodSWINpPIe98UJN8GWNJQFdSSLRxQo=; b=m5yyE2uqhEiJqcIXHSOuNHTKpSonqg1DvRPn9xOLMT3VhcKULviaoD4TANBnxyL5TL TO9BoD5r42OvC1DAZjDZnWySFgDya4Isgir4fcXdREbmV3lAZe4S3yaCEVzP91kwM51i IQVcwfe0uEbSi0BZthh4RnrmwsTwNONndipOA/4/X122j4jn14FtiqOnMqRoQCrRubmy VxvH5m4MZi5c1UcAnntont0IHSlamqd6SpK1NoKpGU2eentNVrE7pO8/H2LAdGumDCV1 g7CMsCyyZvAEetE94TUjLzx0E2poiRPN4ONzJ3yGIQIQciKI8EpR6797vvbYw2HgTVCi dpeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si2353704plc.332.2019.02.08.06.10.15; Fri, 08 Feb 2019 06:10:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727605AbfBHOIj (ORCPT + 99 others); Fri, 8 Feb 2019 09:08:39 -0500 Received: from mga11.intel.com ([192.55.52.93]:23320 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbfBHOIi (ORCPT ); Fri, 8 Feb 2019 09:08:38 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2019 06:08:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,347,1544515200"; d="scan'208";a="145242949" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.115]) by fmsmga001.fm.intel.com with ESMTP; 08 Feb 2019 06:08:35 -0800 Date: Fri, 8 Feb 2019 16:08:34 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: Alexander Steffen , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Tomas Winkler , Tadeusz Struk , Stefan Berger , Nayna Jain Subject: Re: [PATCH v11 00/16] Remove nested TPM operations Message-ID: <20190208140834.GA25255@linux.intel.com> References: <0af40351-91d5-d0a7-2965-0a9c6505af79@linux.ibm.com> <20190208003314.GB7202@linux.intel.com> <1fbd29ad-1005-8450-4c39-00974468183b@linux.ibm.com> <20190208111442.GA11755@linux.intel.com> <06473b24-7c59-9405-bbe0-8d30b3450391@linux.ibm.com> <20190208130227.GA16679@linux.intel.com> <20190208131754.GA18133@linux.intel.com> <20190208133355.GA18774@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 09:02:22AM -0500, Stefan Berger wrote: > On 2/8/19 8:33 AM, Jarkko Sakkinen wrote: > > > > if (len != be32_to_cpu(header->length)) { > > rc = -EFAULT; > > goto out; > > } > > > > rc = tpm2_commit_space(chip, space, ordinal, buf, &len); > > if (rc) > > dev_err(&chip->dev, "tpm2_commit_space: error %d\n", rc); > > > > That unconditional call to commit space masked the bugs in the device > > drivers. I'll provide fixes shortly. > > You got it! :-) Yes, and it should not be fixes in tpm-interface.c. Sent a patch set for review. Thanks for spotting this out! /Jarkko