|
@@ -347,13 +347,8 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args)
|
|
|
|
|
|
/* Deliver the signal to userspace */
|
|
/* Deliver the signal to userspace */
|
|
if (!arch_check_bp_in_kernelspace(bp)) {
|
|
if (!arch_check_bp_in_kernelspace(bp)) {
|
|
- siginfo_t info;
|
|
|
|
-
|
|
|
|
- info.si_signo = args->signr;
|
|
|
|
- info.si_errno = notifier_to_errno(rc);
|
|
|
|
- info.si_code = TRAP_HWBKPT;
|
|
|
|
-
|
|
|
|
- force_sig_info(args->signr, &info, current);
|
|
|
|
|
|
+ force_sig_fault(SIGTRAP, TRAP_HWBKPT,
|
|
|
|
+ (void __user *)NULL, current);
|
|
}
|
|
}
|
|
|
|
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|