Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp718234rdb; Fri, 17 Nov 2023 10:34:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/HR/Wp6XJWycxT5906BqMSYpfwlD1K7e1+3MYadqbA/NkAVOLQ7ICqLoTjpmxcj8QkOT/ X-Received: by 2002:a05:6808:1b08:b0:3b2:f2e0:6b39 with SMTP id bx8-20020a0568081b0800b003b2f2e06b39mr233303oib.12.1700246043650; Fri, 17 Nov 2023 10:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700246043; cv=none; d=google.com; s=arc-20160816; b=YO6710OaIEwZgpj3pGlGkDTxWyOlMBIlJNph+ubWqPeQq0hlJTgiwfBbHoSJtURnBZ gL+o4DziaYLdilbdwfi3e8wN+OlX6bLCCoVyv1+ZypRj1l3Frc242Jdn5safqU2x/R78 DmfXIwxcLWH6W2OI3gorEJrXb2bMb86p9p/6/gFqW7yUzk/8pqiSeJFdCeeIjDQsl6OS KoTLnfpQMG1g4dTKv7CYYh+4uhOJsn5Z5fbzBzmPYS/dl3Be0/UNJhwrMYC/7UrNFRsJ WeBt91xKsU+SLXYW/jE5H5qWKg4EvRzJUY393eAzPklax+dPqCgw+nNgSJVFQA9fvxF9 zUfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=C80P3w16fs62eEEe4oyApwGuwCnUYxn0YKlH/jCHwaM=; fh=FdN9JAxZtEwQdJAk/qPiRnexceMu6h+b2PnaJlx8h48=; b=qPJgUzum5KP3QTN0NQXT0w/IzFX8OPc2N3CTVVd7J8q3WyKYP/ay1uEkTUbhVkxDKo zlaqjediGSgiPUl+1oAbJdjmP++RdBMiFx+pTyEe9dD5UZXdRJwTR/JbgCk4QkzEUHet 2TXVBb0ixkklPJ44WQxSD/Ei7U90Xu4efCIAZrqUqcuKQkc084WPOphXqejUrgd8OwO/ 3krJzBp4MCGXy1Cjnf5598I0PtHVnaJEfZ7S477IZEeLN4Epy2g8yLrcETryFdjL1M3u xbOY+UJQ5Gh98s/8cIMmUJMy44yMUNCYg1VXlTe1ntfgYN6Tm251AHfWTp8EkCpoezMC BCHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="n/MhAHSE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f27-20020a63101b000000b00578da80ac3dsi2390313pgl.80.2023.11.17.10.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 10:34:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="n/MhAHSE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 41E70824C4DB; Fri, 17 Nov 2023 10:34:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231430AbjKQSdw (ORCPT + 99 others); Fri, 17 Nov 2023 13:33:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQSdv (ORCPT ); Fri, 17 Nov 2023 13:33:51 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82163A2; Fri, 17 Nov 2023 10:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=C80P3w16fs62eEEe4oyApwGuwCnUYxn0YKlH/jCHwaM=; b=n/MhAHSE4jHjt2CLOY1ufmqw9X JckfqhKeZ6MGg5h6TCXxL60IN0qzdL4k06yLalFI7HfFw5UfwZkGlhDhsKYmbKBf8FVJ0hhqt05Wa JrswkPr0WQDZ9FqEaAhAJE0aw92Zf7K7VQuPlevN8gLDhLDvYRazAbx2tlBkN4Oc22uGMkE1eCY1X dvdEp2V9gCyz3D3cb311pllFsnW6Zx3pNMfuAXpsYACUTEHRNtNYBhdd2HmXriXwoOG1KVDVKw5q5 zTbjM3KO9xFQX68XeLkORG86DiYGTAs1hKY4Kz5gKgstmfg7woRmIzo8nMDmezYZ3c9JFKzJ6rkKm J10E7aTQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r43f2-0076OF-0I; Fri, 17 Nov 2023 18:33:48 +0000 Date: Fri, 17 Nov 2023 10:33:48 -0800 From: Luis Chamberlain To: Alessandro Carminati Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [RFC PATCH 1/2] Modules: Introduce boot-time module signature flexibility Message-ID: References: <20230914112739.112729-1-alessandro.carminati@gmail.com> <20230914112739.112729-2-alessandro.carminati@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 10:34:01 -0800 (PST) On Fri, Nov 17, 2023 at 02:56:53PM +0100, Alessandro Carminati wrote: > Il giorno gio 16 nov 2023 alle ore 18:35 Luis Chamberlain > ha scritto: > > > > I see the code which skips module signature verification and the knobs > > but I don't see the code which complete the promise to do the actual > > signature verification post initrd / initramfs state. What gives? > > My initial intention wasn't centered around providing an automated solution. It is not even an automated solution, it's *any* solution. So to be clear your patch simply disables module verification, it has no solution. > Instead, I envisioned a design where users could manually restore module > verification during a specific point in their init scripts. > > It might be plausible to restore module verification when the rootfs is > remounted. However, this seems limiting rather than advantageous. The patch as-is describes a lofty world and does nothing other than disables module verification. If a patch disables module verification it should just do that and describe that. Nothing else. The subject of the patch tends to suggest some flexibility it provided but does nothing of being flexible, it outright disables module signature verification. The commit log and the patch subject description are describing something completely different than what the code actually does, and it gives me to the concern, to the point that if you didn't have a few commit logs in the kernel I would have thought your intent was test kernel developers with some AI type of code that does something stupid and very carefully crafted commit log. Nacked-by: Luis Chamberlain Luis