diff options
| -rw-r--r-- | arch/s390/kernel/uprobes.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/s390/kernel/uprobes.c b/arch/s390/kernel/uprobes.c index d9d1f512f019..5007fac01bb5 100644 --- a/arch/s390/kernel/uprobes.c +++ b/arch/s390/kernel/uprobes.c | |||
| @@ -150,6 +150,15 @@ unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline, | |||
| 150 | return orig; | 150 | return orig; |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | bool arch_uretprobe_is_alive(struct return_instance *ret, enum rp_check ctx, | ||
| 154 | struct pt_regs *regs) | ||
| 155 | { | ||
| 156 | if (ctx == RP_CHECK_CHAIN_CALL) | ||
| 157 | return user_stack_pointer(regs) <= ret->stack; | ||
| 158 | else | ||
| 159 | return user_stack_pointer(regs) < ret->stack; | ||
| 160 | } | ||
| 161 | |||
| 153 | /* Instruction Emulation */ | 162 | /* Instruction Emulation */ |
| 154 | 163 | ||
| 155 | static void adjust_psw_addr(psw_t *psw, unsigned long len) | 164 | static void adjust_psw_addr(psw_t *psw, unsigned long len) |
