linux-stable/arch/arm64/mm
Eric W. Biederman 5eded74b49 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-06 07:46:33 +01:00
..
cache.S arm64: Fix minor issues with the dcache_by_line_op macro 2019-01-26 09:37:03 +01:00
context.c arm64: Move BP hardening to check_and_switch_context 2018-02-16 20:22:53 +01:00
copypage.c
dma-mapping.c arm64/iommu: handle non-remapped addresses in ->mmap and ->get_sgtable 2019-05-31 06:47:11 -07:00
dump.c arm64: fix CONFIG_DEBUG_WX address reporting 2017-12-20 10:10:20 +01:00
extable.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fault.c exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
flush.c arm64: fix pmem interface definition 2017-08-10 18:13:59 +01:00
hugetlbpage.c arm64: hugetlb: Fix handling of young ptes 2018-11-04 14:52:38 +01:00
init.c arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region 2019-04-17 08:37:44 +02:00
ioremap.c arm64: use is_vmalloc_addr 2017-02-09 13:47:56 +00:00
kasan_init.c arm64/kasan: don't allocate extra shadow memory 2017-07-10 16:32:33 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmap.c arm64/mmap: properly account for stack randomization in mmap_base 2017-07-12 16:26:03 -07:00
mmu.c arm64: map FDT as RW for early_init_dt_scan() 2022-09-05 10:25:05 +02:00
numa.c arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE 2020-11-05 11:06:56 +01:00
pageattr.c arm64: use set_memory.h header 2017-05-08 17:15:13 -07:00
pgd.c
physaddr.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
proc.S arm64: Extend workaround for erratum 1024718 to all versions of Cortex-A55 2021-10-06 15:05:10 +02:00
ptdump_debugfs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00