Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp645110yba; Wed, 15 May 2019 07:35:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHPbDh4FmIJLantnb4+dac3TygtH9o8k/eGX5w7EzevBg9JdUY2oPX5V44awRJBy3p1Kb8 X-Received: by 2002:a17:902:3fa5:: with SMTP id a34mr17156986pld.297.1557930926037; Wed, 15 May 2019 07:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557930926; cv=none; d=google.com; s=arc-20160816; b=LdX9Gla4bSaLVO4LtDtn8wdr4ijf9uVEwEPbc6m7diL9DEk1BkBC2SnGsnJPC4bjea n0iDTmUqXLnst3Yc4YRjR0RBudRZ+wdkSCUsufY9Mb/TyEwNP4QetMRlURryI2b+bB00 UUnnlbJX8Cl4WuLX4MPTlpnlyO/cjkIkuTeZROXLj5Qd+enmVzjOtswQqgcmsdP+o1xr 2Flsg9eqTpobc/LOG3WbaQjyDP1UODtLY5lcd2+DlfdJo10heMxXIVdU8L0FfnV2LBAh InL1m2EwJlvMGYA6J7EcR30cZeQvG1AeLoRYzrPBQsx1Oe2Z0isdWOupaez5w6IMyM1N 0Ewg== 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:dkim-signature; bh=eUooC9mtzJNtQfEJRZnmoLz2r+T2rEOatVg649ETgfE=; b=0dCfFect5Y8O2trkyYQXFMUYacL3jxqYAxTbsz+pplenDW3nkhZXjyx+YHCBBYc+/s ifmSydOWEuVQF7JuuotZD1a2VKlj57uqvmwb4ET0n15elWN0gZ1ho/7OVbX3DxqIaZAu JaANUedfEibdsiam6Y78uyMzbroViGufTYhXfKedMOSb96Xj7SCJ2KO9n0N3atZtkMD2 sA0dgxqnKhEiuHNwozR/RRQeiCWpcf7h74Ss5kftFoBYTBX+ZcPJ8jatuVoB/hMDgvqF UiyR1lZ8c674VtY4+oHI4H2H+R7u3bX96piUlcTZX9ZE25SUlinERB0Vu6x0aIeFoeFr paxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WN0knMRv; 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 w3si1934407plp.260.2019.05.15.07.35.10; Wed, 15 May 2019 07:35:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WN0knMRv; 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 S1728118AbfEOOQI (ORCPT + 99 others); Wed, 15 May 2019 10:16:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbfEOOQI (ORCPT ); Wed, 15 May 2019 10:16:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE5462084E; Wed, 15 May 2019 14:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557929767; bh=nBsn7/9SkqhQaLs4aJMbNED/PvzJuaH0Nvbb1xhB1ds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WN0knMRvCCL1HFnQ8nQFtCpu4hbzkZzP0UtfAlnjItM1hQW429xwlxGPIuFUPBrD8 BTqh9i+pGG9kqYAVI3zEBcpAZ6FxAxalF2be+eBc2h6MGk1lr00rjglbQAKN+mj19e K8loKcIQ3jwFdqT6d3iCtSycnkYwWlCjgbY21BZI= Date: Wed, 15 May 2019 16:16:04 +0200 From: Greg KH To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , erhard_f@mailbox.org, Michael Neuling , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "stable@vger.kernel.org" Subject: Re: [PATCH stable 4.4] powerpc/lib: fix book3s/32 boot failure due to code patching Message-ID: <20190515141604.GB8999@kroah.com> References: <71dbc8bdad5da9f6cb0446535fb2a29c68fccf80.1557926850.git.christophe.leroy@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71dbc8bdad5da9f6cb0446535fb2a29c68fccf80.1557926850.git.christophe.leroy@c-s.fr> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 15, 2019 at 01:30:42PM +0000, Christophe Leroy wrote: > [Backport of upstream commit b45ba4a51cde29b2939365ef0c07ad34c8321789] > > On powerpc32, patch_instruction() is called by apply_feature_fixups() > which is called from early_init() > > There is the following note in front of early_init(): > * Note that the kernel may be running at an address which is different > * from the address that it was linked at, so we must use RELOC/PTRRELOC > * to access static data (including strings). -- paulus > > Therefore init_mem_is_free must be accessed with PTRRELOC() > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=203597 > Signed-off-by: Christophe Leroy > > --- > Can't apply the upstream commit as such due to several other unrelated stuff > like for instance STRICT_KERNEL_RWX which are missing. > So instead, using same approach as for commit 252eb55816a6f69ef9464cad303cdb3326cdc61d > > Removed the Fixes: tag as I don't know yet the commit Id of the fixed commit on 4.4 branch. > --- > arch/powerpc/lib/code-patching.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Now added, thanks. greg k-h