#673: madwifi-ng triggers lockdep
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |            Owner:     
     Type:  defect                 |           Status:  new
 Priority:  major                  |        Milestone:     
Component:  madwifi: other         |          Version:     
 Keywords:                         |   Patch_attached:  0  
-----------------------------------+----------------------------------------
 Hello,
 sometimes when I try to unload the iptables modules (like on
 shutdown/reboot), my computer will hang (with nothing in the logs). I
 decided to check out Ingo Molinar's new lockdep patchset. I'm running 2.6
 .17-rc6-mm1, and after
 {{{
 modprobe ath_pci autocreate=none
 wlanconfig ath0 create wlandev wifi0 wlanmode sta
 iwconfig ath0 essid default nick none
 ifconfig ath0 192.168.0.90
 wlanconfig ath0 list ap
 }}}
 I get the following in the logs:
 {{{
 Jun  8 13:28:01 tobsbox kernel: ============================
 Jun  8 13:28:01 tobsbox kernel: [ BUG: illegal lock usage! ]
 Jun  8 13:28:01 tobsbox kernel: ----------------------------
 Jun  8 13:28:01 tobsbox kernel: illegal {in-softirq-W} -> {softirq-on-W}
 usage.
 Jun  8 13:28:01 tobsbox kernel: wlanconfig/2380 [HC0[0]:SC0[0]:HE1:SE1]
 takes:
 Jun  8 13:28:01 tobsbox kernel:  (&st->st_lock){-+..}, at: [<e0ab1256>]
 sta_iterate+0x36/0x90 [wlan_scan_sta]
 Jun  8 13:28:01 tobsbox kernel: {in-softirq-W} state was registered at:
 Jun  8 13:28:01 tobsbox kernel:   [<c0136afe>] lock_acquire+0x6e/0x90
 Jun  8 13:28:01 tobsbox kernel:   [<c032fc4b>] _spin_lock+0x2b/0x40
 Jun  8 13:28:01 tobsbox kernel:   [<e0ab2780>] sta_add+0x40/0x490
 [wlan_scan_sta]
 Jun  8 13:28:01 tobsbox kernel:   [<e08e1c90>]
 ieee80211_add_scan+0x60/0x220 [wlan]
 Jun  8 13:28:01 tobsbox kernel:   [<e08d61ff>]
 ieee80211_recv_mgmt+0x2abf/0x4610 [wlan]
 Jun  8 13:28:01 tobsbox kernel:   [<e08b8a9e>] ath_recv_mgmt+0x3e/0x180
 [ath_pci]
 Jun  8 13:28:01 tobsbox kernel:   [<e08d252c>]
 ieee80211_input+0xa5c/0x1be0 [wlan]
 Jun  8 13:28:01 tobsbox kernel:   [<e08d36fc>]
 ieee80211_input_all+0x4c/0x90 [wlan]
 Jun  8 13:28:01 tobsbox kernel:   [<e08bbb71>] ath_rx_tasklet+0x6d1/0x780
 [ath_pci]
 Jun  8 13:28:01 tobsbox kernel:   [<c011fdf0>] tasklet_action+0x40/0x80
 Jun  8 13:28:01 tobsbox kernel:   [<c01201e2>] __do_softirq+0x52/0xb0
 Jun  8 13:28:01 tobsbox kernel:   [<c01053cc>] do_softirq+0x5c/0xe0
 Jun  8 13:28:01 tobsbox kernel: irq event stamp: 1103
 Jun  8 13:28:01 tobsbox kernel: hardirqs last  enabled at (1103):
 [<c032e521>] __mutex_lock_slowpath+0x161/0x2b0
 Jun  8 13:28:01 tobsbox kernel: hardirqs last disabled at (1102):
 [<c032e3ec>] __mutex_lock_slowpath+0x2c/0x2b0
 Jun  8 13:28:01 tobsbox kernel: softirqs last  enabled at (190):
 [<c0120227>] __do_softirq+0x97/0xb0
 Jun  8 13:28:01 tobsbox kernel: softirqs last disabled at (179):
 [<c01053cc>] do_softirq+0x5c/0xe0
 Jun  8 13:28:01 tobsbox kernel:
 Jun  8 13:28:01 tobsbox kernel: other info that might help us debug this:
 Jun  8 13:28:01 tobsbox kernel: 2 locks held by wlanconfig/2380:
 Jun  8 13:28:01 tobsbox kernel:  #0:  (rtnl_mutex){--..}, at: [<c032e68c>]
 mutex_lock+0x1c/0x20
 Jun  8 13:28:01 tobsbox kernel:  #1:  (&st->st_scanlock){--..}, at:
 [<e0ab1240>] sta_iterate+0x20/0x90 [wlan_scan_sta]
 Jun  8 13:28:01 tobsbox kernel:
 Jun  8 13:28:01 tobsbox kernel: stack backtrace:
 Jun  8 13:28:01 tobsbox kernel:  [<c0103c42>] show_trace+0x12/0x20
 Jun  8 13:28:01 tobsbox kernel:  [<c0104259>] dump_stack+0x19/0x20
 Jun  8 13:28:01 tobsbox kernel:  [<c013489e>] print_usage_bug+0x20e/0x220
 Jun  8 13:28:01 tobsbox kernel:  [<c013531e>] mark_lock+0x4ee/0x670
 Jun  8 13:28:01 tobsbox kernel:  [<c01362a8>] __lock_acquire+0x648/0xca0
 Jun  8 13:28:01 tobsbox kernel:  [<c0136afe>] lock_acquire+0x6e/0x90
 Jun  8 13:28:01 tobsbox kernel:  [<c032fc4b>] _spin_lock+0x2b/0x40
 Jun  8 13:28:01 tobsbox kernel:  [<e0ab1256>] sta_iterate+0x36/0x90
 [wlan_scan_sta]
 Jun  8 13:28:01 tobsbox kernel:  [<e08e18d4>]
 ieee80211_scan_iterate+0x14/0x20 [wlan]
 Jun  8 13:28:01 tobsbox kernel:  [<e08e517a>]
 ieee80211_ioctl_getscanresults+0x4a/0xe0 [wlan]
 Jun  8 13:28:01 tobsbox kernel:  [<e08e63be>] ieee80211_ioctl+0x6e/0x560
 [wlan]
 Jun  8 13:28:01 tobsbox kernel:  [<c02cc157>] dev_ifsioc+0x357/0x3c0
 Jun  8 13:28:01 tobsbox kernel:  [<c02cc6c8>] dev_ioctl+0x1d8/0x390
 Jun  8 13:28:01 tobsbox kernel:  [<c02c0ac9>] sock_ioctl+0xd9/0x220
 Jun  8 13:28:02 tobsbox kernel:  [<c01802a0>] do_ioctl+0x20/0x60
 Jun  8 13:28:02 tobsbox kernel:  [<c0180337>] vfs_ioctl+0x57/0x2b0
 Jun  8 13:28:02 tobsbox kernel:  [<c01805f3>] sys_ioctl+0x63/0x80
 Jun  8 13:28:02 tobsbox kernel:  [<c03301e5>] sysenter_past_esp+0x56/0x8d
 }}}
 I have no idea if this has something to do with my original problem but
 thought you may be interested. I will keep running this kernel, let me
 know if you would like me to post other such reports.

 Tobias.

 Oh, almost forgot. madwifi-ng is:
 {{{
 Jun  8 13:25:36 tobsbox kernel: wlan: 0.8.4.2 (svn r1634)
 Jun  8 13:25:36 tobsbox kernel: ath_rate_sample: 1.2 (svn r1634)
 Jun  8 13:25:36 tobsbox kernel: ath_pci: 0.9.4.5 (svn r1634)
 Jun  8 13:25:36 tobsbox kernel: ACPI: PCI Interrupt Link [LNKB] enabled at
 IRQ 10
 Jun  8 13:25:36 tobsbox kernel: ACPI: PCI Interrupt 0000:00:0e.0[A] ->
 Link [LNKB] -> GSI 10 (level, low) -> I
 RQ 10
 Jun  8 13:25:36 tobsbox kernel: wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps
 11Mbps
 Jun  8 13:25:36 tobsbox kernel: wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps
 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps
 36Mbps 48Mbps 54Mbps
 Jun  8 13:25:36 tobsbox kernel: wifi0: H/W encryption support: WEP AES
 AES_CCM TKIP
 Jun  8 13:25:36 tobsbox kernel: wifi0: mac 7.8 phy 4.5 radio 5.6
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 1 for WME_AC_BE
 traffic
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 0 for WME_AC_BK
 traffic
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 2 for WME_AC_VI
 traffic
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 3 for WME_AC_VO
 traffic
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 8 for CAB traffic
 Jun  8 13:25:36 tobsbox kernel: wifi0: Use hw queue 9 for beacons
 Jun  8 13:25:36 tobsbox kernel: wifi0: Atheros 5212: mem=0xed800000,
 irq=10
 }}}

-- 
Ticket URL: <http://madwifi.org/ticket/673>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to