hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/x86/include/asm/signal.h
....@@ -28,6 +28,19 @@
2828 #define SA_IA32_ABI 0x02000000u
2929 #define SA_X32_ABI 0x01000000u
3030
31
+/*
32
+ * Because some traps use the IST stack, we must keep preemption
33
+ * disabled while calling do_trap(), but do_trap() may call
34
+ * force_sig_info() which will grab the signal spin_locks for the
35
+ * task, which in PREEMPT_RT_FULL are mutexes. By defining
36
+ * ARCH_RT_DELAYS_SIGNAL_SEND the force_sig_info() will set
37
+ * TIF_NOTIFY_RESUME and set up the signal to be sent on exit of the
38
+ * trap.
39
+ */
40
+#if defined(CONFIG_PREEMPT_RT_FULL)
41
+#define ARCH_RT_DELAYS_SIGNAL_SEND
42
+#endif
43
+
3144 #ifndef CONFIG_COMPAT
3245 typedef sigset_t compat_sigset_t;
3346 #endif