projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5a42d
)
ptrace: Remove second setting of PT_SEIZED in ptrace_attach
author
Eric W. Biederman
<ebiederm@xmission.com>
Mon, 20 Dec 2021 23:15:09 +0000
(17:15 -0600)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Sat, 8 Jan 2022 18:43:57 +0000
(12:43 -0600)
The code is totally redundant remove it.
Link:
https://lkml.kernel.org/r/20220103213312.9144-6-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/ptrace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/ptrace.c
b/kernel/ptrace.c
index f8589bf8d7dcec03c9e2d592a41ad64ea84d013d..eea265082e9752b186a59185ae441a51fe24f212 100644
(file)
--- a/
kernel/ptrace.c
+++ b/
kernel/ptrace.c
@@
-419,8
+419,6
@@
static int ptrace_attach(struct task_struct *task, long request,
if (task->ptrace)
goto unlock_tasklist;
- if (seize)
- flags |= PT_SEIZED;
task->ptrace = flags;
ptrace_link(task, current);