Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1818476ybd; Thu, 27 Jun 2019 02:04:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqybafFfuEcln1pSrqzzFtKx+Fom++usOtdRpP+lypPSscotXDsg4lHtUalzNqvlncKaQhrc X-Received: by 2002:a65:5c47:: with SMTP id v7mr2744800pgr.44.1561626280636; Thu, 27 Jun 2019 02:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561626280; cv=none; d=google.com; s=arc-20160816; b=KFA5T91yM4e9GC5BYsJ1PoP+ZaitCjEGYPHV9N6UEE0/PlutNCgrqgaL/XTpw4cZh6 K2e21ToOZfaFkKJi94CxGKlI2gSiYVg7cNua/mXgxFAhD+EyVKweg0NpCg8XEo5rx6De 656gY3HyvJ89AnFeOO7QFk1luf9nSDlk7riJAlnYo5ZX2Qha4E972eduI1hWH4jgn3Xp IEkr31Ww5QXN+U9p6O2tzCBXLbHeA/JxNddRLz6qOFesnhSfHG32TUgnOPMrTWhOEK9q wFIsROcD3grOxFGZ937RRLV5bKX9NRw3EGRVKChrY2yT0VcavVLC3Ri5s77RVaieNVlf nWBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=HpbNo9Qe7lPUyV2D2rP07ZTdrh3ANbJinCRhdfyfJ/0=; b=c+qDmXaD1DoLZ9IeTgBaKcM6CGBU2JkxUpdza7hcFjCzkWrKZ265exikIimIbwQ1Ui /OdUB0nKYFbgTkV2bpv+88bQOM/Us1vD4xkAwwsMl45PpUYngC8b8SRi6ke11NbDvZCr QK7f9ftwEgBMjYepSsX1agXao2yNS8wSSOO6gNfwhjR7pEB6szRLBO5G+zNwCzwaacF/ sqaveuYo6e/+kDDPNH1H8LEioJ+a/WzZCnRZ10wgHVF8d2m/KWYVmQkNOxMgJ9LxEpoV qytmBKjvBWeujVgoF6hvXoZF/rMmkxzMUPHvHBketCr+23y3gfNSMEUVOTiysGoYikdw KquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=yOPKf6xw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si2168850pfv.149.2019.06.27.02.04.12; Thu, 27 Jun 2019 02:04:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=yOPKf6xw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbfF0JCX (ORCPT + 99 others); Thu, 27 Jun 2019 05:02:23 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38529 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfF0JCX (ORCPT ); Thu, 27 Jun 2019 05:02:23 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5R916VP204146 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 27 Jun 2019 02:01:06 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5R916VP204146 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1561626067; bh=HpbNo9Qe7lPUyV2D2rP07ZTdrh3ANbJinCRhdfyfJ/0=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=yOPKf6xwbptWGtvZzlBxWdgMP80tsnwakW4J8QFALtuIlJa7S7ZpykjH2BJ8Yvce6 MGsGNeUHOz72jjAhiLPIHXlDVoZDVKAiAJ28mMI+sHtF3UtVdPYnJkgrquJunjdTWJ DQVcLzGh6ZmQ5LNudd6IV7efZ/nywJ6jPnN97FEj/Q6gHniXve/StBORKgm0hX9I/t JPRB+ItdDeMM6YRVypmLMCMgdSG0zg7lHDwMgNBVdDYPsJYRZI6OSt9ClAYTf7VSl6 1WpLHBDueCna3VJCicnXDLl0zR/wuHP6puNe9JfBhhBvW42q3uWA/wd6Zgyk8DsGjm P0ApbBdtyiolA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5R915rQ204143; Thu, 27 Jun 2019 02:01:05 -0700 Date: Thu, 27 Jun 2019 02:01:05 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Xiaoyao Li Message-ID: Cc: mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, bp@alien8.de, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, xiaoyao.li@linux.intel.com Reply-To: fenghua.yu@intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, xiaoyao.li@linux.intel.com, tglx@linutronix.de, hpa@zytor.com, bp@alien8.de In-Reply-To: <20190627045525.105266-1-xiaoyao.li@linux.intel.com> References: <20190627045525.105266-1-xiaoyao.li@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/boot: Make the GDT 8-byte aligned Git-Commit-ID: 2238246ff8d533a5f2327d1f953375876d8a013c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=0.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2238246ff8d533a5f2327d1f953375876d8a013c Gitweb: https://git.kernel.org/tip/2238246ff8d533a5f2327d1f953375876d8a013c Author: Xiaoyao Li AuthorDate: Thu, 27 Jun 2019 12:55:25 +0800 Committer: Ingo Molnar CommitDate: Thu, 27 Jun 2019 10:56:11 +0200 x86/boot: Make the GDT 8-byte aligned The segment descriptors are loaded with an implicitly LOCK-ed instruction, which could trigger the split lock #AC exception if the variable is not properly aligned and crosses a cache line. Align the GDT properly so the descriptors are all 8 byte aligned. Signed-off-by: Xiaoyao Li Signed-off-by: Thomas Gleixner Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Fenghua Yu Link: https://lkml.kernel.org/r/20190627045525.105266-1-xiaoyao.li@linux.intel.com Signed-off-by: Ingo Molnar --- arch/x86/boot/compressed/head_64.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index fafb75c6c592..6233ae35d0d9 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S @@ -659,6 +659,7 @@ no_longmode: gdt64: .word gdt_end - gdt .quad 0 + .balign 8 gdt: .word gdt_end - gdt .long gdt