mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:16:43 +07:00
5598473a5b
If we can't push the pending register windows onto the user's stack, we disallow signal delivery even if the signal would be delivered on a valid seperate signal stack. Add a register window save area in the signal frame, and store any unsavable windows there. On sigreturn, if any windows are still queued up in the signal frame, try to push them back onto the stack and if that fails we kill the process immediately. This allows the debug/tst-longjmp_chk2 glibc test case to pass. Signed-off-by: David S. Miller <davem@davemloft.net>
10 lines
326 B
C
10 lines
326 B
C
#ifndef _SIGUTIL_H
|
|
#define _SIGUTIL_H
|
|
|
|
int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu);
|
|
int restore_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu);
|
|
int save_rwin_state(int wsaved, __siginfo_rwin_t __user *rwin);
|
|
int restore_rwin_state(__siginfo_rwin_t __user *rp);
|
|
|
|
#endif /* _SIGUTIL_H */
|