Search Linux Wireless

Re: Circular lock with mac80211_hwsim and DFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Hi,
> > 
> > I tried to run a simple DFS test with mac80211_hwsim for the first time
> > but got the deadlock below. Is this a regression or has DFS ever worked
> > with hwsim?
> > 
> > Using 31e1798fbf from mac80211-next.
> 
> just checked again with mac80211-next for ath9k, and I don't see this
> lockdep problem. Appearently this is a problem in hwsim only ....
> 

...after talking to Johannes, I could actually recreate the problem. I have 
never tried to scan before starting hostap (actually this would only be 
possible with force-ap when in AP mode). This will then mark the path for 
lockdep, which eventually will hit the splat you reported. So I take that 
back, the problem is also in ath9k and not in hwsim.

As Johannes pointed out, this should not happen when using DFS because of RTNL 
locking, but still this is ugly.

For reference, the problem is:

1)
 * ieee80211_request_scan locks local->mtx 
 * ieee80211_offchannel_stop_vifs locks local->iflist_mtx
2)
 * start_radar_detection locks local->iflist_mtx
 * ieee80211_vif_use_channel locks local->chanctx_mtx
 * ieee80211_new_chanctx locks local->mtx

And there we have the circular dependency.

Cheers,
    Simon
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux