lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 29 Jul 2009 14:35:57 -0700 (PDT)
From:	david@...g.hm
To:	"H. Peter Anvin" <hpa@...or.com>
cc:	Greg KH <greg@...ah.com>, Alan Stern <stern@...land.harvard.edu>,
	Kernel development list <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	alan@...rguk.ukuu.org.uk
Subject: Re: [Security] Should open TTY device files pin minor numbers?

On Wed, 29 Jul 2009, H. Peter Anvin wrote:

> 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.

however since the serial adapters will be re-detected in a random order 
it's less nasty than cross-connecting devices and applications silently.

David Lang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ