]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Fix up recursive fault in oops with unset TTB.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jul 2012 04:15:54 +0000 (13:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2012 14:52:46 +0000 (07:52 -0700)
commitdaa0139a3430417f55160daf93af4537cdc0e126
treef288e581585174baeec4dad88fece66b729ce65f
parentbd60cd238b0b3056cc610fad8f52fa5f0e6bdb38
sh: Fix up recursive fault in oops with unset TTB.

commit 90eed7d87b748f9c0d11b9bad64a4c41e31b78c4 upstream.

Presently the oops code looks for the pgd either from the mm context or
the cached TTB value. There are presently cases where the TTB can be
unset or otherwise cleared by hardware, which we weren't handling,
resulting in recursive faults on the NULL pgd. In these cases we can
simply reload from swapper_pg_dir and continue on as normal.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/mm/fault.c