Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4766285yba; Tue, 30 Apr 2019 04:09:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1aREeEt0DBypilQTqpWsjK4p6SPmHxw/2l4S03asEjpi58N7hjBhYf2p74pQM1Bk7qVDO X-Received: by 2002:a17:902:4624:: with SMTP id o33mr10825579pld.191.1556622550822; Tue, 30 Apr 2019 04:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556622550; cv=none; d=google.com; s=arc-20160816; b=XqHivPNwRmEfKAO9Cqk4wMJ98SIwg5djl1wzuKxZ925qamQD0vVU8odtKkb0cKxj2I xMrSPqPuXmfaL//ComxF3Q/fAJMitDUsisx2TBChYfVKeVYDxaJr82wl79unzsQXenzh iqNiaw/+asRGgjD7ntK4ITF21lIJNgj7UXCE5itUpBwimMO4U959zVkbQarRAKcFYYhM 5V/Zf31wgxvpxIxzVl5HHQ7NTq9EGjgHdrggadcH5lM6fUxoqXqWzzeP7x1frUV+dwxu bRuKhNFi7AnIy4X7B/BBE/x7rYfQ+61ydSNcYuvZO8VBPFgqHCueGe0f7B4Nj4LuX8xK cLuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bFevrnsk98DcHz4+usrRMJW3SR41jbk1T4T2tlJ4+xo=; b=OdmAnXv/qoSJrEqG9bMmdFJn24fmffycefXXWi3n3ttslygpRNGY8UQ44BiCAqY5LR h9HLsFq/CpriJ6sshWqVVoEoJ31tLtOG7A3qoCgawsqsDBO9gwAvEg/abHvr7bGsRx3R cwtBMkV4+9v1n2Zljvohnx7wuzRSWaovUMlgGZX4b++6AJD+4mIDSBbbM5SJ7O+sC6RT xz8Yba1Pr8bh8OTQ0ZXxi6h7+nDEI2rb9qIHZOPR0ZhbLge/PsyIgpWcQgw084yIEzIZ OL3JL5K50ou8lxNyqjPXYttU28ehYl4sMOaMmzSsr1AQTfxgRwkdMdp+uGMJum4olIMO zreA== 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 34si37502468plf.288.2019.04.30.04.08.53; Tue, 30 Apr 2019 04:09:10 -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 S1727379AbfD3LG3 (ORCPT + 99 others); Tue, 30 Apr 2019 07:06:29 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44526 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbfD3LG3 (ORCPT ); Tue, 30 Apr 2019 07:06:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F0A0180D; Tue, 30 Apr 2019 04:06:28 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 40C353F5C1; Tue, 30 Apr 2019 04:06:27 -0700 (PDT) Date: Tue, 30 Apr 2019 12:06:24 +0100 From: Will Deacon To: Arun KS Cc: Catalin Marinas , James Morse , Mark Rutland , Jun Yao , Steve Capper , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: arm64: Fix size of __early_cpu_boot_status Message-ID: <20190430110624.GB16204@fuggles.cambridge.arm.com> References: <1556620535-10060-1-git-send-email-arunks@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556620535-10060-1-git-send-email-arunks@codeaurora.org> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 04:05:04PM +0530, Arun KS wrote: > __early_cpu_boot_status is of type long. Use quad > assembler directive to allocate proper size. > > Signed-off-by: Arun KS > --- > arch/arm64/kernel/head.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S > index eecf792..115f332 100644 > --- a/arch/arm64/kernel/head.S > +++ b/arch/arm64/kernel/head.S > @@ -684,7 +684,7 @@ ENTRY(__boot_cpu_mode) > * with MMU turned off. > */ > ENTRY(__early_cpu_boot_status) > - .long 0 > + .quad 0 Yikes. How did you spot this? Did we end up corrupting an adjacent variable, or does the alignment in the linker script save us in practice? Will