lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 23 Nov 2017 21:37:58 +0100
From:   Borislav Petkov <bp@...e.de>
To:     Andy Lutomirski <luto@...nel.org>
Cc:     X86 ML <x86@...nel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Brian Gerst <brgerst@...il.com>,
        Dave Hansen <dave.hansen@...el.com>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        Josh Poimboeuf <jpoimboe@...hat.com>
Subject: Re: [PATCH v2 10/18] x86/asm: Remap the TSS into the cpu entry area

On Thu, Nov 23, 2017 at 12:15:14PM -0800, Andy Lutomirski wrote:
> >> diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
> >> index b275863128eb..55858b277cf6 100644
> >> --- a/arch/x86/kernel/asm-offsets.c
> >> +++ b/arch/x86/kernel/asm-offsets.c
> >> @@ -98,4 +98,7 @@ void common(void) {
> >>       OFFSET(CPU_TSS_SYSENTER_stack, tss_struct, SYSENTER_stack);
> >>       /* Size of SYSENTER_stack */
> >>       DEFINE(SIZEOF_SYSENTER_stack, sizeof(((struct tss_struct *)0)->SYSENTER_stack));
> >> +
> >> +     /* Layout info for cpu_entry_area */
> >> +     OFFSET(CPU_ENTRY_AREA_tss, cpu_entry_area, tss);
> >
> > The naming convention of those looks really strange. The beginning is in
> > all caps and then small. Can we choose a convention pls.
> 
> This is actually consistent with the rest of the offsets.  The
> convention is STRUCT_field.

Except CPU_TSS_SYSENTER_stack. TSS_STRUCT_SYSENTER_stack I guess.

-- 
Regards/Gruss,
    Boris.

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

Powered by blists - more mailing lists