Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2092957ybp; Thu, 10 Oct 2019 02:04:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI25aaGd1MReCuMhtqg/GwW/81zAKAxFHjAJuTl7LYI1SyNLPjoj3iJ8KixuqBVQ+Inz6x X-Received: by 2002:a17:906:1dd3:: with SMTP id v19mr7132852ejh.35.1570698244543; Thu, 10 Oct 2019 02:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570698244; cv=none; d=google.com; s=arc-20160816; b=i2RKhRjxvVx6oK1jEVVhvg0yqYXCRATFFx/zYH3ai93QTT+/nIUtYwRWvAJmU1A+qt 6dbn62aYso7EmyPDTyLJwNiUJpWWAAFaXLEym64DKYBtzYLzhZyF7F3i8iGk/Wxrv6/l TAnrRIzEmwPgbwFgGRgz6qzMcaYHW8XwtyWwLev8jQtqSdHuUDidSLntnc89fRjWiiV8 +Ws2zbV0NlW//SrnoV8tVYpr4W5HZ13v9xSDf2vcB/QKNgQ/Dm4cJRT4yz/mUuz7Wm8q J+hEznoVLNqe6qZlwtLLP2HfxMpzokJgJSfmKWezomOCFDE/lKumEywXM4CRxSmmX8U9 cuOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wnamkh7O3xJL7yGxmik/JJLDYe7Bg+IWjI5mA6VJqlw=; b=p/uW1za5vORQUJiZ+k+dV6VLJB5seXMWT1v9TDGTzx1Bl0jiwRi5m4CRLD87DWMBPi 0l+sR5yFrR2gwAuoOkp5sOSOmcntSL8XnMhM7QH+rKfIX4xOkYHeE4siJUGugj7PlDID 48c/6YCEo34UfnFbeHMA42cDbaGEEfUTfECzFBfKLmiQ+UylQq/6re2VpBl3TMa2sMer +eqIBbIMNOp7K2eEjtSfMQqcKs9MkWsl6wD5aBNVYZ6qbJw9gsvqCxq83L2gQcTTgOyB bMa5bZDpcm8r0oyghdwmEkFadsokx/hCvPFm5yli8kTbU2RLKXqkDgPQf4QvGDmegCFL s6PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XOAkLQrZ; 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 l9si2657056ejx.426.2019.10.10.02.03.41; Thu, 10 Oct 2019 02:04:04 -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=XOAkLQrZ; 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 S2388154AbfJJJDJ (ORCPT + 99 others); Thu, 10 Oct 2019 05:03:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:41516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387648AbfJJIig (ORCPT ); Thu, 10 Oct 2019 04:38:36 -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 31A3120B7C; Thu, 10 Oct 2019 08:38:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696715; bh=IHhM2BGlpoHn43ptPAAojk+cLdU1l36SYQs0R+V2Vd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XOAkLQrZKm1aNQ2R87HEvWy8QZocM2Eaw0iSRsBs2MKNkez4LDM4QsllPAHQ1ZMlB I7BnAZEtv/YV6eGwH9ndgXmk83Xz57I/181HUHh85m3ZrLUt3MM+llWUHQuOz4jh8c 1ph6qA20FIRnfXyKmFRRqt/J3M/G4rAYbFR2n2qg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman Subject: [PATCH 5.3 026/148] powerpc/ptdump: Fix addresses display on PPC32 Date: Thu, 10 Oct 2019 10:34:47 +0200 Message-Id: <20191010083612.703301291@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit 7c7a532ba3fc51bf9527d191fb410786c1fdc73c upstream. Commit 453d87f6a8ae ("powerpc/mm: Warn if W+X pages found on boot") wrongly changed KERN_VIRT_START from 0 to PAGE_OFFSET, leading to a shift in the displayed addresses. Lets revert that change to resync walk_pagetables()'s addr val and pgd_t pointer for PPC32. Fixes: 453d87f6a8ae ("powerpc/mm: Warn if W+X pages found on boot") Cc: stable@vger.kernel.org # v5.2+ Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/eb4d626514e22f85814830012642329018ef6af9.1565786091.git.christophe.leroy@c-s.fr Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/ptdump/ptdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/mm/ptdump/ptdump.c +++ b/arch/powerpc/mm/ptdump/ptdump.c @@ -27,7 +27,7 @@ #include "ptdump.h" #ifdef CONFIG_PPC32 -#define KERN_VIRT_START PAGE_OFFSET +#define KERN_VIRT_START 0 #endif /*