Received: by 10.213.65.68 with SMTP id h4csp643563imn; Fri, 6 Apr 2018 06:39:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+r0udEXdKe6nw6WyllZIjNwddso/EIwRnIHs5gkYiaWRO1r2AzjcR8enofg4LTb1J5XFZQ X-Received: by 2002:a17:902:1c1:: with SMTP id b59-v6mr27315231plb.325.1523021990211; Fri, 06 Apr 2018 06:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523021990; cv=none; d=google.com; s=arc-20160816; b=DRiDi4bwLN+CJL7gqdEDxMdOqMZ2tMn6ONf6UJ5rNtj8yvLTK8s1Mr+KgxzoooaW5l OmfBW97wyujZa4CUlV6YstxmMZyYyQ8yOfwqcbWMNdJOrZb1+efjvMkCrfKTfvWaQ/CJ V0LdKsuAI42HVge7n9dzJklZZFD0sxkco6bZKTr16r7bOsBRGu6yPheKuAoDIGwbL1dZ qL3O18/1tdiHmbU2DrDe6Ka1+YYo+8BSfsE7MIj5KLfWugM32w3C8D3Ot0leOE0x9i6w a3kzxJ+ro46Tp3AlVxfHQppPhtxmAqVXEPaZpc4rvYlXthcTkuI2EfoqkzIuieHL8kz0 qCSQ== 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=f7KqyBN8vmwGPqkS7qVBYEF4JshbKCcrqtxaMe/rsS8=; b=nzzMd/3k/gNaftMCGpQ22LB/KSN9k1R7IskGKro4UwsGeTBEG4YeYFUa5wQh+gN6xf R6Ukx2NqcA0fAy30iwRavETzUtC9S/QcZyJleF4J+dnmEufLDHN1lNF1hZ/OytUWbxoF BqMsMW88efSGRo7AUYsEODXHYNa/vQF3wZ/zgesMGM/lz4ww51Lyyj8akuluDiZKkpoa 88WuWsbn1zKmUvpV6lbfVi1nF0/oYI7/bLtSQbTVgVyyuKVrP+BKYoIkIE/oHrrMgIM8 FtimjzB4lYkfTdHH0Fdq+UCdWwoMX5dcYybUSXwv76MvVT9ALwEZFxuT0c9fZHJL2i7j YjJA== 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 s85si8053300pfi.32.2018.04.06.06.39.36; Fri, 06 Apr 2018 06:39:50 -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 S932364AbeDFNiA (ORCPT + 99 others); Fri, 6 Apr 2018 09:38:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33202 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932335AbeDFNh4 (ORCPT ); Fri, 6 Apr 2018 09:37:56 -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 EA793C23; Fri, 6 Apr 2018 13:37:55 +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.14 02/67] ARM: 8746/1: vfp: Go back to clearing vfp_current_hw_state[] Date: Fri, 6 Apr 2018 15:23:32 +0200 Message-Id: <20180406084341.575377214@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@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.14-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; }