Latest working kernel version: 2.6.28 Earliest failing kernel version: 2.6.29-rc1 (or compat-wireless-2.6 from 2009/01/12) Distribution: Ubuntu 8.10 Hardware Environment: Lenovo Thinkpad T400 Laptop Wireless Card: 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection Subsystem: Intel Corporation Device 1211 Flags: bus master, fast devsel, latency 0, IRQ 2297 Memory at f4300000 (64-bit, non-prefetchable) [size=8K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+ Capabilities: [e0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting <?> Capabilities: [140] Device Serial Number 34-f1-96-ff-ff-5d-21-00 Kernel driver in use: iwlagn Kernel modules: iwlagn Software Environment: Standard Ubuntu 8.09 install Problem Description: When trying to test a newer iwlagn driver to find out whether IBSS mode is supported, I get the following oops when trying to load the driver (modprobe iwlagn). No wlan0 device is present afterwards. This is the trace: [ 14.072188] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27ks [ 14.072196] iwlagn: Copyright(c) 2003-2009 Intel Corporation [ 14.072337] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 14.072378] iwlagn 0000:03:00.0: setting latency timer to 64 [ 14.072711] iwlagn 0000:03:00.0: Detected Intel Wireless WiFi Link 5100AGN REV=0x54 [ 14.093040] iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels [ 14.098403] iwlagn 0000:03:00.0: PCI INT A disabled [ 14.098426] BUG: unable to handle kernel NULL pointer dereference at 00000004 [ 14.098569] IP: [<f7d6d12d>] wiphy_update_regulatory+0x8d/0x340 [cfg80211] [ 14.098677] *pde = 00000000 [ 14.098683] Oops: 0000 [#1] SMP [ 14.098815] last sysfs file: /sys/devices/virtual/input/input0/modalias [ 14.098870] Modules linked in: iwlagn(+) iwlcore snd_rawmidi snd_seq_midi_event sr_mod cdrom mac80211 thinkpad_acpi rfkill psmouse snd_seq ac evdev nvram sdhci_pci sdhci pcspkr battery serio_raw snd_timer snd_seq_device cfg80211 video output mmc_core sg ohci1394 yenta_socket rsrc_nonstatic ricoh_mmc ieee1394 led_class pcmcia_core wmi snd iTCO_wdt button pata_acpi ata_generic ehci_hcd uhci_hcd soundcore iTCO_vendor_support intel_agp snd_page_alloc agpgart usbcore e1000e shpchp pci_hotplug ext3 jbd mbcache sd_mod crc_t10dif dm_mirror dm_region_hash dm_log dm_snapshot dm_mod thermal processor fan fuse ata_piix libata scsi_mod [ 14.101881] [ 14.101935] Pid: 2588, comm: modprobe Not tainted (2.6.29-rc1-wl #2) 2767B44 [ 14.101935] EIP: 0060:[<f7d6d12d>] EFLAGS: 00010202 CPU: 1 [ 14.101935] EIP is at wiphy_update_regulatory+0x8d/0x340 [cfg80211] [ 14.101935] EAX: 00000000 EBX: f7d71fe4 ECX: 0024cde0 EDX: 0000096c [ 14.101935] ESI: f5f00000 EDI: 00000002 EBP: f5d19d78 ESP: f5d19d04 [ 14.101935] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 [ 14.101935] Process modprobe (pid: 2588, ti=f5d18000 task=f5d73140 task.ti=f5d18000) [ 14.101935] Stack: [ 14.101935] 00000001 c05cafab f5d19d80 00000286 f5d19d42 c043ba83 0000000e 00018063 [ 14.101935] 00000004 f5d19d42 00000001 f5f00040 00000000 00000000 f5f000cc 205b0cf8 [ 14.101935] 34312020 3839302e f7d71fe4 f670c800 f5f01260 f5d19d78 00000020 0024cde0 [ 14.101935] Call Trace: [ 14.101935] [<f7d6c36d>] ? wiphy_register+0xdd/0x1f0 [cfg80211] [ 14.101935] [<c0387085>] ? printk+0x18/0x1b [ 14.101935] [<f81b81eb>] ? ieee80211_register_hw+0x4b/0x380 [mac80211] [ 14.101935] [<f81338a6>] ? iwl_setup_mac+0x86/0xd0 [iwlcore] [ 14.101935] [<c0267b0d>] ? pci_disable_device+0x5d/0x70 [ 14.101935] [<f8433650>] ? iwl_pci_probe+0x590/0x6a0 [iwlagn] [ 14.101935] [<c0269fce>] ? local_pci_probe+0xe/0x10 [ 14.101935] [<c026ac00>] ? pci_device_probe+0x60/0x80 [ 14.101935] [<c02ccb4f>] ? driver_probe_device+0x7f/0x1a0 [ 14.101935] [<c02cccf9>] ? __driver_attach+0x89/0x90 [ 14.101935] [<c02cbe4f>] ? bus_add_driver+0x1af/0x230 [ 14.101935] [<c026ab40>] ? pci_device_remove+0x0/0x40 [ 14.101935] [<c02cce99>] ? driver_register+0x69/0x140 [ 14.101935] [<f814e000>] ? iwl_init+0x0/0x71 [iwlagn] [ 14.101935] [<c026ae60>] ? __pci_register_driver+0x40/0x80 [ 14.101935] [<f814e000>] ? iwl_init+0x0/0x71 [iwlagn] [ 14.101935] [<f814e03e>] ? iwl_init+0x3e/0x71 [iwlagn] [ 14.101935] [<c0180826>] ? tracepoint_update_probe_range+0x76/0xa0 [ 14.101935] [<c010111b>] ? _stext+0x2b/0x160 [ 14.101935] [<c018087f>] ? tracepoint_module_notify+0x2f/0x40 [ 14.101935] [<c038c58d>] ? notifier_call_chain+0x2d/0x70 [ 14.101935] [<c014d3ed>] ? __blocking_notifier_call_chain+0x4d/0x60 [ 14.101935] [<c015e3d8>] ? sys_init_module+0x88/0x1c0 [ 14.101935] [<c010366b>] ? sysenter_do_call+0x12/0x2f [ 14.101935] Code: 83 8b 1d 10 77 d7 f7 89 45 d8 8b 40 18 8b 55 d8 89 45 e4 a1 08 77 d7 f7 0f b7 52 04 89 5d d4 69 ca e8 03 00 00 89 55 ec 89 4d e8 <8b> 40 04 83 f8 04 89 45 c8 0f 84 34 02 00 00 8b 55 b8 8b 42 1c [ 14.101935] EIP: [<f7d6d12d>] wiphy_update_regulatory+0x8d/0x340 [cfg80211] SS:ESP 0068:f5d19d04 [ 14.109956] ---[ end trace bc61f396bcb2c8f4 ]--- Steps to reproduce: git clone git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6.git iwlwifi cd iwlwifi make-kpkg --initrd --rootcmd fakeroot kernel_image sudo dpkg -i ../linux-image-2.6.29-rc1-wl_2.6.29-rc1-wl-10.00.Custom_i386.deb sudo reboot Used mac80211 related arguments are: options cfg80211 ieee80211_regdom=EU
Can you recreate with a kernel from Linus? git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
That one works: [ 8.959748] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27ks [ 8.959750] iwlagn: Copyright(c) 2003-2008 Intel Corporation [ 8.959820] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 8.959829] iwlagn 0000:03:00.0: setting latency timer to 64 [ 8.959910] iwlagn: Detected Intel Wireless WiFi Link 5100AGN REV=0x54 [ 8.988419] iwlagn: Tunable channels: 13 802.11bg, 24 802.11a channels [ 8.989435] iwlagn 0000:03:00.0: PCI INT A disabled [ 8.990111] wmaster0 (iwlagn): not using net_device_ops yet [ 8.990365] phy0: Selected rate control algorithm 'iwl-agn-rs' [ 9.728524] wlan0 (iwlagn): not using net_device_ops yet I used the git repo from above at rev 7cb36b6ccdca03bd87e8faca7fd920643dd1aec7.
OK, so if linux-2.6 works then I'm asserting that it isn't a regression. :-) Hopefully we can fix the problem so that we don't have to revisit this as a regression in 2.6.30...
Recent patch (not yet in wireless-testing) will fix this. Please test with http://marc.info/?l=linux-wireless&m=123206483431256&w=2
I tested with compat-wireless-2009-01-17 and the patch above applied since 2.6.29-rc1 introduced some regressions with suspend on my laptop. iwlagn now loads fine and works. I can even set IBSS mode.
Jo-Philipp, (In reply to comment #5) > I tested with compat-wireless-2009-01-17 and the patch above applied since > 2.6.29-rc1 introduced some regressions with suspend on my laptop. > > iwlagn now loads fine and works. I can even set IBSS mode. > Thank you very much for testing - could you please close this bug?
Of course. Thanks for your feedback so far.