Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lOhzx-0006ZF-9C for mharc-grub-devel@gnu.org; Tue, 23 Mar 2021 10:27:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOhzq-0006W9-V2 for grub-devel@gnu.org; Tue, 23 Mar 2021 10:27:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOhzk-00079M-2p for grub-devel@gnu.org; Tue, 23 Mar 2021 10:27:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616509614; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g6m9ITYSEYNEZpyOM7owupaePYxFSAUiWafcRND+efQ=; b=C3bhTTTTMGumLjweKpiXx9cXEM+84kWRt83XCjLtRvPN0H3yxzU+0nxf6wJpsPNuVpVq7/ y3sgKabi1N80+iqcc2Ix4SGaiEfNzscjdtIHnYRyevsT4QmXdDfUhzdcqcMIrIOVlg8Cwf eayIoiRj0WBQ0kzq/ZEoJO/a6DmdG1M= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-AFEkwANEOD67-RxxB4jf-w-1; Tue, 23 Mar 2021 10:26:51 -0400 X-MC-Unique: AFEkwANEOD67-RxxB4jf-w-1 Received: by mail-wr1-f69.google.com with SMTP id x9so1173142wro.9 for ; Tue, 23 Mar 2021 07:26:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g6m9ITYSEYNEZpyOM7owupaePYxFSAUiWafcRND+efQ=; b=a8vlA2PD62F8/9HeI+3JtJ4Authf8wf/n4ja1jscJg116Hj6ZKwFuGN1zLCtgm59Mv YA7TW4m6GXy6EjyIv6ZBmOfmmrmJTJSIkxqhF/R+d9wWeEq3kRALgpNiF+6VTs1azK/e ZsiP1b/lFUQrNx/qJpzc/TitvA+0ShF9FVXs1k9TY55m2314P4xLvERzCnprNIhCBx+b nLbNuFaAZvrGTA4WCl2N/DnokSUhNs06h3Rg3zXeUkiFpRs9a0eeJza1z2QkHbs4y0Cl QOore4VuHoTmYW6YX8JBQgCOG/UeaI9nErb010x5m89KR79dvIFMCAjmaIS6lUJ0U61u QntA== X-Gm-Message-State: AOAM531X9SOhBZWfODhNGrMPf+hvwKcB0dmosHegUYbrf21IgjYyqedQ mUHdGOk+S/eF3Ga1zpR4jAOy4W1QV839DvTMfqG9F98xnvypKN/in66W+JUq/LPLWHOoRYlhNEj 54utodQiwT70= X-Received: by 2002:a7b:c242:: with SMTP id b2mr3779538wmj.119.1616509610179; Tue, 23 Mar 2021 07:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyoSq2nIv+/qTmASqWZjCnswk+RBSNzh7xNWqB98POtmxCtSQoMPxqxRHXNegSTFI5p6Zo6Q== X-Received: by 2002:a7b:c242:: with SMTP id b2mr3779524wmj.119.1616509610043; Tue, 23 Mar 2021 07:26:50 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id j136sm2911578wmj.35.2021.03.23.07.26.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 07:26:48 -0700 (PDT) Subject: Re: [PATCH v2] i386-pc: build verifiers API as module To: Colin Watson Cc: Michael Chang , The development of GNU GRUB , Marco A Benatto References: <20210318113026.24963-1-mchang@suse.com> <20210322152000.ebheegnkkhpqa4d3@tomti.i.net-space.pl> <20210323041621.GA4480@mercury> <000fc9a9-25cd-4d8c-5472-ac16358d888b@redhat.com> <20210323132715.GP26923@riva.ucam.org> From: Javier Martinez Canillas Message-ID: <7d608009-76cf-68fe-afac-dfa2c739e041@redhat.com> Date: Tue, 23 Mar 2021 15:26:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210323132715.GP26923@riva.ucam.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=javierm@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Tue, 23 Mar 2021 14:27:04 -0000 On 3/23/21 2:27 PM, Colin Watson wrote: > On Tue, Mar 23, 2021 at 12:37:20PM +0100, Javier Martinez Canillas wrote: [snip] >> >> For this particular case, it might be better for distros to just revert commit >> 9e95f45ceee ("verifiers: Move verifiers API to kernel image") instead of making >> it conditional for i386-pc, adding complexity to the GRUB upstream code IMO. > > That would also mean skipping or substantially modifying your lockdown > patch that followed it, which requires great care. I did something like > this in various forms for our security updates because there wasn't much > choice there, but I'm not keen on it as a long-term solution. > > In the long term, we do seem to want to have the verifiers API in the > kernel image at least for EFI platforms, don't we? So reverting that > patch entirely seems like a bad move, and Michael's approach seems a > reasonable compromise. > Yes, that's a good point. Accepting Michael's patch to fix the issue for i386-pc but start pushing back other patches whose goal is to keep the GRUB core image minimal seems to be a good middle ground for this topic. Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat