Skip to content
Commit 0ede1c40 authored by David S. Miller's avatar David S. Miller
Browse files

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: ee841d0a ("sparc64: Convert U3copy_{from,to}_user to accurate exception reporting.")
Reported-by: default avatarMikael Pettersson <mikpelinux@gmail.com>
Tested-by: default avatarMikael Pettersson <mikpelinux@gmail.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8cd3ec51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment