x86: signal_64.c: clean up signal_fault()
clean up and make signal_fault() same as 32bit. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
13ad7725e9
commit
b2994ef0de
|
@ -473,12 +473,14 @@ void do_notify_resume(struct pt_regs *regs, void *unused,
|
||||||
void signal_fault(struct pt_regs *regs, void __user *frame, char *where)
|
void signal_fault(struct pt_regs *regs, void __user *frame, char *where)
|
||||||
{
|
{
|
||||||
struct task_struct *me = current;
|
struct task_struct *me = current;
|
||||||
|
|
||||||
if (show_unhandled_signals && printk_ratelimit()) {
|
if (show_unhandled_signals && printk_ratelimit()) {
|
||||||
printk("%s[%d] bad frame in %s frame:%p ip:%lx sp:%lx orax:%lx",
|
printk(KERN_INFO
|
||||||
me->comm, me->pid, where, frame, regs->ip,
|
"%s[%d] bad frame in %s frame:%p ip:%lx sp:%lx orax:%lx",
|
||||||
regs->sp, regs->orig_ax);
|
me->comm, me->pid, where, frame,
|
||||||
|
regs->ip, regs->sp, regs->orig_ax);
|
||||||
print_vma_addr(" in ", regs->ip);
|
print_vma_addr(" in ", regs->ip);
|
||||||
printk("\n");
|
printk(KERN_CONT "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
force_sig(SIGSEGV, me);
|
force_sig(SIGSEGV, me);
|
||||||
|
|
Loading…
Reference in New Issue