summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-07-01 15:29:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-31 22:21:03 +0000
commit1430f4f1b2568bdd93b1b4fd2135cb0edd2988ac (patch)
tree89f178fc5e400ee8886386c980e592ee571adba5
parentc8c2e9ac274b32bb602816be2eb051c4287e0eb2 (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>
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 7ecbbbe5bc0c..0138cdfa1e89 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -540,7 +540,7 @@ static void print_section(char *level, char *text, u8 *addr,
unsigned int length)
{
metadata_access_enable();
- print_hex_dump(level, kasan_reset_tag(text), DUMP_PREFIX_ADDRESS,
+ print_hex_dump(level, kasan_reset_tag(text), DUMP_PREFIX_OFFSET,
16, 1, addr, length, 1);
metadata_access_disable();
}