android_kernel_motorola_sm6375/arch/xtensa
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric W. Biederman f5faa24137 ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP
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: [email protected]
Acked-by: Max Filippov <[email protected]>
Tested-by: Kees Cook <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-06-14 18:11:24 +02:00
..
boot xtensa: fix DTC warning unit_address_format 2022-04-15 14:18:34 +02:00
configs
include xtensa: fix xtensa_wsr always writing 0 2022-04-15 14:18:03 +02:00
kernel ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP 2022-06-14 18:11:24 +02:00
lib
mm xtensa: use CONFIG_USE_OF instead of CONFIG_OF 2021-10-13 10:08:18 +02:00
oprofile
platforms xtensa: xtfpga: Try software restart before simulating CPU reset 2021-10-27 09:54:25 +02:00
variants
Kconfig xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG 2021-09-12 08:56:39 +02:00
Kconfig.debug
Makefile