lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-1c30fe6cbba6997ae4740bb46910036f8a4a9edb@git.kernel.org>
Date:   Thu, 27 Jun 2019 00:43:03 -0700
From:   tip-bot for Xiaoyao Li <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     fenghua.yu@...el.com, xiaoyao.li@...ux.intel.com,
        tglx@...utronix.de, mingo@...nel.org, hpa@...or.com,
        linux-kernel@...r.kernel.org, bp@...en8.de
Subject: [tip:x86/boot] x86/boot: Make gdt 8-byte aligned

Commit-ID:  1c30fe6cbba6997ae4740bb46910036f8a4a9edb
Gitweb:     https://git.kernel.org/tip/1c30fe6cbba6997ae4740bb46910036f8a4a9edb
Author:     Xiaoyao Li <xiaoyao.li@...ux.intel.com>
AuthorDate: Thu, 27 Jun 2019 12:55:25 +0800
Committer:  Thomas Gleixner <tglx@...utronix.de>
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 <xiaoyao.li@...ux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Borislav Petkov <bp@...en8.de>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>
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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ