diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-18 22:27:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 12:59:14 -0800 |
commit | bf7ef7e4c2fdcba5862aca37e49a66172069b44f (patch) | |
tree | 26439a463bf14d451f7da4551fb0833fe12ad751 /sound | |
parent | 1c4e871038f17769d943d4473c339171fed70f45 (diff) | |
download | kernel_samsung_tuna-bf7ef7e4c2fdcba5862aca37e49a66172069b44f.zip kernel_samsung_tuna-bf7ef7e4c2fdcba5862aca37e49a66172069b44f.tar.gz kernel_samsung_tuna-bf7ef7e4c2fdcba5862aca37e49a66172069b44f.tar.bz2 |
sparc64: not any error from do_sigaltstack() should fail rt_sigreturn()
commit fae2ae2a900a5c7bb385fe4075f343e7e2d5daa2 upstream.
If a signal handler is executed on altstack and another signal comes,
we will end up with rt_sigreturn() on return from the second handler
getting -EPERM from do_sigaltstack(). It's perfectly OK, since we
are not asking to change the settings; in fact, they couldn't have been
changed during the second handler execution exactly because we'd been
on altstack all along. 64bit sigreturn on sparc treats any error from
do_sigaltstack() as "SIGSEGV now"; we need to switch to the same semantics
we are using on other architectures.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions