A part of dbb5afad100a ("ptrace: make ptrace() fail if the tracee changed its 
pid unexpectedly")
is missing during merge, which invalidates the commit.

Signed-off-by: He Zhe <[email protected]>
---
 kernel/ptrace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index ee935f6c2300..ec2d9fd37a11 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -194,7 +194,8 @@ static bool ptrace_freeze_traced(struct task_struct *task)
                return ret;
 
        spin_lock_irq(&task->sighand->siglock);
-       if (task_is_traced(task) && !__fatal_signal_pending(task)) {
+       if (task_is_traced(task) && !looks_like_a_spurious_pid(task) &&
+           !__fatal_signal_pending(task)) {
                unsigned long flags;
 
                raw_spin_lock_irqsave(&task->pi_lock, flags);
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9970): 
https://lists.yoctoproject.org/g/linux-yocto/message/9970
Mute This Topic: https://lists.yoctoproject.org/mt/83600689/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to