linux-stable/arch/arm
Eric W. Biederman 9a18c9c833 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: Sasha Levin <sashal@kernel.org>
2023-02-06 07:52:49 +01:00
..
boot ARM: dts: imx: Fix pca9547 i2c-mux node name 2023-02-06 07:52:48 +01:00
common
configs
crypto crypto: arm/ghash-ce - define fpu before fpu registers are referenced 2022-07-02 16:28:52 +02:00
include ARM: 9266/1: mm: fix no-MMU ZERO_PAGE() implementation 2022-12-14 11:30:40 +01:00
kernel exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
kvm
lib ARM: findbit: fix overflowing offset 2022-08-25 11:17:33 +02:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: use proper compatibles for sam9x60's rtc and rtt 2022-07-12 16:30:48 +02:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-06-29 08:58:49 +02:00
mach-bcm ARM: bcm: Fix refcount leak in bcm_kona_smc_init 2022-08-25 11:17:33 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-06-29 08:58:49 +02:00
mach-davinci arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-05-15 19:54:46 +02:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-06-29 08:58:49 +02:00
mach-footbridge
mach-gemini
mach-highbank arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-05-15 19:54:46 +02:00
mach-hisi ARM: hisi: Add missing of_node_put after of_find_compatible_node 2022-06-14 18:11:30 +02:00
mach-imx ARM: imx: add missing of_node_put() 2023-02-06 07:52:35 +01:00
mach-integrator
mach-iop32x ARM: iop32x: offset IRQ numbers by 1 2022-04-15 14:18:29 +02:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek arm: mediatek: select arch timer for mt7629 2022-06-14 18:11:40 +02:00
mach-meson ARM: meson: Fix refcount leak in meson_smp_prepare_cpus 2022-07-12 16:30:48 +02:00
mach-milbeaut
mach-mmp ARM: mmp: fix timer_read delay 2023-01-18 11:40:52 +01:00
mach-moxart
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-12-08 11:22:58 +01:00
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: clock: Fix UART rate reporting algorithm 2022-06-14 18:11:30 +02:00
mach-omap2 ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init 2022-08-25 11:17:35 +02:00
mach-orion5x
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: maybe fix gpio lookup tables 2022-06-14 18:11:49 +02:00
mach-qcom
mach-rda
mach-realview
mach-rockchip
mach-rpc
mach-s3c24xx ARM: 9187/1: JIVE: fix return value of __setup handler 2022-04-15 14:18:31 +02:00
mach-s3c64xx
mach-s5pv210 arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-05-15 19:54:46 +02:00
mach-sa1100
mach-shmobile ARM: shmobile: rcar-gen2: Increase refcount for new reference 2022-08-25 11:17:32 +02:00
mach-socfpga ARM: socfpga: fix missing RESET_CONTROLLER 2022-02-16 12:52:49 +01:00
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tango arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-05-15 19:54:46 +02:00
mach-tegra
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress ARM: versatile: Add missing of_node_put in dcscb_init 2022-06-14 18:11:30 +02:00
mach-vt8500
mach-zx
mach-zynq cpufreq: zynq: Fix refcount leak in zynq_get_revision 2022-08-25 11:17:35 +02:00
mm exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
net bpf, arm: Fix register clobbering in div/mod implementation 2021-10-13 10:08:18 +02:00
nwfpe ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod 2023-01-18 11:41:48 +01:00
oprofile
plat-omap
plat-orion
plat-pxa
plat-samsung
plat-versatile
probes ARM: 9214/1: alignment: advance IT state after emulating Thumb instruction 2022-07-21 20:59:17 +02:00
tools
vdso
vfp ARM: 8989/1: use .fpu assembler directives instead of assembler arguments 2022-07-02 16:28:50 +02:00
xen xen/arm: Fix race in RB-tree based P2M accounting 2022-07-07 17:36:53 +02:00
Kconfig ARM: Drop CMDLINE_* dependency on ATAGS 2022-10-26 13:22:33 +02:00
Kconfig-nommu
Kconfig.debug
Makefile ARM: 9156/1: drop cc-option fallbacks for architecture selection 2021-11-17 09:48:48 +01:00