Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8115076ybi; Tue, 9 Jul 2019 09:26:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcIKJcmVJyKcCReApcjK0v9MQPsk2rGUlLrWLN/NF36hPrwot6duvlyTmeyggWTjzg/9ya X-Received: by 2002:a63:b346:: with SMTP id x6mr31732255pgt.218.1562689575678; Tue, 09 Jul 2019 09:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562689575; cv=none; d=google.com; s=arc-20160816; b=WiIIlsAShAYtUOdLk/mseoUAJ4hYctQtuffQnAvyVu+9K2sKra+BZK88NCpqY9/Vjr q+bq53WWSwkKML9P7IR0TE9olWY7P15fgJ9G4Onw3NrOehv4kzx/by0aHlCDmtqzi3Zg 05hXp7x5EDrOvNlZFiwTUrufZZkoKEyNSUgfVH4/+2IppRo9deeiaFUEk1dR2A+HGkYA Ji9uXPDJlIJKMlGZeHeuKP9K5Ldc7r78WHgffn5hCpYzB4pz4byJCc348H5NhiaeaTrG I1L07qQhjMs+3GH+BWwTwBZoadw76yVeAJBuUsuJYqFHnMaTmQe/NIyFOCqshdaKXWa7 CGjQ== 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=NqvpUfnKFXpRoIR4zq1ByNlinhhMCXvA8ASw3nxJ04k=; b=dDBt5QRFe5fhwJyeCmZyZLDp6aCMufljXs3JcZpIJeoYjVbEUlBtV69cI6GJwpyNDF y5cd1C3UYExYeT+0d9MtOusYuejU1pSvtgpscMUN0ssOP62guU00dABggWy2E73k7P5u 80l+MNfltOsuKx+X6+iF7M/v99bYRMj6GCBA14uFZnyx8ecFAXT+Ro38I5i0fbqqqxQv EHCEiKotz+/j7HyiB9APuuvPFTlJxL5rFJtxdE+PiLBH0abfoq89RiodHrskOsw6eCDC 8gLZ+lDbC9qz/KQHyEsgjQ3TWTyFNhF4YkcsyzjI12ZLZCm8gTDeZ+AaAuy5xNeKQHqK wuMg== 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 x63si22348316pgd.224.2019.07.09.09.26.00; Tue, 09 Jul 2019 09:26:15 -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 S1726560AbfGIQZG (ORCPT + 99 others); Tue, 9 Jul 2019 12:25:06 -0400 Received: from mga06.intel.com ([134.134.136.31]:50005 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfGIQZG (ORCPT ); Tue, 9 Jul 2019 12:25:06 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2019 09:25:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,470,1557212400"; d="scan'208";a="364638749" Received: from mmaitert-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.34.54]) by fmsmga006.fm.intel.com with ESMTP; 09 Jul 2019 09:24:59 -0700 Date: Tue, 9 Jul 2019 19:24:58 +0300 From: Jarkko Sakkinen To: James Bottomley Cc: Roberto Sassu , 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: <20190709162458.f4fjteokcmidv7w6@linux.intel.com> References: <20190705163735.11539-1-roberto.sassu@huawei.com> <1562618099.20748.13.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1562618099.20748.13.camel@linux.ibm.com> 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 08, 2019 at 01:34:59PM -0700, James Bottomley wrote: > Not a criticism of your patch, but can we please stop doing this. > Single random number sources are horrendously bad practice because it > gives an attacker a single target to subvert. We should ensure the TPM > is plugged into the kernel RNG as a source and then take randomness > from the mixed pool so it's harder for an attacker because they have to > subvert all our sources to predict what came out. It is and I agree. /Jarkko