Re: [kernel-hardening] Re: [PATCH v2] kernel: escape non-ASCII andcontrol characters in printk()

From: Vasiliy Kulikov
Date: Tue Jul 05 2011 - 13:49:32 EST


On Sun, Jul 03, 2011 at 10:42 -0700, Linus Torvalds wrote:
> So saying "%s is for pure 7-bit ASCII with no control codes" is
> annoying, but would really fix it.

Hmm.. It breaks usb UTF-8 strings for sure. I see some printks in
debugging code. There might be other users of UTF-8 strings fed to
printk().

--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/