System panics when shutting down or restarting the network with bonding
Issue
- On machines with bonding and with or without VLANs configured restarting the network or rebooting may cause a kernel panic:
----------- [cut here ] --------- [please bite here ] ---------
Kernel BUG at drivers/net/bonding/bonding.h:135
invalid opcode: 0000 [1] SMP
last sysfs file: /class/net/bond0/bonding/slaves
CPU 11
Modules linked in: hidp l2cap bluetooth cpufreq_ondemand acpi_cpufreq freq_table mperf bonding be2iscsi ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp bnx2i cnic ipv6 xfrm_nalgo crypto_api uio cxgb3i cxgb3 libiscsi_tcp libiscsi2 scsi_transport_iscsi2 scsi_transport_iscsi dm_round_robin dm_multipath scsi_dh video backlight sbs power_meter hwmon i2c_ec dell_wmi wmi button battery asus_acpi acpi_memhotplug ac parport_pc lp parport igb cdc_ether 8021q usbnet i2c_i801 bnx2 ide_cd i7core_edac i2c_core tpm_tis tpm edac_mc cdrom sg tpm_bios pcspkr dca dm_raid45 dm_message dm_region_hash dm_mem_cache dm_snapshot dm_zero dm_mirror dm_log dm_mod usb_storage qla2xxx scsi_transport_fc ata_piix libata shpchp megaraid_sas sd_mod scsi_mod raid1 ext3 jbd uhci_hcd ohci_hcd ehci_hcd
Pid: 385, comm: ifdown-eth Not tainted 2.6.18-238.5.1.el5 #1
RIP: 0010:[<ffffffff88743c0b>] [<ffffffff88743c0b>] :bonding:bond_release+0x62/0x4f1
RSP: 0018:ffff811866a6fe28 EFLAGS: 00010286
RAX: 00000000ffffffff RBX: 00000000000005dc RCX: 0000000000000282
RDX: 00000000ffffffff RSI: ffff81087bac4000 RDI: ffff811073df4530
RBP: ffff811073df4500 R08: 0000000000000005 R09: 0000000000000030
R10: ffffffff804525a0 R11: ffffffff8874c8f8 R12: ffff811073df4000
R13: 0000000000000006 R14: ffff81087bac4000 R15: ffff811079e18280
FS: 00002b672cc4cf50(0000) GS:ffff81089c3a31c0(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002b6730221000 CR3: 0000001069862000 CR4: 00000000000006e0
Process ifdown-eth (pid: 385, threadinfo ffff811866a6e000, task ffff81187b2f0040)
Stack: 00000000000080d0 ffffffff8006456b ffff81187b2f0040 00000000000005dc
ffff81087bac4000 ffff811073df4500 0000000000000006 0000000000000006
ffff811079e18280 ffffffff8874cb54 000000346874652d 0000000000000000
Call Trace:
[<ffffffff8006456b>] __down_write_nested+0x12/0x92
[<ffffffff8874cb54>] :bonding:bonding_store_slaves+0x25c/0x2f7
[<ffffffff8010fedc>] sysfs_write_file+0xb9/0xe8
[<ffffffff80016b68>] vfs_write+0xce/0x174
[<ffffffff80017435>] sys_write+0x45/0x6e
[<ffffffff8005d28d>] tracesys+0xd5/0xe0
Code: 0f 0b 68 aa e4 74 88 c2 87 00 4c 8b 6d 08 31 c0 eb 0c 4d 39
RIP [<ffffffff88743c0b>] :bonding:bond_release+0x62/0x4f1
RSP <ffff811866a6fe28>
Environment
- Red Hat Enterprise Linux, version 5
- kernel-2.6.18-238.5.1 and earlier
- Bonding
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.