]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Apr 2022 21:45:37 +0000 (16:45 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:23:35 +0000 (09:23 +0200)
commit10c16528a098b42d97a3fa73f2ccdfcdff082524
tree0bcd50dd3d70c21891f3971c1655f6745ddf8790
parentc0e81bfcd6c3e0d9b0448c63c0a70f74a65888d9
ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP

BugLink: https://bugs.launchpad.net/bugs/1981864
commit 4a3d2717d140401df7501a95e454180831a0c5af upstream.

xtensa is the last user of the PT_SINGLESTEP flag.  Changing tsk->ptrace in
user_enable_single_step and user_disable_single_step without locking could
potentiallly cause problems.

So use a thread info flag instead of a flag in tsk->ptrace.  Use TIF_SINGLESTEP
that xtensa already had defined but unused.

Remove the definitions of PT_SINGLESTEP and PT_BLOCKSTEP as they have no more users.

Cc: stable@vger.kernel.org
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lkml.kernel.org/r/20220505182645.497868-4-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/xtensa/kernel/ptrace.c
arch/xtensa/kernel/signal.c
include/linux/ptrace.h