+ mm-page_poison-use-unhashed-address-in-hexdump-for-check_poison_mem.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
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@xxxxxxxxxx
Signed-off-by: Timur Tabi <timur@xxxxxxxxxx>
Cc: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Cc: John Ogness <john.ogness@xxxxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Petr Mladek <pmladek@xxxxxxxx>
Cc: Roman Fietze <roman.fietze@xxxxxxxxx>
Cc: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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@xxxxxxxxxx are

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




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux