mint0x33/arch/m68k
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
..
68000 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
apollo License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
coldfire m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:41:49 +02:00
configs
emu m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:45:18 +02:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
ifpsp060
include m68k: use fallback for random_get_entropy() instead of zero 2022-06-25 11:46:38 +02:00
kernel exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mac m68k: mac: Fix IOP status/control register writes 2020-08-21 09:48:03 +02:00
math-emu
mm exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
mvme16x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
tools/amiga License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
install.sh
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.bus License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.cpu m68k: math-emu: Fix dependencies of math emulation support 2022-06-14 16:53:50 +02:00
Kconfig.debug License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.devices License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.machine m68knommu: fix undefined reference to `_init_sp' 2022-06-14 16:53:58 +02:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 14:35:21 +01:00