aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin.berg@intel.com>2024-11-03 16:05:06 +0100
committerJohannes Berg <johannes.berg@intel.com>2024-11-07 17:36:31 +0100
commitce6e85a186c28ab0ca024580cba93fa19147c72b (patch)
treedac6be1ade6734c1f5717e0ea21b5fdaff866729 /arch/um/kernel
parentum: remove duplicate UM_NSEC_PER_SEC definition (diff)
downloadwireguard-linux-ce6e85a186c28ab0ca024580cba93fa19147c72b.tar.xz
wireguard-linux-ce6e85a186c28ab0ca024580cba93fa19147c72b.zip
um: remove broken double fault detection
The show_stack function had some code to detect double faults. However, the logic is wrong and it would e.g. trigger if a WARNING happened inside an IRQ. Remove it without trying to add a new logic. The current behaviour, which will just fault repeatedly until the IRQ stack is used up and the host kills UML, seems to be good enough. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20241103150506.1367695-5-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/sysrq.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index 4bb8622dc512..a3bdab048617 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -32,12 +32,6 @@ void show_stack(struct task_struct *task, unsigned long *stack,
struct pt_regs *segv_regs = current->thread.segv_regs;
int i;
- if (!segv_regs && os_is_signal_stack()) {
- pr_err("Received SIGSEGV in SIGSEGV handler,"
- " aborting stack trace!\n");
- return;
- }
-
if (!stack)
stack = get_stack_pointer(task, segv_regs);