Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp609542pxp; Sat, 5 Mar 2022 12:58:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ5aWGr6O39jcKgL3cfqwkbFtSCdPUjUZ3NKqJ7stjHSaH+UgytQOQREA6JffNIQlbP6fC X-Received: by 2002:aa7:c946:0:b0:416:226f:f8a6 with SMTP id h6-20020aa7c946000000b00416226ff8a6mr3230628edt.360.1646513914698; Sat, 05 Mar 2022 12:58:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646513914; cv=none; d=google.com; s=arc-20160816; b=e5bPWaSs3VOLDY0Jut8urEkFeZcgD5D06dhLeS+oRTeF+SflBDblfbFFOzKCj0+fU+ MK6M0QvPfCqEWntuMWx/8OHMQwyz0J8L+iOi38cKEArd8Fx3SZOoPdE88ca8ynOmaYe5 pgpYLiypcK/KqowMdetMP6T44lOwuKcHsHDGkA/eqhuVW/l1z1fgez67lR/mXKY520Ps EZrRUT2BXSf4sQw+jId9JhMxzOB6IPOSliqWIdcsfh6MoihXDqeZn/B7bwxAtlnPhbPP 2CmlZ0x8bW+PbxdWTVP2W6PaIaoOIBkF95ezrA+/3Mcxo3mjgFVV84G5bgXa+ltbI2OU 8++A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LTq2l8ofz9rdVgsUXAyYiBJlx/2wq7tGHGb9qgHLPos=; b=aSLyDPcmEUrSkHRbbPYt2hq60Dgd+1pBsE9AwB1NR45VAOgRH3Aa7o7u897BCDZXxb LrizZWHalhq/JytD4tY6eSDfGDMqplCVfc9JJ1gjarD2GlV4Hv5hHqUn6pdXhzJW8VHS LM561Bem1GgQuxWOSW8ryBy8L+KvY4zF7JFx1fTsfFUHrE71RW0Amdb5NwxGfyDC1VWi FmQAnazMLbpdoQBEEnrjbQDV/y/H4ROhHLMH4A/EceFgLmWlonbj8Rv2vrPh67jqcIc3 tUSvH+QZN2tCKJUZ9RTLspvaHCdY9ffPezow4u9B25aGxEDlCEROnVG0XaedgxmTeru8 jDFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Na7IWn8d; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh43-20020a1709076eab00b006db03757541si1304919ejc.768.2022.03.05.12.58.11; Sat, 05 Mar 2022 12:58:34 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Na7IWn8d; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231686AbiCEUiz (ORCPT + 99 others); Sat, 5 Mar 2022 15:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbiCEUix (ORCPT ); Sat, 5 Mar 2022 15:38:53 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B13A9FF8 for ; Sat, 5 Mar 2022 12:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646512681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LTq2l8ofz9rdVgsUXAyYiBJlx/2wq7tGHGb9qgHLPos=; b=Na7IWn8d4p3kFHKi7aGUaDrYwKML0YsJX4BIt+EtF6qT6lAQsrGdu0icoNRQy1ZlzbeNCk w8SIt4L/YMfDHIOdu6HzZ2rDOe1iSTbRWZwQgB8APnhPtL0dY8qVLPZUMwN+2INGxnnf+B 4XlRrdNSrCGW0BEZC6SATS/teab2fj8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-416-XDigI6JDMom-MOAFdr8-pA-1; Sat, 05 Mar 2022 15:38:00 -0500 X-MC-Unique: XDigI6JDMom-MOAFdr8-pA-1 Received: by mail-wm1-f69.google.com with SMTP id o207-20020a1ca5d8000000b0038977354e75so1750473wme.1 for ; Sat, 05 Mar 2022 12:38:00 -0800 (PST) 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:in-reply-to; bh=LTq2l8ofz9rdVgsUXAyYiBJlx/2wq7tGHGb9qgHLPos=; b=Q2lQGA0FZWPHIP16BSWHSpFg7vt1KEr2ifmhdN8Azl484435/PBTnaQWZjT3N+2+Sp flY1q+WA3J8u4aC4oJO8gJ0iZXIFQv/QNFHcoKC7eeyHkgnd+qop6xpI4725vsU/rnbk MuHFhyajKkGeVqJG8YDTZd0qYzCegp78g0pPYPINCPSyqUCLXPG+lHwVg0Bf4NtVHgIJ ECqfUAzSuFRMicxnbKF1BDRQvsIrM+MTIR2bhWUtCa1/YvJgxX7ymXDfCgxKvlLPGht+ iYIybkim6pmdtli2dJgJdjh/0wGvX38tTH68fbDesD9Ec79En1y37ZeFI7IeWZ3Mso1X LuZw== X-Gm-Message-State: AOAM533rX3WO0Ozg3L+HKHLNA5+TMFC/Hk2r1znIr5DO7HlGSa1Smkhl ZN44lF9dUbrIt04GNpHrECTNyRV9Qa7M4UqrI3N6ErNi0HJ1kuz/sDRvycucR+fqqKMuR0PO8Cx m6rwF5eannHTDHYuNOY9FFWs= X-Received: by 2002:a5d:6da8:0:b0:1f0:4c26:3f57 with SMTP id u8-20020a5d6da8000000b001f04c263f57mr3501213wrs.460.1646512679062; Sat, 05 Mar 2022 12:37:59 -0800 (PST) X-Received: by 2002:a5d:6da8:0:b0:1f0:4c26:3f57 with SMTP id u8-20020a5d6da8000000b001f04c263f57mr3501203wrs.460.1646512678803; Sat, 05 Mar 2022 12:37:58 -0800 (PST) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id r12-20020a05600c2c4c00b003816932de9csm15206434wmg.24.2022.03.05.12.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Mar 2022 12:37:57 -0800 (PST) Date: Sat, 5 Mar 2022 20:37:56 +0000 From: Aaron Tomlin To: Christophe Leroy Cc: "mcgrof@kernel.org" , "cl@linux.com" , "mbenes@suse.cz" , "akpm@linux-foundation.org" , "jeyu@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-modules@vger.kernel.org" , "void@manifault.com" , "atomlin@atomlin.com" , "allen.lkml@gmail.com" , "joe@perches.com" , "msuchanek@suse.de" , "oleksandr@natalenko.name" , "jason.wessel@windriver.com" , "daniel.thompson@linaro.org" , "pmladek@suse.com" Subject: Re: [PATCH v9 07/14] module: Move extra signature support out of core code Message-ID: <20220305203756.jc5ayzboea6ixm4a@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20220228234322.2073104-1-atomlin@redhat.com> <20220228234322.2073104-8-atomlin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed 2022-03-02 08:08 +0000, Christophe Leroy wrote: > When it was in main.c, is_module_sig_enforced() was build as soon as > CONFIG_MODULES was set. > > Now it is only built when CONFIG_MODULE_SIG is selected, so you have to > modify include/linux/modules.h and have the stub > is_module_sig_enforced() when CONFIG_MODULE_SIG is not selected and not > only when CONFIG_MODULES is not selected. Hi Christophe, Looking at this again, perhaps I'm missing something. If I understand correctly, Kconfig CONFIG_MODULE_SIG cannot be selected without CONFIG_MODULES; also CONFIG_MODULE_SIG depends on CONFIG_MODULES, no? So, what is present is enough right i.e. the stub when CONFIG_MODULES is not enabled? Kind regards, -- Aaron Tomlin