summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-07-01 15:29:03 +0100
committerJani Nikula <jani.nikula@intel.com>2022-05-02 14:27:23 +0300
commitc81dd680bbc76ce94abfb81d74871a71171dd957 (patch)
treeab2612394a16f15cb858f9263be802ca12fab1d3 /mm
parent107b57538c4a70d8072a4d91405005c5aa29a5f2 (diff)
mm: Show slab debug as offsets from section base not hashed pointers
Since the kernel now used hashed pointers for raw addresses, it is very hard to guage the relative placement within a section, and since the hash value will never match up with any contents, using it provides no information relevant for slab debugging. Show the relative offset into each section, so that some reference for the hexdump is provided. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 74d92aa4a3a2..eed389323f5b 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -689,7 +689,7 @@ static void print_section(char *level, char *text, u8 *addr,
unsigned int length)
{
metadata_access_enable();
- print_hex_dump(level, text, DUMP_PREFIX_ADDRESS,
+ print_hex_dump(level, text, DUMP_PREFIX_OFFSET,
16, 1, kasan_reset_tag((void *)addr), length, 1);
metadata_access_disable();
}