Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2209951rwp; Fri, 14 Jul 2023 02:34:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCF92+ztMFkQ4KaZqd0gzr/3ODM66Sznnd3u7EgpaEi0Cwi4c2A+BjHkMvGCiqZx28ElX+ X-Received: by 2002:a17:903:54:b0:1b8:8af0:416f with SMTP id l20-20020a170903005400b001b88af0416fmr3539676pla.1.1689327248309; Fri, 14 Jul 2023 02:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689327248; cv=none; d=google.com; s=arc-20160816; b=R0f59lETppdBIR2JlDmZDVmuAhkOiYT2rOI+bcffQg382kcgrNpRAOPAZ8E289f0DX JBjE5Jknf3lxomAQfD6csDyIRFjSYVhyt1kEvd6QzmEKaY+l2tMv/oixYZZPMQSRO5J8 qmrvcsqaodXyPSChAz5SiL59fpRKQK+IdLO18KqU4avCANO4GzV4rPhUZdsmogFfqmPh ILGqzUXRNApjBw/Ww781XJKC6xnupiqsdy6VjtFWa9evVLl1ZpDQ4ugYd6NeyjnfnlSJ cG3gUUc/vsGIm0HfZk2PHgJwn/EbRQzFLzUH8YJ/SsM2jsR37H0CFh2GI6lZO+PkEqjX poDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=a/gHWvKNVKnUjDl3cCH1XFi7UuygHpG50zaqI2rpAF0=; fh=sTVlhdYqEhFvyYPFCpab64TlsvZ5f7YpoO2+jJvd1uk=; b=q8xLDIYAZ3uloj7gkJ5nlo6t8Uim9zEI/iXhYTHZIaCMuaZN7TaiHuZaHjNSkBujtw 58Qisg2J00h5p4ZrrJkEWqjKrxLdnlCYnuUmhoBfJgQacFgQSIOtv9++hQVLRUwViVu3 1kyn9JOMGXFyAo8Xe9ftUCsIhkYQT0BKjJwDSnVYtsSotiKcJmfu8TFUbw7y1eQA8Vak LW5j0iTdQNO9uyeuhI80zLfFPc6rCQOaztSC+AlFBSIFRRrh9BiToTnn+eZfRyA/K+DR yt+eHiXt6Imk9Agyq/Try7EoY6Fkgnuviqy88MfUuaf2FfvewpZC1W3pZ5kyLrVKSZwB bPFA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a170903228e00b001b829a32f2dsi7105249plh.457.2023.07.14.02.33.55; Fri, 14 Jul 2023 02:34:08 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235767AbjGNJNS (ORCPT + 99 others); Fri, 14 Jul 2023 05:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235755AbjGNJNR (ORCPT ); Fri, 14 Jul 2023 05:13:17 -0400 Received: from cavan.codon.org.uk (cavan.codon.org.uk [176.126.240.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D3D6E65; Fri, 14 Jul 2023 02:13:13 -0700 (PDT) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id 0C4D0424A2; Fri, 14 Jul 2023 10:13:10 +0100 (BST) Date: Fri, 14 Jul 2023 10:13:10 +0100 From: Matthew Garrett To: Ard Biesheuvel Cc: Luca Boccassi , Peter Jones , Emanuele Giuseppe Esposito , x86@kernel.org, Thomas Gleixner , lennart@poettering.net, Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andrew Morton , Masahiro Yamada , Alexander Potapenko , Nick Desaulniers , Vitaly Kuznetsov , Daniel P =?iso-8859-1?Q?=2E_Berrang=E9?= , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: Re: [RFC PATCH v2] x86/boot: add .sbat section to the bzImage Message-ID: <20230714091310.GA21128@srcf.ucam.org> References: <20230711154449.1378385-1-eesposit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Jul 14, 2023 at 10:52:20AM +0200, Ard Biesheuvel wrote: > Maybe the OEMs have gotten better at this over the years, but it is > definitely not possible for the distros to rely on being able to get > their own cert into KEK and sign their builds directly. Getting certs into local machine databases should[1] be possible on all Windows certified machines, but in the status-quo there's no cross-vendor solution to doing this. Relying on the Shim-provided mechanisms is much safer from a consistency perspective. [1] Every time someone has claimed it's impossible to me I've ended up demonstrating otherwise, but that's not a guarantee