Skip to contentSkip to conversation

ptrace: remove redundant setting of PT_SEIZED in flags

PATCH New Nikitas Angelinas 1 participant 1 message Dec 3, 2021 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptrace: remove redundant setting of PT_SEIZED in flags

PT_SEIZED is set twice in the flags variable in ptrace_attach(), so the second one can be removed as redundant.

---
 kernel/ptrace.c | 2 --
 1 file changed, 2 deletions(-)
kernel/ptrace.c +0 -2
index f8589bf..eea2650 100644
@@ -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);
Signature · 1 line
2.10.0