[Bugme-new] [Bug 10698] New: device name conflicts in sysfs with bonding
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Wed May 14 14:36:57 PDT 2008
http://bugzilla.kernel.org/show_bug.cgi?id=10698
Summary: device name conflicts in sysfs with bonding
Product: Networking
Version: 2.5
KernelVersion: 2.6.26-rc2
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
AssignedTo: acme at ghostprotocols.net
ReportedBy: shemminger at linux-foundation.org
Renaming device to bonding_masters causes sysfs problems:
The check for device rename assumes that /sys/class/net is not polluted
by non-device entries like /sys/class/net/bonding_masters
To reproduce:
# modprobe dummy
# modprobe bonding
# ip li set dummy0 name bonding_master
Backtrace:[17185141.057441] sysfs: duplicate filename 'bonding_masters' can not
be created
[17185141.057452] ------------[ cut here ]------------
[17185141.057455] WARNING: at fs/sysfs/dir.c:425 sysfs_add_one+0x99/0xc0()
[17185141.057457] Modules linked in: bonding dummy af_packet i915 drm kvm_intel
kvm acpi_cpufreq cpufreq_conservative cpufreq_stats cpufreq_ondemand freq_table
cpufreq_powersave cpufreq_userspace sbs video output sbshc container wmi
battery ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack ipv6
iptable_filter ip_tables x_tables ac tun snd_hda_intel snd_seq_dummy
snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_pcsp evdev snd_seq
snd_pcm_oss snd_mixer_oss sky2 iTCO_wdt snd_seq_device usbhid serio_raw snd_pcm
iTCO_vendor_support hid snd_timer psmouse snd shpchp button intel_agp soundcore
pci_hotplug snd_page_alloc ext3 jbd mbcache sr_mod cdrom sd_mod sg ata_generic
ata_piix pata_acpi libata floppy scsi_mod dock ehci_hcd r8169 uhci_hcd usbcore
thermal processor fan fuse
[17185141.057521] Pid: 7745, comm: ip Not tainted 2.6.26-rc2 #66
[17185141.057523]
[17185141.057523] Call Trace:
[17185141.057534] [<ffffffff8023969f>] warn_on_slowpath+0x5f/0x80
[17185141.057541] [<ffffffff8023a817>] ? printk+0x67/0x70
[17185141.057549] [<ffffffff80301020>] ? sysfs_ilookup_test+0x0/0x20
[17185141.057555] [<ffffffff802c5448>] ? ifind+0x58/0xc0
[17185141.057559] [<ffffffff80301020>] ? sysfs_ilookup_test+0x0/0x20
[17185141.057566] [<ffffffff80301399>] sysfs_add_one+0x99/0xc0
[17185141.057572] [<ffffffff803023b8>] sysfs_create_link+0xa8/0x130
[17185141.057581] [<ffffffff803b74a6>] device_rename+0xc6/0x150
[17185141.057589] [<ffffffff803e5c5d>] dev_change_name+0xcd/0x230
[17185141.057596] [<ffffffff803ee9d0>] do_setlink+0x370/0x390
[17185141.057603] [<ffffffff80400027>] ? nla_parse+0x97/0xf0
[17185141.057610] [<ffffffff803f00b8>] rtnl_newlink+0x358/0x490
[17185141.058619] [<ffffffff803ef8ca>] rtnetlink_rcv_msg+0x1ea/0x230
[17185141.058623] [<ffffffff803ef6e0>] ? rtnetlink_rcv_msg+0x0/0x230
[17185141.058628] [<ffffffff803fe289>] netlink_rcv_skb+0x89/0xb0
[17185141.058634] [<ffffffff803ef6d0>] rtnetlink_rcv+0x20/0x30
[17185141.058638] [<ffffffff803fe023>] netlink_unicast+0x273/0x2b0
[17185141.058643] [<ffffffff803dec01>] ? __alloc_skb+0x91/0x150
[17185141.058649] [<ffffffff803fe8f4>] netlink_sendmsg+0x224/0x2d0
[17185141.058657] [<ffffffff803fe02b>] ? netlink_unicast+0x27b/0x2b0
[17185141.058664] [<ffffffff803d76a7>] sock_sendmsg+0x127/0x140
[17185141.058675] [<ffffffff8024f2f0>] ? autoremove_wake_function+0x0/0x40
[17185141.058685] [<ffffffff802842f7>] ? __alloc_pages_internal+0xd7/0x4b0
[17185141.058695] [<ffffffff803d81e7>] ? move_addr_to_kernel+0x57/0x60
[17185141.058699] [<ffffffff803e02ec>] ? verify_iovec+0x3c/0xc0
[17185141.058705] [<ffffffff803d7867>] sys_sendmsg+0x1a7/0x2f0
[17185141.058723] [<ffffffff80469530>] ? do_page_fault+0x430/0xac0
[17185141.058728] [<ffffffff8029537d>] ? do_brk+0x1ed/0x2a0
[17185141.058743] [<ffffffff8020c4da>] system_call_after_swapgs+0x8a/0x8f
[17185141.058751]
[17185141.058753] ---[ end trace bc97cbadd0054499 ]---
[17185141.058758] net bonding_masters: device_rename: sysfs_create_symlink
failed (-17)
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list