]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mips,kgdb: fix recursive page fault with CONFIG_KPROBES
authorJason Wessel <jason.wessel@windriver.com>
Fri, 10 Aug 2012 17:21:15 +0000 (12:21 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Sun, 12 Aug 2012 12:02:15 +0000 (07:02 -0500)
commit18c7fefb91c0fbfd1d9b69b7cd55317bc7d50284
treeeb8eba04b67a133d18f90b7cac21f9e72b5d9e56
parent28a33cbc24e4256c143dce96c7d93bf423229f92
mips,kgdb: fix recursive page fault with CONFIG_KPROBES

This fault was detected using the kgdb test suite on boot and it
crashes recursively due to the fact that CONFIG_KPROBES on mips adds
an extra die notifier in the page fault handler.  The crash signature
looks like this:

kgdbts:RUN bad memory access test
KGDB: re-enter exception: ALL breakpoints killed
Call Trace:
[<807b7548>] dump_stack+0x20/0x54
[<807b7548>] dump_stack+0x20/0x54

The fix for now is to have kgdb return immediately if the fault type
is DIE_PAGE_FAULT and allow the kprobe code to decide what is supposed
to happen.

Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/mips/kernel/kgdb.c