Search Linux Wireless

Re: [PATCH 1/3] mac80211: cooperate more with network namespaces

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

 



Thanks Pavel,

> >  		while (!skb_queue_empty(&local->pending[i])) {
> >  			struct sk_buff *skb = __skb_dequeue(&local->pending[i]);
> > +			struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
> > +			struct ieee80211_sub_if_data *sdata;
> > +
> > +			sdata = vif_to_sdata(info->control.vif);
> > +			dev_hold(sdata->dev);
> 
> I'm getting a panic at this point if I run hostapd on ath9k and a
> Windows client tries to authenticate with a wrong WPA key.
> 
> Debugging shows that sdata->dev is NULL.

I suspect 'sdata' is already pointing to something bogus, since it's the
result of a container_of().

Can you try with the sanity checking patch I'm about to send?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux