bonding module causes kernel oops when "mode" option used
Tested on 1.9_beta3.
Tests run:
- modprobe bonding — OK
- modprobe bonding miimon=100 — OK
- modprobe bonding mode=balance-tlb miimon=100 — OOPS
- modprobe bonding mode=balance-tlb — OOPS
- modprobe bonding mode=5 —OOPS
Tested the above both before and after installing iproute2 apk.
After kernel oops, if I try to run lsmod / modprobe / rmmod they just hang and cannot even be killed with kill –9.
The call trace is pasted below and a full console log with dmesg is attached. I can run further tests or provide more logs if needed.
-aalatchm
—
Call Trace:
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.
PAX: modprobe:1376, uid/euid: 0/0, attempted to modify kernel code
BUG: unable to handle kernel paging request at c0cc1ac8
IP: [<000314db>] 0x0314db
*pde = 00c001e1
Oops: 0003 [#1] SMP
last sysfs file: /sys/devices/virtual/vc/vcsa4/dev
Modules linked in: bonding(+) ipv6 af_packet serio_raw pcspkr shpchp pci_hotplug i2c_viapro i2c_core via_rhine snd_via82xx snd_ac97_codec ac97_bus snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore gameport firewire_ohci firewire_core crc_itu_t via_agp agpgart r8169 mii bitrev crc32 evdev fan rtc_cmos rtc_core rtc_lib 8250_pnp parport_pc parport thermal button processor nls_iso8859_1 nls_cp437 vfat fat nls_base sata_via ehci_hcd uhci_hcd via82cxxx ide_pci_generic ide_core pata_acpi ata_generic pata_via libata floppy usb_storage usb_libusual usbcore sd_mod scsi_mod cramfs loop [last unloaded: bonding]
Pid: 1376, comm: modprobe Not tainted (2.6.30.4-grsec #1)
EIP: 0060:[<000314db>] EFLAGS: 00010202 CPU: 0
EAX: 00000001 EBX: c0cc1ac4 ECX: 0000000b EDX: c0cc1ac4
ESI: f68622c5 EDI: f820245c EBP: f69b9ee0 ESP: f69b9ed4
DS: 0068 ES: 0068 FS: 00d8 GS: 0000 SS: 0068
Process modprobe (pid: 1376, ti=f69b8000 task=f70a3570 task.ti=f69b8000)
Stack:
f68622c0 f68622c5 f6862200 f69b9f14 00031050 f68622c5 c0cc1ac4 c0cc1a24
00000283 c0cbd6b8 f82022b8 f68622d1 00000008 f82022ac f68622c0 c09fef5d
f69b9f9c 000417ac 00000010 00000000 f69b9f84 f8373de4 f837a1a4 00000021
Call Trace:
[<00031050>] ? 0x031050
[<000417ac>] ? 0x0417ac
[<00041982>] ? 0x041982
[<00003ac5>] ? 0x003ac5
[<0001a160>] ? 0x01a160
[<0001a160>] ? 0x01a160
Code: c0 e8 6a 02 19 00 b8 e4 ff ff ff 5b 5e eb 40 83 7b 04 00 79 0a 8b 43 10 8b 00 e8 f7 1d 03 00 e8 48 17 03 00 8b 7b 10 85 c0 74 20 <81> 4b 04 00 00 00 80 ba d0 00 00 00 89 f0 e8 ff 27 02 00 89 07
EIP: [<000314db>] SS:ESP 0068:f69b9ed4
CR2: 00000000c0cc1ac8
---[ end trace 06b93d1e8cae6435 ]---
(from redmine: issue id 135, created on 2009-08-13, closed on 2009-10-09)
- Changesets:
- Revision 7db5f91c on 2009-08-27T09:05:32Z:
main/*-grsec: upgrade kernel
fixes #135