[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/15] linux-user/s390x: Fix sigcontext sregs value
From: |
Richard Henderson |
Subject: |
[PATCH v2 06/15] linux-user/s390x: Fix sigcontext sregs value |
Date: |
Wed, 28 Apr 2021 12:33:59 -0700 |
Using the host address of &frame->sregs is incorrect.
We need the guest address.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/s390x/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
--
2.25.1
- [PATCH v2 01/15] linux-user/s390x: Fix sigframe types, (continued)
- [PATCH v2 01/15] linux-user/s390x: Fix sigframe types, Richard Henderson, 2021/04/28
- [PATCH v2 02/15] linux-user/s390x: Use uint16_t for signal retcode, Richard Henderson, 2021/04/28
- [PATCH v2 03/15] linux-user/s390x: Remove PSW_ADDR_AMODE, Richard Henderson, 2021/04/28
- [PATCH v2 04/15] linux-user/s390x: Remove restore_sigregs return value, Richard Henderson, 2021/04/28
- [PATCH v2 05/15] linux-user/s390x: Fix trace in restore_regs, Richard Henderson, 2021/04/28
- [PATCH v2 06/15] linux-user/s390x: Fix sigcontext sregs value,
Richard Henderson <=
- [PATCH v2 07/15] linux-user/s390x: Use tswap_sigset in setup_rt_frame, Richard Henderson, 2021/04/28
- [PATCH v2 10/15] linux-user/s390x: Set psw.mask properly for the signal handler, Richard Henderson, 2021/04/28
- [PATCH v2 08/15] linux-user/s390x: Tidy save_sigregs, Richard Henderson, 2021/04/28
- [PATCH v2 09/15] linux-user/s390x: Clean up single-use gotos in signal.c, Richard Henderson, 2021/04/28
- [PATCH v2 11/15] linux-user/s390x: Add stub sigframe argument for last_break, Richard Henderson, 2021/04/28