* + ubsan-fix-typo-in-format-string.patch added to -mm tree
@ 2016-08-01 22:59 akpm
0 siblings, 0 replies; 2+ messages in thread
From: akpm @ 2016-08-01 22:59 UTC (permalink / raw)
To: nicolas.iooss_linux, aryabinin, joe, mm-commits
The patch titled
Subject: UBSAN: fix typo in format string
has been added to the -mm tree. Its filename is
ubsan-fix-typo-in-format-string.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ubsan-fix-typo-in-format-string.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ubsan-fix-typo-in-format-string.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: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Subject: 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.org
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/ubsan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN lib/ubsan.c~ubsan-fix-typo-in-format-string lib/ubsan.c
--- a/lib/ubsan.c~ubsan-fix-typo-in-format-string
+++ a/lib/ubsan.c
@@ -308,7 +308,7 @@ static void handle_object_size_mismatch(
return;
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],
(void *) ptr);
pr_err("for an object of type %s\n", data->type->type_name);
_
Patches currently in -mm which might be from nicolas.iooss_linux@m4x.org are
ubsan-fix-typo-in-format-string.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* + ubsan-fix-typo-in-format-string.patch added to -mm tree
@ 2016-08-01 22:59 akpm
0 siblings, 0 replies; 2+ messages in thread
From: akpm @ 2016-08-01 22:59 UTC (permalink / raw)
To: nicolas.iooss_linux, aryabinin, joe, mm-commits
The patch titled
Subject: UBSAN: fix typo in format string
has been added to the -mm tree. Its filename is
ubsan-fix-typo-in-format-string.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ubsan-fix-typo-in-format-string.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ubsan-fix-typo-in-format-string.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: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Subject: 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.org
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/ubsan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN lib/ubsan.c~ubsan-fix-typo-in-format-string lib/ubsan.c
--- a/lib/ubsan.c~ubsan-fix-typo-in-format-string
+++ a/lib/ubsan.c
@@ -308,7 +308,7 @@ static void handle_object_size_mismatch(
return;
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],
(void *) ptr);
pr_err("for an object of type %s\n", data->type->type_name);
_
Patches currently in -mm which might be from nicolas.iooss_linux@m4x.org are
ubsan-fix-typo-in-format-string.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-01 23:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01 22:59 + ubsan-fix-typo-in-format-string.patch added to -mm tree akpm
2016-08-01 22:59 akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.