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: <m1lkiv8npz.fsf@ebiederm.dsl.xmission.com>
Date:	Sun, 18 Feb 2007 08:55:20 -0700
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	Greg Kroah-Hartman <gregkh@...e.de>
Cc:	<netdev@...r.kernel.org>
Subject: Converting network devices from class devices causes namespace pollution


I believe the culprit is 43cb76d91ee85f579a69d42bc8efc08bac560278.

For some reason network devices are now showing up under the pci
device tree, in directories that have something other than network
devices.

# ls -l /sys/class/net/eth0
lrwxrwxrwx 1 root root 0 Feb 17 23:19 /sys/class/net/eth0 -> ../../devices/pci0000:00/0000:00:0a.0/eth0

# ls /sys/devices/pci0000\:00/0000\:00\:0a.0/
broken_parity_status  device  eth0        modalias  resource   subsystem         uevent
class                 driver  irq         msi_bus   resource0  subsystem_device  vendor
config                enable  local_cpus  power     resource1  subsystem_vendor

User space is allowed to rename network devices to anything any name
not currently taken by another network device.

However when I now do something like:

ip link set eth0 name irq

The rename half happens (because it is legal), but sysfs can't support
it because of the ridiculous directory eth0 is in.  After that
point things go hideously wrong.

The current situation is hideous namespace pollution, and breaks user
space, and is only likely only a matter of time before we have a
reasonable instead of an strained conflict of names.

Is there any simple fix or do we need to revert the change away
from class_device?

Eric
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ