]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/ppc: Fix sigmask endianness issue in sigreturn
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 17 Oct 2024 12:54:43 +0000 (14:54 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 10 Nov 2024 08:09:43 +0000 (11:09 +0300)
commit7ab3aff995d991c7601da269bb40d4a43efbd362
tree09014ee21338ad6ecc43fb56f89e5da57f36e6ef
parentdad762774e9ac5a19f3e2d3875cdd63f529dcf03
linux-user/ppc: Fix sigmask endianness issue in sigreturn

do_setcontext() copies the target sigmask without endianness handling
and then uses target_to_host_sigset_internal(), which expects a
byte-swapped one. Use target_to_host_sigset() instead.

Fixes: bcd4933a23f1 ("linux-user: ppc signal handling")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241017125811.447961-2-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 8704132805cf7a3259d1c5a073b3c2b92afa2616)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/ppc/signal.c