aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-28 23:38:15 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-28 23:38:15 -0500
commitbe71716e464f4ea38f08034dc666f2feb55535d9 (patch)
tree179f9f1a75e2b8869fe9bb59eb37694f3fd23e7a /arch/sparc64
parent622eaec613130e6ea78f2a5d5070e3278b21cd8f (diff)
[SPARC64]: Adjust kernel PC validation test in fault handler.
Because of the new futex validation init handler, we have to accept faults in init section text as well as the normal kernel text. Thanks to Tom Callaway for the bug report. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/mm/fault.c b/arch/sparc64/mm/fault.c
index 918363360280..2650d0d33ac2 100644
--- a/arch/sparc64/mm/fault.c
+++ b/arch/sparc64/mm/fault.c
@@ -286,7 +286,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
286 unsigned long tpc = regs->tpc; 286 unsigned long tpc = regs->tpc;
287 287
288 /* Sanity check the PC. */ 288 /* Sanity check the PC. */
289 if ((tpc >= KERNBASE && tpc < (unsigned long) _etext) || 289 if ((tpc >= KERNBASE && tpc < (unsigned long) __init_end) ||
290 (tpc >= MODULES_VADDR && tpc < MODULES_END)) { 290 (tpc >= MODULES_VADDR && tpc < MODULES_END)) {
291 /* Valid, no problems... */ 291 /* Valid, no problems... */
292 } else { 292 } else {