aboutsummaryrefslogtreecommitdiff
path: root/linux-user/s390x
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-04-28 12:33:59 -0700
committerLaurent Vivier <laurent@vivier.eu>2021-05-15 21:44:38 +0200
commit4e4a08200b6ed60055c45a0f05f4515365785a92 (patch)
tree58f1ab6b61ca5ca169ccf1e51a8daceaa4e5f310 /linux-user/s390x
parentbd45be9f5ffcaae68d2d0de2962cdc9fa20cb832 (diff)
linux-user/s390x: Fix sigcontext sregs value
Using the host address of &frame->sregs is incorrect. We need the guest address. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20210428193408.233706-7-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/s390x')
-rw-r--r--linux-user/s390x/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c
index dcc6f7bc02..f8515dd332 100644
--- a/linux-user/s390x/signal.c
+++ b/linux-user/s390x/signal.c
@@ -142,7 +142,7 @@ void setup_frame(int sig, struct target_sigaction *ka,
save_sigregs(env, &frame->sregs);
- __put_user((abi_ulong)(unsigned long)&frame->sregs, &frame->sc.sregs);
+ __put_user(frame_addr + offsetof(sigframe, sregs), &frame->sc.sregs);
/* Set up to return from userspace. If provided, use a stub
already in userspace. */