summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-10 19:54:06 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-11 09:04:03 +0200
commit50b66dbf876a10e35604fe325dc307811fb17a1b (patch)
treedfae1d7c99a327be7ae85c1ba866050f72c17f9e /arch
parentselftests/powerpc: Add tests of PMU EBBs (diff)
downloadlinux-50b66dbf876a10e35604fe325dc307811fb17a1b.tar.xz
linux-50b66dbf876a10e35604fe325dc307811fb17a1b.zip
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')
-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);
}
}