From patchwork Fri May 20 15:42:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 9129853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3E77E60221 for ; Fri, 20 May 2016 15:47:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31D2620499 for ; Fri, 20 May 2016 15:47:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26BAD27BF1; Fri, 20 May 2016 15:47:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D0FD620499 for ; Fri, 20 May 2016 15:47:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3mbG-00017T-45; Fri, 20 May 2016 15:44:30 +0000 Received: from linutronix.de ([2001:470:1f0b:db:abcd:42:0:1] helo=Galois.linutronix.de) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3mbB-00016M-PK for linux-arm-kernel@lists.infradead.org; Fri, 20 May 2016 15:44:27 +0000 Received: from localhost ([127.0.0.1]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1b3mao-0000Dd-37; Fri, 20 May 2016 17:44:02 +0200 Date: Fri, 20 May 2016 17:42:17 +0200 (CEST) From: Thomas Gleixner To: Russell King Subject: [PATCH] arm: Enable interrupts before calling schedule() Message-ID: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001, URIBL_BLOCKED=0.001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160520_084426_006783_3D2EAD54 X-CRM114-Status: GOOD ( 17.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , LAK Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP do_work_pending() calls schedule() with interrupts disabled, which is just wrong. Fix it. Signed-off-by: Thomas Gleixner --- 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)))