diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-04-10 03:14:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-04-10 03:14:42 -0400 |
commit | 54bbfe75cbb10384b0a62efae80fde21deea1dd0 (patch) | |
tree | eed22c29cdecce36153bbb83ee7a9da7eed60ccd /include/linux/ptrace.h | |
parent | ddb20d1d3aed8f130519c0a29cd5392efcc067b8 (diff) | |
parent | 771acc7e4a6e5dba779cb1a7fd851a164bc81033 (diff) |
Merge branch 'linus' into locking/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/ptrace.h')
-rw-r--r-- | include/linux/ptrace.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index edb9b040c94c..d5084ebd9f03 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
@@ -9,6 +9,13 @@ | |||
9 | #include <linux/bug.h> /* For BUG_ON. */ | 9 | #include <linux/bug.h> /* For BUG_ON. */ |
10 | #include <linux/pid_namespace.h> /* For task_active_pid_ns. */ | 10 | #include <linux/pid_namespace.h> /* For task_active_pid_ns. */ |
11 | #include <uapi/linux/ptrace.h> | 11 | #include <uapi/linux/ptrace.h> |
12 | #include <linux/seccomp.h> | ||
13 | |||
14 | /* Add sp to seccomp_data, as seccomp is user API, we don't want to modify it */ | ||
15 | struct syscall_info { | ||
16 | __u64 sp; | ||
17 | struct seccomp_data data; | ||
18 | }; | ||
12 | 19 | ||
13 | extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, | 20 | extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr, |
14 | void *buf, int len, unsigned int gup_flags); | 21 | void *buf, int len, unsigned int gup_flags); |
@@ -407,9 +414,7 @@ static inline void user_single_step_report(struct pt_regs *regs) | |||
407 | #define current_user_stack_pointer() user_stack_pointer(current_pt_regs()) | 414 | #define current_user_stack_pointer() user_stack_pointer(current_pt_regs()) |
408 | #endif | 415 | #endif |
409 | 416 | ||
410 | extern int task_current_syscall(struct task_struct *target, long *callno, | 417 | extern int task_current_syscall(struct task_struct *target, struct syscall_info *info); |
411 | unsigned long args[6], unsigned int maxargs, | ||
412 | unsigned long *sp, unsigned long *pc); | ||
413 | 418 | ||
414 | extern void sigaction_compat_abi(struct k_sigaction *act, struct k_sigaction *oact); | 419 | extern void sigaction_compat_abi(struct k_sigaction *act, struct k_sigaction *oact); |
415 | #endif | 420 | #endif |