Search Linux Wireless

Re: [PATCH] cfg80211: Fix race in bss timeout

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

 



On Wed, Dec 07, 2011 at 04:56:15PM +0100, Johannes Berg wrote:
> On Wed, 2011-12-07 at 21:23 +0530, Vasanthakumar Thiagarajan wrote:
> > On Wed, Dec 07, 2011 at 04:37:28PM +0100, Johannes Berg wrote:
> > > > 
> > > > These warnings are added in cfg80211_roamed().
> > > 
> > > But this can be called directly by the driver with a NULL BSS.
> > > 
> > > Ohh. I see what you did, you didn't allow drivers calling this now. I
> > > think you should export this function still since otherwise the race
> > > windows might get tiny, but isn't actually completely closed (the first
> > > get_bss() might find it, the next a millisecond later not)
> > 
> > I can understand the millisecond delay between cfg80211_get_bss() in driver and
> > __cfg80211_roamed() as there can be delay in event_work getting
> > scheduled. I don't understand the delay between driver and
> > cfg80211_roamed() as the later one is direct call. Or this can be
> > done later if experienced the delay?.
> 
> The computer takes time to execute the functions, so time passes, right?

Ok. As driver adds new bss entry if it is not available it is always
safe to use the bss from driver to avoid any such race. Thanks!

Vasanth
--
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 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