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 <th...@redhat.com>
Fixes: ab12c95d3f19 ("target/s390x: Make translator stop before the end of a 
page")
Signed-off-by: Ilya Leoshkevich <i...@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 <th...@redhat.com>


Reply via email to