From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60445 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755704AbdLTRHE (ORCPT ); Wed, 20 Dec 2017 12:07:04 -0500 Date: Wed, 20 Dec 2017 18:07:05 +0100 From: Greg KH To: Steve Capper Cc: stable@vger.kernel.org, Will Deacon Subject: Re: [PATCH v3.18 backport] arm64: Initialise high_memory global variable earlier Message-ID: <20171220170705.GD31793@kroah.com> References: <20171218171105.29268-1-steve.capper@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171218171105.29268-1-steve.capper@arm.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Dec 18, 2017 at 05:11:03PM +0000, Steve Capper wrote: > Commit f24e5834a2c3f6c5f814a417f858226f0a010ade upstream. > > The high_memory global variable is used by > cma_declare_contiguous(.) before it is defined. > > We don't notice this as we compute __pa(high_memory - 1), and it looks > like we're processing a VA from the direct linear map. > > This problem becomes apparent when we flip the kernel virtual address > space and the linear map is moved to the bottom of the kernel VA space. > > This patch moves the initialisation of high_memory before it used. Thanks for all 3 of these, now queued up. greg k-h