Re: [PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-24 Thread Andy Lutomirski
On Mon, Nov 24, 2014 at 7:54 AM, Borislav Petkov wrote: > On Fri, Nov 21, 2014 at 01:26:11PM -0800, Andy Lutomirski wrote: >> In some IST handlers, if the interrupt came from user mode, >> we can safely enable preemption. Add helpers to do it safely. >> >> This is intended to be used my the

Re: [PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-24 Thread Borislav Petkov
On Fri, Nov 21, 2014 at 01:26:11PM -0800, Andy Lutomirski wrote: > In some IST handlers, if the interrupt came from user mode, > we can safely enable preemption. Add helpers to do it safely. > > This is intended to be used my the memory failure code in > do_machine_check. > > Signed-off-by:

Re: [PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-24 Thread Borislav Petkov
On Fri, Nov 21, 2014 at 01:26:11PM -0800, Andy Lutomirski wrote: In some IST handlers, if the interrupt came from user mode, we can safely enable preemption. Add helpers to do it safely. This is intended to be used my the memory failure code in do_machine_check. Signed-off-by: Andy

Re: [PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-24 Thread Andy Lutomirski
On Mon, Nov 24, 2014 at 7:54 AM, Borislav Petkov b...@alien8.de wrote: On Fri, Nov 21, 2014 at 01:26:11PM -0800, Andy Lutomirski wrote: In some IST handlers, if the interrupt came from user mode, we can safely enable preemption. Add helpers to do it safely. This is intended to be used my the

[PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-21 Thread Andy Lutomirski
In some IST handlers, if the interrupt came from user mode, we can safely enable preemption. Add helpers to do it safely. This is intended to be used my the memory failure code in do_machine_check. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/traps.h | 2 ++

[PATCH v4 5/5] x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

2014-11-21 Thread Andy Lutomirski
In some IST handlers, if the interrupt came from user mode, we can safely enable preemption. Add helpers to do it safely. This is intended to be used my the memory failure code in do_machine_check. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/include/asm/traps.h | 2 ++