Received: by 10.192.165.156 with SMTP id m28csp266297imm; Tue, 17 Apr 2018 09:48:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx49kilNo6ClO+mrJLs1OSnvTBKpN7BFa6peFx8MysnaTUzDml+3fokQE5aklmNVIoCgCzDYV X-Received: by 10.98.198.195 with SMTP id x64mr2611287pfk.11.1523983683888; Tue, 17 Apr 2018 09:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523983683; cv=none; d=google.com; s=arc-20160816; b=MyGH/W3Nn6uUuNpULelMqXSpHkqSh0TItMkJNvT9uZQaGmTLY5az/LK49h+jNaKkb6 mFgi0okmzC4h6boWtc5YuvvJPDIoy0wmrFsfRizYhpCwdRIhVf+TmTZUk4AaaRE3k+PN QUpIsBnkmyceSDPCaU2OaqNLeX9Lyak9oCd+KILlXpVvwEvfvvLS+Xm1+cgn3Qcm51SI KZrAafj2l5pD1ewD5fznC5N6AX2mFH7FrCCJn8yRmjJbjTqlH6B+8I/uCBUubfDuN5r+ mZFTZVSlxr5FKXn3t1ZmWpihmefFeCRChJpexQZH5A6OXNbLGxRln8CmRRoJoGdRSEb3 Fm1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ycXCsW9xzF2Hjs/MtZyPKqrk/Vdq8olOuynLVk6kc5E=; b=hl/Vg+ziIXivKElHC912uVwF/46fDeQB173m5BFN/PZ1kyQO8y3cqy0iLZIMooGIjJ hteIsXdL7lgDmuGAD3HBoOvEskz+lcO3WLxL/cKRb38hNDmvWzZ/8Shy2r02bpKl1THL SwnjyoJOTfVICb+gBS03FE9xybx4Q7TI/UcCNBd98qC8NuDF5IpnpR4Os2dvzBToeRfA AeT87NV+j49AGE4dCHe2wuVdd6Gn6OeYdmA/nl8PuQjugtEHn5Xnbt2pvzPS6eAJc5ZR eTp1oI/XWJKOtBfQlONVHtGjbkNPr3h/B0pVLQJQsv0znn+9wj8GQ3CNu2vZBI9zJDst pSeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si8611018pfn.363.2018.04.17.09.47.49; Tue, 17 Apr 2018 09:48:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754866AbeDQQqL (ORCPT + 99 others); Tue, 17 Apr 2018 12:46:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34552 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754761AbeDQQFa (ORCPT ); Tue, 17 Apr 2018 12:05:30 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D6A81D14; Tue, 17 Apr 2018 16:05:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Heiko Carstens , Martin Schwidefsky Subject: [PATCH 4.15 46/53] s390/compat: fix setup_frame32 Date: Tue, 17 Apr 2018 17:59:11 +0200 Message-Id: <20180417155725.327864912@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155723.091120060@linuxfoundation.org> References: <20180417155723.091120060@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens commit 8b09ca746a643ca452cd41a522046a96ee5a55fd upstream. 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 Fixes: c60a03fee0e5 ("s390: switch to {get,put}_compat_sigset()") Cc: # v4.15+ Cc: Al Viro Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/kernel/compat_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/kernel/compat_signal.c +++ b/arch/s390/kernel/compat_signal.c @@ -379,7 +379,7 @@ static int setup_frame32(struct ksignal 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 */