Re: [RFC 4/7] x86/asm: Fix assumptions that the HW TSS is at the beginning of cpu_tss

2017-11-13 Thread Dave Hansen
On 11/10/2017 08:05 PM, Andy Lutomirski wrote: > -struct tss_struct doublefault_tss __cacheline_aligned = { > - .x86_tss = { > - .sp0= STACK_START, > - .ss0= __KERNEL_DS, > - .ldt= 0, ... > +struct x86_hw_tss

Re: [RFC 4/7] x86/asm: Fix assumptions that the HW TSS is at the beginning of cpu_tss

2017-11-13 Thread Dave Hansen
On 11/10/2017 08:05 PM, Andy Lutomirski wrote: > -struct tss_struct doublefault_tss __cacheline_aligned = { > - .x86_tss = { > - .sp0= STACK_START, > - .ss0= __KERNEL_DS, > - .ldt= 0, ... > +struct x86_hw_tss

[RFC 4/7] x86/asm: Fix assumptions that the HW TSS is at the beginning of cpu_tss

2017-11-10 Thread Andy Lutomirski
I'm going to move SYSENTER_stack to the beginning of cpu_tss to help detect overflow. Before this can happen, I need to fix several code paths that hardcode assumptions about the old layout. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/desc.h | 2 +-

[RFC 4/7] x86/asm: Fix assumptions that the HW TSS is at the beginning of cpu_tss

2017-11-10 Thread Andy Lutomirski
I'm going to move SYSENTER_stack to the beginning of cpu_tss to help detect overflow. Before this can happen, I need to fix several code paths that hardcode assumptions about the old layout. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/desc.h | 2 +-