From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753204AbcHOSUk (ORCPT ); Mon, 15 Aug 2016 14:20:40 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34542 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbcHOSUi (ORCPT ); Mon, 15 Aug 2016 14:20:38 -0400 From: Alexander Kuleshov To: Jonathan Corbet Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH] Documentation/x86_64: Fix a thread stack size Date: Tue, 16 Aug 2016 00:20:10 +0600 Message-Id: <20160815182010.8484-1-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.8.0.rc3.1353.gea9bdc0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org current information about THREAD_SIZE value is obsoleted. This patch fixes this. Signed-off-by: Alexander Kuleshov --- Documentation/x86/kernel-stacks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/x86/kernel-stacks b/Documentation/x86/kernel-stacks index 9a0aa4d..f4b4197 100644 --- a/Documentation/x86/kernel-stacks +++ b/Documentation/x86/kernel-stacks @@ -6,7 +6,8 @@ Most of the text from Keith Owens, hacked by AK x86_64 page size (PAGE_SIZE) is 4K. Like all other architectures, x86_64 has a kernel stack for every -active thread. These thread stacks are THREAD_SIZE (2*PAGE_SIZE) big. +active thread. These thread stacks are THREAD_SIZE (PAGE_SIZE << 2) +or (PAGE_SIZE << 3) if the CONFIG_KASAN is enabled. These stacks contain useful data as long as a thread is alive or a zombie. While the thread is in user space the kernel stack is empty except for the thread_info structure at the bottom. -- 2.8.0.rc3.1353.gea9bdc0