From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [bug, 2.6.24-rc1] sysfs: duplicate filename 'eth0' can not be created Date: Mon, 29 Oct 2007 14:40:16 -0700 Message-ID: <20071029144016.06c03b7c@freepuppy.rosehill> References: <20071029211746.GA19876@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Jeff Garzik To: Ingo Molnar Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:39816 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751889AbXJ2VnH (ORCPT ); Mon, 29 Oct 2007 17:43:07 -0400 In-Reply-To: <20071029211746.GA19876@elte.hu> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 29 Oct 2007 22:17:46 +0100 Ingo Molnar wrote: > > hm, this seems to have popped up in the last few days, never had it > before: > > sysfs: duplicate filename 'eth0' can not be created > WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() > > Call Trace: > [] sysfs_add_one+0x54/0xbd > [] sysfs_create_link+0xc6/0x11d > [] device_rename+0x175/0x1d6 > [] dev_change_name+0x118/0x211 > [] dev_ioctl+0x4fa/0x5f8 > [] netlink_insert+0x13c/0x14b > [] do_page_fault+0x3eb/0x73f > [] sock_ioctl+0x1f2/0x200 > [] do_ioctl+0x21/0x6b > [] vfs_ioctl+0x243/0x25c > [] sys_ioctl+0x51/0x71 > [] system_call+0x7e/0x83 > > net eth0: device_rename: sysfs_create_symlink failed (-17) > > 32-bit bzImage kernel - config attached. (The 64-bit kernel even lost > connectivity due to this and ifcfg-eth0 got renamed to ifcfg-eth0.bak by > kudzu.) > > detected order of the interfaces is: > > forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x5043 @1 > eth1: RealTek RTL8139 at 0xffffc200001f2000 > > and that's the ordering in /etc/sysconfig/network-scripts as well. > > Ingo Already fixed post 2.6.24-rc1 commit c8d90dca3211966ba5189e0f3d4bccd558d9ae08 Author: Stephen Hemminger Date: Fri Oct 26 03:53:42 2007 -0700 [NET] dev_change_name: ignore changes to same name Prevent error/backtrace from dev_rename() when changing name of network device to the same name. This is a common situation with udev and other scripts that bind addr to device. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller -- Stephen Hemminger