x86/traps: Don't clear segment high bits in early_idt_handler_common()
authorAndy Lutomirski <luto@kernel.org>
Fri, 28 Jul 2017 13:00:31 +0000 (06:00 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 30 Jul 2017 10:04:40 +0000 (12:04 +0200)
commit630c1863bc1c6c0ac33e5134bec7bdf7941c28c8
tree5d8a563db6790efbc6d5f5506558166d7c4da7c5
parent385eca8f277c4c34f361a4c3a088fd876d29ae21
x86/traps: Don't clear segment high bits in early_idt_handler_common()

Now that pt_regs defines the segment fields as 16-bit, there's no
need to sanitize the values.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/head_32.S