]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kABI: Make the boot_cpu_data look normal.
authorKonrad Rzeszutek Wilk <konrad@kernel.org>
Thu, 4 Jan 2018 17:26:58 +0000 (12:26 -0500)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:19:59 +0000 (10:19 -0800)
It is statically allocated and we only grow it - so having an
GENKSYMS around it is fine. This fixes
aff7641cb9f37c7aa6897a7b51faa6e20b08013f
"x86/cpu/AMD: Add speculative control support for AMD" breaking the kABI

Orabug: 27344012
CVE: CVE-2017-5715

Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Reviewed-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/include/asm/cpufeature.h

index 5ffc01e9d0276ae5a85be7e92db3e6fb04b0121e..e42510d0bb186bc27bf82c250c94b4820befa6e9 100644 (file)
 #include <asm/disabled-features.h>
 #endif
 
+#ifdef __GENKSYMS__
+/* Make it look like we didn't change it. */
+#define NCAPINTS       13      /* N 32-bit words worth of info */
+#else
 #define NCAPINTS       14      /* N 32-bit words worth of info */
+#endif
 #define NBUGINTS       1       /* N 32-bit bug flags */
 
 /*