Received: by 10.213.65.68 with SMTP id h4csp676734imn; Fri, 6 Apr 2018 07:10:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/AjsRW3KHHPT0Ilnb0HKPX4OtFCYPVQb684x6aZWECe4PINyS8FuC2H96BDxvO/GQCWZnn X-Received: by 2002:a17:902:2943:: with SMTP id g61-v6mr27898313plb.238.1523023800753; Fri, 06 Apr 2018 07:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523023800; cv=none; d=google.com; s=arc-20160816; b=scpe3yAiqsnJe5gBymUiXBExwqQR6HvIfD2PS73kg/WZ+qNPnH73kXICXeIaLYdwEa lTckVwqNyzV7uahayT1tyBXucsw7FTAqxe4NWYi8ciBq9x6sKXhfGZwdo0ffvsFV72JE MA1d6pR7G7YpN1tijVgEMQd6124J9zGGkTsA1XAdUb2ta1ROwEj1VWSUo6Q3xNeB2yb7 vuYiFQvd79smZFu6kUnedn+xdiokQy+ew4hPPVy64kshasZTfpsZn1E217fF/9aw38NQ YVGzjEmyvUVlXE8JFAovjiC0f/vy+iTN6rVIpEq7hw+4DU8fkHVccZN/6gcr/IulYuNb SDiw== 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=7A3PSD7KLaf4sagn266ZmICS2LqVRtGjgxi2iWymNgY=; b=Hk6QXnhtBCH3E6jASHGsmukFaDhawH5i+1iCpvOeg6yIxm+5HZ9DTUSljEVnjGGteO 16wc0VofFoEXucmN3VGVFAaJGyeSO+feYruK9vM8uP7qjd0oSPvhZme35ai+QEtWQZ6l 9cLjsVsoqgAFGEfQTLwLhsciDTelIENx5SvyXxw79bbXBbwzLH3LqWTWchOozapLCggp u1Ub9XZ6E5Reeja1mEcfln+t786iH4QnjZmQ8536WYz+qBl+ebP8TJh09Yto//oGvwfI KDKLB5D8RcrXA9f8ncjIRGEW7FHelCiMUuzUIadPxTvWYuvKV/Ta3/JhLqRJi0E53/XK dA8Q== 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 z85si8052845pfk.194.2018.04.06.07.09.46; Fri, 06 Apr 2018 07:10:00 -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 S1754509AbeDFOHg (ORCPT + 99 others); Fri, 6 Apr 2018 10:07:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36100 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756399AbeDFNlB (ORCPT ); Fri, 6 Apr 2018 09:41:01 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8516EDF4; Fri, 6 Apr 2018 13:41:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kohji Okuno , Fabio Estevam , Russell King Subject: [PATCH 4.15 02/72] ARM: 8746/1: vfp: Go back to clearing vfp_current_hw_state[] Date: Fri, 6 Apr 2018 15:23:37 +0200 Message-Id: <20180406084349.639625285@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084349.367583460@linuxfoundation.org> References: <20180406084349.367583460@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: Fabio Estevam commit 1328f02005bbbaed15b9d5b7f3ab5ec9d4d5268a upstream. Commit 384b38b66947 ("ARM: 7873/1: vfp: clear vfp_current_hw_state for dying cpu") fixed the cpu dying notifier by clearing vfp_current_hw_state[]. However commit e5b61bafe704 ("arm: Convert VFP hotplug notifiers to state machine") incorrectly used the original vfp_force_reload() function in the cpu dying notifier. Fix it by going back to clearing vfp_current_hw_state[]. Fixes: e5b61bafe704 ("arm: Convert VFP hotplug notifiers to state machine") Cc: linux-stable Reported-by: Kohji Okuno Signed-off-by: Fabio Estevam Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -648,7 +648,7 @@ int vfp_restore_user_hwstate(struct user */ static int vfp_dying_cpu(unsigned int cpu) { - vfp_force_reload(cpu, current_thread_info()); + vfp_current_hw_state[cpu] = NULL; return 0; }