On 02/25/2017 10:05 PM, Laurent Vivier wrote:
From: Michael Karcher <karc...@physik.fu-berlin.de>

do_rt_sigreturn uses an uninitialised local variable instead of fetching
the old signal mask directly from the signal frame when restoring the mask,
so the signal mask is undefined after do_rt_sigreturn. As the signal
frame data is in target-endian order, target_to_host_sigset instead of
target_to_host_sigset_internal is required.

do_sigreturn is correct in using target_to_host_sigset_internal, because
get_user already did the endianness conversion.

Signed-off-by: Michael Karcher <karc...@physik.fu-berlin.de>
Signed-off-by: Laurent Vivier <laur...@vivier.eu>
---
 linux-user/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to