diff options
author | David S. Miller | 2017-08-04 09:47:52 -0700 |
---|---|---|
committer | David S. Miller | 2017-08-04 09:47:52 -0700 |
commit | 0ede1c401332173ab0693121dc6cde04a4dbf131 (patch) | |
tree | 7c2df177e5d95de4740fcf20c48c8a4415cae6cb /fs/9p/v9fs_vfs.h | |
parent | 8cd3ec51c0c329e996cb5b366355524eab694cd2 (diff) |
sparc64: Fix exception handling in UltraSPARC-III memcpy.
Mikael Pettersson reported that some test programs in the strace-4.18
testsuite cause an OOPS.
After some debugging it turns out that garbage values are returned
when an exception occurs, causing the fixup memset() to be run with
bogus arguments.
The problem is that two of the exception handler stubs write the
successfully copied length into the wrong register.
Fixes: ee841d0aff64 ("sparc64: Convert U3copy_{from,to}_user to accurate exception reporting.")
Reported-by: Mikael Pettersson <mikpelinux@gmail.com>
Tested-by: Mikael Pettersson <mikpelinux@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/9p/v9fs_vfs.h')
0 files changed, 0 insertions, 0 deletions