Re: NMI for ARC

2016-09-29 Thread Vineet Gupta
On 09/29/2016 11:54 AM, Andy Lutomirski wrote: >> So lets first see how a single priority intr works on ARC (maybe on other >> arches >> > as well). >> > >> > 1. task t1 enters kernel syscall (Trap Exception on ARC), handler drops >> > down to >> > pure kernel model and proceeds into syscall hand

Re: NMI for ARC

2016-09-29 Thread Andy Lutomirski
On Thu, Sep 29, 2016 at 9:47 AM, Vineet Gupta wrote: > On 09/28/2016 11:43 PM, Peter Zijlstra wrote: >> On Wed, Sep 28, 2016 at 06:20:29PM -0700, Vineet Gupta wrote: >>> On 09/28/2016 03:26 PM, Andy Lutomirski wrote: > >> >> >> userirq nmi >> >> | >> | >> `-> .

Re: NMI for ARC

2016-09-29 Thread Andy Lutomirski
On Sep 28, 2016 6:20 PM, "Vineet Gupta" wrote: > > On 09/28/2016 03:26 PM, Andy Lutomirski wrote: > >> Right, so what I think Vineet is asking is if we need to disable NMIs as > >> > well, we cannot on x86 disable NMIs so no. > >> > > > The same argument works here, too: an NMI won't set TIF_NEED_

Re: NMI for ARC

2016-09-29 Thread Vineet Gupta
On 09/28/2016 11:43 PM, Peter Zijlstra wrote: > On Wed, Sep 28, 2016 at 06:20:29PM -0700, Vineet Gupta wrote: >> On 09/28/2016 03:26 PM, Andy Lutomirski wrote: > > > userirq nmi > > | > | > `-> . > | > | > | >

[PATCH 3.12 100/119] ARC: uaccess: get_user to zero out dest in cause of fault

2016-09-29 Thread Jiri Slaby
From: Vineet Gupta 3.12-stable review patch. If anyone has any objections, please let me know. === commit 05d9d0b96e53c52a113fd783c0c97c830c8dc7af upstream. Al reported potential issue with ARC get_user() as it wasn't clearing out destination pointer in case of fault due to bad ad

[patch added to 3.12-stable] ARC: uaccess: get_user to zero out dest in cause of fault

2016-09-29 Thread Jiri Slaby
From: Vineet Gupta This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit 05d9d0b96e53c52a113fd783c0c97c830c8dc7af upstream. Al reported potential issue with ARC get_user() as it wasn't clearing out destination pointer in case