linux/debian/patches-rt/0032-signal-Revert-ptrace-p...

42 lines
1.5 KiB
Diff
Raw Normal View History

2020-10-12 12:52:06 +00:00
From e87e30a754eaaeae393934e4d25104a8739a4b20 Mon Sep 17 00:00:00 2001
Message-Id: <e87e30a754eaaeae393934e4d25104a8739a4b20.1601675151.git.zanussi@kernel.org>
In-Reply-To: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
References: <5b5a156f9808b1acf1205606e03da117214549ea.1601675151.git.zanussi@kernel.org>
From: Thomas Gleixner <tglx@linutronix.de>
Date: Wed, 21 Sep 2011 19:57:12 +0200
2020-09-04 20:10:21 +00:00
Subject: [PATCH 032/333] signal: Revert ptrace preempt magic
2020-10-12 12:52:06 +00:00
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.148-rt64.tar.xz
Upstream commit '53da1d9456fe7f8 fix ptrace slowness' is nothing more
than a bandaid around the ptrace design trainwreck. It's not a
correctness issue, it's merily a cosmetic bandaid.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
2019-04-08 23:49:20 +00:00
kernel/signal.c | 8 --------
1 file changed, 8 deletions(-)
2019-04-08 23:49:20 +00:00
diff --git a/kernel/signal.c b/kernel/signal.c
2020-06-22 13:14:16 +00:00
index 6a5692118139..f810797e48cb 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2108,15 +2108,7 @@ static void ptrace_stop(int exit_code, int why, int clear_code, siginfo_t *info)
if (gstop_done && ptrace_reparented(current))
do_notify_parent_cldstop(current, false, why);
- /*
- * Don't want to allow preemption here, because
- * sys_ptrace() needs this task to be inactive.
- *
- * XXX: implement read_unlock_no_resched().
- */
- preempt_disable();
read_unlock(&tasklist_lock);
- preempt_enable_no_resched();
freezable_schedule();
} else {
/*
2020-01-03 23:36:11 +00:00
--
2020-06-22 13:14:16 +00:00
2.17.1
2020-01-03 23:36:11 +00:00