Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2092147imj; Fri, 8 Feb 2019 12:24:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ0LoNTqEzD7D//g0PbnYSG87pi+OemMmjixg/ADpMnwp9Pl+/eptG8nbNzOHRkFxdBLtqh X-Received: by 2002:a17:902:8d8e:: with SMTP id v14mr24469533plo.133.1549657497715; Fri, 08 Feb 2019 12:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549657497; cv=none; d=google.com; s=arc-20160816; b=cf9Q/C1QcIOpp3aSNMT71L1wkU4SzL42QYjqb3faw3FPWoR2baj2X48TKMkNUyDdI0 XTJgTGMVGoEj5gDju46jj3MzLMVjgvL7qxOvKvH6y4+kCqproA/5pRwSIR9z1w//5yEI dlsFGNUEMC1JXLtxibKLxl/RMWjZFVjY/uHSCVJnsXFoluMhOZJo3aoYLjVLV/iClO5M f29nysGq+LJuUp3PhV1uwljYnZl51KO41b41cPGqSrwjp4+gP8QjyWkE9yXFxcc44liR WYGyEK/LJEkfgMiS7uM/NxaqhiV4aAz2b15jqMY/7Ch2GkzMJD1EZrs23Vd9am+tT8Yx Epcg== 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=8lz6RhezCV3nJknE5nxRDDe45C9ppTuioad/VJkNeTw=; b=zdeE6A6NaZYy3FwUSWhbYS+OZ7/b3L1EYZ3jZ9PaH2jd0SsskpGV+TXZPkO+ffHkhi a7OSCqxBSj7qB9L3e+7jdybysNiwysnB4NGArcspX8o8ZC9ZCEgiP3yLvYqTcfuAvPzc ZZGZO5nZXbVfZK74aG6SMpILS1bKzBlEYRhbWAebcxWQtmyIICV1D+Co7s/Waoy+0DDb D+lBzXPC1lWb6mCwCDCivsh2QJolubnaEyegyZmjjpR56aLU+U4A589/V+qXkdUykDcE r/4hMaVjrF5jvqgYob8ATooBY9MSCQoMnOWJASxdbz/6ymOaVB4ZTGRpEFoPgtMAZMEX fUIw== 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 q127si3406062pfq.19.2019.02.08.12.24.41; Fri, 08 Feb 2019 12:24:57 -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 S1727496AbfBHUYB (ORCPT + 99 others); Fri, 8 Feb 2019 15:24:01 -0500 Received: from mga06.intel.com ([134.134.136.31]:58886 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfBHUYA (ORCPT ); Fri, 8 Feb 2019 15:24:00 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2019 12:24:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,348,1544515200"; d="scan'208";a="298305501" Received: from szilberm-mobl.ger.corp.intel.com (HELO localhost) ([10.249.254.172]) by orsmga005.jf.intel.com with ESMTP; 08 Feb 2019 12:23:54 -0800 Date: Fri, 8 Feb 2019 22:23:53 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Stefan Berger , Alexander Steffen , stable@vger.kernel.org Subject: Re: [PATCH v4 1/2] tpm: =?iso-8859-1?Q?Uni?= =?iso-8859-1?Q?fy_the_send_callback_behaviour=E4?= Message-ID: <20190208202353.GB1836@linux.intel.com> References: <20190208180857.12330-1-jarkko.sakkinen@linux.intel.com> <20190208180857.12330-2-jarkko.sakkinen@linux.intel.com> <4072b2b6-0f95-be50-0772-7e2869c2c24e@linux.ibm.com> <20190208190057.GA3439@linux.intel.com> <20190208191710.GA30645@linux.intel.com> <6a86e3e8-e311-7a0f-585d-3f0435b0143a@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a86e3e8-e311-7a0f-585d-3f0435b0143a@linux.ibm.com> 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 02:27:31PM -0500, Stefan Berger wrote: > On 2/8/19 2:17 PM, Jarkko Sakkinen wrote: > > > > */ > > if (rc > 0) { > > dev_warn(&chip->dev, > > "%s: send(): invalid value %d\n", __func__, rc); > > rc = 0; > > } > > > > Should be fairly safe play now. > > Unfortuantely it isn't. You seemed to have lost the > EXPORT_SYMBOL_GPL(tpm_chip_start/stop) and the tpm_chip_start/stop around > the tpm2_shutdown()... OK, now those fixes are back. In tpm_pm_shutdown() case you need also take the lock. /Jarkko