]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Simplify user fault fixup handling.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 29 Sep 2005 04:06:47 +0000 (21:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 29 Sep 2005 04:06:47 +0000 (21:06 -0700)
commit0ee428a5d04cc36b42bff9809efa3974a37d436f
tree9f24fab33f795a69bb2dc43a8f3613392762ff02
parent0cd3b6aedfe4c9169806ccf2c43659ce63c29b17
[SPARC64]: Simplify user fault fixup handling.

Instead of doing byte-at-a-time user accesses to figure
out where the fault occurred, read the saved fault_address
from the current thread structure.

For the sake of defensive programming, if the fault_address
does not fall into the user buffer range, simply assume the
whole area faulted.  This will cause the fixup for
copy_from_user() to clear the entire kernel side buffer.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/lib/user_fixup.c
arch/sparc64/mm/fault.c
include/asm-sparc64/uaccess.h