void unregister_undef_hook(struct undef_hook *hook);
void force_signal_inject(int signal, int code, unsigned long address);
void arm64_notify_segfault(unsigned long addr);
-void arm64_force_sig_info(struct siginfo *info, const char *str,
- struct task_struct *tsk);
+void arm64_force_sig_info(struct siginfo *info, const char *str);
/*
* Move regs->pc to next instruction and do necessary setup before it
if (interrupts_enabled(regs))
local_irq_enable();
- arm64_force_sig_info(&info, "User debug trap", current);
+ arm64_force_sig_info(&info, "User debug trap");
}
static int single_step_handler(unsigned long addr, unsigned int esr,
force_sig_ptrace_errno_trap(si_errno, (void __user *)bkpt->trigger);
}
#endif
- arm64_force_sig_info(&info, "Hardware breakpoint trap (ptrace)", current);
+ arm64_force_sig_info(&info, "Hardware breakpoint trap (ptrace)");
}
/*
return show_unhandled_signals && __ratelimit(&rs);
}
-void arm64_force_sig_info(struct siginfo *info, const char *str,
- struct task_struct *tsk)
+void arm64_force_sig_info(struct siginfo *info, const char *str)
{
+ struct task_struct *tsk = current;
unsigned int esr = tsk->thread.fault_code;
struct pt_regs *regs = task_pt_regs(tsk);
info.si_code = sicode;
info.si_addr = addr;
- arm64_force_sig_info(&info, str, current);
+ arm64_force_sig_info(&info, str);
} else {
die(str, regs, err);
}
current->thread.fault_address = 0;
current->thread.fault_code = esr;
- arm64_force_sig_info(&info, "Bad EL0 synchronous exception", current);
+ arm64_force_sig_info(&info, "Bad EL0 synchronous exception");
}
#ifdef CONFIG_VMAP_STACK
}
current->thread.fault_code = esr;
- arm64_force_sig_info(info, esr_to_fault_info(esr)->name, current);
+ arm64_force_sig_info(info, esr_to_fault_info(esr)->name);
}
static void do_bad_area(unsigned long addr, unsigned int esr, struct pt_regs *regs)