]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/entry/64: Remove all remaining direct thread_struct::sp0 reads
authorAndy Lutomirski <luto@kernel.org>
Thu, 2 Nov 2017 07:59:14 +0000 (00:59 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Nov 2017 10:04:47 +0000 (11:04 +0100)
commit46f5a10a721ce8dce8cc8fe55279b49e1c6b3288
tree4e6ca348b4ec0a7033f268399a1df3cb44b58c6b
parent20bb83443ea79087b5e5f8dab4e9d80bb9bf7acb
x86/entry/64: Remove all remaining direct thread_struct::sp0 reads

The only remaining readers in context switch code or vm86(), and
they all just want to update TSS.sp0 to match the current task.
Replace them all with a new helper update_sp0().

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/2d231687f4ff288c9d9e98d7861b7df374246ac3.1509609304.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/switch_to.h
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/vm86_32.c