]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0230-UBUNTU-SAUCE-only-attempt-to-use-PCID-in-64-bit-buil.patch
build: reformat existing patches
[pve-kernel.git] / patches / kernel / 0230-UBUNTU-SAUCE-only-attempt-to-use-PCID-in-64-bit-buil.patch
CommitLineData
59d5af67 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
321d628a
FG
2From: Andy Whitcroft <apw@canonical.com>
3Date: Wed, 20 Dec 2017 13:33:50 +0000
59d5af67 4Subject: [PATCH] UBUNTU: SAUCE: only attempt to use PCID in 64 bit builds
321d628a
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5754
10
11[apw@canonical.com: need to review if this is still needed with the
12latest patches.]
13Signed-off-by: Andy Whitcroft <apw@canonical.com>
14Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
15(cherry picked from commit babace1d1ac19075498675cd787500cfa24d2b55)
16Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
17---
18 arch/x86/kernel/smpboot.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
22index 6ad8391b9866..398e8324fea4 100644
23--- a/arch/x86/kernel/smpboot.c
24+++ b/arch/x86/kernel/smpboot.c
25@@ -222,7 +222,7 @@ static void notrace start_secondary(void *unused)
26 * before cpu_init(), SMP booting is too fragile that we want to
27 * limit the things done here to the most necessary things.
28 */
29- if (boot_cpu_has(X86_FEATURE_PCID))
30+ if (IS_ENABLED(CONFIG_X86_64) && boot_cpu_has(X86_FEATURE_PCID))
31 __write_cr4(__read_cr4() | X86_CR4_PCIDE);
32 cpu_init();
33 x86_cpuinit.early_percpu_clock_init();
34--
352.14.2
36