diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/fault_32.c | 4 | ||||
-rw-r--r-- | arch/x86/mm/fault_64.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/mm/fault_32.c b/arch/x86/mm/fault_32.c index 13d295506a17..276863dc4bdd 100644 --- a/arch/x86/mm/fault_32.c +++ b/arch/x86/mm/fault_32.c | |||
@@ -514,11 +514,13 @@ bad_area_nosemaphore: | |||
514 | #ifdef CONFIG_X86_32 | 514 | #ifdef CONFIG_X86_32 |
515 | "%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx", | 515 | "%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx", |
516 | #else | 516 | #else |
517 | "%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx\n", | 517 | "%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx", |
518 | #endif | 518 | #endif |
519 | task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, | 519 | task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, |
520 | tsk->comm, task_pid_nr(tsk), address, regs->ip, | 520 | tsk->comm, task_pid_nr(tsk), address, regs->ip, |
521 | regs->sp, error_code); | 521 | regs->sp, error_code); |
522 | print_vma_addr(" in ", regs->ip); | ||
523 | printk("\n"); | ||
522 | } | 524 | } |
523 | tsk->thread.cr2 = address; | 525 | tsk->thread.cr2 = address; |
524 | /* Kernel addresses are always protection faults */ | 526 | /* Kernel addresses are always protection faults */ |
diff --git a/arch/x86/mm/fault_64.c b/arch/x86/mm/fault_64.c index b606bdefbb72..9ef0306efe9e 100644 --- a/arch/x86/mm/fault_64.c +++ b/arch/x86/mm/fault_64.c | |||
@@ -552,11 +552,13 @@ bad_area_nosemaphore: | |||
552 | #ifdef CONFIG_X86_32 | 552 | #ifdef CONFIG_X86_32 |
553 | "%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx", | 553 | "%s%s[%d]: segfault at %lx ip %08lx sp %08lx error %lx", |
554 | #else | 554 | #else |
555 | "%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx\n", | 555 | "%s%s[%d]: segfault at %lx ip %lx sp %lx error %lx", |
556 | #endif | 556 | #endif |
557 | task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, | 557 | task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG, |
558 | tsk->comm, task_pid_nr(tsk), address, regs->ip, | 558 | tsk->comm, task_pid_nr(tsk), address, regs->ip, |
559 | regs->sp, error_code); | 559 | regs->sp, error_code); |
560 | print_vma_addr(" in ", regs->ip); | ||
561 | printk("\n"); | ||
560 | } | 562 | } |
561 | 563 | ||
562 | tsk->thread.cr2 = address; | 564 | tsk->thread.cr2 = address; |