summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-07-01 15:29:03 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-11-16 09:50:29 +0100
commitf994e691de8a5ef0c42fc6065a69bee0e2acc21a (patch)
treee053ca6c9a5e071b8ddc97db8e661adf6e79058d /mm
parent25d97979aa03d4540cf865dde41b5d93b64d3cf8 (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 f7368bfffb7a..1cb98e8a7c29 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -685,7 +685,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();
}