Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp417881ybl; Fri, 9 Aug 2019 07:59:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGHiULBOfriY2IuO/MlPhostOXZKaUi0iV435hcnkhbId1OjTzoeZQZYdROBtRTkxL08Vi X-Received: by 2002:a17:90a:9a95:: with SMTP id e21mr9612993pjp.98.1565362746236; Fri, 09 Aug 2019 07:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565362746; cv=none; d=google.com; s=arc-20160816; b=zYo2jsm/YyZ2HlGdR96kaWkNTVko0AwabdGH/RnK1V8MPmeN2BSoUVbOw9CmNEQfgX sMYUYujcc+VTjVfdKAVUI64wJGTDExTNGLMNi+B9nyc8ZsEXWW5D3mYriHP0XripO8CO k6N6qIq8LfREzcmWHMDTrwRMivQfpZo1Q6IQK7PmHuGJchKDN1Y9vDejetUnpyxl8ADZ 40rj9h2HDHNduC/Esld9L/Ug45RfG4Hr3A0ovKVXidhDJp8RkzkGW8Y+TNch95GcQgxI fII8wtCQG6d0tyM6McR6ioNY5qqnLv131Z59jQ02Fmw1k3ficfAxzm4dN/tLr7j2lf/U zpFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=MWqbG02vkZmNYQgLQGkfZFOAvx7JkFoLhh24LWW8kCI=; b=uNVac6NrgkIyozQQmycVLLmZXem4GpOjuJ2XivsyZuTV6YIbqR8V5suvx5c3HDqjQS 0J4+xghWCPNy5PncnDxADBdrx8if8NoSXlQ2mLcfqCbU9Ib7q1F/e3+8YdgBPxeMAsGK pq+Pq9N+7GDm0zpOx2yXXr0ML5e3DknSdCwiVx6c8bjLg2WAsSxwE7zdbMTMqPGs+NQm YVpVcoOxcJ+1KQb7PjuGu1mCGnZFTEmVjoTXHMRB89GsnZBbPZPV51VOqHDnfoNEYNEx Ddy5+ssmTO2Xoax97KNwTkV6pWjwiswBSRFn4hZwIyIoM9Ls/3j9aNjUcf6iN0lJ2NV7 w/2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=cnHUmmtn; 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 4si3464570plh.254.2019.08.09.07.58.49; Fri, 09 Aug 2019 07:59:06 -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=@c-s.fr header.s=mail header.b=cnHUmmtn; 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 S2407117AbfHIO6O (ORCPT + 99 others); Fri, 9 Aug 2019 10:58:14 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:16594 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406596AbfHIO6O (ORCPT ); Fri, 9 Aug 2019 10:58:14 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 464pJf4gQhz9vBKs; Fri, 9 Aug 2019 16:58:10 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=cnHUmmtn; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id d-XYHNiLXOJe; Fri, 9 Aug 2019 16:58:10 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 464pJf3fRFz9v0kX; Fri, 9 Aug 2019 16:58:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1565362690; bh=MWqbG02vkZmNYQgLQGkfZFOAvx7JkFoLhh24LWW8kCI=; h=From:Subject:To:Cc:Date:From; b=cnHUmmtnQbPBPQSeAw7VzlG/HjuXIb6T4LFfn3QG4/hyBgFr5oe4zH76K8HLt49cd bh5fUeZzNAYFw9rtBT71q9d5bM4iZl4VbhqHdNmXw5ejFeEMnf4PEH9Yv7qrwwBbrY mwd9QTzWWi3506wCtdtSh3dDVzvetF9FRZkG08GI= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0C99B8B8C0; Fri, 9 Aug 2019 16:58:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id P_yhTTF5u-0A; Fri, 9 Aug 2019 16:58:11 +0200 (CEST) Received: from pc17473vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.101]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D231A8B8BB; Fri, 9 Aug 2019 16:58:11 +0200 (CEST) Received: by pc17473vm.idsi0.si.c-s.fr (Postfix, from userid 0) id D524369641; Fri, 9 Aug 2019 14:58:11 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH] powerpc/ptdump: fix addresses display on PPC32 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 9 Aug 2019 14:58:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/ptdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/ptdump/ptdump.c b/arch/powerpc/mm/ptdump/ptdump.c index 6a88a9f585d4..3ad64fc11419 100644 --- 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 /* -- 2.13.3