From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Christophe Leroy <christophe.leroy@c-s.fr>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: powerpc: dump as a single line areas mapping a single physical page.
Date: Fri, 22 Feb 2019 20:48:03 +1100 (AEDT) [thread overview]
Message-ID: <445RNM72H2z9sDX@ozlabs.org> (raw)
In-Reply-To: <9afb42b9d78abe00fe049e1736a180b1facdfd86.1550490186.git.christophe.leroy@c-s.fr>
On Mon, 2019-02-18 at 12:25:20 UTC, Christophe Leroy wrote:
> When using KASAN, there are parts of the shadow area where all
> pages are mapped to the kasan_early_shadow_page. It is pointless
> to dump one line for each of those pages (in the example below there
> are 7168 entries pointing to the same physical page).
>
> ~# cat /sys/kernel/debug/kernel_page_tables
> ...
> ---[ kasan shadow mem start ]---
> 0xf7c00000-0xf8bfffff 0x06fac000 16M rw present dirty accessed
> 0xf8c00000-0xf8c03fff 0x00cd0000 16K r present dirty accessed
> 0xf8c04000-0xf8c07fff 0x00cd0000 16K r present dirty accessed
> 0xf8c08000-0xf8c0bfff 0x00cd0000 16K r present dirty accessed
> 0xf8c0c000-0xf8c0ffff 0x00cd0000 16K r present dirty accessed
> 0xf8c10000-0xf8c13fff 0x00cd0000 16K r present dirty accessed
> ... 7168 identical lines
> 0xffbfc000-0xffbfffff 0x00cd0000 16K r present dirty accessed
> ---[ kasan shadow mem end ]---
> ...
>
> This patch modifies linux table dump to dump as a single line areas
> where all addresses points to the same physical page. That physical
> address is put inside [] to show that all virt pages points to the
> same phys page.
>
> ~# cat /sys/kernel/debug/kernel_page_tables
> ...
> ---[ kasan shadow mem start ]---
> 0xf7c00000-0xf8bfffff 0x06fac000 16M rw present dirty accessed
> 0xf8c00000-0xffbfffff [0x00cd0000] 16K r present dirty accessed
> ---[ kasan shadow mem end ]---
> ...
>
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/cabe8138b23c92e851b92c6a20ffb135
cheers
prev parent reply other threads:[~2019-02-22 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 12:25 [PATCH] powerpc: dump as a single line areas mapping a single physical page Christophe Leroy
2019-02-18 12:25 ` Christophe Leroy
2019-02-22 9:48 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=445RNM72H2z9sDX@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=benh@kernel.crashing.org \
--cc=christophe.leroy@c-s.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.