Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2237481rdb; Tue, 3 Oct 2023 14:56:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCOTf0eQA7dL7MCMkAeFyot10QJVSnOXLoiD1GgAQaTj8bXArNws8vb3XM5qBgsEODEoVq X-Received: by 2002:a17:903:41c9:b0:1c5:f1fd:5da with SMTP id u9-20020a17090341c900b001c5f1fd05damr913081ple.2.1696370205486; Tue, 03 Oct 2023 14:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696370205; cv=none; d=google.com; s=arc-20160816; b=QCOdwv20l4L6wwRIzBRVl7Ae297KrQhqu+O0JdMffzX9xrpb42ic0tZs7Nkq21PMCF PKwEywct08eT5NB4qqP4DVjSDTKQoNXFJmvFI2JyAck6zAYrD3A7g2b0U4QbP6iDgsw9 xeA33KGUfSBjxcS5FDYImiO3v9GLjqI8hfDtK9v30v0teNiGDNgXyA7nra7YUBzscjJA GqsmOT2qxKiBJ4wk7HdL8GQzmrBKvbnVTfdCFcuA0JEAtdwhV88ANkTjJd5mmrfWA3FE zuL9LEhpkQpSjmDbw9csskJOIizEeiW3tvQw/EPzWzqUkvrFcDl5AyTlb9Himbo0h4ym c3Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=JGXoPDpVIwpDAQlAmBH7cVkr1uUMtGdTK2Hqhc1cWn4=; fh=fDLCw1JQwGmELrVOWzQAYtw/+/Kr4n190gggS5sGGPg=; b=V+7PjC7/Ss6cfscB1ELifgrHa6xxeEqkpEvKDoRvPe/ouhDAbF6yFST6kdVL5vIdlX tyFyJd4vFK1rS70Bgce+tA/ghOKHxyiJfN8dA0TiL2f8xduT1bzNpwzHKqPk7H/hGwaA ima6mi2VG7/Jud43wrBL2On6RszshXBhk5cfiGmQrrxW1OoeItTcQ5y6gxSP8ABwblwL zrwUoT5y9UCt5HOSWQXFBxYdb/CUDtgUvne2Hmoj6v3veld2pCbRX4716FoNkRUmmsPa /fGqNLWwzqC1HLXl549k3syN/7sQr6OI1rP0kffpHwGz89HLP1JQArJxaz+cvah00TEX TsNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b=eTdINgIe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d11-20020a170903230b00b001c5f80bf574si2578268plh.487.2023.10.03.14.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 14:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b=eTdINgIe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A0B6982DC608; Tue, 3 Oct 2023 14:56:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232376AbjJCV4f (ORCPT + 99 others); Tue, 3 Oct 2023 17:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbjJCV4e (ORCPT ); Tue, 3 Oct 2023 17:56:34 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD76FA6; Tue, 3 Oct 2023 14:56:29 -0700 (PDT) Received: from [IPv6:::1] ([172.56.208.25]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 393LuLfx1774372 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 3 Oct 2023 14:56:22 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 393LuLfx1774372 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023091101; t=1696370182; bh=JGXoPDpVIwpDAQlAmBH7cVkr1uUMtGdTK2Hqhc1cWn4=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=eTdINgIeNHw/7g3Si2TcTTh7m6TFd3tOiAe9TwxyLGQX9E/EJQl0PUtSg07F+iO17 aolP4DVZLJoJSvmWlt8an9bvhlKUsdt4giue8oz+YjS27W/8mJdR/mnItouUlQAHh+ ibLnCi7D/OVgUg4XdX85OsQrPteYqvkr2smMXvTWYE842FUSagdJSNO6FjJR/xcE05 T18QWXwcQ6iNEGtH2hBFsmawVxQL6mEz+FRgDOMRiekbBcapSXPQhjXhxZJO/Divi8 DfsIheb0tlYCShJVxIGZM1sNMSuog9DPTSpj9lsmBjkHtDqC8YGFyK25mWrl15Ohm7 55LmKyABtEl3A== Date: Tue, 03 Oct 2023 14:56:09 -0700 From: "H. Peter Anvin" To: linux-kernel@vger.kernel.org, tip-bot2 for Yuntao Wang , linux-tip-commits@vger.kernel.org CC: Yuntao Wang , Ingo Molnar , x86@kernel.org Subject: Re: [tip: x86/boot] x86/boot: Fix incorrect startup_gdt_descr.size User-Agent: K-9 Mail for Android In-Reply-To: <169632239730.3135.5499875554711156270.tip-bot2@tip-bot2> References: <20230807084547.217390-1-ytcoode@gmail.com> <169632239730.3135.5499875554711156270.tip-bot2@tip-bot2> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 14:56:44 -0700 (PDT) On October 3, 2023 1:39:57 AM PDT, tip-bot2 for Yuntao Wang wrote: >The following commit has been merged into the x86/boot branch of tip: > >Commit-ID: 001470fed5959d01faecbd57fcf2f60294da0de1 >Gitweb: https://git=2Ekernel=2Eorg/tip/001470fed5959d01faecbd57fcf= 2f60294da0de1 >Author: Yuntao Wang >AuthorDate: Mon, 07 Aug 2023 16:45:47 +08:00 >Committer: Ingo Molnar >CommitterDate: Tue, 03 Oct 2023 10:28:29 +02:00 > >x86/boot: Fix incorrect startup_gdt_descr=2Esize > >Since the size value is added to the base address to yield the last valid >byte address of the GDT, the current size value of startup_gdt_descr is >incorrect (too large by one), fix it=2E > >[ mingo: This probably never mattered, because startup_gdt[] is only used > in a very controlled fashion - but make it consistent neverthele= ss=2E ] > >Fixes: 866b556efa12 ("x86/head/64: Install startup GDT") >Signed-off-by: Yuntao Wang >Signed-off-by: Ingo Molnar >Cc: "H=2E Peter Anvin" >Link: https://lore=2Ekernel=2Eorg/r/20230807084547=2E217390-1-ytcoode@gma= il=2Ecom >--- > arch/x86/kernel/head64=2Ec | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/x86/kernel/head64=2Ec b/arch/x86/kernel/head64=2Ec >index 49f7629=2E=2Ebbc2179 100644 >--- a/arch/x86/kernel/head64=2Ec >+++ b/arch/x86/kernel/head64=2Ec >@@ -80,7 +80,7 @@ static struct desc_struct startup_gdt[GDT_ENTRIES] =3D = { > * while the kernel still uses a direct mapping=2E > */ > static struct desc_ptr startup_gdt_descr =3D { >- =2Esize =3D sizeof(startup_gdt), >+ =2Esize =3D sizeof(startup_gdt)-1, > =2Eaddress =3D 0, > }; >=20 Well, it never mattered because there wasn't enough space at the end for a= n extra entry, but it is still Technically Correct=E2=84=A2=2E