diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-09 08:58:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 08:58:11 -0500 |
commit | 249d51b53aea1b7cdb1be65a1a9a0c59d9e06f3e (patch) | |
tree | 7fc06930e46ee13d394f5b031166c40206af3189 /arch/x86/mm | |
parent | 44581a28e805a31661469c4b466b9cd14b36e7b6 (diff) | |
parent | 8e4921515c1a379539607eb443d51c30f4f7f338 (diff) |
Merge commit 'v2.6.29-rc4' into core/percpu
Conflicts:
arch/x86/mach-voyager/voyager_smp.c
arch/x86/mm/fault.c
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/fault.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 65709a6aa6ee..8c3f3113a6ec 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -807,8 +807,6 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) | |||
807 | /* get the address */ | 807 | /* get the address */ |
808 | address = read_cr2(); | 808 | address = read_cr2(); |
809 | 809 | ||
810 | if (unlikely(notify_page_fault(regs))) | ||
811 | return; | ||
812 | if (unlikely(kmmio_fault(regs, address))) | 810 | if (unlikely(kmmio_fault(regs, address))) |
813 | return; | 811 | return; |
814 | 812 | ||
@@ -838,6 +836,9 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) | |||
838 | if (spurious_fault(error_code, address)) | 836 | if (spurious_fault(error_code, address)) |
839 | return; | 837 | return; |
840 | 838 | ||
839 | /* kprobes don't want to hook the spurious faults. */ | ||
840 | if (notify_page_fault(regs)) | ||
841 | return; | ||
841 | /* | 842 | /* |
842 | * Don't take the mm semaphore here. If we fixup a prefetch | 843 | * Don't take the mm semaphore here. If we fixup a prefetch |
843 | * fault we could otherwise deadlock. | 844 | * fault we could otherwise deadlock. |
@@ -846,6 +847,8 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) | |||
846 | return; | 847 | return; |
847 | } | 848 | } |
848 | 849 | ||
850 | if (unlikely(notify_page_fault(regs))) | ||
851 | return; | ||
849 | /* | 852 | /* |
850 | * It's safe to allow irq's after cr2 has been saved and the | 853 | * It's safe to allow irq's after cr2 has been saved and the |
851 | * vmalloc fault has been handled. | 854 | * vmalloc fault has been handled. |