sparc64: Fix DAX handling via userspace access from kernel.
authorDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 06:56:51 +0000 (22:56 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:42 +0000 (17:52 -0700)
commitb9a94094113f73585f651143113c0c2478ebf34e
treea2174ce71832ddc71c7de44154594cdc17cbccbe
parent21ef40e66f6186898ea4240b83a0f1c7424953d0
sparc64: Fix DAX handling via userspace access from kernel.

[ Upstream commit fcd26f7ae2ea5889134e8b3d60a42ce8b993c95f ]

If we do a userspace access from kernel mode, and get a
data access exception, we need to check the exception
table just like a normal fault does.

The spitfire DAX handler was doing this, but such logic
was missing from the sun4v DAX code.

Reported-by: Dennis Gilmore <dgilmore@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/kernel/traps.c