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>
This commit is contained in:
parent
3752e453f6
commit
50b66dbf87
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue