android_kernel_motorola_sm6225/arch/microblaze/kernel
Eric W. Biederman 7d5de91a9a 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:49:45 +01:00
..
cpu microblaze: Prevent the overflow of the start 2020-02-24 08:34:53 +01:00
.gitignore
asm-offsets.c
dma.c microblaze: use generic dma_noncoherent_ops 2018-07-20 14:29:47 +02:00
entry-nommu.S
entry.S microblaze: Fix MSR flags when returning from exception 2017-06-22 15:37:00 +02:00
exceptions.c exit: Add and use make_task_dead. 2023-02-06 07:49:45 +01:00
ftrace.c microblaze: function_graph: Simplify with function_graph_enter() 2018-12-05 19:32:09 +01:00
head.S microblaze: delete wrong comment about machine_early_init 2018-07-30 08:33:04 +02:00
hw_exception_handler.S
irq.c irqchip/xilinx: Rename get_irq to xintc_get_irq 2016-11-29 09:14:49 +00:00
kgdb.c microblaze: Label local function static 2015-06-08 09:57:08 +02:00
Makefile microblaze: consolidate GPIO reset handling 2018-06-21 13:57:39 +02:00
mcount.S
microblaze_ksyms.c
misc.S microblaze: remove redundant early_printk support 2018-04-23 12:43:45 +02:00
module.c
process.c arch: remove unused macro/function thread_saved_pc() 2017-06-28 16:13:57 -07:00
prom.c microblaze: remove redundant early_printk support 2018-04-23 12:43:45 +02:00
ptrace.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
reset.c microblaze: consolidate GPIO reset handling 2018-06-21 13:57:39 +02:00
setup.c microblaze: remove redundant early_printk support 2018-04-23 12:43:45 +02:00
signal.c Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
stacktrace.c
sys_microblaze.c mm: add ksys_mmap_pgoff() helper; remove in-kernel calls to sys_mmap_pgoff() 2018-04-02 20:16:11 +02:00
syscall_table.S microblaze: Add new syscalls io_pgetevents and rseq 2018-06-21 13:57:31 +02:00
timer.c microblaze: Remove architecture heart beat code 2018-06-12 12:46:35 +02:00
traps.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h> 2017-03-02 08:42:34 +01:00
unwind.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
vmlinux.lds.S nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00