qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user/host/s390: Add vector instructions to host_signal


From: Thomas Huth
Subject: Re: [PATCH] linux-user/host/s390: Add vector instructions to host_signal_write()
Date: Fri, 23 Sep 2022 11:04:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 20/09/2022 13.39, Ilya Leoshkevich wrote:
The new noexec test fails on s390x with "unexpected SEGV". This test
overwrites code using libc's memcpy(), which uses VSTL instruction.
host_signal_write() does not recognize it, which causes SEGV to be
incorrectly forwarded to the test.

Add all vector instructions that write to memory to
host_signal_write().

Reported-by: Thomas Huth <thuth@redhat.com>
Fixes: ab12c95d3f19 ("target/s390x: Make translator stop before the end of a 
page")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
  linux-user/include/host/s390/host-signal.h | 25 ++++++++++++++++++++++
  1 file changed, 25 insertions(+)

Thanks, this fixes the segfault for me, indeed!

Tested-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]