Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1091757imj; Thu, 14 Feb 2019 00:51:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZOkSWj9SOASme7vCvPA6kdieaUksZAyLYc80aLtfrW8+Jnmbvd4PVnu8zjzrQYIztAQcva X-Received: by 2002:a63:dc53:: with SMTP id f19mr2626816pgj.406.1550134270863; Thu, 14 Feb 2019 00:51:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550134270; cv=none; d=google.com; s=arc-20160816; b=hzuZ6Wa6lhHqEJa6ek8gkc9zJ5SEfiL/jZcttZltrnQzMdPww1JShB9HPTaJf2el8t Mg7xHygnLe6xPO90bdnzh7ZEh1JMjnl0fkLxNiCskIKiHgAeOL0pnLiQRP6ff79Lbtcm 2LZ0wjNzvhCdPJTbYwPewLSHzoqRgXTzsM7oo6j0Z2GhHt7w/0JmsBpXbxxsyWqUMnw3 h6juezt1m3Tr7Jo3zk1kz3xX/To/IGo61JvrYwUXbF4JLZZNhZchImKFUzsp2UUk08rp iSPeCwqstkraUaCocF7XXVDtzR9xMMeJnMXf7oCgQk3yxkOD5b51BMBA2IRTQYrgdu9r Ke9w== 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=V4sXTOX89oZ7Fok9OP8IOaBv7K1P43zOxOdwYTTyDzQ=; b=M/VErPvOr0gPj/pEmLIiCx7kWNCX0SSF+ROctdl1O8KCUR8L0PXfxQPLMilcxESADo 2G0/0TdwxdNj73YTLDW8D2S2b5kdl1zVMVEiZRi9dv41VHV/LDhY8Vkxhb6CUHNdf4FZ Hm4B9KLOaOpgVAIzHn20oSsqLi5Gz9U2Lbj/WL+KhsZ7K+ZGh1ONHG//3c+NzmtkIhRX 3KDAiFbiHyRPaakIr1xJPFfb/jHg8UwN7Tw1sfTTmtoI0b3WlLsxAEVppCk0C6mEcQkR IkwiZzR6jprxRv9IZZOqYNm8IbfIDzBfDM0mhU3c16+B2Jdo6iB75co3R2f0uQTNAyYB oDfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W9Zi0TCq; 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 x23si1846070pgk.272.2019.02.14.00.50.55; Thu, 14 Feb 2019 00:51:10 -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=W9Zi0TCq; 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 S2394873AbfBMVd1 (ORCPT + 99 others); Wed, 13 Feb 2019 16:33:27 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41037 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436770AbfBMVck (ORCPT ); Wed, 13 Feb 2019 16:32:40 -0500 Received: by mail-qt1-f193.google.com with SMTP id v10so4454953qtp.8 for ; Wed, 13 Feb 2019 13:32:39 -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=V4sXTOX89oZ7Fok9OP8IOaBv7K1P43zOxOdwYTTyDzQ=; b=W9Zi0TCqR6GLe4u8bTBpGiG8zPTKlOJFU2ckqpfe2s80+2qTWssivV7jHs/ek8sdWO rgOvAd6BnlEO0c2l2e/WuwYC2mgjeu2vOOjfvrX3XKnr/PQqQpLYIy5bTrkYZQZJjuy5 F8vWjPLmbQcJ4fJMDW054jEFOmnnUCvtkHxGNpBg7Xv5d/3bphiKUfGAuKXDxyH7lzg7 yPHwOdtYmr1CR5lC/R1Jn0Er5t123dslHD1Ve8cuu3zzNxV9+YmHWjjLXmWaLzqWhMne /eixw3XbFLElxMoj1TsKUCIshZ8Pvsa8/FhQngugpw+WiP04ZJY+4HGq7ZsmStNgSP1D jL8g== 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=V4sXTOX89oZ7Fok9OP8IOaBv7K1P43zOxOdwYTTyDzQ=; b=NRrXpNqzZSWPTx7sTIMLkDRrm+R3Aet8dLw14jOU6MRSAipF7i7qoDXFe/Z+TnKJlH EWzacFFP3ivkuzDQaBXprn7bmb/fH8Z8424LCaLdlCJhpfbCEqGM3If5Y9JDOeFflPWC B7x3LSDVRh1biV+yw9Sifpnq4Kfse7cVXKWsbWlnhq5646pqzR09W989AuYSjTT5zRdZ 3yDsJ6ogrt18nZ5ydoLo9Pq6ec3LM9PqkAlmDACkEQFalU1tbJxcTY53tNzzibAeFR8D yM+TGFu4HTR3/wrxg4z60d04DazQNbb1f64Tevx/aUfagf3wK9UOayZEAnQ8PuVop2xB 8HDg== X-Gm-Message-State: AHQUAuapP2KzBsuPmi67zthMx/VEJZA9t1N9djdPz55+utjmICm8/GXr Yqo2jiPE8i9iCodlrzqTm7MVyg== X-Received: by 2002:a0c:e486:: with SMTP id n6mr237775qvl.210.1550093559547; Wed, 13 Feb 2019 13:32:39 -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 8sm382675qtr.7.2019.02.13.13.32.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:38 -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.19 10/17] ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc Date: Wed, 13 Feb 2019 16:32:16 -0500 Message-Id: <20190213213223.916-11-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-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 2b287d0d6bc2..66c5e693428a 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -578,7 +578,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