mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch added to -mm tree
@ 2021-01-17 19:33 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-01-17 19:33 UTC (permalink / raw)
  To: akinobu.mita, john.ogness, keescook, mm-commits, pmladek,
	roman.fietze, rostedt, sergey.senozhatsky, timur


The patch titled
     Subject: mm/page_poison: use unhashed address in hexdump for check_poison_mem()
has been added to the -mm tree.  Its filename is
     mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Timur Tabi <timur@kernel.org>
Subject: mm/page_poison: use unhashed address in hexdump for check_poison_mem()

Now that print_hex_dump() is capable of printing unhashed addresses, use
that feature in the code that reports memory errors.  Hashed addresses
don't tell you where the corrupted page actually is.

Link: https://lkml.kernel.org/r/20210116220950.47078-3-timur@kernel.org
Signed-off-by: Timur Tabi <timur@kernel.org>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Kees Cook <keescook@chromium.org>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Roman Fietze <roman.fietze@magna.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_poison.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/page_poison.c~mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem
+++ a/mm/page_poison.c
@@ -67,7 +67,7 @@ static void check_poison_mem(unsigned ch
 	else
 		pr_err("pagealloc: memory corruption\n");
 
-	print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1, start,
+	print_hex_dump(KERN_ERR, "", DUMP_PREFIX_UNHASHED, 16, 1, start,
 			end - start + 1, 1);
 	dump_stack();
 }
_

Patches currently in -mm which might be from timur@kernel.org are

lib-hexdump-introduce-dump_prefix_unhashed-for-unhashed-addresses.patch
mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-17 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17 19:33 + mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).