Received: by 10.213.65.68 with SMTP id h4csp723395imn; Fri, 6 Apr 2018 07:53:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/QLxIS3uTWEHRjn5Csl0J2PPd3mhixKb1HLmHy+8aFec02lG5jJGeeuMg9mlU6OoH2sdym X-Received: by 10.99.55.1 with SMTP id e1mr18006015pga.237.1523026384555; Fri, 06 Apr 2018 07:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026384; cv=none; d=google.com; s=arc-20160816; b=ywCvNMDpI/uXyt9ByPjHGypRajF2/Q9+GKfjHtzD0v2KU5BBSnq973+gSg8up33Q08 ER5oQx/pnlmyRuoVjptzIl7lAexAXjqRkrvn4fnLDpwc+vf4RrsnVnbo5ovz5sKS5D1X PXy9QEp14EdnPAQOZWCs1+xwyFODlf3LVw5oKaBLGxRQWq6uSseacoL3OgO9HtSGC1FN lIjItmi8WDMbqMucLgPF3u56mtRXs9Ev9UXrCO/g5rfTkVuJ9RPO/lB00vobg/b8LKK0 Q3CHboW5j8rjjluOkrP5jIi42EnLbQUuG19WDNfvsKCgCqi9lbplitzjeXU8Eb7CDBr7 qw2A== 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=K7u0bSr7Z/sjaE7i/W5P5Nqxr3QuFvpPEF8zD+HUyUM=; b=vZLHpohjGtWrM5jF2BlX3POnYgmrRrlgYrZW1E6KbnjHvaEG0aAbJ6ZAhZ2cjq3kHe FfOH6HIg+0q3+ZiiXVKuQ8ptdnuoXgFPgc3rnUK09BjBuXe3Vzc7Yy984QL46waZ0Jav XdoBOI6eWisNf8LSkEhOxFlWevUoJbtS9XGlwGUx8nDk13iwcnhJQUWgLJrR09vm5guU BdDy22GXdPRo9O6q+8st9m8HyjkNvO/nQHarm+hsKannTN4RoqQ9RwBEt0z5bf/O2fbq YQk62d7FOGhYa5SqgDNbxbu8Zrf216Cc0vTf810TTpVzw3b795FO1pYzF8nvuD1sS6/v BJKA== 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 v14-v6si7146081ply.122.2018.04.06.07.52.50; Fri, 06 Apr 2018 07:53:04 -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 S1755507AbeDFOvw (ORCPT + 99 others); Fri, 6 Apr 2018 10:51:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57620 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755410AbeDFNcm (ORCPT ); Fri, 6 Apr 2018 09:32:42 -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 6FABF8A5; Fri, 6 Apr 2018 13:32:41 +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.9 001/102] ARM: 8746/1: vfp: Go back to clearing vfp_current_hw_state[] Date: Fri, 6 Apr 2018 15:22:42 +0200 Message-Id: <20180406084331.656740008@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 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.9-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; }