mbox series

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

Message ID 20241017125811.447961-1-iii@linux.ibm.com (mailing list archive)
Headers show
Series linux-user/ppc: Fix sigmask endianness issue in sigreturn | expand

Message

Ilya Leoshkevich Oct. 17, 2024, 12:54 p.m. UTC
Hi,

This series fixes an issue where an emulated ppc64le process running on
s390x attempting to wake up a sigwait()ing thread would instead
terminate itself. Patch 1 is the fix, patch 2 is a testcase extracted
from the real-world scenario.

Best regards,
Ilya

Ilya Leoshkevich (2):
  linux-user/ppc: Fix sigmask endianness issue in sigreturn
  tests/tcg: Test that sigreturn() does not corrupt the signal mask

 linux-user/ppc/signal.c                 |  2 +-
 tests/tcg/multiarch/sigreturn-sigmask.c | 51 +++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 tests/tcg/multiarch/sigreturn-sigmask.c

Comments

Richard Henderson Oct. 22, 2024, 5:52 p.m. UTC | #1
On 10/17/24 05:54, Ilya Leoshkevich wrote:
> Hi,
> 
> This series fixes an issue where an emulated ppc64le process running on
> s390x attempting to wake up a sigwait()ing thread would instead
> terminate itself. Patch 1 is the fix, patch 2 is a testcase extracted
> from the real-world scenario.
> 
> Best regards,
> Ilya
> 
> Ilya Leoshkevich (2):
>    linux-user/ppc: Fix sigmask endianness issue in sigreturn
>    tests/tcg: Test that sigreturn() does not corrupt the signal mask
> 
>   linux-user/ppc/signal.c                 |  2 +-
>   tests/tcg/multiarch/sigreturn-sigmask.c | 51 +++++++++++++++++++++++++
>   2 files changed, 52 insertions(+), 1 deletion(-)
>   create mode 100644 tests/tcg/multiarch/sigreturn-sigmask.c
> 

Queued, thanks.

r~