Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6696022pxv; Thu, 29 Jul 2021 23:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4y7XoFSlOFkJpTLDBtjXwPKZV9DTgBX93ds49B3OEI5nhBuzA0Adtm5d0ll+8kxsRuRWC X-Received: by 2002:a05:6602:228b:: with SMTP id d11mr1093804iod.207.1627626189674; Thu, 29 Jul 2021 23:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627626189; cv=none; d=google.com; s=arc-20160816; b=KabxoqSnIUkQAZ7WLu3SE7p1PbpgcAzTazjSDka6SkGYPsYyAM+smMyzg8QZX/lCgX MWMd+j393VTNhB8CIy/OVEsOcqwUBKlQsSEodq4oJMWP8WGHbTXbwLvn4zJiRWqdeoMq 0hJKGzRhbrpP9o2IL8U00wAGan/3pbMkhDbX4DhKJjso2uas7K8Kkdx3lvIZT3Q5LJlH IqiZfTk4qi+AXGnWKmTwgHM/OfG6QGrnoplmcqNyobfZP6iHC9BN33woxVec0F2cuWsK QnadWkVY2zcCNMb+y8DbBTmR0BQz4mv+vXHvU9V8Q1i8g68XJPzsl+RjT4aMrtb8LANS YOnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TK/DlLojf2T5pPGujfC8EZfaxaWh2+E6S52FF0gCNyI=; b=GaMfwr1TwuHX+ST/4Beu/PF+0Z9WYtfGHwR2GqiLZz6Db41x05S02dkxJtf5+nInjN Kj0ccWISmQlIyGd5pBVRWldB6tUcmigkf8aYi5ycA6jI03kHIBQJipBZvySNUQQ4168a 17EvY6hQmxe29OJY7WijhHPMmwj15IZbHlj5ZPZKol+rDPQAPnfqMaMX/kx7nIQSEjmZ xIIwkBamsPyLMkSlC5Z+Fjdx8wNArMh4irsRzaCdSyyKTpHf+lFSsiRLObZLcAqqWaix okkW4wcr1o/IBveNlr1w8WSr9ZpvzcLcgQzkXhksmla5DN9yd0g25FrboW9HpwP/L4uY Y2hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si754874iol.91.2021.07.29.23.22.51; Thu, 29 Jul 2021 23:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237494AbhG3GWK (ORCPT + 99 others); Fri, 30 Jul 2021 02:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237453AbhG3GWJ (ORCPT ); Fri, 30 Jul 2021 02:22:09 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07697C061765 for ; Thu, 29 Jul 2021 23:22:05 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m9LuD-0001G3-Cj; Fri, 30 Jul 2021 08:22:01 +0200 Subject: Re: [PATCH v2] KEYS: trusted: fix use as module when CONFIG_TCG_TPM=m To: Jarkko Sakkinen Cc: James Morris , "Serge E. Hallyn" , James Bottomley , Mimi Zohar , Sumit Garg , David Howells , Herbert Xu , "David S. Miller" , kernel@pengutronix.de, Andreas Rammhold , David Gstir , Richard Weinberger , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org References: <20210721160258.7024-1-a.fatoum@pengutronix.de> <20210727030433.3dwod2elwtdkhwsc@kernel.org> <20210728215200.nfvnm5s2b27ang7i@kernel.org> <20210730002101.2tcb3bs2lxdvmuqk@kernel.org> From: Ahmad Fatoum Message-ID: Date: Fri, 30 Jul 2021 08:21:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210730002101.2tcb3bs2lxdvmuqk@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 30.07.21 02:31, Jarkko Sakkinen wrote: > On Thu, Jul 29, 2021 at 12:29:38AM +0200, Ahmad Fatoum wrote: >> On 28.07.21 23:52, Jarkko Sakkinen wrote: >>> On Tue, Jul 27, 2021 at 06:24:49AM +0200, Ahmad Fatoum wrote: >>>> On 27.07.21 05:04, Jarkko Sakkinen wrote: >>>>>> Reported-by: Andreas Rammhold >>>>>> Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework") >>>>>> Signed-off-by: Ahmad Fatoum >>>>> >>>>> Is it absolutely need to do all this *just* to fix the bug? >>>>> >>>>> For a pure bug fix the most essential thing is to be able the backport >>>>> it to stable kernels. >>>> >>>> Not much happened in-between, so a backport should be trivial. >>>> I can provide these if needed. >>> >>> "not much" is not good enough. It should be "not anything". >> >> "Not much" [code that could conflict was added in-between]. >> >> I just checked and it applies cleanly on v5.13. On the off chance >> that this patch conflicts with another stable backport by the time >> it's backported, I'll get a friendly automated email and send out >> a rebased patch. > > What you should do is to split this into patch that exactly > fixes the issue, and to one that adds the "niceties". I'd rather not send out patches I believe to be incomplete, sorry. If you want to fix the regression's root cause of insufficient Kconfig description, that here is what it takes. You can take Andreas' regression fix for stable and replace it with my patch later. I'll send out a new version removing references that it fixes a regression. Cheers, Ahmad > > /Jarkko > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |