The patch titled Subject: kasan: use %px to print addresses instead of %p has been added to the -mm tree. Its filename is kasan-use-%px-to-print-addresses-instead-of-%p.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kasan-use-%25px-to-print-addresses-instead-of-%25p.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kasan-use-%25px-to-print-addresses-instead-of-%25p.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Tobin C. Harding" <me@xxxxxxxx> Subject: kasan: use %px to print addresses instead of %p Pointers printed with %p are now hashed by default. Kasan needs the actual address. We can use the new printk specifier %px for this purpose. Use %px instead of %p to print addresses. Link: http://lkml.kernel.org/r/1511921105-3647-6-git-send-email-me@xxxxxxxx Signed-off-by: Tobin C. Harding <me@xxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Chris Fries <cfries@xxxxxxxxxx> Cc: Daniel Micay <danielmicay@xxxxxxxxx> Cc: Dave Weinstein <olorin@xxxxxxxxxx> Cc: David Miller <davem@xxxxxxxxxxxxx> Cc: Djalal Harouni <tixxdz@xxxxxxxxx> Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Cc: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Ian Campbell <ijc@xxxxxxxxxxxxxx> Cc: "Jason A. Donenfeld" <Jason@xxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Cc: Jordan Glover <Golden_Miller83@xxxxxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> Cc: Petr Mladek <pmladek@xxxxxxxx> Cc: Radim Krčmář <rkrcmar@xxxxxxxxxx> Cc: "Roberts, William C" <william.c.roberts@xxxxxxxxx> Cc: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: "Theodore Ts'o" <tytso@xxxxxxx> Cc: Tycho Andersen <tycho@xxxxxxxx> Cc: Will Deacon <wilal.deacon@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kasan/report.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -puN mm/kasan/report.c~kasan-use-%px-to-print-addresses-instead-of-%p mm/kasan/report.c --- a/mm/kasan/report.c~kasan-use-%px-to-print-addresses-instead-of-%p +++ a/mm/kasan/report.c @@ -134,7 +134,7 @@ static void print_error_description(stru pr_err("BUG: KASAN: %s in %pS\n", bug_type, (void *)info->ip); - pr_err("%s of size %zu at addr %p by task %s/%d\n", + pr_err("%s of size %zu at addr %px by task %s/%d\n", info->is_write ? "Write" : "Read", info->access_size, info->access_addr, current->comm, task_pid_nr(current)); } @@ -206,7 +206,7 @@ static void describe_object_addr(struct const char *rel_type; int rel_bytes; - pr_err("The buggy address belongs to the object at %p\n" + pr_err("The buggy address belongs to the object at %px\n" " which belongs to the cache %s of size %d\n", object, cache->name, cache->object_size); @@ -225,7 +225,7 @@ static void describe_object_addr(struct } pr_err("The buggy address is located %d bytes %s of\n" - " %d-byte region [%p, %p)\n", + " %d-byte region [%px, %px)\n", rel_bytes, rel_type, cache->object_size, (void *)object_addr, (void *)(object_addr + cache->object_size)); } @@ -302,7 +302,7 @@ static void print_shadow_for_address(con char shadow_buf[SHADOW_BYTES_PER_ROW]; snprintf(buffer, sizeof(buffer), - (i == 0) ? ">%p: " : " %p: ", kaddr); + (i == 0) ? ">%px: " : " %px: ", kaddr); /* * We should not pass a shadow pointer to generic * function, because generic functions may try to _ Patches currently in -mm which might be from me@xxxxxxxx are docs-correct-documentation-for-%pk.patch vsprintf-refactor-%pk-code-out-of-pointer.patch printk-hash-addresses-printed-with-%p.patch vsprintf-add-printk-specifier-%px.patch kasan-use-%px-to-print-addresses-instead-of-%p.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html