public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] openrisc: call do_notify_resume() with interrupts enabled
@ 2013-04-29  7:12 Stefan Kristiansson
  2013-04-29  9:50 ` Stefan Kristiansson
  2013-06-26  8:35 ` Henrik Nordström
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Kristiansson @ 2013-04-29  7:12 UTC (permalink / raw)
  To: linux-kernel, linux; +Cc: Stefan Kristiansson

A signal delivered through do_notify_resume() would cause the
irqs_disabled() check in _local_bh_enable_ip() to be triggered.

Enable interrupts before calling do_notify_resume().

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
---
 arch/openrisc/kernel/entry.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/openrisc/kernel/entry.S b/arch/openrisc/kernel/entry.S
index d8a455e..55ffc97 100644
--- a/arch/openrisc/kernel/entry.S
+++ b/arch/openrisc/kernel/entry.S
@@ -874,6 +874,7 @@ _work_pending:
  * must be set so that the syscall restart functionality works.
  */
 _work_notifysig:
+	ENABLE_INTERRUPTS(r29)
 	l.jal	do_notify_resume
 	 l.ori	r3,r1,0		  /* pt_regs */
 
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-26  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29  7:12 [PATCH] openrisc: call do_notify_resume() with interrupts enabled Stefan Kristiansson
2013-04-29  9:50 ` Stefan Kristiansson
2013-04-29 10:40   ` [PATCH v2] " Stefan Kristiansson
2013-06-26  8:35 ` Henrik Nordström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox