lkml.org 
[lkml]   [2015]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: ia32_sysenter_target does not preserve EFLAGS
From
On Fri, Mar 27, 2015 at 1:16 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>
> Does it matter on 32-bit kernels? There's no swapgs, so IRQs should
> still be safe, and we have a real stack pointer before sysexit.

Fair enough. On 32-bit, the only worry is the race between "return to
user space" and "something set a thread flag", resulting in delayed
signals and/or higher scheduling latency etc. So on 32-bit, the bug is
much less of an issue, I agree.

So yeah, using sysretl instead of sti+sysexit on 64-bit sounds more
reasonable given the potential worry about sti+sysexit atomicity in
the presense of nmi's.

Linus


\
 
 \ /
  Last update: 2015-03-27 21:41    [W:0.088 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site