linux-stable-rt/net/core
Eric W. Biederman 927498217c [PATCH] net: Ignore sysfs network device rename bugs.
The generic networking code ensures that no two networking devices
have the same name, so  there is no time except when sysfs has
implementation bugs that device_rename when called from
dev_change_name will fail.

The current error handling for errors from device_rename in
dev_change_name is wrong and results in an unusable and unrecoverable
network device if device_rename is happens to return an error.

This patch removes the buggy error handling.  Which confines the mess
when device_rename hits a problem to sysfs, instead of propagating it
the rest of the network stack.  Making linux a little more robust.

Without this patch you can observe what happens when sysfs has a bug
when CONFIG_SYSFS_DEPRECATED is not set and you attempt to rename
a real network device to a name like (broken_parity_status, device,
modalias, power, resource2, subsystem_vendor, class,  driver, irq,
msi_bus, resource, subsystem, uevent, config, enable, local_cpus,
numa_node, resource0, subsystem_device, vendor)

Greg has a patch that fixes the sysfs bugs but he doesn't trust it
for a 2.6.21 timeframe.  This patch which just ignores errors should
be safe and it keeps the system from going completely wacky.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-04-04 08:51:52 -07:00
..
Makefile
datagram.c
dev.c [PATCH] net: Ignore sysfs network device rename bugs. 2007-04-04 08:51:52 -07:00
dev_mcast.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
dst.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ethtool.c
fib_rules.c [NET]: Change "not found" return value for rule lookup 2007-04-02 13:30:51 -07:00
filter.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
flow.c
gen_estimator.c
gen_stats.c
iovec.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
kmap_skb.h
link_watch.c
neighbour.c [NET]: Fix neighbour destructor handling. 2007-03-25 18:48:01 -07:00
net-sysfs.c Merge branch 'gfar' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into upstream 2007-02-17 15:09:59 -05:00
netevent.c
netpoll.c
pktgen.c [PATCH] mark struct file_operations const 7 2007-02-12 09:48:46 -08:00
request_sock.c
rtnetlink.c [PATCH] WE-22 : prevent information leak on 64 bit 2007-03-27 14:10:26 -04:00
scm.c
skbuff.c [IFB]: Fix crash on input device removal 2007-03-29 11:46:52 -07:00
sock.c [NET]: fix up misplaced inlines. 2007-03-22 12:27:49 -07:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c
wireless.c [PATCH] WE-22 : prevent information leak on 64 bit 2007-03-27 14:10:26 -04:00