Re: [PATCH 1/2] linux-user/ppc: Fix sigmask endianness issue in sigreturn

2024-10-25 Thread Ilya Leoshkevich
On Fri, 2024-10-25 at 16:53 +0300, Michael Tokarev wrote: > 17.10.2024 15:54, Ilya Leoshkevich wrote: > > 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() i

Re: [PATCH 1/2] linux-user/ppc: Fix sigmask endianness issue in sigreturn

2024-10-25 Thread Michael Tokarev
17.10.2024 15:54, Ilya Leoshkevich wrote: 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-of

Re: [PATCH 1/2] linux-user/ppc: Fix sigmask endianness issue in sigreturn

2024-10-20 Thread Philippe Mathieu-Daudé
On 17/10/24 09:54, Ilya Leoshkevich wrote: 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. These function names are confusing. Fixes: bcd4933a23f1 ("lin

Re: [PATCH 1/2] linux-user/ppc: Fix sigmask endianness issue in sigreturn

2024-10-20 Thread Richard Henderson
On 10/17/24 05:54, Ilya Leoshkevich wrote: 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-o

[PATCH 1/2] linux-user/ppc: Fix sigmask endianness issue in sigreturn

2024-10-17 Thread Ilya Leoshkevich
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 --- linux-user/ppc/