Messages in this thread | | | Date | Fri, 6 Dec 2019 13:58:32 +0000 | From | Catalin Marinas <> | 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@huawei.com> > Cc: Catalin Marinas <catalin.marinas@arm.com> > Cc: Will Deacon <will@kernel.org>
Queued with Mark's suggested update.
-- Catalin
| |