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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 19 Oct 2006 05:58:25 -0500
From:	"Kilau, Scott" <Scott_Kilau@...i.com>
To:	"Jiri Slaby" <jirislaby@...il.com>
Cc:	"Greg KH" <greg@...ah.com>, <Greg.Chandler@...lsfargo.com>,
	<linux-kernel@...r.kernel.org>,
	"Alan Cox" <alan@...rguk.ukuu.org.uk>,
	"Andrew Morton" <akpm@...l.org>
Subject: RE: kernel oops with extended serial stuff turned on...

Hi Jiri,
 
Well, what I did in my drivers was the following:
 
1) Went to TTY_DRIVER_DYNAMIC_DEV.
2) Changed the "name" I use for my ttys from something generic like ttya0, ttyb0, etc,
to a more specific name of "drivername_tty0", "drivername_tty1", etc, etc.
(ie, in this case, isicom_tty0, isicom_tty1, etc)
3) Added the "tty_register_device()" to my driver to register those "extended" names.
4)Created special UDEV rules to look for <drivername>_tty*, and rename them
to something more common, ie, ttya0, ttya1, etc, etc.
 
This still doesn't *truly* fix the problem, because UDEV could still run into conflicts on
the renaming, but at least the problem moves from kernel space to user space...
 
Presumably we could "script" around the duplicate id problem in a UDEV script.
(ie, Maybe if "ttyM0" is already out there, move to "ttyN0" instead.)
 
Forgive me if this email looks a little choppy, I am coming down with the flu,
and don't really feel too well today...
 
Scott
 
________________________________

From: Jiri Slaby [mailto:jirislaby@...il.com]
Sent: Thu 10/19/2006 4:42 AM
To: Jiri Slaby
Cc: Kilau, Scott; Greg KH; Greg.Chandler@...lsfargo.com; linux-kernel@...r.kernel.org; Alan Cox; Andrew Morton
Subject: Re: kernel oops with extended serial stuff turned on...



Jiri Slaby wrote:
> We have a few options:
> - rewrite them to use TTY_DRIVER_DYNAMIC_DEV (I'm going to do this in
> isicom anyway)

(But this won't solve anything if somebody has both "conflicting" cards.)

regards,
--
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E


-
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