* [PATCH] ptrace: remove redundant setting of PT_SEIZED in flags
@ 2021-12-03 5:18 Nikitas Angelinas
0 siblings, 0 replies; only message in thread
From: Nikitas Angelinas @ 2021-12-03 5:18 UTC (permalink / raw)
To: Oleg Nesterov; +Cc: Denys Vlasenko, linux-kernel, Nikitas Angelinas
PT_SEIZED is set twice in the flags variable in ptrace_attach(), so the
second one can be removed as redundant.
Signed-off-by: Nikitas Angelinas <nikitas.angelinas@gmail.com>
---
kernel/ptrace.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index f8589bf..eea2650 100644
--- 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);
--
2.10.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-03 5:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03 5:18 [PATCH] ptrace: remove redundant setting of PT_SEIZED in flags Nikitas Angelinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).