From: Andreas Arnez Date: Wed, 13 Mar 2024 16:47:59 +0000 (+0100) Subject: s390x: Fix definedness of syscall return value register X-Git-Tag: VALGRIND_3_23_0~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2106806185cb2ff3177b66d319d23c41cd668ad6;p=thirdparty%2Fvalgrind.git s390x: Fix definedness of syscall return value register The memcheck test case for the close_range syscall showed that Valgrind on s390x doesn't correctly set the definedness of the return value register after having invoked a system call. Fix this. --- diff --git a/coregrind/m_syswrap/syswrap-main.c b/coregrind/m_syswrap/syswrap-main.c index 20d02c7fa..eae3f8a62 100644 --- a/coregrind/m_syswrap/syswrap-main.c +++ b/coregrind/m_syswrap/syswrap-main.c @@ -1562,6 +1562,8 @@ void putSyscallStatusIntoGuestState ( /*IN*/ ThreadId tid, } else { gst->guest_r2 = sr_Res(canonical->sres); } + VG_TRACK( post_reg_write, Vg_CoreSysCall, tid, + OFFSET_s390x_r2, sizeof(UWord) ); # elif defined(VGP_mips32_linux) VexGuestMIPS32State* gst = (VexGuestMIPS32State*)gst_vanilla;