]> Git Repo - qemu.git/commit
linux-user: fix do_rt_sigreturn on m68k linux userspace emulation
authorMichael Karcher <[email protected]>
Sat, 25 Feb 2017 11:05:17 +0000 (12:05 +0100)
committerLaurent Vivier <[email protected]>
Mon, 27 Feb 2017 22:10:02 +0000 (23:10 +0100)
commit59ebb6e451ffe5d4ccb5a62ee6646ed418361ef0
treeb034fc145cdcd159ff3f80dd5b2d83631b1939a3
parent3219de458c497e15fd3b0c3ba3c1952fc34fe3da
linux-user: fix do_rt_sigreturn on m68k linux userspace emulation

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 <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
Message-Id: <20170225110517[email protected]>
linux-user/signal.c
This page took 0.021143 seconds and 4 git commands to generate.