Commit 901d805c authored by Nicolas Iooss's avatar Nicolas Iooss Committed by Linus Torvalds

UBSAN: fix typo in format string

handle_object_size_mismatch() used %pk to format a kernel pointer with
pr_err().  This seemed to be a misspelling for %pK, but using this to
format a kernel pointer does not make much sence here.

Therefore use %p instead, like in handle_missaligned_access().

Link: http://lkml.kernel.org/r/20160730083010.11569-1-nicolas.iooss_linux@m4x.orgSigned-off-by: default avatarNicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9b24fef9
...@@ -308,7 +308,7 @@ static void handle_object_size_mismatch(struct type_mismatch_data *data, ...@@ -308,7 +308,7 @@ static void handle_object_size_mismatch(struct type_mismatch_data *data,
return; return;
ubsan_prologue(&data->location, &flags); ubsan_prologue(&data->location, &flags);
pr_err("%s address %pk with insufficient space\n", pr_err("%s address %p with insufficient space\n",
type_check_kinds[data->type_check_kind], type_check_kinds[data->type_check_kind],
(void *) ptr); (void *) ptr);
pr_err("for an object of type %s\n", data->type->type_name); pr_err("for an object of type %s\n", data->type->type_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment