mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
s390/compat: fix setup_frame32
commit8b09ca746a
upstream. Git commitc60a03fee0
("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:c60a03fee0
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e025da42c8
commit
4d03a2e6b9
|
@ -379,7 +379,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,
|
||||||
if (put_compat_sigset((compat_sigset_t __user *)frame->sc.oldmask,
|
if (put_compat_sigset((compat_sigset_t __user *)frame->sc.oldmask,
|
||||||
set, sizeof(compat_sigset_t)))
|
set, sizeof(compat_sigset_t)))
|
||||||
return -EFAULT;
|
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;
|
return -EFAULT;
|
||||||
|
|
||||||
/* Store registers needed to create the signal frame */
|
/* Store registers needed to create the signal frame */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user