> On Jul 11, 2018, at 4:29 AM, Joerg Roedel <j...@8bytes.org> wrote: > > From: Joerg Roedel <jroe...@suse.de> > > The stack address doesn't need to be stored in tss.sp0 if > we switch manually like on sysenter. Rename the offset so > that it still makes sense when we change its location. > > We will also use this stack for all kernel-entry points, not > just sysenter. Reflect that in the name as well. Reviewed-by: Andy Lutomirski <l...@kernel.org> But, if there’s another version, please fix this comment: > > > > /* Offset from the sysenter stack to tss.sp0 */ Here > - DEFINE(TSS_sysenter_sp0, offsetof(struct cpu_entry_area, > tss.x86_tss.sp0) - > + DEFINE(TSS_entry_stack, offsetof(struct cpu_entry_area, tss.x86_tss.sp0) > - > offsetofend(struct cpu_entry_area, entry_stack_page.stack)); > > #ifdef CONFIG_STACKPROTECTOR > -- > 2.7.4 >
- [PATCH 00/39 v7] PTI support for x86-32 Joerg Roedel
- [PATCH 04/39] x86/entry/32: Put ESPFIX code into a ma... Joerg Roedel
- [PATCH 02/39] x86/entry/32: Rename TSS_sysenter_sp0 t... Joerg Roedel
- Re: [PATCH 02/39] x86/entry/32: Rename TSS_sysent... Andy Lutomirski
- [PATCH 07/39] x86/entry/32: Enter the kernel via tram... Joerg Roedel
- Re: [PATCH 07/39] x86/entry/32: Enter the kernel ... Andy Lutomirski
- Re: [PATCH 07/39] x86/entry/32: Enter the ker... Joerg Roedel
- Re: [PATCH 07/39] x86/entry/32: Enter the... Andy Lutomirski
- [PATCH 01/39] x86/asm-offsets: Move TSS_sp0 and TSS_s... Joerg Roedel
- Re: [PATCH 01/39] x86/asm-offsets: Move TSS_sp0 a... Andy Lutomirski
- [PATCH 22/39] x86/mm/pae: Populate the user page-tabl... Joerg Roedel
- [PATCH 25/39] x86/mm/pti: Define X86_CR3_PTI_PCID_USE... Joerg Roedel
- [PATCH 14/39] x86/entry/32: Add PTI cr3 switches to N... Joerg Roedel
- [PATCH 36/39] x86/ldt: Enable LDT user-mapping for PA... Joerg Roedel