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]
Message-ID: <ac3eb2510909160659u776f8268x2b792938f119653c@mail.gmail.com>
Date:	Wed, 16 Sep 2009 15:59:29 +0200
From:	Kay Sievers <kay.sievers@...y.org>
To:	Christoph Hellwig <hch@...radead.org>
Cc:	Greg KH <gregkh@...e.de>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [GIT PATCH] driver core patches for 2.6.31-git

On Wed, Sep 16, 2009 at 15:15, Christoph Hellwig <hch@...radead.org> wrote:
> On Wed, Sep 16, 2009 at 05:59:19AM -0700, Greg KH wrote:

> It's a very bad way to expose kernel state, and the same problem the
> original devfs had.  A good kernel state filesystem is immutable to
> changes from userspace, that is fully controlled by the kernel.  The
> problem with devfs and your new devfstmpfs is that you have both
> userspace and the kernel manipulating the same object.  Which for
> example makes life time management impossible.

It's well defined. When the device goes away, the node is removed, in
the same way the sysfs device is removed, and if userspace has
created/replaced the node, it has control over it and the kernel does
not touch it anymore. There is no known problem with that and no
difference how udev works today on all common systems.

If wanted, at the time you guys come up with a working union-mount, we
can make the kernel-maintained dev-filesystem read-only and mount a
tmpfs on-top of it. But we are not there at the moment.

> I also know who gladly killed it

And for good reason. The naming scheme was as wrong as it could be. We
have a completely different situation today.

> just to re-introduce the same thing years later,

It's not the same at all. There is udev today, and a well-defined way
to work with /dev, synchronized across all distros. Nothing really
changes with devtpmfs, it just gets simpler, has less races, and is a
lot more reliable.

It's a logical extension to sysfs, not much more. We create all the
things in /sys, why shouldn't we create the few nodes too, and make
many things much easier?

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