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-next>] [day] [month] [year] [list]
Message-Id: <1159781104.2655.47.camel@ux156>
Date:	Mon, 02 Oct 2006 11:25:04 +0200
From:	Johannes Berg <johannes@...solutions.net>
To:	Greg KH <gregkh@...e.de>, Takashi Iwai <tiwai@...e.de>,
	linux-kernel <linux-kernel@...r.kernel.org>,
	Joel Becker <Joel.Becker@...cle.com>,
	Michael Buesch <mb@...sch.de>
Subject: debugfs oddity

Recently, I observed (in bcm43xx) that debugfs seems to keep things
alive when userspace still has a directory open. Consider the following
sequence of events:
 (a) kernel code creates a directory in debugfs
 (b) user changes current directory to that
 (c) kernel code removes that directory in debugfs

Now, consider the equivalent sequence in a regular filesystem (or
tmpfs):
 (a') user creates directory
 (b') user cd's into it
 (c') user deletes directory from a different shell

The same thing should happen, in both cases the directory is kept around
in a way until the process that has the current dir in the dead
directory gives it up.

Now, however, consider
 (d') user creates directory with the same name

This works fine, and the old process sees nothing that happens in the
new directory, as expected. However,
 (d) kernel code tries to create a debugfs directory with the same name

does not work at all.

Is this expected behaviour? It seems that once a driver requested that a
directory is removed it can rightfully expect to be able to recreate it
afterwards even if there's still the need to keep it lingering around
for a bit.

Similar things can probably happen when attributes are kept open, but I
haven't tested this. I have also not tested sysfs or configfs.

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