Properly initialize the address value in siginfo for Linux binaries on
amd64. amd64 has a separate tf_addr in the trapframe unlike i386 which reuses tf_err to pass the address to signals.
This commit is contained in:
parent
674c5f6bbc
commit
6eac914455
@ -327,7 +327,7 @@ linux_rt_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
|
||||
/* Fill in POSIX parts */
|
||||
frame.sf_si.lsi_signo = sig;
|
||||
frame.sf_si.lsi_code = code;
|
||||
frame.sf_si.lsi_addr = PTROUT(regs->tf_err);
|
||||
frame.sf_si.lsi_addr = PTROUT(regs->tf_addr);
|
||||
|
||||
/*
|
||||
* Build the signal context to be used by sigreturn.
|
||||
|
Loading…
x
Reference in New Issue
Block a user