From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753086AbcGUPC0 (ORCPT ); Thu, 21 Jul 2016 11:02:26 -0400 Received: from foss.arm.com ([217.140.101.70]:48639 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753028AbcGUPCY (ORCPT ); Thu, 21 Jul 2016 11:02:24 -0400 Date: Thu, 21 Jul 2016 16:02:20 +0100 From: Catalin Marinas To: Suzuki K Poulose Cc: mark.rutland@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: Fix incorrect per-cpu usage for boot CPU Message-ID: <20160721150219.GD16666@e104818-lin.cambridge.arm.com> References: <1469095975-976-1-git-send-email-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469095975-976-1-git-send-email-suzuki.poulose@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 21, 2016 at 11:12:55AM +0100, Suzuki K. Poulose wrote: > In smp_prepare_boot_cpu(), we invoke cpuinfo_store_boot_cpu to store > the cpuinfo in a per-cpu ptr, before initialising the per-cpu offset for > the boot CPU. This patch reorders the sequence to make sure we initialise > the per-cpu offset before accessing the per-cpu area. > > Commit 4b998ff1885eec ("arm64: Delay cpuinfo_store_boot_cpu") fixed the > issue where we modified the per-cpu area even before the kernel initialises > the per-cpu areas, but failed to wait until the boot cpu updated it's > offset. > > Fixes: commit 4b998ff1885eec ("arm64: Delay cpuinfo_store_boot_cpu") > Cc: > Cc: Will Deacon > Cc: Catalin Marinas > Signed-off-by: Suzuki K Poulose Applied. Thanks. -- Catalin