[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220830065316.3924938-2-guoren@kernel.org>
Date: Tue, 30 Aug 2022 02:53:14 -0400
From: guoren@...nel.org
To: oleg@...hat.com, vgupta@...nel.org, linux@...linux.org.uk,
monstr@...str.eu, dinguyen@...nel.org, palmer@...belt.com,
davem@...emloft.net, arnd@...db.de, shorne@...il.com,
guoren@...nel.org
Cc: linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
linux-snps-arc@...ts.infradead.org, sparclinux@...r.kernel.org,
openrisc@...ts.librecores.org, Guo Ren <guoren@...ux.alibaba.com>
Subject: [PATCH 1/3] riscv: ptrace: Remove duplicate operation
From: Guo Ren <guoren@...ux.alibaba.com>
The TIF_SYSCALL_TRACE is controlled by a common code, see
kernel/ptrace.c and include/linux/thread.h.
clear_task_syscall_work(child, SYSCALL_TRACE);
Signed-off-by: Guo Ren <guoren@...ux.alibaba.com>
Signed-off-by: Guo Ren <guoren@...nel.org>
---
arch/riscv/kernel/ptrace.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c
index 2ae8280ae475..44f4b1ca315d 100644
--- a/arch/riscv/kernel/ptrace.c
+++ b/arch/riscv/kernel/ptrace.c
@@ -212,7 +212,6 @@ unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n)
void ptrace_disable(struct task_struct *child)
{
- clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
}
long arch_ptrace(struct task_struct *child, long request,
--
2.36.1
Powered by blists - more mailing lists