Skip to content

Commit bf78b46

Browse files
Dennis LamJonathan Corbet
authored andcommitted
docs:mm: fixed spelling and grammar mistakes on vmalloc kernel stack page
Signed-off-by: Dennis Lam <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Message-ID: <[email protected]>
1 parent e6ba83c commit bf78b46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/mm/vmalloced-kernel-stacks.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ 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>`.
111111

112112
stack_vm_area pointer in task_struct keeps track of the virtually allocated
113-
stack and a non-null stack_vm_area pointer serves as a indication that the
113+
stack and a non-null stack_vm_area pointer serves as an indication that the
114114
virtually mapped kernel stacks are enabled.
115115

116116
::
@@ -120,8 +120,8 @@ virtually mapped kernel stacks are enabled.
120120
Stack overflow handling
121121
-----------------------
122122

123-
Leading and trailing guard pages help detect stack overflows. When stack
124-
overflows into the guard pages, handlers have to be careful not overflow
123+
Leading and trailing guard pages help detect stack overflows. When the stack
124+
overflows into the guard pages, handlers have to be careful not to overflow
125125
the stack again. When handlers are called, it is likely that very little
126126
stack space is left.
127127

@@ -148,6 +148,6 @@ Conclusions
148148
- THREAD_INFO_IN_TASK gets rid of arch-specific thread_info entirely and
149149
simply embed the thread_info (containing only flags) and 'int cpu' into
150150
task_struct.
151-
- The thread stack can be free'ed as soon as the task is dead (without
151+
- The thread stack can be freed as soon as the task is dead (without
152152
waiting for RCU) and then, if vmapped stacks are in use, cache the
153153
entire stack for reuse on the same cpu.

0 commit comments

Comments
 (0)