diff options
| author | Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> | 2017-01-31 20:05:17 -0200 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2017-02-16 15:29:30 +0100 |
| commit | 26920a2961f7cc86bfbdb2184c0ec261d5629c2f (patch) | |
| tree | 2ada2985c606d7b19b0b6cca105d2e5a951a0832 /linux-user/syscall_types.h | |
| parent | 35f2fd04ce8bd3eaad4b7790abb19fa2a56d7314 (diff) | |
| download | focaccia-qemu-26920a2961f7cc86bfbdb2184c0ec261d5629c2f.tar.gz focaccia-qemu-26920a2961f7cc86bfbdb2184c0ec261d5629c2f.zip | |
linux-user: fill target sigcontext struct accordingly
A segfault is noticed when an emulated program uses any of ucontext regs fields. Risu detected this issue in the following operation when handling a signal: ucontext_t *uc = (ucontext_t*)uc; uc->uc_mcontext.regs->nip += 4; but this works fine: uc->uc_mcontext.gp_regs[PT_NIP] += 4; This patch set regs to a valid location as well as other sigcontext fields. Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <1485900317-3256-1-git-send-email-joserz@linux.vnet.ibm.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall_types.h')
0 files changed, 0 insertions, 0 deletions