Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5563353rwb; Tue, 1 Aug 2023 04:53:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJn6I1CBr9wUIVXHYkK6nZstQFxWVcdAv5LsAE6HPuwhUXTfC0WgQyr4cVrj0nIjiAUs0+ X-Received: by 2002:aa7:df99:0:b0:522:216a:28cd with SMTP id b25-20020aa7df99000000b00522216a28cdmr2412758edy.7.1690890837038; Tue, 01 Aug 2023 04:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690890837; cv=none; d=google.com; s=arc-20160816; b=JmdFxelBq75cE5IHy0dCa4u6KxjHTPUxT7vIvONXI4+Lw67uyF8rzuUmQzX1W1UVrF n7W3Cdcmfb3VMaqQ3suKXEI5n72P/nQeiq05Ft31AEkNxheJs6FLOSxUStXZbRDlFu4b kEtx8r40iZrXlmpW8hDJ0OxZm7i/wnib7jOGmCh37MF/yukEbPOzwvLy35NDscxAztvV 08BqZTrUQnlZrB5qdBO5+e2PDVCktvmwKVagNAudod81+2lpShOCOePl2LIAoK5D9D/x V6gOw4tYb+hAfhnlQMU11jKINZn9hSYRmRFnj1mp0rDX7DhVRtCfVUQKKrNPllcedIql vkvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :date:message-id:dkim-signature; bh=OmZHHaG1yc2Gw63P200yn7wFAj1aCDNnGach0vZpB8w=; fh=5HMhvt+ksEv0Uw1lZ74KGqqQm8axmaI+hKUdocMCFLc=; b=r3Uy6xJClJC04bXHUuBRwxhL9mEyBGpZ8M4L6wxewC/W1H6rQdES0HgnmQLfECkSCZ bjvdF/DwecEUmiODNRzmvJWnCpMxQ4eB6yxPAxrDcjLiFYaCo5MllxkVidXoZ45KXobn 5+D+rUlMF9VbnE6x6LItHPX0oj2IOzfYXn/+YOM47wTCcl5oBZGoQgiWMh9xoYXMWOK7 tdoyZvBiaQ4T0Q1Z77Foekz+yXoYUYe1Xc/pstxezi5RUxkMYG+ltHsh6159PFRxT7wh tB37kR85STmS79Sx9K0ixi6GEs9V1OL39oKO63G1YGp2oEGuk75gphmtps2D4jvyzBxU RT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@op.pl header.s=2011 header.b=JpRh7PkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=op.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a50ee0b000000b0051dd401bf24si8178932eds.447.2023.08.01.04.53.32; Tue, 01 Aug 2023 04:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@op.pl header.s=2011 header.b=JpRh7PkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=op.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234320AbjHALmx (ORCPT + 99 others); Tue, 1 Aug 2023 07:42:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbjHALmw (ORCPT ); Tue, 1 Aug 2023 07:42:52 -0400 X-Greylist: delayed 186 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 01 Aug 2023 04:42:51 PDT Received: from smtpo94.poczta.onet.pl (smtpo94.poczta.onet.pl [213.180.149.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB7E92; Tue, 1 Aug 2023 04:42:51 -0700 (PDT) Received: from [192.168.226.2] (1567051-1921.iaas.home-whs.pl [46.242.128.131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dragonn@op.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 4RFY3W11lSz1yvF; Tue, 1 Aug 2023 13:36:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=op.pl; s=2011; t=1690889808; bh=OmZHHaG1yc2Gw63P200yn7wFAj1aCDNnGach0vZpB8w=; h=Date:To:Cc:References:Subject:From:In-Reply-To:From; b=JpRh7PkGNq7Zx2A8cxEi7Tdr3nHPa09QwNcnmqkKvgfp8AnRh5EbKrDf1oZ0qpQUc /sfjXXMFdF2eQ6nG/imuSlkkgHB1kA+0azpBvVCG/Na5g7HL3FAN4eTKDDNs9Nh70K sOVDFokBo/mGMpQKt51VxPkLtkBeeUmx5Ldlc5vg= Message-ID: Date: Tue, 1 Aug 2023 13:36:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: mario.limonciello@amd.com Cc: James.Bottomley@hansenpartnership.com, Jason@zx2c4.com, daniil.stas@posteo.net, jarkko@kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux@dominikbrodowski.net, regressions@leemhuis.info, stable@vger.kernel.org, torvalds@linux-foundation.org References: <61b363bc-286a-535c-27da-0f52673768ad@amd.com> Subject: Re: [PATCH 1/1] tpm: disable hwrng for fTPM on some AMD designs Content-Language: en-US From: Mateusz Schyboll In-Reply-To: <61b363bc-286a-535c-27da-0f52673768ad@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was following the issue under or discord channel ROG for Linux and helping out some other users with it by shipping a kernel for Arch with disabled CONFIG_HW_RANDOM_TPM as the default recommend kernel for Arch for ROG laptops (as my device isn't affect by it because it is Ryzen 4800HS). I know it was discussed here https://bugzilla.kernel.org/show_bug.cgi?id=217212#c16 against allowing the user to disable fTPM to be used as a random source via a boot time parameter but I still I disagree with it. Linux does have a parameter `random.trust_cpu` to control the random source from CPU, why they can not be a parameter like `random.trust_ftpm` (or `random.trust_tpm`)? It might be my limited knowledge of this topic but to me it feels like if they is a trust_cpu then Linux should have trust_ftpm too. Mateusz