diff options
Diffstat (limited to 'debian/patches-rt/signal-revert-ptrace-preempt-magic.patch')
-rw-r--r-- | debian/patches-rt/signal-revert-ptrace-preempt-magic.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch b/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch index 8bf85a5ad..e1a5d984f 100644 --- a/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch +++ b/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch @@ -1,7 +1,7 @@ Subject: signal: Revert ptrace preempt magic From: Thomas Gleixner <tglx@linutronix.de> Date: Wed, 21 Sep 2011 19:57:12 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz Upstream commit '53da1d9456fe7f8 fix ptrace slowness' is nothing more than a bandaid around the ptrace design trainwreck. It's not a @@ -14,7 +14,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- a/kernel/signal.c +++ b/kernel/signal.c -@@ -2147,15 +2147,7 @@ static void ptrace_stop(int exit_code, i +@@ -2197,16 +2197,8 @@ static void ptrace_stop(int exit_code, i if (gstop_done && ptrace_reparented(current)) do_notify_parent_cldstop(current, false, why); @@ -26,7 +26,8 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> - */ - preempt_disable(); read_unlock(&tasklist_lock); -- preempt_enable_no_resched(); cgroup_enter_frozen(); +- preempt_enable_no_resched(); freezable_schedule(); cgroup_leave_frozen(true); + } else { |