diff options
author | Andy Lutomirski | 2017-07-28 15:00:30 +0200 |
---|---|---|
committer | Ingo Molnar | 2017-07-30 12:04:40 +0200 |
commit | 385eca8f277c4c34f361a4c3a088fd876d29ae21 (patch) | |
tree | 741009fbb9b67a8d6934b087f71b474784cfe107 /arch/x86/kernel | |
parent | objtool: Disable GCC '-Wpacked' warnings (diff) | |
download | kernel-qcow2-linux-385eca8f277c4c34f361a4c3a088fd876d29ae21.tar.gz kernel-qcow2-linux-385eca8f277c4c34f361a4c3a088fd876d29ae21.tar.xz kernel-qcow2-linux-385eca8f277c4c34f361a4c3a088fd876d29ae21.zip |
x86/asm/32: Make pt_regs's segment registers be 16 bits
Many 32-bit x86 CPUs do 16-bit writes when storing segment registers to
memory. This can cause the high word of regs->[cdefgs]s to
occasionally contain garbage.
Rather than making the entry code more complicated to fix up the
garbage, just change pt_regs to reflect reality.
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>
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions