Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

new helper: restore_altstack()

to be used by rt_sigreturn instances

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 5c49574f 031b6566

+9
+2
include/linux/signal.h
··· 385 385 386 386 void signals_init(void); 387 387 388 + int restore_altstack(const stack_t __user *); 389 + 388 390 #endif /* _LINUX_SIGNAL_H */
+7
kernel/signal.c
··· 3103 3103 return error; 3104 3104 } 3105 3105 3106 + int restore_altstack(const stack_t __user *uss) 3107 + { 3108 + int err = do_sigaltstack(uss, NULL, current_user_stack_pointer()); 3109 + /* squash all but EFAULT for now */ 3110 + return err == -EFAULT ? err : 0; 3111 + } 3112 + 3106 3113 #ifdef __ARCH_WANT_SYS_SIGPENDING 3107 3114 3108 3115 /**