Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1752072ybd; Thu, 27 Jun 2019 00:44:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDA8wHaieFRw10PJd8K25WxViv9fbnLwU+PgKv5tXqNw0n13mh2X/2+DWDC03vmE77vhQc X-Received: by 2002:a17:902:3103:: with SMTP id w3mr3072797plb.84.1561621448345; Thu, 27 Jun 2019 00:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561621448; cv=none; d=google.com; s=arc-20160816; b=BjQY8oAg/GXs/E8iiJZgoKiWhiWQg+ykJ7MFsl28pG8wXXnkvMlgQ1xBRNFOsAnrGm wvtocIAiiu3j1UXXsOsjIwJfLPke8nDQDQUarbKdzCYsuMzbZzp4SDfJUAZQiVUqSlg1 AUizhGZHGQ75YfFMpH18KyX90/TovxROEkTx0T5SBN2rA85KmCfqm1ddmre7hcMXZnIN 2fH6PQCCCK50CAzfk0UQhJLl5EAV5fEUSMit/ghXavk7NidBV3h2cJQ8zwCWnE/LT+iO FNZz+1oqAwmzbmDIWsnlLuyTDYhnHxZ9EVZ3w5OKklt9tVTJYFaBIshkfTQRZstGbZ/z tWxA== 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=1BgDcY6PirBvW6nEzgAwckGnwmQ69f8b7THkexkRR5Y=; b=d2/tAp/lQXGsXOn9bQfZk1/H47eeITxV8rsA4IHfI7W9LIX34pR+xMBVFA/oczKqrp 7GQhqR4cCg4TO3NH19YVvj1FmGAIFEyH6CVLMKMvgWd6eE4IJMNlEbtj06NZsPw0NtHZ vdUGDG7jeDbQ2Ee7LLD+e8pG80DTq53kAmfSamLfkDU1+mZuzVP9yU2c2aqxD23RSnvg lG0AFoDPKTdG8wSNsBtpbGvsh5HpCTbtVf2MQW2motSVX8yoH09uBNYoG0HodSMy1+P9 8lktH2PCvo2k8CJOqRV2YwXRJk7kLos9li2dG8L0b5Ntpj+HYOeBzqUz5vQk2aNg7IAL Ba3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b="scEDnD/2"; 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 h5si4606587pji.39.2019.06.27.00.43.51; Thu, 27 Jun 2019 00:44:08 -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="scEDnD/2"; 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 S1726520AbfF0HnU (ORCPT + 99 others); Thu, 27 Jun 2019 03:43:20 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57757 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbfF0HnU (ORCPT ); Thu, 27 Jun 2019 03:43:20 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5R7h3Od178702 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 27 Jun 2019 00:43:03 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5R7h3Od178702 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1561621383; bh=1BgDcY6PirBvW6nEzgAwckGnwmQ69f8b7THkexkRR5Y=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=scEDnD/2Kxdylz1IX0hswroPcaU5ciJ7/n6KQNapNqtc9x9o7JTjDucObX+qHPWSo JjmglAjjEaskRWJS7vShg3hQKvnx3HSKcr7ZL3Hi1zQ7oFbRYCBm4V18pLEw5JGR8W 7sl5CbkGYB7QYOpw43pwVYhcn46XjzkcsE2uA9YbSngai90CXpZ39MFphVaFn9H9HY hrJ384McvvGr2NryRD6Y2KLgV2pVE5sq+TpjL2HAv8hz+p+jcsj+65w2HVjHwU2j+7 jnXmg8HNSnEEGFk9UnaaagtWmAc5LLX3+KS2dPxTvIhkB3mYfSuxcyv80OB/aT/pb3 hX/MidiT17D8w== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5R7h34g178697; Thu, 27 Jun 2019 00:43:03 -0700 Date: Thu, 27 Jun 2019 00:43:03 -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: fenghua.yu@intel.com, xiaoyao.li@linux.intel.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, bp@alien8.de Reply-To: bp@alien8.de, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, xiaoyao.li@linux.intel.com, fenghua.yu@intel.com 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 gdt 8-byte aligned Git-Commit-ID: 1c30fe6cbba6997ae4740bb46910036f8a4a9edb 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: 1c30fe6cbba6997ae4740bb46910036f8a4a9edb Gitweb: https://git.kernel.org/tip/1c30fe6cbba6997ae4740bb46910036f8a4a9edb Author: Xiaoyao Li AuthorDate: Thu, 27 Jun 2019 12:55:25 +0800 Committer: Thomas Gleixner CommitDate: Thu, 27 Jun 2019 09:40:41 +0200 x86/boot: Make gdt 8-byte aligned The segment descriptors are loaded with a implicitly locked instruction, which could trigger the split lock #AC if the variable is not properly aligned and crosses a cache line. Align gdt proper so the descriptors are 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 --- 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