Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3765234pxb; Mon, 27 Sep 2021 01:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP/si33wre4Y5ZTA23HwpcdRQFm9ySCNEBFUC3/GQEnkEambPaQvSqpa95HqVxdba7/RpW X-Received: by 2002:a17:907:995a:: with SMTP id kl26mr26965743ejc.6.1632732911722; Mon, 27 Sep 2021 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632732911; cv=none; d=google.com; s=arc-20160816; b=S99LW0HpvQ+W0mODZXsGBuKTVa93KuayDfsh4Cb4K5qNjFL5WgWIKhMsDKP6bC71/Y va+cks6gRmlPGMBEQkaPT5ccn2NJOZDap1Aoabgisf2J/yiIbwaks2VFrbuICHfgJylA XWuLF9iR/BXqwFTnHnSfXPxWNAp9sTyD5RD2O1OVn7hWzmY6pQBOATvYUxyWeqki4YyH dYwXP3TbivCl0pDRiJ8EDcifzZIGXkU0frWgE+ksiTQSmLx/+HZKCKI35shkcIsoZpoB ZY4vAjzZfFtCCkO1Zt4Ob5/gCvAYb6D5fc7Yjnjk1Cge16lmVoyBa91cJ3Ic1S7iW8fR CI0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vpiI5pj2Ftv2EK8BLb2NkBV+XKtwEHr6p/9jAqbGbAE=; b=LMNIQLySMCo1Gz9DTGA6W0WKITKP1T7jYmUVA/20wHkHTi3dnejzduHbJTNo3kgQ1D mpnN4/G7QpBVfy5N22pK/M5dbLmxcz1RJ609qF3EgKj3Pe6fdl9hHATb9eX9T+nh35Bp Y1ODktAc85XCFSzZXeU/jb0P8jPbTsTQwRImgjYqSWFvizkgkpqSJYBrsU0U8O0yZJ1Z ODmQc7i5KO/O4nmyg1Q7BPv0hVRxgccuAV8ESzzQB/nHkb4ffTDzpXobt6wqHt85A7kP DtINpG+5wPKl8cl6dazXWAtpX6MutiqgAIVHYbK3nIPvuBKEqf5UvJpzGaM53gdJu6RY iv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rammhold-de.20210112.gappssmtp.com header.s=20210112 header.b=BhkSvc+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 bi20si16679565ejb.575.2021.09.27.01.54.48; Mon, 27 Sep 2021 01:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rammhold-de.20210112.gappssmtp.com header.s=20210112 header.b=BhkSvc+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233496AbhI0IxG (ORCPT + 99 others); Mon, 27 Sep 2021 04:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233495AbhI0IxD (ORCPT ); Mon, 27 Sep 2021 04:53:03 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1F3C061714 for ; Mon, 27 Sep 2021 01:51:23 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id y35so15006040ede.3 for ; Mon, 27 Sep 2021 01:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rammhold-de.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=vpiI5pj2Ftv2EK8BLb2NkBV+XKtwEHr6p/9jAqbGbAE=; b=BhkSvc+zNkulAdU66B6+X3PLa6HTc7zTdIZ7CKNvaupwXco2ce3J1ojxFID/7Avvkh vKV7Lz9TZZzOIcWGJuAukVWFdUKSHRmCT3np3zdY1ZBbv0sVjr96CwPggmpFw7VmdXON sklUqge3izjUabowL5z/oxI0ot81qap1t4eJaodiGkQoSjjEv3IJjpNDuSqMM6wx2FJj E1gBvz+oQ2DE86AidE5KJcGWKHarVm4zQUhDS2y0WpBY0ly2VN/7d6fYscJ/HiwFV9xl eZ0fpHR6SvqVFFTjkFuf0J3o0ardaYbzmKiBhX0OWTYjcOzeHlqylWK4ScUTazBiL+m7 eAHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=vpiI5pj2Ftv2EK8BLb2NkBV+XKtwEHr6p/9jAqbGbAE=; b=Sdf1cTh4eu2kOV2T+SB+Mo/J+YLhjDdn2X2zmfu7MlGVpkA5jnMCl4pzhnsNmYurzi oPSmjtoF5PtN9++mr9hCSQ5ckXN+jwDgnx/7XD+yLz6WpGc66+af3oG9Sdqg0UxTYjLV /z3IL0XvIxK7EUBsClL2+DibEDec65Jj9ubwMJMHB9apsEZvzHvAgNxJ9w0ftcbTAOLF tSW9aIcwWV8eIQmE9UzetP9uHw6IQWNWP0wbHMPUZf9Zs9P67d9NbfXlKKHHlQR1G47K uK9MxX9ot1FpwqZDuKZTCp5/2hcodFlDlUVIvjF/Fs30SxhExXVuVlMUyOe2d4E2VU1F SBQQ== X-Gm-Message-State: AOAM5326GWrp6tDwiaLj69eHyUWN40EbjExnX8D1KzMIxvY+qyq14R5z 2LImoX1nHPhVw3kVyvj2l0gZNA== X-Received: by 2002:a17:906:2505:: with SMTP id i5mr25674695ejb.450.1632732681907; Mon, 27 Sep 2021 01:51:21 -0700 (PDT) Received: from localhost ([2a00:e67:5c9:a:6d7b:fc0:e9e9:7254]) by smtp.gmail.com with ESMTPSA id m22sm10262359edq.71.2021.09.27.01.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 01:51:20 -0700 (PDT) Date: Mon, 27 Sep 2021 10:51:04 +0200 From: Andreas Rammhold To: Ahmad Fatoum Cc: Andreas Rammhold , James Bottomley , Jarkko Sakkinen , Mimi Zohar , David Howells , James Morris , "Serge E. Hallyn" , Sumit Garg , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] KEYS: trusted: Fix trusted key backends when building as module Message-ID: <20210927085104.vq42feghtaqiv6ni@wrt> References: <20210730012822.3460913-1-andreas@rammhold.de> <0d42a11a-0117-49a9-d2c9-bc6cc405235d@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0d42a11a-0117-49a9-d2c9-bc6cc405235d@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09:47 13.09.21, Ahmad Fatoum wrote: > Dear trusted key maintainers, > > On 30.07.21 03:28, Andreas Rammhold wrote: > > Before this commit the kernel could end up with no trusted key sources > > even though both of the currently supported backends (TPM and TEE) were > > compiled as modules. This manifested in the trusted key type not being > > registered at all. > > > > When checking if a CONFIG_… preprocessor variable is defined we only > > test for the builtin (=y) case and not the module (=m) case. By using > > the IS_REACHABLE() macro we do test for both cases. > > > > Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework") > > Signed-off-by: Andreas Rammhold > > Reviewed-by: Jarkko Sakkinen > Does anyone intend to pick this up? Did this end up in any tree by now? I am wondering if I should resend the patch instead. Perhaps it was just overlooked? Andi