mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 03:44:08 +00:00
new helper: restore_altstack()
to be used by rt_sigreturn instances Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
031b656698
commit
5c49574ffd
2 changed files with 9 additions and 0 deletions
|
@ -385,4 +385,6 @@ int unhandled_signal(struct task_struct *tsk, int sig);
|
||||||
|
|
||||||
void signals_init(void);
|
void signals_init(void);
|
||||||
|
|
||||||
|
int restore_altstack(const stack_t __user *);
|
||||||
|
|
||||||
#endif /* _LINUX_SIGNAL_H */
|
#endif /* _LINUX_SIGNAL_H */
|
||||||
|
|
|
@ -3103,6 +3103,13 @@ out:
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int restore_altstack(const stack_t __user *uss)
|
||||||
|
{
|
||||||
|
int err = do_sigaltstack(uss, NULL, current_user_stack_pointer());
|
||||||
|
/* squash all but EFAULT for now */
|
||||||
|
return err == -EFAULT ? err : 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __ARCH_WANT_SYS_SIGPENDING
|
#ifdef __ARCH_WANT_SYS_SIGPENDING
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue