mint0x33/arch/arm64
Eric W. Biederman 5eded74b49 exit: Add and use make_task_dead.
commit 0e25498f8cd43c1b5aa327f373dd094e9a006da7 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-06 07:46:33 +01:00
..
boot arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name 2023-01-18 09:26:07 +01:00
configs
crypto crypto: arm64/sha2-ce - correct digest for empty data in finup 2019-07-31 07:28:35 +02:00
include linux/const.h: move UL() macro to include/linux/const.h 2022-11-10 15:47:24 +01:00
kernel exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
kvm arm64: Mitigate spectre style branch history side channels 2022-04-02 12:41:10 +02:00
lib arm64: lib: use C string functions with KASAN enabled 2019-12-01 09:13:48 +01:00
mm exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
net bpf: get rid of pure_initcall dependency to enable jits 2019-08-25 10:50:02 +02:00
xen
Kconfig arm64: errata: Remove AES hwcap for COMPAT tasks 2022-11-03 23:50:50 +09:00
Kconfig.debug
Kconfig.platforms arm64: berlin: Select DW_APB_TIMER_OF 2020-11-05 11:07:04 +01:00
Makefile arm64: link with -z norelro regardless of CONFIG_RELOCATABLE 2020-11-05 11:06:51 +01:00