]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC64]: Adjust kernel PC validation test in fault handler.
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 04:38:15 +0000 (20:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 04:38:15 +0000 (20:38 -0800)
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>
arch/sparc64/mm/fault.c

index 918363360280c35af390594811e20c2ccba06bc9..2650d0d33ac25cbc656baa97adec4c29e1a65a93 100644 (file)
@@ -286,7 +286,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
                unsigned long tpc = regs->tpc;
 
                /* Sanity check the PC. */
-               if ((tpc >= KERNBASE && tpc < (unsigned long) _etext) ||
+               if ((tpc >= KERNBASE && tpc < (unsigned long) __init_end) ||
                    (tpc >= MODULES_VADDR && tpc < MODULES_END)) {
                        /* Valid, no problems... */
                } else {