]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 08:59:56 +0000 (09:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 08:59:56 +0000 (09:59 +0100)
added patches:
x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch

queue-3.18/series
queue-3.18/x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch [new file with mode: 0644]
queue-4.14/series [new file with mode: 0644]
queue-4.4/series [new file with mode: 0644]
queue-4.9/series [new file with mode: 0644]

index 480081c515fef33e5fa9e34050b8d89c2eed751c..044db55fe7e6e30f48afda98052e66cb85da769d 100644 (file)
@@ -17,3 +17,4 @@ dm-btree-fix-serious-bug-in-btree_split_beneath.patch
 dm-thin-metadata-thin_max_concurrent_locks-should-be-6.patch
 arm64-kvm-fix-smccc-handling-of-unimplemented-smc-hvc-calls.patch
 mips-ar7-ensure-the-port-type-s-fcr-value-is-used.patch
+x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch
diff --git a/queue-3.18/x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch b/queue-3.18/x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch
new file mode 100644 (file)
index 0000000..65a4217
--- /dev/null
@@ -0,0 +1,43 @@
+From 1c52d859cb2d417e7216d3e56bb7fea88444cec9 Mon Sep 17 00:00:00 2001
+From: Andy Lutomirski <luto@kernel.org>
+Date: Fri, 9 Dec 2016 10:24:05 -0800
+Subject: x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels
+
+From: Andy Lutomirski <luto@kernel.org>
+
+commit 1c52d859cb2d417e7216d3e56bb7fea88444cec9 upstream.
+
+We support various non-Intel CPUs that don't have the CPUID
+instruction, so the M486 test was wrong.  For now, fix it with a big
+hammer: handle missing CPUID on all 32-bit CPUs.
+
+Reported-by: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
+Signed-off-by: Andy Lutomirski <luto@kernel.org>
+Cc: Juergen Gross <jgross@suse.com>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Cc: Brian Gerst <brgerst@gmail.com>
+Cc: Matthew Whitehead <tedheadster@gmail.com>
+Cc: Borislav Petkov <bp@alien8.de>
+Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
+Cc: Andrew Cooper <andrew.cooper3@citrix.com>
+Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
+Cc: xen-devel <Xen-devel@lists.xen.org>
+Link: http://lkml.kernel.org/r/685bd083a7c036f7769510b6846315b17d6ba71f.1481307769.git.luto@kernel.org
+Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/include/asm/processor.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/x86/include/asm/processor.h
++++ b/arch/x86/include/asm/processor.h
+@@ -669,7 +669,7 @@ static inline void sync_core(void)
+ {
+       int tmp;
+-#ifdef CONFIG_M486
++#ifdef CONFIG_X86_32
+       /*
+        * Do a CPUID if available, otherwise do a jump.  The jump
+        * can conveniently enough be the jump around CPUID.
diff --git a/queue-4.14/series b/queue-4.14/series
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/queue-4.4/series b/queue-4.4/series
new file mode 100644 (file)
index 0000000..e2d6ad9
--- /dev/null
@@ -0,0 +1 @@
+x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch
diff --git a/queue-4.9/series b/queue-4.9/series
new file mode 100644 (file)
index 0000000..e2d6ad9
--- /dev/null
@@ -0,0 +1 @@
+x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch