mint0x33/arch/mips
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
..
alchemy MIPS: alchemy: xxs1500: add gpio-au1000.h header file 2021-06-03 08:36:25 +02:00
ar7 MIPS: AR7: ensure the port type's FCR value is used 2018-01-23 19:58:21 +01:00
ath25 MIPS: ath25: Check for kzalloc allocation failure 2018-03-15 10:54:31 +01:00
ath79 Revert "MIPS: perf: ath79: Fix perfcount IRQ assignment" 2019-06-11 12:21:49 +02:00
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 13:17:08 +02:00
bcm63xx MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2023-01-18 09:26:11 +01:00
bmips MIPS: Use address-of operator on section symbols 2022-05-15 19:40:26 +02:00
boot mips: disable branch profiling in boot/decompress.o 2021-07-20 16:17:55 +02:00
cavium-octeon MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-28 10:56:49 +02:00
cobalt
configs MIPS: Loongson: Build ATI Radeon GPU driver as module 2020-06-20 10:25:07 +02:00
dec DEC: Limit PMAX memory probing to R3k systems 2022-04-20 09:08:12 +02:00
emma
fw MIPS: fw: sni: Fix out of bounds init of o32 stack 2019-11-06 12:43:17 +01:00
generic MIPS: generic/yamon-dt: fix uninitialized variable error 2021-11-26 11:40:39 +01:00
include MIPS: pic32: treat port as signed integer 2022-12-08 11:16:29 +01:00
jazz MIPS: jazz: fix 64bit build 2019-02-27 10:08:04 +01:00
jz4740 MIPS: lb60: Fix pin mappings 2019-07-31 07:28:47 +02:00
kernel exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
kvm KVM: MIPS: Change the definition of kvm type 2020-09-23 10:46:34 +02:00
lantiq MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko 2022-09-28 10:56:51 +02:00
lasat
lib MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER 2021-06-16 11:53:01 +02:00
loongson32 MIPS: loongson32: ls1c: Fix hang during startup 2022-09-15 12:23:53 +02:00
loongson64 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-02-28 16:35:57 +01:00
math-emu MIPS: math-emu: Write-protect delay slot emulation pages 2019-01-09 17:14:51 +01:00
mm MIPS: tlbex: Explicitly compare _PAGE_NO_EXEC against 0 2022-08-25 11:11:37 +02:00
mti-malta MIPS: Malta: fix alignment of the devicetree buffer 2021-09-22 11:45:26 +02:00
net bpf, mips: Validate conditional branch offsets 2021-10-17 10:08:32 +02:00
netlogic
oprofile
paravirt
pci MIPS: pci-legacy: stop using of_pci_range_to_resource 2021-05-22 10:57:33 +02:00
pic32 MIPS: pic32: treat port as signed integer 2022-12-08 11:16:29 +01:00
pistachio MIPS: pistachio: Build uImage.gz by default 2019-06-11 12:21:49 +02:00
pmcs-msp71xx
pnx833x
power
ralink MIPS: Use address-of operator on section symbols 2022-05-15 19:40:26 +02:00
rb532 MIPS: RB532: fix return value of __setup handler 2022-04-20 09:08:18 +02:00
sgi-ip22
sgi-ip27
sgi-ip32
sibyte Revert "MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur" 2019-09-19 09:08:03 +02:00
sni MIPS: sni: Fix the build 2021-11-26 11:40:38 +01:00
tools
txx9 mips: txx9: fix iounmap related issue 2019-11-20 17:59:48 +01:00
vdso MIPS: vdso: Invalid GIC access through VDSO 2021-07-20 16:17:55 +02:00
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-07-02 16:18:08 +02:00
xilfpga
Kbuild
Kbuild.platforms
Kconfig MIPS: use 3-level pgtable for 64KB page size on MIPS_VA_BITS_48 2021-12-08 08:46:49 +01:00
Kconfig.debug
Makefile mips: Fix non-POSIX regexp 2021-08-15 13:03:29 +02:00
Makefile.postlink MIPS: fix indentation of the 'RELOCS' message 2020-02-14 16:32:09 -05:00