diff options
| author | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
| commit | eeaab2d8af2cf1d36d7086f22e9de42d6dd2995c (patch) | |
| tree | 369b9c91a6d808944f07d2290fec6f9fe2731904 /include/linux/tracehook.h | |
| parent | ee01e663373343c63e0e3d364d09f6155378dbcc (diff) | |
| parent | aaef292acf3a78d9c0bb6fb72226077d286b45d7 (diff) | |
Merge branches 'idle-fix' and 'misc' into release
Diffstat (limited to 'include/linux/tracehook.h')
| -rw-r--r-- | include/linux/tracehook.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index a71a2927a6a0..51bd91d911c3 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h | |||
| @@ -54,12 +54,12 @@ struct linux_binprm; | |||
| 54 | /* | 54 | /* |
| 55 | * ptrace report for syscall entry and exit looks identical. | 55 | * ptrace report for syscall entry and exit looks identical. |
| 56 | */ | 56 | */ |
| 57 | static inline void ptrace_report_syscall(struct pt_regs *regs) | 57 | static inline int ptrace_report_syscall(struct pt_regs *regs) |
| 58 | { | 58 | { |
| 59 | int ptrace = current->ptrace; | 59 | int ptrace = current->ptrace; |
| 60 | 60 | ||
| 61 | if (!(ptrace & PT_PTRACED)) | 61 | if (!(ptrace & PT_PTRACED)) |
| 62 | return; | 62 | return 0; |
| 63 | 63 | ||
| 64 | ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); | 64 | ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); |
| 65 | 65 | ||
| @@ -72,6 +72,8 @@ static inline void ptrace_report_syscall(struct pt_regs *regs) | |||
| 72 | send_sig(current->exit_code, current, 1); | 72 | send_sig(current->exit_code, current, 1); |
| 73 | current->exit_code = 0; | 73 | current->exit_code = 0; |
| 74 | } | 74 | } |
| 75 | |||
| 76 | return fatal_signal_pending(current); | ||
| 75 | } | 77 | } |
| 76 | 78 | ||
| 77 | /** | 79 | /** |
| @@ -96,8 +98,7 @@ static inline void ptrace_report_syscall(struct pt_regs *regs) | |||
| 96 | static inline __must_check int tracehook_report_syscall_entry( | 98 | static inline __must_check int tracehook_report_syscall_entry( |
| 97 | struct pt_regs *regs) | 99 | struct pt_regs *regs) |
| 98 | { | 100 | { |
| 99 | ptrace_report_syscall(regs); | 101 | return ptrace_report_syscall(regs); |
| 100 | return 0; | ||
| 101 | } | 102 | } |
| 102 | 103 | ||
| 103 | /** | 104 | /** |
