Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2105696imj; Fri, 8 Feb 2019 12:39:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSEglDjdYaHXezhSCopB68+nPP1V/CYpYKSE4mysJaEOhl45yrCgQatvGWNDWkBt9owdTV X-Received: by 2002:a62:2547:: with SMTP id l68mr23776209pfl.131.1549658381486; Fri, 08 Feb 2019 12:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549658381; cv=none; d=google.com; s=arc-20160816; b=HMI436eb9x2a58BnU7HlhX1aD1HGc480N1g3rn0INwCgmQCXsrrmJQfLJE67061Xoo OIyDXCCSUCYe+gnhBxfQoCIyK5ghdAjuwf+I0rZXJoB+53TNu+qGySdHYuURmDXLs8IR twYJ/hWgs99Ew0K+3BZz1bN7vmFUdyOqNingckGqniwN+pnqtllUJHfvs6i3SgiWx06B xcE5PpCZ4GDOvrk276TZ1XgqSDInFyQBk9T0zG69MSB5N2nowjk1hfh0mgGeggV6ZDt+ OxdwDdyYCAfpSTWl+/8UoaQOqSkxZ9v8/FJ5P5eGeKrV+NZfsJPAhYildrD71KXZFGXk 3S9w== 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=9/xdaLnlqlcXdmTXYbjvCHK3Km33N8vT/FkY7nPUoxE=; b=huzKfkaYH1FwpqiPJ3kaAUd/kQq652IRn/i0p9gdVSSeTyw59G0r5JnRQ5Q9qFFzva ARg6YFvykN6g6edETDp5t2vdi/STXHomK1EBb4ABgZ4XqHCMAMuvGSKOewzENgUagdHN Z+Fe6yCXrpZYsd3Bt+dvCmk83mlR41V+tRTr4eSxKoF6Yj+1mjyKL05esCFH7OLakcP2 DHfDA59ozYmtgT0cqryhy5TNcHttYUgQQ2CiM9VyBBIlIelL4Dik0hvdfqQBEZdNg9t4 SKHBY4oAObDYw1IY/H7od38UdxHkB+GGuXSQJLW9m9EdPQfFxy90fr6Of3YB8iz5AdjE 576A== 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 z1si2884404pgb.34.2019.02.08.12.39.24; Fri, 08 Feb 2019 12:39:41 -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 S1726943AbfBHUil (ORCPT + 99 others); Fri, 8 Feb 2019 15:38:41 -0500 Received: from mga06.intel.com ([134.134.136.31]:59858 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfBHUil (ORCPT ); Fri, 8 Feb 2019 15:38:41 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2019 12:38:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,348,1544515200"; d="scan'208";a="116329394" Received: from szilberm-mobl.ger.corp.intel.com (HELO localhost) ([10.249.254.172]) by orsmga008.jf.intel.com with ESMTP; 08 Feb 2019 12:38:35 -0800 Date: Fri, 8 Feb 2019 22:38:34 +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: <20190208203834.GA24693@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> <20190208202353.GB1836@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208202353.GB1836@linux.intel.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 10:23:53PM +0200, Jarkko Sakkinen wrote: > 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. I back tracked now what went wrong. When I first did these fixes I did git reset --hard next on master after doing them and not the other way around I supposed to. Apologies for the inconvenience... /Jarkko