From: tglx@linutronix.de (Thomas Gleixner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: Enable interrupts before calling schedule()
Date: Fri, 20 May 2016 17:42:17 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.11.1605201740320.3639@nanos> (raw)
do_work_pending() calls schedule() with interrupts disabled, which is just
wrong. Fix it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/arm/kernel/signal.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -573,6 +573,7 @@ do_work_pending(struct pt_regs *regs, un
trace_hardirqs_off();
do {
if (likely(thread_flags & _TIF_NEED_RESCHED)) {
+ local_irq_enable();
schedule();
} else {
if (unlikely(!user_mode(regs)))
next reply other threads:[~2016-05-20 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 15:42 Thomas Gleixner [this message]
2016-05-23 10:54 ` [PATCH] arm: Enable interrupts before calling schedule() Catalin Marinas
2016-05-23 11:09 ` Russell King - ARM Linux
2016-05-23 12:44 ` Peter Zijlstra
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=alpine.DEB.2.11.1605201740320.3639@nanos \
--to=tglx@linutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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