]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: panic from init_IRQ if IRQ handler stacks cannot be allocated
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Thu, 26 Mar 2026 22:57:52 +0000 (23:57 +0100)
committerWill Deacon <will@kernel.org>
Tue, 19 May 2026 11:27:10 +0000 (12:27 +0100)
commit7dc6922f7fdd3496de4e7d8fb99284fc08f98003
treebd43fdc3d34b01fa5e4f122e1fbb10cd68b3092e
parente7cec385d2c6726e692d057f91f20b08c2981af3
arm64: panic from init_IRQ if IRQ handler stacks cannot be allocated

init_irq_stacks() and init_irq_scs() may fail when arch_alloc_vmap_stack
or scs_alloc return NULL. Return -ENOMEM from both and call panic() once
from init_IRQ(), covering per-CPU IRQ stacks and shadow IRQ stacks
consistently.

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/irq.c