[2/2] mm/page_poison: use unhashed address in hexdump for check_poison_mem()
diff mbox series

Message ID 20210116220950.47078-3-timur@kernel.org
State In Next
Commit 08e2da73d5c9fa2389062c942aa54acfe7bec2ee
Headers show
Series
  • introduce DUMP_PREFIX_UNHASHED for hex dumps
Related show

Commit Message

Timur Tabi Jan. 16, 2021, 10:09 p.m. UTC
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.

Signed-off-by: Timur Tabi <timur@kernel.org>
---
 mm/page_poison.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/mm/page_poison.c b/mm/page_poison.c
index 65cdf844c8ad..4902f3261ee4 100644
--- a/mm/page_poison.c
+++ b/mm/page_poison.c
@@ -67,7 +67,7 @@  static void check_poison_mem(unsigned char *mem, size_t bytes)
 	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();
 }