Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-07 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Mar 6, 2016 12:22 AM, "Ingo Molnar" wrote: > > > > > > * Andy Lutomirski wrote: > > > > > This series applies to the result of merging tip:x86/asm and > > > tip:x86/urgent. I've been testing on a somewhat bastardized base, > > > because tip currently doesn't work

Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-06 Thread Andy Lutomirski
On Mar 6, 2016 12:22 AM, "Ingo Molnar" wrote: > > > * Andy Lutomirski wrote: > > > This series applies to the result of merging tip:x86/asm and > > tip:x86/urgent. I've been testing on a somewhat bastardized base, > > because tip currently doesn't work on my laptop in 32-bit mode. (That > > bug

Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-06 Thread Andy Lutomirski
On Mar 6, 2016 12:31 AM, "Ingo Molnar" wrote: > > > * Andy Lutomirski wrote: > > > hpa asked me to get rid of the ASM_CLAC at the beginning of the SYSENTER > > path. Little did he know... > > Btw., before we further change this code, something else I think would be very > useful. We have countle

Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-06 Thread Ingo Molnar
* Andy Lutomirski wrote: > hpa asked me to get rid of the ASM_CLAC at the beginning of the SYSENTER > path. Little did he know... Btw., before we further change this code, something else I think would be very useful. We have countless system call entry points on x86 CPUs, and they are now c

Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-06 Thread Ingo Molnar
* Andy Lutomirski wrote: > This series applies to the result of merging tip:x86/asm and > tip:x86/urgent. I've been testing on a somewhat bastardized base, > because tip currently doesn't work on my laptop in 32-bit mode. (That > bug is fixed in Linus' tree.) Hm, which fix is that? Generally

[PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-03-05 Thread Andy Lutomirski
hpa asked me to get rid of the ASM_CLAC at the beginning of the SYSENTER path. Little did he know... This series makes the observed behavior of SYSENTER wrt flags the same for all sane flags and kernel bitnesses. That is, SYSENTER preserves flags now unless you do a syscall that explicitly chang

Re: [PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-02-29 Thread Andy Lutomirski
On Sun, Feb 28, 2016 at 9:28 PM, Andy Lutomirski wrote: > > While I was doing all this, I also noticed that DR6 and BTF handling > in do_debug was a bit off. Two of the patches in here try to fix it > up. It's worth noting that do_debug is really quite screwed up with or without this patchset ap

[PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-02-28 Thread Andy Lutomirski
hpa asked me to get rid of the ASM_CLAC at the beginning of the SYSENTER path. Little did he know... This series makes the observed behavior of SYSENTER wrt flags the same for all sane flags and kernel bitnesses. That is, SYSENTER preserves flags now unless you do a syscall that explicitly chang