Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp85129imm; Thu, 4 Oct 2018 18:37:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XNRpECNSCRVwCI8uNIxAf2TMxdSPyOcdEh3gUqKEYFgtLyfA+1lLvOS4aO1dj3KJiIjMi X-Received: by 2002:a63:f14a:: with SMTP id o10-v6mr7975444pgk.339.1538703452165; Thu, 04 Oct 2018 18:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538703452; cv=none; d=google.com; s=arc-20160816; b=siAHgy4/HKrWv8oRi32727kHBEgDeqxc+GtLxrVRIffUaxLjABRbkOIX9PEKrW7ITt 7TuK/BPhAALfExmxj2x7FSqof+SuLOwH1Gt7pWiT0JFjxHGrafbMGSIqDj2FeseUVs6u PVW8hZflHJl9jC1O2BYGUvdBZQgHeDm+l3HxFh6/pz67SooF8ANbcc+MZpUmxw86K7LL B2vr0+olLerzinxZEGMHkAuZdJQX3MuiEdGQJIhWfFB4TefLumuk2CDqTxlPCT9FxGXB atzsPSppcYjO8SrswG876hpaP/zLkhhmLPre3+lese8gPbY3QX+GHaOnBqFqXCsGTUmW 1lBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=lThWJ9g10MKeWijUpNn5d2WY0ezmT+XZ8ykmI2iGuZg=; b=cf2tykWgNbe3Tf3az4SvuFDyNcZ/ynMuXBTutAslDzW6EkBqBCLk8ta4mlbq8sYEmH MSTTv3kw8Y3ny2huFlrbjqz63qkBdYQo/M5n5/SYTY+kZnEwobbcvmuysydBmx85ZHIW zDqBIfSWasLQOLfx9gtD4DWHSbik+uazW1mMK6Nd+XpaBeqvrQ7w+uoXIC7AxAbJmE/N CJXMvlFmfUDoLzT0c35HpAsoek1iw4bb7yHYOJkhP3SoVPbTf6KmmuAF5d3nldhur/+X 0MRCr6lmz068khnugFD7QmxikHNMRg3q1KTesEGd3DAGmPodq8Ja5GST4qqPxJe0XWI3 2ZQw== 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 14-v6si1873055ple.236.2018.10.04.18.37.15; Thu, 04 Oct 2018 18:37:32 -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 S1727561AbeJEIdc (ORCPT + 99 others); Fri, 5 Oct 2018 04:33:32 -0400 Received: from ozlabs.org ([203.11.71.1]:40623 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbeJEIdb (ORCPT ); Fri, 5 Oct 2018 04:33:31 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 42RC6W5WYYz9sBN; Fri, 5 Oct 2018 11:37:07 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: b45ba4a51cde29b2939365ef0c07ad34c8321789 In-Reply-To: <6acad0a13b7f6c2845b2022737c6a11a445ed3c2.1538394860.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Neuling From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/lib: fix book3s/32 boot failure due to code patching Message-Id: <42RC6W5WYYz9sBN@ozlabs.org> Date: Fri, 5 Oct 2018 11:37:07 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-10-01 at 12:21:10 UTC, Christophe Leroy wrote: > Commit 51c3c62b58b3 ("powerpc: Avoid code patching freed init > sections") accesses 'init_mem_is_free' flag too early, before the > kernel is relocated. This provokes early boot failure (before the > console is active). > > As it is not necessary to do this verification that early, this > patch moves the test into patch_instruction() instead of > __patch_instruction(). > > This modification also has the advantage of avoiding unnecessary > remappings. > > Fixes: 51c3c62b58b3 ("powerpc: Avoid code patching freed init sections") > Signed-off-by: Christophe Leroy Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/b45ba4a51cde29b2939365ef0c07ad cheers