Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp97229imj; Thu, 14 Feb 2019 16:09:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZiZbGlh0uV8Sxi5fFmOIzPrcR3/dL0GCXC61VmQanM6L6mrUmuEqRpOFJna+oXl7U8iAD6 X-Received: by 2002:a17:902:7e4c:: with SMTP id a12mr7075300pln.340.1550189363196; Thu, 14 Feb 2019 16:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189363; cv=none; d=google.com; s=arc-20160816; b=z8QmvDkrwYHmqSuV5ueDik7CHsx7HHmx+6D3k6t8/i7em552iih1WZY+wxcwsw0CBM mlGrBtxX31J8WPIYTMQ3q01I+++hdm2zgLYuJ0DT2ZJuxRi/KWSdOf6j+2OA3HuD+ft1 XiwuOWR+VbIBI2ZKwvLIDTRGaMNeHrrNJmR73Ulo3hzh9Pp5qzVqXc7Sqx7PPk710cFV r3eVzfcSMlb7z7A5Y9h4EsMjpx20DfbscwqKAEuvLC/cxS1Oscj5IUkPLbOAYqOhyDG9 Vr//fLmSRLHIEYJiT1Jq4SPq102FANsLlEizugs87vo6IZyT3t5j94VOQo05CfbzXL5M Bcxg== 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=Al89NpupvfZvzBikplZ0PcauK1wQlzW/uE8qgbOT/SY=; b=qaVOY1RaYDyfRoYlh86W3+La79PXqMXr7AWj16IEHQArDVTtJQpxHJ9XkH9OOpsQy6 6/LB14Whn77h3eApSaQymrvRA1YFCouklBzRD4BGoxbVjqa1HfnQ1UPWxbjGRClmmN9k /pkDPyO8o3u6VloCwagjjhSm76WGjiagNCfu3w7z2gZXMmlqRedyQOexrT/7GSyF3BKo uShS1sD4Ko8+0FmRGdqcdw5IiSX6LormPfkEuSbL6M1kPJwF2DmOAZmgP8EhqYS3SOLt EI2HcCiYIXfajbWwkZeI0VLhMM5qhlpqWhdM+F1qCj3BvrdwZEfBQeKFKqM7iVGBIXbu NfUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJpr5xvt; 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 k186si4091963pgc.576.2019.02.14.16.09.07; Thu, 14 Feb 2019 16:09:23 -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=pJpr5xvt; 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 S2388641AbfBNOuq (ORCPT + 99 others); Thu, 14 Feb 2019 09:50:46 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46119 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439324AbfBNOtq (ORCPT ); Thu, 14 Feb 2019 09:49:46 -0500 Received: by mail-qt1-f196.google.com with SMTP id y20so7026983qtm.13 for ; Thu, 14 Feb 2019 06:49:45 -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=Al89NpupvfZvzBikplZ0PcauK1wQlzW/uE8qgbOT/SY=; b=pJpr5xvtUAjUJWpURhnPcWNTSV61J+pt4ZvWEWqt2dhyoDdRLyOfpnydSu3hiyOE4t byJLhaumPjfJZC/mz+3u+af6gynVCSCLBoeNPkZLsUCQpBl1HmhbBRQ79L0ALWEyw1Mc /kftsyY+4LQCpggccbtPJ/vAC4RW+LLEaZvQe1dEvw4CMiCPF+kcHhBPmQI3U2TiyNgT f7hkeGPUhCKhGWdrMZCkoqi0e7anvPePWhQJp2F16K4MVLOrZZnaIUDpqat8Ja8aflGh 8pa/7zlxlNjE+y/krS/ASmgb9chS0t4t52/6bUvhkMz/nN2zr5WQanfcCeq5myKYCKCa AWTA== 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=Al89NpupvfZvzBikplZ0PcauK1wQlzW/uE8qgbOT/SY=; b=ZAHAefWlhDRxrjmuiXzWsO57BkkTpZ7BXrQmpuQR8GtYrZgG/2UyGsMtu6QcUSkrkH 53KrQcrq/a3DiAF8HFWBUKF+Lo7+tMafbsdHpFOTAWj9OXnjT385ZvZHKHeBzOCNJu7n m49baTZsBq7uu+ltT03lDubFn25CcJa1Xc1JsxcGQplgDE3w6m6ze1XjDun8BbIh1mR2 nB9CCoQu359Uu+DZIrYWD7KXxF0RARubZV7ooOKHavlvClnc1iZiEgoaADvhzb75x8BR zjjaHeWFyZf6tv+GdvPshpnhuSKaEAzp7+xBvHX42iEu8yXJDFrwEwCqKBEBUzwLwKBr 9meA== X-Gm-Message-State: AHQUAuYh1UtTRp6511gh2P/IUiiuJa0on5Ha0hT8S7gI5TA0W2vrAQ02 I50eOoXFFU0iVAr/Ty11TXaDRQ== X-Received: by 2002:a0c:9e05:: with SMTP id p5mr3172793qve.246.1550155785194; Thu, 14 Feb 2019 06:49:45 -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 k66sm1498919qkc.25.2019.02.14.06.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:44 -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.9 09/16] ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc Date: Thu, 14 Feb 2019 09:49:23 -0500 Message-Id: <20190214144930.27539-10-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-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 df3fa52c0aa3..00dd8cf36632 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