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:   Wed, 29 Nov 2017 12:58:54 -0800
From:   Linus Torvalds <>
To:     Andy Lutomirski <>
Cc:     Ingo Molnar <>,
        Jarkko Nikula <>,
        linux-kernel <>,
        Thomas Gleixner <>,
        Peter Zijlstra <>,
        Borislav Petkov <>
Subject: Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling
 with IRQ state tracing enabled

On Wed, Nov 29, 2017 at 10:12 AM, Andy Lutomirski <> wrote:
> Jarkko, can you try the attached patch?  If it survives resume, can
> you see if the log contains anything interesting?

I'm not Jarkko, but I'm not a huge fan of that patch.

If this was the cause of the problem (and it looks likely), wouldn't
it be nicer to instead make sure that __restore_processor_state() is
made to use only low-level code and easy to verify?

That function is already marked "notrace" because it is so fragile,
and it does the segment register reloads manually with inline asms.

Could we make it use "native_load_gs_index()" instead? Or even go all
the way and make it do that user-space %gs load internally with inline
asm, the way it already does the kernel space %gs?

(Maybe "native_wrmsrl()" too?)

Or is this actually all supposed to work even under PV? That sounds really iffy.


Powered by blists - more mailing lists