Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5637748rwp; Mon, 17 Jul 2023 07:19:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGisGpVF2jcLBIhABz4HSQsExpyGcGCA6hBWuyT+fs6Z2Zhm4yB5h4oISipOtM3yzS6JMkW X-Received: by 2002:a17:902:c3c6:b0:1b8:1c9e:444e with SMTP id j6-20020a170902c3c600b001b81c9e444emr12351375plj.25.1689603553048; Mon, 17 Jul 2023 07:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689603553; cv=none; d=google.com; s=arc-20160816; b=THbBDV0igrt8sORgELuwcpdC3O9HJyKC4LDEhGJ0DhA6DMwAWPwOcvz0d70eU5wSIe yfFRSBik0B0ZMbdo6EiWeD65hp163lKlf8gl3VJA1/9kHd7kyQT0yauPWM1IaNQvpnqe EqNyfKM9AwJ79YVPACgU1fr7BMtNHaIK94RgZtbKi7jDHVFIz8BXYtK1TazJMl1Mx4Qm r1+lv1BP84TTBj0YwYks9IweZjLcK628GvYmPmeTifrni4m461tCWhb5YrDpm4UEtapx 7xpknOUVA5hMMNwTLNKRDYnbGfCraLmHh7ZwUbI6EZXdvRRbBBZ+lpX5/57l+bY6wXLu ZBjg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9N59Heo3sy2wy/NqTWcj5JN2Dw6EbnQ5yXK/m+Z4w3M=; fh=saGguLTWLQEvWI+Icc3BWJzHdo6ZtTQgRr/suedWUsI=; b=HCjntZDU1XhsqSdFm455/jJxn2LaAIWsko3ahsVBV3LfyAL2onWiKO+2opqMNb6I/T FN9HfeucX2jERK7jRB+L9ESKIMIV/7FUm+yWgRjVsx+YvLmJ0+qs/GLbcUUqNK2OWZo+ hrqX/66KDZ3zLKmjplLprtHJI470fqfj/Xnp1s5fD7Pnfi/EBsBEsQhYnIwL4nGf1RO+ 6LaQIEkM9UAlZP8+BaAkUUWFSZpTuNCKp//Qp1a9xKlJHZd8xsIxArDz0YPN5BFXoR2n mm/AsVLbJTUshpPs15EVynUrdnFLlY58n5G+yhrKLuPiRWm5Q5BYhKBZk5PhfsqWhOX9 TFag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1xgaXhbu; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170902d4cb00b001b9d1813011si12209564plg.455.2023.07.17.07.18.59; Mon, 17 Jul 2023 07:19:13 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1xgaXhbu; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232026AbjGQOLp (ORCPT + 99 others); Mon, 17 Jul 2023 10:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231971AbjGQOLl (ORCPT ); Mon, 17 Jul 2023 10:11:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EECE6D3 for ; Mon, 17 Jul 2023 07:11:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 80F9A61086 for ; Mon, 17 Jul 2023 14:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355FCC433C8; Mon, 17 Jul 2023 14:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689603098; bh=NBAtgqkXsx9MlBOLbsCOWBayr2Tw0LXviJU91cNfA08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1xgaXhbuRMyrEPHSh+WJqK37o1UtHFuuYV/rP7DY8qfi3Zw2amnhNkq/lzdM6G6EL JtDK/PMv0rOqS54lR7OAs7gMxuEyRJ5HWWMq7DITuJZYa13SIQkJbfhx8IatMMgXxM chfSRzq46riRGaQJg+ZUZDVoIf3N9pGeFic+QCh8= Date: Mon, 17 Jul 2023 16:11:36 +0200 From: Greg KH To: Luca Boccassi Cc: Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , Borislav Petkov , Emanuele Giuseppe Esposito , "H. Peter Anvin" , x86@kernel.org, Thomas Gleixner , lennart@poettering.net, Ingo Molnar , Dave Hansen , Andrew Morton , Masahiro Yamada , Alexander Potapenko , Nick Desaulniers , Vitaly Kuznetsov , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2] x86/boot: add .sbat section to the bzImage Message-ID: <2023071700-blot-angular-cf6f@gregkh> References: <2023071233-empirical-overturn-744c@gregkh> <2023071350-specked-botanist-6ba8@gregkh> <2023071552-quilt-tranquil-b7bf@gregkh> <2023071643-broiler-level-afbf@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Jul 17, 2023 at 12:12:18PM +0100, Luca Boccassi wrote: > On Mon, 17 Jul 2023 at 10:23, Daniel P. Berrang? wrote: > > > > On Sun, Jul 16, 2023 at 08:28:10PM +0200, Greg KH wrote: > > > On Sun, Jul 16, 2023 at 06:41:04PM +0100, Luca Boccassi wrote: > > > > On Sat, 15 Jul 2023 at 07:52, Greg KH wrote: > > > > > > > > > > If you are not willing to take the time to determine how this proposed > > > > > change will affect the kernel developers and infrastructure by doing > > > > > some modeling based on our past history, then we have no reason to even > > > > > consider accepting this change as you are stating that you have no idea > > > > > how it will affect us. > > > > > > > > There's no need for that to tell you how this will affect you: it will > > > > not. Every now and then you'll receive a one-liner patch to apply. > > > > What's so terrible about that? > > > > I think that's not entirely accurate, as this *will* have an impact on > > anyone involved in backporting fixes for the kernel stable trees, when > > they need to resolve conflicts on the SBAT file. It shouldn't have a > > big impact, but we should be honest that it will be a non-zero impact. > > > > Lets say mainline branch has had 2 security vulnerabilities A and B, > > each of which was associated with an increment of the SBAT version > > number. The first flaw A changed SBAT from 7 to 8,and then the second > > flaw B changed SBAT from 8 to 9. > > > > If someone wants to backport the fix for bug "B" they will get a > > conflict on the SBAT file when cherry-picking the patch. When that > > happens they must decide: > > > > * It is acceptable to ignore issue A, because it didn't affect > > that branch. The conflict is resolved by having the backported > > patch increase SBAT version from 7 to 9 directly. > > > > * It is required to first backport issue A, because that also > > affects that branch. The conflict is resolved by first backporting > > the code fix & SBAT change for A, and then backporting the code > > fix and SBAT change for B. SBAT changes from 7 to 8 to 9 just > > like on master. > > > > IOW whomever is doing backport patches for stable needs to understand > > the semantics of SBAT and how to resolve conflicts on it. If they get > > this wrong, then it breaks the protection offered by SBAT, which would > > then require a 3rd SBAT change to fix the mistake. > > > > This likely means that stable tree maintainers themselves need to > > understand the SBAT change rules, so they can review conflict resolution > > for any proposed changes, to sanity check what is being proposed. > > This can be solved by just not changing the generation id in the same > patch that fixes a bug, but as the last step in a series, which > doesn't add the cc: stable nor the other tags. If we want to bump the > generation id in a stable branch, we'll then have to send an > appropriately crafted patch targeted at the right place. That way even > if the fixes get backported, there is no additional burden on any > kernel maintainer. Who exactly will be "we" in this process and who will be funding this effort to ensure that they keep doing this work for the next 20+ years? thanks, greg k-h