Commit 50b66dbf authored by Kees Cook's avatar Kees Cook Committed by Benjamin Herrenschmidt

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3752e453
...@@ -122,7 +122,7 @@ void xmon_printf(const char *format, ...) ...@@ -122,7 +122,7 @@ void xmon_printf(const char *format, ...)
if (n && rc == 0) { if (n && rc == 0) {
/* No udbg hooks, fallback to printk() - dangerous */ /* No udbg hooks, fallback to printk() - dangerous */
printk(xmon_outbuf); printk("%s", xmon_outbuf);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment