* [PATCH 11/21] KGDB: This adds a call to notify_die()
@ 2007-10-15 18:33 Jason Wessel
0 siblings, 0 replies; only message in thread
From: Jason Wessel @ 2007-10-15 18:33 UTC (permalink / raw)
To: linux-kernel; +Cc: ak
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
[-- Attachment #2: x86_64-no_context_hook.patch --]
[-- Type: text/x-patch, Size: 1118 bytes --]
x86_64-no_context_hook.patch
From: Jason Wessel <jason.wessel@windriver.com>
CC: ak@suse.de
Subject: [PATCH] This adds a call to notify_die()
A call to notify_die is added in the "no context" portion of
do_page_fault() as someone on the chain might care and want to do a
fixup.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
arch/x86/mm/fault_64.c | 4 ++++
include/asm-x86/kdebug_64.h | 1 +
2 files changed, 5 insertions(+)
--- a/arch/x86/mm/fault_64.c
+++ b/arch/x86/mm/fault_64.c
@@ -531,6 +531,10 @@ no_context:
if (is_errata93(regs, address))
return;
+ if (notify_die(DIE_PAGE_FAULT_NO_CONTEXT, "no context", regs,
+ error_code, 14, SIGSEGV) == NOTIFY_STOP)
+ return;
+
/*
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
--- a/include/asm-x86/kdebug_64.h
+++ b/include/asm-x86/kdebug_64.h
@@ -23,6 +23,7 @@ enum die_val {
DIE_CALL,
DIE_NMI_IPI,
DIE_PAGE_FAULT,
+ DIE_PAGE_FAULT_NO_CONTEXT,
};
extern void printk_address(unsigned long address);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-15 18:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 18:33 [PATCH 11/21] KGDB: This adds a call to notify_die() Jason Wessel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox