Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lOMa5-0004kb-0M for mharc-grub-devel@gnu.org; Mon, 22 Mar 2021 11:35:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOMa3-0004kC-EI for grub-devel@gnu.org; Mon, 22 Mar 2021 11:34:59 -0400 Received: from dibed.net-space.pl ([84.10.22.86]:36920) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:192) (Exim 4.90_1) (envelope-from ) id 1lOMa1-00014s-H6 for grub-devel@gnu.org; Mon, 22 Mar 2021 11:34:59 -0400 Received: from router-fw.i.net-space.pl ([192.168.52.1]:42270 "EHLO tomti.i.net-space.pl") by router-fw-old.i.net-space.pl with ESMTP id S2093886AbhCVPUI (ORCPT ); Mon, 22 Mar 2021 16:20:08 +0100 X-Comment: RFC 2476 MSA function at dibed.net-space.pl logged sender identity as: dkiper Date: Mon, 22 Mar 2021 16:20:00 +0100 From: Daniel Kiper To: mchang@suse.com Cc: grub-devel@gnu.org, Colin Watson , Marco A Benatto , Javier Martinez Canillas Subject: Re: [PATCH v2] i386-pc: build verifiers API as module Message-ID: <20210322152000.ebheegnkkhpqa4d3@tomti.i.net-space.pl> References: <20210318113026.24963-1-mchang@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318113026.24963-1-mchang@suse.com> User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=84.10.22.86; envelope-from=dkiper@net-space.pl; helo=dibed.net-space.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 15:34:59 -0000 On Thu, Mar 18, 2021 at 07:30:26PM +0800, Michael Chang via Grub-devel wrote: > Given no core functions on i386-pc would require verifiers to work and > the only consumer of the verifier API is the pgp module, it looks good > to me that we can move the verifiers out of the kernel image and let > moddep.lst to auto-load it when pgp is loaded on i386-pc platform. > > This helps to reduce the size of core image and thus can relax the > tension of exploding on some i386-pc system with very short MBR gap > size. See also a very comprehensive summary from Colin [1] about the > details. > > [1] https://lists.gnu.org/archive/html/grub-devel/2021-03/msg00240.html > > V2: > Drop COND_NOT_i386_pc and use !COND_i386_pc. > Add comment in kern/verifiers.c to help understanding what's going on > without digging into the commit history. > > Reported-by: Colin Watson > Reviewed-by: Colin Watson > Signed-off-by: Michael Chang NAK for this patch and others "fixing" small MBR gaps. I am not going to deal with this kind of issues any longer because a few folks in the world cannot/do not want/... reinstall their systems. Sorry guys. Additionally, the commit 5fd18f77e (mbr: Warn if MBR gap is small and user uses advanced modules) and 505d92f5e (mbr: Document new limitations on MBR gap support) are pretty clear we do not support advanced configs with small MBR gaps any longer. Daniel PS FYI, I am not sure anybody cares but I think patch is not fully correct because lockdown part of kernel calls into verifiers module on i386-pc.