lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <YamovBH+iLagivSH@vostro>
Date:   Thu, 2 Dec 2021 21:18:52 -0800
From:   Nikitas Angelinas <nikitas.angelinas@...il.com>
To:     Oleg Nesterov <oleg@...hat.com>
Cc:     Denys Vlasenko <dvlasenk@...hat.com>, linux-kernel@...r.kernel.org,
        Nikitas Angelinas <nikitas.angelinas@...il.com>
Subject: [PATCH] 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.

Signed-off-by: Nikitas Angelinas <nikitas.angelinas@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ