Skip to contentSkip to conversation

entry: Fix typo in comments for syscall_enter_from_user_mode()

PATCH Applied Kees Cook 2 participants 2 messages Sep 19, 2020 – Sep 22, 2020 Generic entry code

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 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".

---
 include/linux/entry-common.h | 2 +-
 kernel/entry/common.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/entry-common.h +1 -1
index 159c7476b11b..474f29638d2c 100644
@@ -38,7 +38,7 @@
 #endif
 
 /*
- * TIF flags handled in syscall_enter_from_usermode()
+ * TIF flags handled in syscall_enter_from_user_mode()
  */
 #ifndef ARCH_SYSCALL_ENTER_WORK
 # define ARCH_SYSCALL_ENTER_WORK	(0)
kernel/entry/common.c +1 -1
index 18683598edbc..52f7f503a68b 100644
@@ -206,7 +206,7 @@ static inline bool report_single_step(unsigned long ti_work)
 /*
  * If TIF_SYSCALL_EMU is set, then the only reason to report is when
  * TIF_SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP).  This syscall
- * instruction has been already reported in syscall_enter_from_usermode().
+ * instruction has been already reported in syscall_enter_from_user_mode().
  */
 #define SYSEMU_STEP	(_TIF_SINGLESTEP | _TIF_SYSCALL_EMU)
 
Signature · 1 line
2.25.1
merge bot Applied
#1 lore raw

[tip: x86/cleanups] x86/entry: Fix typo in comments for syscall_enter_from_user_mode()

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     900ffe39fec908e0aa26a30612e43ebc7140db79
Gitweb:        https://git.kernel.org/tip/900ffe39fec908e0aa26a30612e43ebc7140db79
Author:        Kees Cook <[email protected]>
AuthorDate:    Sat, 19 Sep 2020 01:09:36 -07:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Tue, 22 Sep 2020 18:24:46 +02:00

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".

---
 include/linux/entry-common.h | 2 +-
 kernel/entry/common.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/entry-common.h +1 -1
index efebbff..3b6754d 100644
@@ -38,7 +38,7 @@
 #endif
 
 /*
- * TIF flags handled in syscall_enter_from_usermode()
+ * TIF flags handled in syscall_enter_from_user_mode()
  */
 #ifndef ARCH_SYSCALL_ENTER_WORK
 # define ARCH_SYSCALL_ENTER_WORK	(0)
kernel/entry/common.c +1 -1
index fcae019..7c7b9d0 100644
@@ -183,7 +183,7 @@ static inline bool report_single_step(unsigned long ti_work)
 /*
  * If TIF_SYSCALL_EMU is set, then the only reason to report is when
  * TIF_SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP).  This syscall
- * instruction has been already reported in syscall_enter_from_usermode().
+ * instruction has been already reported in syscall_enter_from_user_mode().
  */
 #define SYSEMU_STEP	(_TIF_SINGLESTEP | _TIF_SYSCALL_EMU)