linux-stable/arch/xtensa/kernel
Eric W. Biederman 4a3d2717d1 ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP
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>
2022-05-11 14:33:44 -05:00
..
syscalls arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
align.S xtensa: use register window specific opcodes only when present 2021-10-18 22:19:35 -07:00
asm-offsets.c Xtensa updates for v5.18 2022-03-25 09:49:39 -07:00
coprocessor.S xtensa: move coprocessor_flush to the .text section 2021-03-08 20:15:09 -08:00
entry.S xtensa: clean up kernel exit assembly code 2022-03-19 13:08:41 -07:00
head.S xtensa: use register window specific opcodes only when present 2021-10-18 22:19:35 -07:00
hw_breakpoint.c xtensa: replace variant/core.h with asm/core.h 2019-05-06 17:48:55 -07:00
irq.c xtensa: Implement "current_stack_pointer" 2022-02-25 18:21:23 -08:00
jump_label.c xtensa: fix stop_machine_cpuslocked call in patch_text 2022-03-16 02:14:20 -07:00
Makefile xtensa: make secondary reset vector support conditional 2022-03-09 16:59:18 -08:00
mcount.S xtensa: implement call0 ABI support in assembly 2021-10-18 22:19:35 -07:00
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S xtensa: add missing XCHAL_HAVE_WINDOWED check 2022-03-09 13:59:15 -08:00
pci-dma.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
pci.c xtensa: fix warning comparing pointer to 0 2021-04-04 15:39:02 -07:00
perf_event.c xtensa: fix xtensa_pmu_setup prototype 2020-07-31 14:09:12 -07:00
platform.c xtensa: drop empty platform_* functions from platforms 2020-01-31 12:17:28 -08:00
process.c xtensa: use XCHAL_NUM_AREGS as pt_regs::areg size 2022-03-07 12:02:54 -08:00
ptrace.c ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP 2022-05-11 14:33:44 -05:00
s32c1i_selftest.c xtensa: move S32C1I self-test to a separate file 2016-11-16 15:08:28 -08:00
setup.c xtensa: make secondary reset vector support conditional 2022-03-09 16:59:18 -08:00
signal.c ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP 2022-05-11 14:33:44 -05:00
smp.c sched/core: Initialize the idle task with preemption disabled 2021-05-12 13:01:45 +02:00
stacktrace.c arch: xtensa: Remove CONFIG_OPROFILE support 2021-01-29 10:05:51 +05:30
syscall.c xtensa: syscalls: switch to generic syscalltbl.sh 2021-04-04 15:39:03 -07:00
time.c xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h> 2020-12-07 14:01:02 -08:00
traps.c exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
vectors.S xtensa: rename PT_SIZE to PT_KERNEL_SIZE 2022-03-07 12:02:48 -08:00
vmlinux.lds.S xtensa: make secondary reset vector support conditional 2022-03-09 16:59:18 -08:00
xtensa_ksyms.c xtensa: don't link with libgcc 2022-03-09 14:03:23 -08:00