[PATCH v2 21/21] arm64: Rename 'overflow_stack' and OVERFLOW_STACK_SIZE

Catalin Marinas catalin.marinas at arm.com
Tue Sep 22 07:01:37 PDT 2026


On Fri, Sep 18, 2026 at 05:14:05PM +0100, Will Deacon wrote:
> diff --git a/arch/arm64/kernel/entry-common.c b/arch/arm64/kernel/entry-common.c
> index 9d734cd09f62..7e9b26cf1bdc 100644
> --- a/arch/arm64/kernel/entry-common.c
> +++ b/arch/arm64/kernel/entry-common.c
> @@ -327,43 +327,43 @@ static void debug_exception_exit(struct pt_regs *regs)
>  }
>  NOKPROBE_SYMBOL(debug_exception_exit);
>  
> -static void noinstr el1h_64_check_overflow_stack(struct pt_regs *regs)
> +static void noinstr el1h_64_check_exception_stack(struct pt_regs *regs)
>  {
>  	unsigned long sp = kernel_stack_pointer(regs) - sizeof(*regs);
> -	unsigned long ovf_stack = (unsigned long)this_cpu_ptr(overflow_stack);
> +	unsigned long exc_stack = (unsigned long)this_cpu_ptr(kernel_exception_stack);
>  
>  	/*
> -	 * We're in big trouble if we've overflowed the overflow stack
> +	 * We're in big trouble if we've overflowed the exception stack
>  	 * so perform a best-effort check before we proceed. If our SP
> -	 * is outside of the overflow stack for this CPU then presumably
> +	 * is outside of the exceptoin stack for this CPU then presumably
			     ^^^^^^^^^
Nit: "exception"

-- 
Catalin



More information about the linux-arm-kernel mailing list