From: Richard Weinberger <richard@nod.at>
To: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org, Richard Weinberger <richard@nod.at>,
linux@lists.openrisc.net
Subject: [PATCH 08/20] openrisc: Do not call do_signal() with irqs disabled
Date: Sat, 26 May 2012 00:04:24 +0200 [thread overview]
Message-ID: <1337983476-22081-8-git-send-email-richard@nod.at> (raw)
In-Reply-To: <1337983476-22081-1-git-send-email-richard@nod.at>
get_signal_to_deliver() calls try_to_freeze() which might sleep.
Cc: Jonas Bonn <jonas@southpole.se>
Cc: linux@lists.openrisc.net
Signed-off-by: Richard Weinberger <richard@nod.at>
---
arch/openrisc/kernel/signal.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/openrisc/kernel/signal.c b/arch/openrisc/kernel/signal.c
index e970743..f2ae7ac 100644
--- a/arch/openrisc/kernel/signal.c
+++ b/arch/openrisc/kernel/signal.c
@@ -26,6 +26,7 @@
#include <linux/unistd.h>
#include <linux/stddef.h>
#include <linux/tracehook.h>
+#include <linux/irqflags.h>
#include <asm/processor.h>
#include <asm/ucontext.h>
@@ -370,6 +371,8 @@ void do_signal(struct pt_regs *regs)
asmlinkage void do_notify_resume(struct pt_regs *regs)
{
+ local_irq_enable();
+
if (current_thread_info()->flags & _TIF_SIGPENDING)
do_signal(regs);
--
1.7.7.3
WARNING: multiple messages have this Message-ID (diff)
From: Richard Weinberger <richard@nod.at>
To: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org, Richard Weinberger <richard@nod.at>,
Jonas Bonn <jonas@southpole.se>,
linux@lists.openrisc.net
Subject: [PATCH 08/20] openrisc: Do not call do_signal() with irqs disabled
Date: Sat, 26 May 2012 00:04:24 +0200 [thread overview]
Message-ID: <1337983476-22081-8-git-send-email-richard@nod.at> (raw)
Message-ID: <20120525220424.0tPZ0TD1zvgAbUT8WrJyicIMxZAUUSoxuPyTx95Y8Dg@z> (raw)
In-Reply-To: <1337983476-22081-1-git-send-email-richard@nod.at>
get_signal_to_deliver() calls try_to_freeze() which might sleep.
Cc: Jonas Bonn <jonas@southpole.se>
Cc: linux@lists.openrisc.net
Signed-off-by: Richard Weinberger <richard@nod.at>
---
arch/openrisc/kernel/signal.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/openrisc/kernel/signal.c b/arch/openrisc/kernel/signal.c
index e970743..f2ae7ac 100644
--- a/arch/openrisc/kernel/signal.c
+++ b/arch/openrisc/kernel/signal.c
@@ -26,6 +26,7 @@
#include <linux/unistd.h>
#include <linux/stddef.h>
#include <linux/tracehook.h>
+#include <linux/irqflags.h>
#include <asm/processor.h>
#include <asm/ucontext.h>
@@ -370,6 +371,8 @@ void do_signal(struct pt_regs *regs)
asmlinkage void do_notify_resume(struct pt_regs *regs)
{
+ local_irq_enable();
+
if (current_thread_info()->flags & _TIF_SIGPENDING)
do_signal(regs);
--
1.7.7.3
next prev parent reply other threads:[~2012-05-25 22:04 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 22:04 [PATCH 01/20] arm: Do not call do_signal() with irqs disabled Richard Weinberger
2012-05-25 22:04 ` [PATCH 02/20] c6x: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 03/20] cris: " Richard Weinberger
2012-05-25 22:04 ` [PATCH 04/20] h8300: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 05/20] hexagon: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-06-01 17:54 ` Richard Kuo
2012-06-01 17:54 ` Richard Kuo
2012-06-01 18:42 ` David Brown
2012-06-01 19:01 ` Richard Kuo
2012-06-01 19:02 ` Richard Kuo
2012-05-25 22:04 ` [PATCH 06/20] m32r: " Richard Weinberger
2012-05-25 22:04 ` [PATCH 07/20] mn10300: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger [this message]
2012-05-25 22:04 ` [PATCH 08/20] openrisc: " Richard Weinberger
2012-05-25 22:04 ` [PATCH 09/20] score: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 10/20] sh: " Richard Weinberger
2012-05-25 22:04 ` [PATCH 11/20] tile: " Richard Weinberger
2012-05-25 22:04 ` [PATCH 12/20] unicore32: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 13/20] arm: Do not call try_to_freeze() in do_signal() Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 23:43 ` Russell King - ARM Linux
2012-05-26 8:55 ` Richard Weinberger
[not found] ` <1337983476-22081-1-git-send-email-richard-/L3Ra7n9ekc@public.gmane.org>
2012-05-25 22:04 ` [PATCH 14/20] blackfin: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 15/20] frv: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 16/20] h8300: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 17/20] hexagon: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-06-01 17:55 ` Richard Kuo
2012-06-01 17:55 ` Richard Kuo
2012-06-01 19:02 ` Richard Kuo
2012-05-25 22:04 ` [PATCH 18/20] m32r: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 19/20] unicore32: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 22:04 ` [PATCH 20/20] xtensa: " Richard Weinberger
2012-05-25 22:04 ` Richard Weinberger
2012-05-25 23:45 ` [PATCH 01/20] arm: Do not call do_signal() with irqs disabled Russell King - ARM Linux
2012-05-25 23:45 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1337983476-22081-8-git-send-email-richard@nod.at \
--to=richard@nod.at \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@lists.openrisc.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).