From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752909Ab1GBPQd (ORCPT ); Sat, 2 Jul 2011 11:16:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49500 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219Ab1GBPQc (ORCPT ); Sat, 2 Jul 2011 11:16:32 -0400 Date: Sat, 2 Jul 2011 08:08:01 -0700 From: Greg KH To: Vasiliy Kulikov Cc: Alan Cox , Linus Torvalds , Ingo Molnar , Andrew Morton , James Morris , Namhyung Kim , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] kernel: escape non-ASCII and control characters in printk() Message-ID: <20110702150801.GA14453@suse.de> References: <20110626194618.GA21740@elte.hu> <20110626202518.GA4915@albatros> <20110626220126.GA24004@elte.hu> <20110627083633.GA5846@albatros> <20110627104058.45e93c41@pyx> <20110627183829.GA16033@albatros> <20110701143757.GA22567@albatros> <20110701154947.133c30f5@lxorguk.ukuu.org.uk> <20110702081022.GA2755@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110702081022.GA2755@albatros> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 02, 2011 at 12:10:22PM +0400, Vasiliy Kulikov wrote: > Greg - do you know any devices supplying multibyte strings, but not in > UTF-8 encoding? If yes, then CSI filtering is a bad idea :\ USB is "supposed" to have UTF-16 strings, but there's devices out there that have crazy stuff in them. And of course, anyone can put anything in the device string if they know how to write a bit of firmware, so we have to watch out for that. Hopefully we handle that properly in the usb_string() function in the kernel but review of it is always nice to have. Other than that, I don't know of any multi-byte strings in devices at the moment. I haven't seen the Thunderbolt specs though, so who knows what is coming next. Hope this helps, greg k-h