sparc64: Fix top-level fault handling bugs.
authorDavid S. Miller <davem@davemloft.net>
Tue, 29 Apr 2014 06:52:11 +0000 (23:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2014 01:24:16 +0000 (09:24 +0800)
commitf2701cd605156eee1cd5edbc709f989a8bbe218a
tree21525ec9e82dd24cfcfcb69ca3cb3c6a9645271c
parentff156a9ba7c160c8fc1c8d4bb0fb935771e105dc
sparc64: Fix top-level fault handling bugs.

[ Upstream commit 70ffc6ebaead783ac8dafb1e87df0039bb043596 ]

Make get_user_insn() able to cope with huge PMDs.

Next, make do_fault_siginfo() more robust when get_user_insn() can't
actually fetch the instruction.  In particular, use the MMU announced
fault address when that happens, instead of calling
compute_effective_address() and computing garbage.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/mm/fault_64.c