Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1242544lfc; Wed, 1 Jun 2022 12:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw51g4pUAkcw5L4y01aRseOREX/aQHboG6Uj+IF+yZDNirtJd1AgBa71GAtq1rh64sAm6aL X-Received: by 2002:a17:90b:3806:b0:1e2:adc5:d192 with SMTP id mq6-20020a17090b380600b001e2adc5d192mr1024645pjb.223.1654113085195; Wed, 01 Jun 2022 12:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113085; cv=none; d=google.com; s=arc-20160816; b=d/7vTM5h4NFxHC3rXJ+649hwZbBjv20GiUO4S4m2jkfaDVWKwAO2mr3m8eddv3K76A RxHxAPTsgzjFrMKI+o0+IfOpCz4RQIEAyZxi5h6dyPL7uU43vKcD6Khxfhcj6x/n42S0 y4tp19KNfabPF70LrRVCpBmukPRze32jhMHa3EELElHIeS3uA7tPEeNF54YKeXfq5Uwa Nb/i8TXgk+5epbFSloML9pe++kuxh1f02yhzxrGDqun+tcLJvsBXknN2azca43xtIjf5 6/MT7fm/phOq4raEu/h0EbXp6cyC8DG3UWgxfjoy60rkqCyT6cD8MFbJnmfoWmcMxccQ hK6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=omoQhW5EF7qhwomxOTcLuFe9FEQNV5qp5SCZbl1OE8s=; b=tXHsit1JuAiGmYAwV8rpyL4iQbfY9YFQi3RGgPv7t6QSNwuDCUKfESqJTAwmKuLYPd f/DTXEgDgok7TxKzMCfLFHCA70nVNtVAe2s1ORAaoYds5sYYSOnoyvZ413AUpPjrXBjg Ir7KYY48jjFaXDsoFOKxH7SKuKGLuv/xYE+d3ahfOHeZkKcmWC+QkUEI77WgLr8tj1mZ KdLGIpkt8lg86ki8Jp/aQ8dK8CZOMw2HqUu0sjptnMce1mPhux/sTS3nO6TKJAbBiMzD O9I5qVc0BtAvJvAhScu0iXdjd7a0p8LZSg3DSeyQ0HY+fcvIhMGIFnf90vBT5AF9m2om wMhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pw4iQw9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d22-20020a056a00199600b0051b9a06306esi3718326pfl.168.2022.06.01.12.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pw4iQw9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF5071F8980; Wed, 1 Jun 2022 12:13:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351046AbiFAMDK (ORCPT + 99 others); Wed, 1 Jun 2022 08:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiFAMDJ (ORCPT ); Wed, 1 Jun 2022 08:03:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2A3948391; Wed, 1 Jun 2022 05:03:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 59C9DB8182A; Wed, 1 Jun 2022 12:03:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C777CC3411D; Wed, 1 Jun 2022 12:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654084984; bh=k96TRxFWoTI0+pe4xgkBtX3CcQGxEIISgLgYiWg5ftQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pw4iQw9RujggxeHvT5jW3uGEvNt9BOQZ2qziHxDVfhUh8yR4Z/ha3a4e+EoAf4A2U 9amncn8T+lMyu9yqE1KXS3K5A+nmENjLaVdi267pfZ0rkqlFpIVaUZYGlmJJczO+rR yJ3DF8tSJPMEbhCU1Xfpq9VktMpbn9q4r8ouKZ1nMAIfzlUr95x8NWCZMyTxMkONHn ZMoUksK0vThirBwazgBeHQKGWQRErzeNXgC2nk99JSIt98WiVf/qq7RGyMAUhwqwrL GwHpHjjQMfU13fBkuEOWVExjJC7lxEHDCASYjiejwMsnFmnIpdZ768CIquRefqfFmr IRbLvGWBBUNDQ== Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-e93bbb54f9so2353985fac.12; Wed, 01 Jun 2022 05:03:04 -0700 (PDT) X-Gm-Message-State: AOAM5325d1B3D2FLpe+Gr6Tv2YZWympFGwvXQZW6EomXKsR8FKNFpAYo lg0/KrIwezyuI4D2KgNNQrylZQMfEWe8LZpRQiA= X-Received: by 2002:a05:6871:5c8:b0:f3:3c1c:126f with SMTP id v8-20020a05687105c800b000f33c1c126fmr8157003oan.126.1654084983910; Wed, 01 Jun 2022 05:03:03 -0700 (PDT) MIME-Version: 1.0 References: <20220601115043.7678-1-lukas.bulwahn@gmail.com> In-Reply-To: <20220601115043.7678-1-lukas.bulwahn@gmail.com> From: Ard Biesheuvel Date: Wed, 1 Jun 2022 14:02:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] efi: x86: Fix config name for setting the NX-compatibility flag in the PE header To: Lukas Bulwahn Cc: Peter Jones , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H . Peter Anvin" , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Jun 2022 at 13:51, Lukas Bulwahn wrote: > > Commit 21b68da7bf4a ("efi: x86: Set the NX-compatibility flag in the PE > header") intends to set the compatibility flag, i.e., > IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, but this ifdef is actually dead as the > CONFIG_DXE_MEM_ATTRIBUTES does not exist. > > The config is actually called EFI_DXE_MEM_ATTRIBUTES. Adjust the ifdef to > use the intended config name. > > The issue was identified with ./scripts/checkkconfigsymbols.py. > > Fixes: 21b68da7bf4a ("efi: x86: Set the NX-compatibility flag in the PE header") > Signed-off-by: Lukas Bulwahn > --- > Peter, please review and ack. > Ard, please pick this fix-up patch. > Thanks, Lukas, I'll queue this up. > arch/x86/boot/header.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S > index 0352e4589efa..f912d7770130 100644 > --- a/arch/x86/boot/header.S > +++ b/arch/x86/boot/header.S > @@ -163,7 +163,7 @@ extra_header_fields: > .long 0x200 # SizeOfHeaders > .long 0 # CheckSum > .word IMAGE_SUBSYSTEM_EFI_APPLICATION # Subsystem (EFI application) > -#ifdef CONFIG_DXE_MEM_ATTRIBUTES > +#ifdef CONFIG_EFI_DXE_MEM_ATTRIBUTES > .word IMAGE_DLL_CHARACTERISTICS_NX_COMPAT # DllCharacteristics > #else > .word 0 # DllCharacteristics > -- > 2.17.1 >