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: default avatarNicolas Iooss <>
Acked-by: default avatarAndrey Ryabinin <>
Cc: Joe Perches <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9b24fef9
......@@ -308,7 +308,7 @@ static void handle_object_size_mismatch(struct type_mismatch_data *data,
ubsan_prologue(&data->location, &flags);
pr_err("%s address %pk with insufficient space\n",
pr_err("%s address %p with insufficient space\n",
(void *) ptr);
pr_err("for an object of type %s\n", data->type->type_name);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment