summaryrefslogtreecommitdiff
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-10 10:54:06 -0700
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-11 17:04:03 +1000
commit50b66dbf876a10e35604fe325dc307811fb17a1b (patch)
treedfae1d7c99a327be7ae85c1ba866050f72c17f9e /arch/powerpc/xmon
parent3752e453f6bafd78e5586cc2b2e33ee4b6e1566d (diff)
powerpc/xmon: avoid format string leaking to printk
This makes sure format strings cannot leak into printk (the string has already been correctly processed for format arguments). Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/nonstdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/nonstdio.c b/arch/powerpc/xmon/nonstdio.c
index bce3dcfe5058..c98748617896 100644
--- a/arch/powerpc/xmon/nonstdio.c
+++ b/arch/powerpc/xmon/nonstdio.c
@@ -122,7 +122,7 @@ void xmon_printf(const char *format, ...)
if (n && rc == 0) {
/* No udbg hooks, fallback to printk() - dangerous */
- printk(xmon_outbuf);
+ printk("%s", xmon_outbuf);
}
}