Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c49574f authored by Al Viro's avatar Al Viro
Browse files

new helper: restore_altstack()



to be used by rt_sigreturn instances

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 031b6566
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -385,4 +385,6 @@ int unhandled_signal(struct task_struct *tsk, int sig);

void signals_init(void);

int restore_altstack(const stack_t __user *);

#endif /* _LINUX_SIGNAL_H */
+7 −0
Original line number Diff line number Diff line
@@ -3103,6 +3103,13 @@ out:
	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

/**