Re: [PATCH] x86/entry: re-enable interrupts before exiting

2019-04-05 Thread Tycho Andersen
On Fri, Apr 05, 2019 at 10:58:33AM -0500, Josh Poimboeuf wrote: > On Fri, Apr 05, 2019 at 09:35:24AM -0600, Tycho Andersen wrote: > > If the kernel oopses in an interrupt, nothing re-enables interrupts: > > > > Aug 23 19:30:27 xpfo kernel: [ 38.302714] BUG: sleeping function called > > from inv

Re: [PATCH] x86/entry: re-enable interrupts before exiting

2019-04-05 Thread Josh Poimboeuf
On Fri, Apr 05, 2019 at 09:35:24AM -0600, Tycho Andersen wrote: > If the kernel oopses in an interrupt, nothing re-enables interrupts: > > Aug 23 19:30:27 xpfo kernel: [ 38.302714] BUG: sleeping function called > from invalid context at > ./include/linux/percpu-rwsem.h:33 > Aug 23 19:30:27 xpfo

[PATCH] x86/entry: re-enable interrupts before exiting

2019-04-05 Thread Tycho Andersen
If the kernel oopses in an interrupt, nothing re-enables interrupts: Aug 23 19:30:27 xpfo kernel: [ 38.302714] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:33 Aug 23 19:30:27 xpfo kernel: [ 38.303837] in_atomic(): 0, irqs_disabled(): 1, pid: 1970, name