Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2427980imj; Mon, 18 Feb 2019 05:56:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IaouKV01TVcRIVmoBB8WNWYPBM8cTIBlRE+ga85WMn6BQ0R1/HVff35YKZrier2OLbepoHY X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr25333927plb.240.1550498206289; Mon, 18 Feb 2019 05:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550498206; cv=none; d=google.com; s=arc-20160816; b=hKeIR/P2w8aVf2p1BGRqFbgZ2qbXoqsPJ+SBToSB5+3c2/4Cw0AUNtpYkj12T3ft3t wxcElftDVBeDKTdbSXNhhK5Ex4T4RbOIOV38T+j9OvMQtRm2iYROtjmw9NBQW9V9ou/F VUV4enYZvhFO3MtkWwU0xyEQwePusqLOCDzzOqXmWhKFVPZRoA5ubAImxNTA/7SEbCM7 XMuv/dnlv8kkKp7a7cCmF/SLm2dYaTDam+rLVknyL0idNUG1b5aa59l7aAEpYjOND9+e PLSgqjpGqXuI2MeUBJBlx3Yt0f0qFzhURr32Yesj7CGH4q5IOHiRLv9u7sqNgK+FVi94 spSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LT4yw1TMnt6NRA8ccNS0ImAW9WYmO1xKeOsEaAonMuk=; b=SdBLJTyeNOQnYCZ2n7psvnsJMLPbfC48MR8pRW0YGtcn+mMSGLlj3HHY9FHTdF9/5a +p66BVejJ8NCFj9QhkUOlIQ6yNibQeBhvO4y3xLgrut+Uy2IgJu9fkrOE4LoN1RYR4kH ftoQbAghMjRz7JFYJsRQdLcYk1v3Hm4MeI6sy57HNI87xisSjuwGCpT4y9mxHP2H7Y3e AwZOfEtAeqfHlxVlwvC0GmAjfrFZIzy5WjufLRXRbfh/m+GhwjC9SfKH0U/rXl7h2qEA w+2kNnqM93cF5tOBrEIkf6qmdyWWJ/qJ23kRQtgYR7slpQFkzEFvQJo3q8RhQr/nG/tW OdxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KU6QIKiF; 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 k20si13172713pfb.215.2019.02.18.05.56.30; Mon, 18 Feb 2019 05:56:46 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=KU6QIKiF; 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 S1733210AbfBRNyd (ORCPT + 99 others); Mon, 18 Feb 2019 08:54:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:34446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732774AbfBRNyb (ORCPT ); Mon, 18 Feb 2019 08:54:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 718A821900; Mon, 18 Feb 2019 13:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498071; bh=HFufkqv2fhHUnqbo4PnHdllBgGv/opLC7W2+NgFkfNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KU6QIKiFegT5JC8mwuMDbd8BzaFSRYZJLCRAATExXR1Rn+F8v0EXcoPvH+s2M5eCv JsJn/Ye1CtoqQ9ltPQoxP/9GbDExLvZ0e6WA0hysOQVpPaz/QuhRgleCIqlt+LPKXm m7GCRfaabFOk+kJBWG+61RCTNlW1RLG/cVDAmK6c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Binderman , Julien Thierry , Russell King , "David A. Long" , Sasha Levin Subject: [PATCH 4.14 14/62] ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc Date: Mon, 18 Feb 2019 14:43:20 +0100 Message-Id: <20190218133507.053527842@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ Commit 5df7a99bdd0de4a0480320264c44c04543c29d5a upstream. In vfp_preserve_user_clear_hwstate, ufp_exc->fpinst2 gets assigned to itself. It should actually be hwstate->fpinst2 that gets assigned to the ufp_exc field. Fixes commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state"). Reported-by: David Binderman Signed-off-by: Julien Thierry Signed-off-by: Russell King Signed-off-by: David A. Long Reviewed-by: Julien Thierry Signed-off-by: Sasha Levin --- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 6bacd69c9e81..8e11223d32a1 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -579,7 +579,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp, */ ufp_exc->fpexc = hwstate->fpexc; ufp_exc->fpinst = hwstate->fpinst; - ufp_exc->fpinst2 = ufp_exc->fpinst2; + ufp_exc->fpinst2 = hwstate->fpinst2; /* Ensure that VFP is disabled. */ vfp_flush_hwstate(thread); -- 2.19.1