aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-10 13:54:06 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-11 03:04:03 -0400
commit50b66dbf876a10e35604fe325dc307811fb17a1b (patch)
treedfae1d7c99a327be7ae85c1ba866050f72c17f9e /arch/powerpc
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')
-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, ...)
122 122
123 if (n && rc == 0) { 123 if (n && rc == 0) {
124 /* No udbg hooks, fallback to printk() - dangerous */ 124 /* No udbg hooks, fallback to printk() - dangerous */
125 printk(xmon_outbuf); 125 printk("%s", xmon_outbuf);
126 } 126 }
127} 127}
128 128