Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp678974img; Thu, 21 Mar 2019 06:49:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZqYaFZ0X6XWMXJIWAnClThrxzZXifW0qFZjl4clQQ9COZmO0neixnrzcjla4JcLdHG/LH X-Received: by 2002:a63:ed53:: with SMTP id m19mr3407532pgk.78.1553176177956; Thu, 21 Mar 2019 06:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553176177; cv=none; d=google.com; s=arc-20160816; b=bFrz/PP83UAdeUHYkMP8eaYnXqCTZCQSacdBOGIXVHeIxZfWzuemRuUMZvXX2Rejzl 7SF2s2viKHZN8QzZLQ/0+qhJ4pJCOZedIbmDCvII/7mqU0MCKO3pcq+HsIJl6GaBuyTo m33nSxe9YS5FFoI87GkLYUaZ3jCKCCXdEN5p7SEw+MQHTNW8cW7vvyq9MaizH3Q5wp8Y LTHWtRUDLGvs9gpA5YdJqt63jyCf9UB1d0HKkiSc1vvW5DhNBFmWEwfA/WhnnkOCYIZG dS9ZQ3C4MC8zqAsxoeqeadSszSgHPeL5po9QZ2s9Cbf7nM/mrD3cKUJEBeObfgnfc0Wc 6FrQ== 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=Euym+ynbYyD12MjTLbzG+ei8U+4GcXolXWQfZKQQx34=; b=kK/nGajDGPDaL5zopK5XcBtZp8CcvsQ5TPO3TXpGAvlzxtszA/ZEw8s02rM6TW6jAW dgiMaCtm/0XsTy/pJP1kB5VKKXFeTftC9Vymk0L+lVuKDUTEzRGyzyJV+A6WATttBxTX lZ2O6m15XdgP69w/a28Tnij8Vqpa4JsRrqN29SYKECtKv6hY5WJvVuI0wX2E6g1MM5+C 5gIKhiAJ4t/Rnx0+R+Xu0qM+NQi7O08swK/rmq2Rg3/MPheyNnchg4gFNrh+aZY4vkep 5/x7EXgCnIedBSNc34s3weFhd6w2ebg7u3abAb0QUiKFGPWC4M49KewxEYoqiCm49VRj Q5yw== 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 o1si3684452pfe.194.2019.03.21.06.49.22; Thu, 21 Mar 2019 06:49:37 -0700 (PDT) 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 S1728221AbfCUNsl (ORCPT + 99 others); Thu, 21 Mar 2019 09:48:41 -0400 Received: from mga06.intel.com ([134.134.136.31]:49139 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727891AbfCUNsk (ORCPT ); Thu, 21 Mar 2019 09:48:40 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 06:48:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,253,1549958400"; d="scan'208";a="153822859" Received: from dilu-mobl2.ccr.corp.intel.com (HELO localhost) ([10.249.254.184]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2019 06:48:32 -0700 Date: Thu, 21 Mar 2019 15:48:31 +0200 From: Jarkko Sakkinen To: Dan Williams Cc: keyrings@vger.kernel.org, Ira Weiny , Dave Jiang , Tyler Hicks , Keith Busch , David Howells , Vishal Verma , James Bottomley , Mimi Zohar , linux-integrity@vger.kernel.org, ecryptfs@vger.kernel.org, Roberto Sassu , linux-nvdimm , Linux Kernel Mailing List Subject: Re: [PATCH 0/6] security/keys/encrypted: Break module dependency chain Message-ID: <20190321134831.GC4603@linux.intel.com> References: <155297557534.2276575.16264199708584900090.stgit@dwillia2-desk3.amr.corp.intel.com> <20190321134549.GB4603@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321134549.GB4603@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 Thu, Mar 21, 2019 at 03:45:49PM +0200, Jarkko Sakkinen wrote: > On Tue, Mar 19, 2019 at 02:01:44PM -0700, Dan Williams wrote: > > On Mon, Mar 18, 2019 at 11:18 PM Dan Williams wrote: > > > > > > With v5.1-rc1 all the nvdimm sub-system regression tests started failing > > > because the libnvdimm module failed to load in the qemu-kvm test > > > environment. Critically that environment does not have a TPM. Commit > > > 240730437deb "KEYS: trusted: explicitly use tpm_chip structure..." > > > started to require a TPM to be present for the trusted.ko module to load > > > where there was no requirement for that before. > > > > > > Rather than undo the "fail if no hardware" behavior James points out > > > that the module dependencies can be broken by looking up the key-type by > > > name. Remove the dependencies on the "key_type_trusted" and > > > "key_type_encrypted" symbol exports, and clean up other boilerplate that > > > supported those exports in different configurations. > > > > Any feedback? Was hoping to get at least patch1 in the queue for > > v5.1-rc2 since this effectively disables the nvdimm driver on typical > > configurations. Jarkko, would you be willing to merge it since the > > regression came through your tree? > > Yes, of course. The feedback has been extremely passive because I've > been sick leave for the early week :-) > > Before I'm merging this I'm just thinking that would it be better > idea to merge a patch for trusted.c that reverts the old behavior > with cc to stable and fixes tags as I said in my earlier response. > > It would less intrusive for stable kernels. Lets quickly sort out > the best strategy before merging. I.e. the way I see the situation: 1. Reverting the old behavior in the sense that missing TPM does not prevent init of trusted.ko should be done right now. 2. Your patch could be definitely merged but not as a bug fix. 3. At some point we could consider failing the init of trusted.ko if TPM is missing because that is kind of senseful anyway with better testing now that we understand the dependency context better.