Re: [patch 14/60] x86/entry: Remap the TSS into the CPU entry area

From: Borislav Petkov
Date: Mon Dec 04 2017 - 13:20:23 EST


On Mon, Dec 04, 2017 at 03:07:20PM +0100, Thomas Gleixner wrote:
> From: Andy Lutomirski <luto@xxxxxxxxxx>
>
> This has a secondary purpose: it puts the entry stack into a region
> with a well-controlled layout. A subsequent patch will take
> advantage of this to streamline the SYSCALL entry code to be able to
> find it more easily.
>
> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Rik van Riel <riel@xxxxxxxxxx>
> Cc: Denys Vlasenko <dvlasenk@xxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Brian Gerst <brgerst@xxxxxxxxx>
> Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Link: https://lkml.kernel.org/r/cdcba7e1e82122461b3ca36bb3ef6713ba605e35.1511497875.git.luto@xxxxxxxxxx
>
> ---
> arch/x86/entry/entry_32.S | 6 ++++--
> arch/x86/include/asm/fixmap.h | 7 +++++++
> arch/x86/kernel/asm-offsets.c | 3 +++
> arch/x86/kernel/cpu/common.c | 41 +++++++++++++++++++++++++++++++++++------
> arch/x86/kernel/dumpstack.c | 3 ++-
> arch/x86/kvm/vmx.c | 2 +-
> arch/x86/power/cpu.c | 11 ++++++-----
> 7 files changed, 58 insertions(+), 15 deletions(-)

Reviewed-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--