Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1183867imj; Thu, 14 Feb 2019 02:35:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IZNvZElM58ythFYznAsoqY7AzNx5r8UrK8fVp9n7iGcnFB7WxMAR8N7JnlYREosvjdxXskO X-Received: by 2002:a17:902:684:: with SMTP id 4mr3368666plh.3.1550140518148; Thu, 14 Feb 2019 02:35:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550140518; cv=none; d=google.com; s=arc-20160816; b=baAx8SB0cQUuFrDCDnO0ENy6bz7RWKZdQmSPzfLJjiIEZPT4A/Ak9OElqKgSDeMVSF L6hJX3avwM6L43KrDEJQvzG8ve+4K6eG58Fel8YUbCFsUNzADfNTSEaRrtBCH6V0pWgn P7/3igijZ/lKTC2b9t17llUqOyvZMzaeykT46uYkpXD6ROBVn1qbeeWc8lpBh22PB/E9 j3Q5FbwM75kGPycDgoj4ViKTNDv7RQU5eHi1lUhePOwL54PjBsOF7KIqD0UJ5ws5kraK r0e1oGEMC9Poue927NfAXgB6ZfEom+8siJ5kRBUyeM8+SqWhGhPd9lmOCdSVW+QlE1U1 9NfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WeFsULKehq8jGUkRqP49XwEy/ibmR7uFLb5YfBUBkPg=; b=lcRN62HhuhV5PHGjf+tTKEuzvN7AMM9JuRZYdyMvot9uFDBK9zgiyF6Sm+SSW2PPON zBMGoNlco17Zn59Da2Jy+z0A4AVZ93I+hfQ5WsdsMnd9rOZ9u6KR93+c+iuz/HwCG1cX HCK1VGAzY2SyoCYW3FuQCdqaWcdgUwKB0ddK13kpC7DmXF9g7FLK/36YXO/7wzekKSHL YuUDqYXVMz1XyqRCvQRUliHkLLKWmPjWuLjz7khJzNMAx37bd3CqY+y7eB9GkVGBtjnS u7etqOUQD/KO4VrB/x4DLvhslZzo41jAHgknWYUVRKTHiMa3OaUE5xVK1krWfVU3xvcd B62A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R3lYUvOz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si370919pgb.276.2019.02.14.02.35.01; Thu, 14 Feb 2019 02:35:18 -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=@linaro.org header.s=google header.b=R3lYUvOz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393261AbfBNCLb (ORCPT + 99 others); Wed, 13 Feb 2019 21:11:31 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43567 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403926AbfBNCKj (ORCPT ); Wed, 13 Feb 2019 21:10:39 -0500 Received: by mail-qt1-f194.google.com with SMTP id y4so5162994qtc.10 for ; Wed, 13 Feb 2019 18:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WeFsULKehq8jGUkRqP49XwEy/ibmR7uFLb5YfBUBkPg=; b=R3lYUvOzi0+V8DbmxPIDUt1Dx4wG26aUxaGi4hDa/1pCCNVDrIONxfIgRzxE9Fpe3g DWgiPypw8lWYvB/vI7+5a1+CpsDxeOGtZInC8/JXrtr3sWx5Z6PThtz1jsIptgrnlfXg XqSo6pLz582sgBt85uVU/bmxPCLCU5682nsFQ182bIGROLIl+00I6pxEU2w2kpFOEcY/ t5dc3c98u93YJbs2c9PQkAYPxVGx9/atVR6lt5sxJk11Yg12vsY+ndWehKQ7ndsRa4US /4/angB3m+fL2vTcIBlbfH2a9nMggpk2lIfSXo81L7KwIpJV9d4mkeQYFk1pWuBaD6yg S4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WeFsULKehq8jGUkRqP49XwEy/ibmR7uFLb5YfBUBkPg=; b=P38T8zz84KjwxuW7IioOAWgX7U/NO9gtcXMct0Kyt9Ia9WVDuHDwcIvsY+0VFNzcNg 4ijEj/zTwYM1m10uVDgIrqCBu0pV26NGHjURF2JHAMn0QK1HNzYS0XgInEzhmUHqTuTU Y2xD+Z0aUy9mkZc9cd5ikremBeq95rYdZ5K3055fBrRgb+AvP+JHCGTiKgMVw09R4UJE VzQj9wwuiEVIh89MOpqNkKiAIYVsKBVkJG+RvjGCw0a00dcCRY4XCHfM11wo++RiKrkk mC5XL7ne5k2LAu1oWUZVpj6iXGCkKE1b5rXFU5IbGrwlRTLlKt5L28IuOJsUryvdnH7Z jrug== X-Gm-Message-State: AHQUAubJjaN/pi8fNOFZTn1adPdoq/cZINixiauSKjQ/nwG2LH045nqh H1QmqFClqykJ0hMEMSBL7fcaRA== X-Received: by 2002:ac8:2de4:: with SMTP id q33mr1050917qta.358.1550110238505; Wed, 13 Feb 2019 18:10:38 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id d63sm1091575qka.22.2019.02.13.18.10.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 18:10:37 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.14 V2 10/17] ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc Date: Wed, 13 Feb 2019 21:10:15 -0500 Message-Id: <20190214021022.5313-11-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214021022.5313-1-dave.long@linaro.org> References: <20190214021022.5313-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julien Thierry 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 --- 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.17.1