diff options
author | Kees Cook <keescook@chromium.org> | 2014-06-10 19:54:06 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-06-11 09:04:03 +0200 |
commit | 50b66dbf876a10e35604fe325dc307811fb17a1b (patch) | |
tree | dfae1d7c99a327be7ae85c1ba866050f72c17f9e /arch/powerpc/xmon | |
parent | selftests/powerpc: Add tests of PMU EBBs (diff) | |
download | linux-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/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/nonstdio.c | 2 |
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); } } |