From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Date: Wed, 13 Jan 2010 12:38:25 -0500 Subject: [ath9k-devel] ath9k hangs on load in current git: invalid context Message-ID: <1263404305.4527.16.camel@mj> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hello! After upgrading to the current wireless-testing.git, ath9k started failing on the modules load. It's a kernel with most debugging enabled, so that may be the reason others don't see it. However, the lock warning is followed by a NULL pointer dereference in ath9k_hw_intrpend(). ath5k is working on the same kernel. Here's the relevant part of the kernel log: ath9k 0000:0c:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 ath9k 0000:0c:00.0: setting latency timer to 64 BUG: sleeping function called from invalid context at /home/proski/src/linux-2.6/arch/x86/mm/fault.c:1072 in_atomic(): 0, irqs_disabled(): 1, pid: 3223, name: modprobe 1 lock held by modprobe/3223: #0: (&mm->mmap_sem){++++++}, at: [] do_page_fault+0xfb/0x380 irq event stamp: 44288 hardirqs last enabled at (44287): [] _raw_spin_unlock_irqrestore+0x3b/0x70 hardirqs last disabled at (44288): [] request_threaded_irq+0x177/0x230 softirqs last enabled at (39570): [] sk_filter+0x7f/0xe0 softirqs last disabled at (39568): [] sk_filter+0x16/0xe0 Pid: 3223, comm: modprobe Not tainted 2.6.33-rc3-wl #65 Call Trace: [] ? print_irqtrace_events+0xd0/0xe0 [] __might_sleep+0xdf/0x110 [] do_page_fault+0x116/0x380 [] ? ath_isr+0x0/0x1a0 [ath9k] [] page_fault+0x1f/0x30 [] ? ath_isr+0x0/0x1a0 [ath9k] [] ? ath9k_hw_intrpend+0xc/0x70 [ath9k_hw] [] ath_isr+0x48/0x1a0 [ath9k] [] ? ath_isr+0x0/0x1a0 [ath9k] [] ? ath_isr+0x0/0x1a0 [ath9k] [] request_threaded_irq+0x183/0x230 [] ath_pci_probe+0x1cf/0x3f0 [ath9k] [] local_pci_probe+0x12/0x20 [] pci_device_probe+0x80/0xb0 [] ? driver_sysfs_add+0x5a/0x90 [] driver_probe_device+0x89/0x180 [] ? __driver_attach+0x0/0xa0 [] __driver_attach+0x9b/0xa0 [] ? __driver_attach+0x0/0xa0 [] bus_for_each_dev+0x64/0x90 [] driver_attach+0x19/0x20 [] bus_add_driver+0xbb/0x260 [] driver_register+0x6f/0x130 [] __pci_register_driver+0x61/0xe0 [] ? ath9k_init+0x0/0x6f [ath9k] [] ath_pci_init+0x1e/0x20 [ath9k] [] ath9k_init+0x48/0x6f [ath9k] [] do_one_initcall+0x37/0x190 [] sys_init_module+0xda/0x250 [] system_call_fastpath+0x16/0x1b BUG: unable to handle kernel NULL pointer dereference at 00000000000000f8 IP: [] ath9k_hw_intrpend+0xc/0x70 [ath9k_hw] PGD 6defd067 PUD 6deb2067 PMD 0 Oops: 0000 [#1] SMP DEBUG_PAGEALLOC last sysfs file: /sys/module/mac80211/initstate CPU 1 Pid: 3223, comm: modprobe Not tainted 2.6.33-rc3-wl #65 0DT492/Inspiron 1420 RIP: 0010:[] [] ath9k_hw_intrpend+0xc/0x70 [ath9k_hw] RSP: 0018:ffff88006de27bb8 EFLAGS: 00010096 RAX: ffff88007f245dc0 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 000000000000ad00 RSI: ffff88006def9800 RDI: 0000000000000000 RBP: ffff88006de27bc8 R08: 0000000000000001 R09: ffff88006def9800 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffffffffa00e7770 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f372cc6d6f0(0000) GS:ffff880002300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00000000000000f8 CR3: 000000007e391000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process modprobe (pid: 3223, threadinfo ffff88006de26000, task ffff88007f245dc0) Stack: ffff88006de27be8 ffff88006def9800 ffff88006de27c08 ffffffffa00e77b8 <0> ffff88007f162e00 ffffffffa00e7770 ffff88006de27c08 0000000000000011 <0> 0000000000000292 ffffffffa00e7770 ffff88006de27c68 ffffffff810837d3 Call Trace: [] ath_isr+0x48/0x1a0 [ath9k] [] ? ath_isr+0x0/0x1a0 [ath9k] [] ? ath_isr+0x0/0x1a0 [ath9k] [] request_threaded_irq+0x183/0x230 [] ath_pci_probe+0x1cf/0x3f0 [ath9k] [] local_pci_probe+0x12/0x20 [] pci_device_probe+0x80/0xb0 [] ? driver_sysfs_add+0x5a/0x90 [] driver_probe_device+0x89/0x180 [] ? __driver_attach+0x0/0xa0 [] __driver_attach+0x9b/0xa0 [] ? __driver_attach+0x0/0xa0 [] bus_for_each_dev+0x64/0x90 [] driver_attach+0x19/0x20 [] bus_add_driver+0xbb/0x260 [] driver_register+0x6f/0x130 [] __pci_register_driver+0x61/0xe0 [] ? ath9k_init+0x0/0x6f [ath9k] [] ath_pci_init+0x1e/0x20 [ath9k] [] ath9k_init+0x48/0x6f [ath9k] [] do_one_initcall+0x37/0x190 [] sys_init_module+0xda/0x250 [] system_call_fastpath+0x16/0x1b Code: f6 c1 e6 05 81 c6 1c 88 00 00 ff 10 c9 c1 e8 0f 83 e0 01 c3 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 53 48 89 fb 48 83 ec 08 <83> bf f8 00 00 00 14 74 48 48 8b 87 e0 00 00 00 be 38 40 00 00 RIP [] ath9k_hw_intrpend+0xc/0x70 [ath9k_hw] RSP CR2: 00000000000000f8 ---[ end trace f405f763f9bd5fdb ]--- -- Regards, Pavel Roskin