Skip to content

Commit d19f913

Browse files
parport0Ingo Molnar
authored andcommitted
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. Signed-off-by: Elvira Khabirova <lineprinter@altlinux.org> Cc: Borislav Petkov <bp@alien8.de> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: ldv@altlinux.org Cc: oleg@redhat.com Cc: rostedt@goodmis.org Link: http://lkml.kernel.org/r/20181110042209.26333972@akathisia Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent ccda4af commit d19f913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/tracehook.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ static inline int ptrace_report_syscall(struct pt_regs *regs)
8383
* tracehook_report_syscall_entry - task is about to attempt a system call
8484
* @regs: user register state of current task
8585
*
86-
* This will be called if %TIF_SYSCALL_TRACE has been set, when the
87-
* current task has just entered the kernel for a system call.
86+
* This will be called if %TIF_SYSCALL_TRACE or %TIF_SYSCALL_EMU have been set,
87+
* when the current task has just entered the kernel for a system call.
8888
* Full user register state is available here. Changing the values
8989
* in @regs can affect the system call number and arguments to be tried.
9090
* It is safe to block here, preventing the system call from beginning.

0 commit comments

Comments
 (0)