Skip to contentSkip to conversation

Documentation/x86_64: Fix a thread stack size

PATCH New Alexander Kuleshov 1 participant 1 message Aug 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/x86_64: Fix a thread stack size

current information about THREAD_SIZE value is obsoleted. This patch fixes this.

---
 Documentation/x86/kernel-stacks | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/x86/kernel-stacks +2 -1
index 9a0aa4d..f4b4197 100644
@@ -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.
Signature · 1 line
2.8.0.rc3.1353.gea9bdc0