Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp99407ybi; Thu, 1 Aug 2019 15:23:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjR7+cLXcOv3n+SwfzQKH5kSmjbJv2qXVaSxULJAk9d23qy5QH1UuHPPlffVYqUe8ce85Y X-Received: by 2002:a63:d315:: with SMTP id b21mr98321418pgg.326.1564698198313; Thu, 01 Aug 2019 15:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564698198; cv=none; d=google.com; s=arc-20160816; b=zAZEEWMF5KwddFLmEeN4uhnpFAkmXcARuHcZ8u2iEkpKvG1AiaawDH5hlO1YVtxrdo qRTLuy5pR5P+wrjUxFsU/+Xues2KAf8IsslXuZrVSgxt6cGr6vB7k+5Uns0f9mYzO57U ehAU93swWYrpHOs9Q0kFL3JXYAbgO1xFn0IrTxtlO+UnsZt5RWQ2HdI8/WHZ/ZGwrCLC 0aDJp/O9fEKCpB2eh9HSl+EKuGmjrtsWMDT/XxkvU9QNPqKgI2DuV13XvKOgOQYO2m/i iEwFtIHf9588PL85LUkgMlus6oC1gcWcW8+jTQZc0CtzRt+/3qnLVlOeRz7uI05ttwTb dRwQ== 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=lMlOjS9niZWXBhV6wBwJpOlKb4Hvxos4lD/aV3jcn7I=; b=gRXGe4L5iUMXT70uHyQRNCRLweNTa3SuLsQyy5aBObf1uazMuDJmgPpWNq4LzQMRkr Pgw7fp+a8kT9SXXXQi12p6UU+oWua9weV999HfMLB7AlRlC4O1IAsWzzSbxTmZeXygSz 7vqTYggkZTATbc/VyPagFD0DRnN6rOCAtcIy19tJj1GVwPqV67IiYZyd+9ZUC5+fCjrA N0gQ9hVLpt4N7AuGWdEDC5C8ZJStGGuHS2JBbnu+yhXmWbGJTGL3uLgg/8VAKaCysdrL ZN4NrkoynTZqGi82HueqLU+vefZaRr2UnDzd0UUFuQoej3WrqEAifR3BSSYgUlQ/ANsv kqHQ== 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 k14si4975187pjq.53.2019.08.01.15.23.02; Thu, 01 Aug 2019 15:23:18 -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 S1733006AbfHAQcX (ORCPT + 99 others); Thu, 1 Aug 2019 12:32:23 -0400 Received: from mga02.intel.com ([134.134.136.20]:28142 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfHAQcX (ORCPT ); Thu, 1 Aug 2019 12:32:23 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2019 09:32:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,334,1559545200"; d="scan'208";a="201353113" Received: from criesing-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.51.57]) by fmsmga002.fm.intel.com with ESMTP; 01 Aug 2019 09:32:16 -0700 Date: Thu, 1 Aug 2019 19:32:15 +0300 From: Jarkko Sakkinen To: Roberto Sassu Cc: jejb@linux.ibm.com, zohar@linux.ibm.com, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, crazyt2019+lml@gmail.com, tyhicks@canonical.com, nayna@linux.vnet.ibm.com, silviu.vlasceanu@huawei.com Subject: Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated Message-ID: <20190801163215.mfkagoafkxscesne@linux.intel.com> References: <20190705163735.11539-1-roberto.sassu@huawei.com> <20190711194811.rfsohbfc3a7carpa@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: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 06:44:28PM +0200, Roberto Sassu wrote: > According to the bug report at https://bugs.archlinux.org/task/62678, > the trusted module is a dependency of the ecryptfs module. We should > load the trusted module even if the TPM is inactive or deactivated. > > Given that commit 782779b60faa ("tpm: Actually fail on TPM errors during > "get random"") changes the return code of tpm_get_random(), the patch > should be modified to ignore the -EIO error. I will send a new version. Do you have information where this dependency comes from? /Jarkko