Loading arch/i386/mm/fault.c +8 −10 Original line number Diff line number Diff line Loading @@ -46,17 +46,17 @@ int unregister_page_fault_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(unregister_page_fault_notifier); static inline int notify_page_fault(enum die_val val, const char *str, struct pt_regs *regs, long err, int trap, int sig) static inline int notify_page_fault(struct pt_regs *regs, long err) { struct die_args args = { .regs = regs, .str = str, .str = "page fault", .err = err, .trapnr = trap, .signr = sig .trapnr = 14, .signr = SIGSEGV }; return atomic_notifier_call_chain(¬ify_page_fault_chain, val, &args); return atomic_notifier_call_chain(¬ify_page_fault_chain, DIE_PAGE_FAULT, &args); } /* Loading Loading @@ -327,8 +327,7 @@ fastcall void __kprobes do_page_fault(struct pt_regs *regs, if (unlikely(address >= TASK_SIZE)) { if (!(error_code & 0x0000000d) && vmalloc_fault(address) >= 0) return; if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* * Don't take the mm semaphore here. If we fixup a prefetch Loading @@ -337,8 +336,7 @@ fastcall void __kprobes do_page_fault(struct pt_regs *regs, goto bad_area_nosemaphore; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* It's safe to allow irq's after cr2 has been saved and the vmalloc Loading arch/x86_64/mm/fault.c +8 −10 Original line number Diff line number Diff line Loading @@ -56,17 +56,17 @@ int unregister_page_fault_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(unregister_page_fault_notifier); static inline int notify_page_fault(enum die_val val, const char *str, struct pt_regs *regs, long err, int trap, int sig) static inline int notify_page_fault(struct pt_regs *regs, long err) { struct die_args args = { .regs = regs, .str = str, .str = "page fault", .err = err, .trapnr = trap, .signr = sig .trapnr = 14, .signr = SIGSEGV }; return atomic_notifier_call_chain(¬ify_page_fault_chain, val, &args); return atomic_notifier_call_chain(¬ify_page_fault_chain, DIE_PAGE_FAULT, &args); } /* Sometimes the CPU reports invalid exceptions on prefetch. Loading Loading @@ -355,8 +355,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, if (vmalloc_fault(address) >= 0) return; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* * Don't take the mm semaphore here. If we fixup a prefetch Loading @@ -365,8 +364,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, goto bad_area_nosemaphore; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; if (likely(regs->eflags & X86_EFLAGS_IF)) Loading Loading
arch/i386/mm/fault.c +8 −10 Original line number Diff line number Diff line Loading @@ -46,17 +46,17 @@ int unregister_page_fault_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(unregister_page_fault_notifier); static inline int notify_page_fault(enum die_val val, const char *str, struct pt_regs *regs, long err, int trap, int sig) static inline int notify_page_fault(struct pt_regs *regs, long err) { struct die_args args = { .regs = regs, .str = str, .str = "page fault", .err = err, .trapnr = trap, .signr = sig .trapnr = 14, .signr = SIGSEGV }; return atomic_notifier_call_chain(¬ify_page_fault_chain, val, &args); return atomic_notifier_call_chain(¬ify_page_fault_chain, DIE_PAGE_FAULT, &args); } /* Loading Loading @@ -327,8 +327,7 @@ fastcall void __kprobes do_page_fault(struct pt_regs *regs, if (unlikely(address >= TASK_SIZE)) { if (!(error_code & 0x0000000d) && vmalloc_fault(address) >= 0) return; if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* * Don't take the mm semaphore here. If we fixup a prefetch Loading @@ -337,8 +336,7 @@ fastcall void __kprobes do_page_fault(struct pt_regs *regs, goto bad_area_nosemaphore; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* It's safe to allow irq's after cr2 has been saved and the vmalloc Loading
arch/x86_64/mm/fault.c +8 −10 Original line number Diff line number Diff line Loading @@ -56,17 +56,17 @@ int unregister_page_fault_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(unregister_page_fault_notifier); static inline int notify_page_fault(enum die_val val, const char *str, struct pt_regs *regs, long err, int trap, int sig) static inline int notify_page_fault(struct pt_regs *regs, long err) { struct die_args args = { .regs = regs, .str = str, .str = "page fault", .err = err, .trapnr = trap, .signr = sig .trapnr = 14, .signr = SIGSEGV }; return atomic_notifier_call_chain(¬ify_page_fault_chain, val, &args); return atomic_notifier_call_chain(¬ify_page_fault_chain, DIE_PAGE_FAULT, &args); } /* Sometimes the CPU reports invalid exceptions on prefetch. Loading Loading @@ -355,8 +355,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, if (vmalloc_fault(address) >= 0) return; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; /* * Don't take the mm semaphore here. If we fixup a prefetch Loading @@ -365,8 +364,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, goto bad_area_nosemaphore; } if (notify_page_fault(DIE_PAGE_FAULT, "page fault", regs, error_code, 14, SIGSEGV) == NOTIFY_STOP) if (notify_page_fault(regs, error_code) == NOTIFY_STOP) return; if (likely(regs->eflags & X86_EFLAGS_IF)) Loading