Skip to content

Commit 27a0781

Browse files
nir9Jonathan Corbet
authored andcommitted
Documentation: English corrections in vmalloced kernel stacks
Minor grammar fixes in vmalloced-kernel-stacks Signed-off-by: Nir Lichtman <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ddb7705 commit 27a0781

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/mm/vmalloced-kernel-stacks.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Kernel stack overflows are often hard to debug and make the kernel
2222
susceptible to exploits. Problems could show up at a later time making
2323
it difficult to isolate and root-cause.
2424

25-
Virtually-mapped kernel stacks with guard pages causes kernel stack
25+
Virtually mapped kernel stacks with guard pages cause kernel stack
2626
overflows to be caught immediately rather than causing difficult to
2727
diagnose corruptions.
2828

@@ -57,7 +57,7 @@ enable this bool configuration option. The requirements are:
5757
VMAP_STACK
5858
----------
5959

60-
VMAP_STACK bool configuration option when enabled allocates virtually
60+
When enabled, the VMAP_STACK bool configuration option allocates virtually
6161
mapped task stacks. This option depends on HAVE_ARCH_VMAP_STACK.
6262

6363
- Enable this if you want the use virtually-mapped kernel stacks
@@ -83,7 +83,7 @@ the latest code base:
8383
Allocation
8484
-----------
8585

86-
When a new kernel thread is created, thread stack is allocated from
86+
When a new kernel thread is created, a thread stack is allocated from
8787
virtually contiguous memory pages from the page level allocator. These
8888
pages are mapped into contiguous kernel virtual space with PAGE_KERNEL
8989
protections.
@@ -103,8 +103,8 @@ with PAGE_KERNEL protections.
103103
- This does not address interrupt stacks - according to the original patch
104104

105105
Thread stack allocation is initiated from clone(), fork(), vfork(),
106-
kernel_thread() via kernel_clone(). Leaving a few hints for searching
107-
the code base to understand when and how thread stack is allocated.
106+
kernel_thread() via kernel_clone(). These are a few hints for searching
107+
the code base to understand when and how a thread stack is allocated.
108108

109109
Bulk of the code is in:
110110
`kernel/fork.c <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/fork.c>`.

0 commit comments

Comments
 (0)