Search Linux Wireless

Re: [PATCH v2 3.9] cfg80211: always check for scan end on P2P device

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

 



On Thu, 2013-03-21 at 22:12 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> If a P2P device wdev is removed while it has a scan, then the
> scan completion might crash later as it is already freed by
> that time. To avoid the crash always check the scan completion
> when the P2P device is being removed for some reason. If the
> driver already canceled it, don't want and free it, otherwise
> warn and leak it to avoid later crashes.
> 
> In order to do this, locking needs to be changed away from the
> rdev mutex (which can't always be guaranteed). For now, use
> the sched_scan_mtx instead, I'll rename it to just scan_mtx in
> a later patch.

Still broken, in other ways :-(

The locking here is tricky, I think I'll give up on this for 3.9 and
disable P2P Device in iwlmvm there.

johannes

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