linux-stable/arch/xtensa/kernel
Eric W. Biederman 9a18c9c833 exit: Add and use make_task_dead.
commit 0e25498f8c upstream.

There are two big uses of do_exit.  The first is it's design use to be
the guts of the exit(2) system call.  The second use is to terminate
a task after something catastrophic has happened like a NULL pointer
in kernel code.

Add a function make_task_dead that is initialy exactly the same as
do_exit to cover the cases where do_exit is called to handle
catastrophic failure.  In time this can probably be reduced to just a
light wrapper around do_task_dead. For now keep it exactly the same so
that there will be no behavioral differences introducing this new
concept.

Replace all of the uses of do_exit that use it for catastraphic
task cleanup with make_task_dead to make it clear what the code
is doing.

As part of this rename rewind_stack_do_exit
rewind_stack_and_make_dead.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-06 07:52:49 +01:00
..
syscalls clone3-v5.3 2019-07-11 10:09:44 -07:00
.gitignore
align.S
asm-offsets.c xtensa: add missing exclusive access state management 2020-08-21 13:05:24 +02:00
coprocessor.S xtensa: fix a7 clobbering in coprocessor context load/store 2022-04-27 13:50:49 +02:00
entry.S xtensa: fix system_call interaction with ptrace 2020-10-01 13:17:22 +02:00
head.S xtensa: clean up PS_WOE_BIT usage 2019-09-01 13:11:57 -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: call irqchip_init only when CONFIG_USE_OF is selected 2021-10-13 10:08:18 +02:00
jump_label.c xtensa: patch_text: Fixup last cpu should be master 2022-04-27 13:50:49 +02:00
Makefile
mcount.S xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
module.c
mxhead.S
pci-dma.c dma-mapping: always use VM_DMA_COHERENT for generic DMA remap 2019-09-04 11:13:20 +02:00
pci.c xtensa: use generic pcibios_set_master and pcibios_enable_device 2019-06-16 23:31:29 -07:00
perf_event.c xtensa: fix xtensa_pmu_setup prototype 2020-08-21 13:05:24 +02:00
platform.c xtensa: drop dead PCI support code 2019-06-16 23:31:28 -07:00
process.c xtensa: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
ptrace.c ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP 2022-06-14 18:11:24 +02:00
s32c1i_selftest.c
setup.c xtensa: use CONFIG_USE_OF instead of CONFIG_OF 2021-10-13 10:08:18 +02:00
signal.c ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP 2022-06-14 18:11:24 +02:00
smp.c xtensa: replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC 2019-05-14 19:52:50 -07:00
stacktrace.c xtensa: add support for call0 ABI in userspace 2019-09-01 13:11:57 -07:00
syscall.c
time.c xtensa: Fix refcount leak bug in time.c 2022-06-29 08:58:48 +02:00
traps.c exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
vectors.S
vmlinux.lds.S xtensa: replace variant/core.h with asm/core.h 2019-05-06 17:48:55 -07:00
xtensa_ksyms.c xtensa: fix __sync_fetch_and_{and,or}_4 declarations 2020-07-29 10:18:26 +02:00