sparc64: Prepare to move to more saner user copy exception handling.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 21:47:54 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2016 18:31:58 +0000 (11:31 -0700)
commit83a17d2661674d8c198adc0e183418f72aabab79
treedfda84fcce63b99268c872b9264e302e4dc8f13c
parentaa95ce361ed95c72ac42dcb315166bce5cf1a014
sparc64: Prepare to move to more saner user copy exception handling.

The fixup helper function mechanism for handling user copy fault
handling is not %100 accurrate, and can never be made so.

We are going to transition the code to return the running return
return length, which is always kept track in one or more registers
of each of these routines.

In order to convert them one by one, we have to allow the existing
behavior to continue functioning.

Therefore make all the copy code that wants the fixup helper to be
used return negative one.

After all of the user copy routines have been converted, this logic
and the fixup helpers themselves can be removed completely.

Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
arch/sparc/include/asm/uaccess_64.h
arch/sparc/kernel/head_64.S
arch/sparc/lib/GENcopy_from_user.S
arch/sparc/lib/GENcopy_to_user.S
arch/sparc/lib/NG2copy_from_user.S
arch/sparc/lib/NG2copy_to_user.S
arch/sparc/lib/NG4copy_from_user.S
arch/sparc/lib/NG4copy_to_user.S
arch/sparc/lib/NGcopy_from_user.S
arch/sparc/lib/NGcopy_to_user.S
arch/sparc/lib/U1copy_from_user.S
arch/sparc/lib/U1copy_to_user.S
arch/sparc/lib/U3copy_from_user.S
arch/sparc/lib/U3copy_to_user.S
arch/sparc/lib/copy_in_user.S