2020-02-21 18:07:43 +00:00
|
|
|
From c67616e94cb3a4e226e6e2db6dec9ce3793f228d Mon Sep 17 00:00:00 2001
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Yang Shi <yang.shi@linaro.org>
|
|
|
|
Date: Thu, 10 Dec 2015 10:58:51 -0800
|
2020-02-21 18:07:43 +00:00
|
|
|
Subject: [PATCH 065/319] x86/signal: delay calling signals on 32bit
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.103-rt42.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
When running some ptrace single step tests on x86-32 machine, the below problem
|
|
|
|
is triggered:
|
|
|
|
|
|
|
|
BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:917
|
|
|
|
in_atomic(): 1, irqs_disabled(): 0, pid: 1041, name: dummy2
|
|
|
|
Preemption disabled at:[<c100326f>] do_debug+0x1f/0x1a0
|
|
|
|
|
|
|
|
CPU: 10 PID: 1041 Comm: dummy2 Tainted: G W 4.1.13-rt13 #1
|
|
|
|
Call Trace:
|
|
|
|
[<c1aa8306>] dump_stack+0x46/0x5c
|
|
|
|
[<c1080517>] ___might_sleep+0x137/0x220
|
|
|
|
[<c1ab0eff>] rt_spin_lock+0x1f/0x80
|
|
|
|
[<c1064b5a>] do_force_sig_info+0x2a/0xc0
|
|
|
|
[<c106567d>] force_sig_info+0xd/0x10
|
|
|
|
[<c1010cff>] send_sigtrap+0x6f/0x80
|
|
|
|
[<c10033b1>] do_debug+0x161/0x1a0
|
|
|
|
[<c1ab2921>] debug_stack_correct+0x2e/0x35
|
|
|
|
|
|
|
|
This happens since 959274753857 ("x86, traps: Track entry into and exit
|
|
|
|
from IST context") which was merged in v4.1-rc1.
|
|
|
|
|
|
|
|
Signed-off-by: Yang Shi <yang.shi@linaro.org>
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
arch/x86/include/asm/signal.h | 2 +-
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h
|
|
|
|
index fb0438d06ca7..c00e27af2205 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/arch/x86/include/asm/signal.h
|
|
|
|
+++ b/arch/x86/include/asm/signal.h
|
|
|
|
@@ -37,7 +37,7 @@ typedef struct {
|
|
|
|
* TIF_NOTIFY_RESUME and set up the signal to be sent on exit of the
|
|
|
|
* trap.
|
|
|
|
*/
|
|
|
|
-#if defined(CONFIG_PREEMPT_RT_FULL) && defined(CONFIG_X86_64)
|
|
|
|
+#if defined(CONFIG_PREEMPT_RT_FULL)
|
|
|
|
#define ARCH_RT_DELAYS_SIGNAL_SEND
|
|
|
|
#endif
|
|
|
|
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-02-21 18:07:43 +00:00
|
|
|
2.25.0
|
2020-01-03 23:36:11 +00:00
|
|
|
|