Skip to content

Commit 8574bf8

Browse files
guoren83palmer-dabbelt
authored andcommitted
riscv: ptrace: Remove duplicate operation
The TIF_SYSCALL_TRACE is controlled by a common code, see kernel/ptrace.c and include/linux/thread_info.h. clear_task_syscall_work(child, SYSCALL_TRACE); Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Björn Töpel <bjorn@rivosinc.com> Link: https://lore.kernel.org/r/20230222033021.983168-3-guoren@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent fe15c26 commit 8574bf8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/riscv/kernel/ptrace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n)
212212

213213
void ptrace_disable(struct task_struct *child)
214214
{
215-
clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
216215
}
217216

218217
long arch_ptrace(struct task_struct *child, long request,

0 commit comments

Comments
 (0)