Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754211AbZG2VVN (ORCPT ); Wed, 29 Jul 2009 17:21:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754140AbZG2VVM (ORCPT ); Wed, 29 Jul 2009 17:21:12 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43243 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754125AbZG2VVL (ORCPT ); Wed, 29 Jul 2009 17:21:11 -0400 Message-ID: <4A70BD33.808@zytor.com> Date: Wed, 29 Jul 2009 14:20:51 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Greg KH CC: Alan Stern , Kernel development list , Andrew Morton , alan@lxorguk.ukuu.org.uk Subject: Re: [Security] Should open TTY device files pin minor numbers? References: <20090725051434.GD19432@kroah.com> In-Reply-To: <20090725051434.GD19432@kroah.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 26 On 07/24/2009 10:14 PM, Greg KH wrote: > On Thu, Jul 23, 2009 at 02:38:01PM -0400, Alan Stern wrote: >> Recent work in the TTY core and in usb-serial has caused a change >> in behavior between 2.6.30 and 2.6.31-rc. Namely, if a USB serial >> device is unplugged while a process holds the device file open, the >> minor number won't get reused until the process closes the file. > > That's how the usb-serial code always worked, this is nothing new at > all. > >> For example, if you run minicom over /dev/ttyUSB0, unplug the USB >> device while minicom is running, and then plug it in again before >> exiting minicom, it will reappear as /dev/ttyUSB1 instead of >> /dev/ttyUSB0 (which will be gone). > > Exactly. People are used to this by now, it shouldn't be a supprise :) > It is, however, a *very* nasty surprise when the USB bus glitches. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/