Skip to content

Commit 900ffe3

Browse files
keessuryasaimadhu
authored andcommitted
x86/entry: Fix typo in comments for syscall_enter_from_user_mode()
Just to help myself and others with finding the correct function names, fix a typo for "usermode" vs "user_mode". Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200919080936.259819-1-keescook@chromium.org
1 parent 93921ba commit 900ffe3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/entry-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#endif
3939

4040
/*
41-
* TIF flags handled in syscall_enter_from_usermode()
41+
* TIF flags handled in syscall_enter_from_user_mode()
4242
*/
4343
#ifndef ARCH_SYSCALL_ENTER_WORK
4444
# define ARCH_SYSCALL_ENTER_WORK (0)

kernel/entry/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static inline bool report_single_step(unsigned long ti_work)
183183
/*
184184
* If TIF_SYSCALL_EMU is set, then the only reason to report is when
185185
* TIF_SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP). This syscall
186-
* instruction has been already reported in syscall_enter_from_usermode().
186+
* instruction has been already reported in syscall_enter_from_user_mode().
187187
*/
188188
#define SYSEMU_STEP (_TIF_SINGLESTEP | _TIF_SYSCALL_EMU)
189189

0 commit comments

Comments
 (0)