Skip to contentSkip to conversation

tracehook: fix documentation for tracehook_report_syscall_entry()

PATCH New Elvira Khabirova 2 participants 2 messages Nov 10, 2018 – Nov 12, 2018 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracehook: fix documentation for tracehook_report_syscall_entry()

tracehook_report_syscall_entry() is called not only
if %TIF_SYSCALL_TRACE is set, but also if %TIF_SYSCALL_EMU is set, as appears from x86's entry code.

---
 include/linux/tracehook.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/tracehook.h +2 -2
index 40b0b4c1bf7b..df20f8bdbfa3 100644
@@ -83,8 +83,8 @@ static inline int ptrace_report_syscall(struct pt_regs *regs)
  * tracehook_report_syscall_entry - task is about to attempt a system call
  * @regs:		user register state of current task
  *
- * This will be called if %TIF_SYSCALL_TRACE has been set, when the
- * current task has just entered the kernel for a system call.
+ * This will be called if %TIF_SYSCALL_TRACE or %TIF_SYSCALL_EMU have been set,
+ * when the current task has just entered the kernel for a system call.
  * Full user register state is available here.  Changing the values
  * in @regs can affect the system call number and arguments to be tried.
  * It is safe to block here, preventing the system call from beginning.
Signature · 1 line
2.19.1
#1 lore raw

[tip:x86/urgent] x86/ptrace: Fix documentation for tracehook_report_syscall_entry()

x86/ptrace: Fix documentation for tracehook_report_syscall_entry()
Commit-ID:  d19f9130b814d33c03118493c17454f7d90075d1
Gitweb:     https://git.kernel.org/tip/d19f9130b814d33c03118493c17454f7d90075d1
Author:     Elvira Khabirova <[email protected]>
AuthorDate: Sat, 10 Nov 2018 04:22:09 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 12 Nov 2018 04:53:27 +0100

x86/ptrace: Fix documentation for tracehook_report_syscall_entry()

tracehook_report_syscall_entry() is called not only
if %TIF_SYSCALL_TRACE is set, but also if %TIF_SYSCALL_EMU is set, as appears from x86's entry code.

---
 include/linux/tracehook.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/tracehook.h +2 -2
index 40b0b4c1bf7b..df20f8bdbfa3 100644
@@ -83,8 +83,8 @@ static inline int ptrace_report_syscall(struct pt_regs *regs)
  * tracehook_report_syscall_entry - task is about to attempt a system call
  * @regs:		user register state of current task
  *
- * This will be called if %TIF_SYSCALL_TRACE has been set, when the
- * current task has just entered the kernel for a system call.
+ * This will be called if %TIF_SYSCALL_TRACE or %TIF_SYSCALL_EMU have been set,
+ * when the current task has just entered the kernel for a system call.
  * Full user register state is available here.  Changing the values
  * in @regs can affect the system call number and arguments to be tried.
  * It is safe to block here, preventing the system call from beginning.