Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp476845imu; Tue, 27 Nov 2018 15:41:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wwsg4/4+nY+pUcDFVXvA4gU7oTXKp9HgbLPKC3vBOIUYCSYY443VBFLhTA6IbtpN5/1IZa X-Received: by 2002:a62:5a83:: with SMTP id o125-v6mr20604442pfb.40.1543362115078; Tue, 27 Nov 2018 15:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543362115; cv=none; d=google.com; s=arc-20160816; b=wWoGAcuUP2P2zoIhCO6kgOL14/E1r4/U+NGDHrP8qUe8UbOauunOoUeYKPmEGWPvNE PYS7WRyUcYGM6myN5QgfeUPd60wtShUwdgyfoT7dkf9ZLemmvHMngaVueskG/9ACG9+G vto0Q/vk9uTtOkVrU4oTCql8WWDbXBWSrboVtO1TpYgbBzL5Bxc/B/RwCDplfFqTdHaV mfddASIOe36LGqTNornjLuWYHpw8LAZqKWpgsvy9Uptgch8gwBIi1qLV9p/y26PLxcja Yeyf12+09VLdVbrgw5QLQo1sSewtDdGIQq2u7V0dxCyWrxYQzrHHKLtdSRElJpVRhRdC Em4A== 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=waVMh2Ez+NP/9yLwnxLNkOD8rALoM9jeTM14lMA0Ds8=; b=XDGd0nlmF1g54FCU6G0Wqy44JvfI4kw9t8Sj35FOBXwdBx/XQfEtpamGjHb9Umeync bloi78fY1M03WpfpYmpJ1bJlLB86wNlgS68++QLqp2wXzsc+XzfgqYdM0Gt2U7hpdicZ PKP/OZaiilPOBYDSdeJLZtls4X2weCkRgt8GDE3/ktnMEgzl0VNYy2OJwKLmhNjH/R7E jhGh7svpmO91wQn3b5fQHmxvUGZc9bNbkKoAhRHRrG+r3EJ48Mh9w2cj7YYjLR4FzAh7 9naxgyNeDdcA9/FLcH64czbmJk2JWuuvzDcvlCjKWdRQMkq8FRjuOHxDrnjf63hgps1M KNhQ== 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 b6si5109317pls.367.2018.11.27.15.41.39; Tue, 27 Nov 2018 15:41:55 -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 S1726659AbeK1Kke (ORCPT + 99 others); Wed, 28 Nov 2018 05:40:34 -0500 Received: from mga03.intel.com ([134.134.136.65]:65071 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbeK1Kke (ORCPT ); Wed, 28 Nov 2018 05:40:34 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2018 15:41:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,288,1539673200"; d="scan'208";a="94620352" Received: from jsakkine-mobl1.jf.intel.com (HELO localhost) ([10.24.8.96]) by fmsmga008.fm.intel.com with ESMTP; 27 Nov 2018 15:41:01 -0800 Date: Tue, 27 Nov 2018 15:41:01 -0800 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: linux-security-module@vger.kernel.org, James Bottomley , Tomas Winkler , Tadeusz Struk , Stefan Berger , Nayna Jain , Jason Gunthorpe , "moderated list:ARM/Microchip (AT91) SoC support" , open list Subject: Re: [PATCH v9 00/17] Removed nested TPM operations Message-ID: <20181127234101.GA3150@linux.intel.com> References: <20181118124753.18613-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181118124753.18613-1-jarkko.sakkinen@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 Sun, Nov 18, 2018 at 02:47:33PM +0200, Jarkko Sakkinen wrote: > [was Detach TPM space code out of the tpm_transmit() flow but the scope > expanded a bit.] > > Make the changes necessary to detach TPM space code and TPM activation > code out of the tpm_transmit() flow because of both of these can cause > nested tpm_transmit() calls. The nesteds calls make the whole flow hard > to maintain, and thus, it is better to just fix things now before this > turns into a bigger mess. I will take care to address the feedback from Tomas and Jason but won't yet try to push this into v4.21. It is a patch set, which is better to lie in linux-next before landing to a release. Probably will push the patches soon after my v4.21 PR to linux-next. Then they will get maximum time of exposure. /Jarkko