From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A938C4332F for ; Mon, 27 Sep 2021 08:51:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D12661183 for ; Mon, 27 Sep 2021 08:51:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233517AbhI0IxF (ORCPT ); Mon, 27 Sep 2021 04:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233496AbhI0IxD (ORCPT ); Mon, 27 Sep 2021 04:53:03 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71429C061740 for ; Mon, 27 Sep 2021 01:51:23 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id dm26so32002846edb.12 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=7SI1mtCOIFYYEbMGosgFXitxw3JtriTZgJQXC0sif4RZHb0HobkXtSY7oD20o73LwU FMlYwTfgzq6gVHu4uIlfHtWS3SUckJyXJCUiF+Hofm0GvMj5GodtelmDUqF5sXsCKn2D 1ktjMC3Q9DYJILXIhEkynqxUBsB50u66sTcXaTxUmLpcL01CtwaV4n0W5wHZNJ0MWvMe yrUDEuUDkcYs6QIuIHV6jtC7ifTkckAneY2xq6rz+HGMVsALthTHzAMTLRqvo0kK0lhP gdPSqcbqS16S7oVXj8hNj84eL1ZGSLI+xbJRopjFebvZ5ibLA81qpifu1YO/0C/IlmlJ lnHw== X-Gm-Message-State: AOAM532YTi7UuXSv753Z7GwFhLRw7NKxe+R4aQfNrCh+d1HnUYuZRGy/ ACz/IHGBtgqZLVpUhbEdxky4HA== X-Google-Smtp-Source: ABdhPJyGrcZoq7BRymoATY3WZexa99+brf/ZH5Kkqlnjq0KM2/GBXtUm597ruB9k9urrT5xeVjJXVA== 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-integrity@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