diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2018-04-06 18:10:04 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-04-10 07:38:54 +0200 |
commit | 8b09ca746a643ca452cd41a522046a96ee5a55fd (patch) | |
tree | da8c9a3ca98220b2142e2edc43a83a3acb7d51cc /arch/s390/kernel | |
parent | aff304e7a0e8f926edafcd1e0e4f6da2866e9845 (diff) | |
download | linux-stable-8b09ca746a643ca452cd41a522046a96ee5a55fd.tar.gz linux-stable-8b09ca746a643ca452cd41a522046a96ee5a55fd.tar.bz2 linux-stable-8b09ca746a643ca452cd41a522046a96ee5a55fd.zip |
s390/compat: fix setup_frame32
Git commit c60a03fee0e5 ("s390: switch to {get,put}_compat_sigset()")
contains a typo and now copies the wrong pointer to user space.
Use the correct pointer instead.
Reported-and-tested-by: Stefan Liebler <stli@linux.vnet.ibm.com>
Fixes: c60a03fee0e5 ("s390: switch to {get,put}_compat_sigset()")
Cc: <stable@vger.kernel.org> # v4.15+
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/compat_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/compat_signal.c b/arch/s390/kernel/compat_signal.c index 18c1eeb847b2..6f2a193ccccc 100644 --- a/arch/s390/kernel/compat_signal.c +++ b/arch/s390/kernel/compat_signal.c @@ -279,7 +279,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set, if (put_compat_sigset((compat_sigset_t __user *)frame->sc.oldmask, set, sizeof(compat_sigset_t))) return -EFAULT; - if (__put_user(ptr_to_compat(&frame->sc), &frame->sc.sregs)) + if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) return -EFAULT; /* Store registers needed to create the signal frame */ |