Re: [PATCH] arm64/kernel/entry: refine comment of stack overflow check
From: Catalin Marinas
Date: Fri Dec 06 2019 - 08:58:38 EST
On Mon, Dec 02, 2019 at 07:37:02PM +0800, Heyi Guo wrote:
> Stack overflow checking can be done by testing
> sp & (1 << THREAD_SHIFT)
> only for the stacks are aligned to (2 << THREAD_SHIFT) with size of
> (1 << THREAD_SIZE), and this is the case when CONFIG_VMAP_STACK is
> set.
>
> Fix the code comment to avoid confusion.
>
> Signed-off-by: Heyi Guo <guoheyi@xxxxxxxxxx>
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: Will Deacon <will@xxxxxxxxxx>
Queued with Mark's suggested update.
--
Catalin