Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2018-01-12 21:55:29 +0100
committerBorislav Petkov <bp@suse.de>2018-01-12 21:55:34 +0100
commit7be1203c0a5ba62585d485e31fbde60bc707403f (patch)
treeb830d226ac54ab09edccd3f3c48d299206bd89e2
parentd47999af1853c38bc0218b810270587607fe4968 (diff)
x86/entry/gdt: Put per-CPU GDT remaps in ascending order
(bsc#1068032 CVE-2017-5754). suse-commit: 0fe479c0dd3dc50e9e0b866babd710bbd78e929a
-rw-r--r--arch/x86/include/asm/desc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h
index d0a21b12dd58..44339c6baad7 100644
--- a/arch/x86/include/asm/desc.h
+++ b/arch/x86/include/asm/desc.h
@@ -61,7 +61,7 @@ static inline struct desc_struct *get_current_gdt_rw(void)
/* Get the fixmap index for a specific processor */
static inline unsigned int get_cpu_gdt_ro_index(int cpu)
{
- return FIX_GDT_REMAP_BEGIN + cpu;
+ return FIX_GDT_REMAP_END - cpu;
}
/* Provide the fixmap address of the remapped GDT */