]> git.itanic.dy.fi Git - linux-stable/commit
Revert "sparc64: Fix __copy_{to,from}_user_inatomic defines."
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 16 Dec 2013 21:01:00 +0000 (15:01 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Apr 2014 00:15:36 +0000 (17:15 -0700)
commit667a65c16786d9a97c2b7f2b76945b8694755e32
tree31aef68312d72f8e7297df48be137b2cfeeb4818
parent3297037a222f69637a961f49b72daa6a755299db
Revert "sparc64: Fix __copy_{to,from}_user_inatomic defines."

[ Upstream commit 16932237f2978a2265662f8de4af743b1f55a209 ]

This reverts commit 145e1c0023585e0e8f6df22316308ec61c5066b2.

This commit broke the behavior of __copy_from_user_inatomic when
it is only partially successful. Instead of returning the number
of bytes not copied, it now returns 1. This translates to the
wrong value being returned by iov_iter_copy_from_user_atomic.

xfstests generic/246 and LTP writev01 both fail on btrfs and nfs
because of this.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/include/asm/uaccess_64.h