arm: Call do_notify_resume() with interrupts enabled
PATCH 1/1 arm: Call do_notify_resume() with interrupts enabled
When a signal is delivered from do_notify_resume() __put_user() is currently called with interrupts disabled.
When the access faults then the fault code trips over the interrupts disabled check in might_sleep(). No biscuit!
Enable interrupts before calling do_notify_resume().
Signed-off-by Thomas Gleixner <[email protected]>
--- arch/arm/kernel/entry-common.S | 1 + 1 file changed, 1 insertion(+)
arch/arm/kernel/entry-common.S +1 -0
@@ -49,6 +49,7 @@ work_pending: bne work_resched tst r1, #_TIF_SIGPENDING|_TIF_NOTIFY_RESUME beq no_work_pending + enable_irq mov r0, sp @ 'regs' mov r2, why @ 'syscall' tst r1, #_TIF_SIGPENDING @ delivering a signal?