[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191206135832.GG32767@arrakis.emea.arm.com>
Date: Fri, 6 Dec 2019 13:58:32 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: Heyi Guo <guoheyi@...wei.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
wanghaibin.wang@...wei.com, Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>
Subject: Re: [PATCH] arm64/kernel/entry: refine comment of stack overflow
check
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@...wei.com>
> Cc: Catalin Marinas <catalin.marinas@....com>
> Cc: Will Deacon <will@...nel.org>
Queued with Mark's suggested update.
--
Catalin
Powered by blists - more mailing lists