]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Apr 2022 21:30:17 +0000 (16:30 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:23:35 +0000 (09:23 +0200)
commitc0e81bfcd6c3e0d9b0448c63c0a70f74a65888d9
treecc0fd6b739ff440d56723ef860e3840099568aad
parent8b1d22cf3e5cd9b22990fc94951409f180c0b6e8
ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP

BugLink: https://bugs.launchpad.net/bugs/1981864
commit c200e4bb44e80b343c09841e7caaaca0aac5e5fa upstream.

User mode linux is the last user of the PT_DTRACE flag.  Using the flag to indicate
single stepping is a little confusing and worse changing tsk->ptrace without locking
could potentionally cause problems.

So use a thread info flag with a better name instead of flag in tsk->ptrace.

Remove the definition PT_DTRACE as uml is the last user.

Cc: stable@vger.kernel.org
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lkml.kernel.org/r/20220505182645.497868-3-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/um/include/asm/thread_info.h
arch/um/kernel/exec.c
arch/um/kernel/process.c
arch/um/kernel/ptrace.c
arch/um/kernel/signal.c
include/linux/ptrace.h