Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
}