Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1463089 > unrolled thread

[PATCH] Documentation/x86_64: Fix a thread stack size

Started byAlexander Kuleshov <kuleshovmail@gmail.com>
First post2016-08-15 20:30 +0200
Last post2016-08-15 20:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Documentation/x86_64: Fix a thread stack size Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-08-15 20:30 +0200

#1463089 — [PATCH] Documentation/x86_64: Fix a thread stack size

FromAlexander Kuleshov <kuleshovmail@gmail.com>
Date2016-08-15 20:30 +0200
Subject[PATCH] Documentation/x86_64: Fix a thread stack size
Message-ID<s6uO5-C5-7@gated-at.bofh.it>
current information about THREAD_SIZE value is obsoleted. This patch
fixes this.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web