Alexander Duyck bf7fa551e0 mac80211: Resolve sk_refcnt/sk_wmem_alloc issue in wifi ack path
There is a possible issue with the use, or lack thereof of sk_refcnt and
sk_wmem_alloc in the wifi ack status functionality.

Specifically if a socket were to request acknowledgements, and the socket
were to have sk_refcnt drop to 0 resulting in it waiting on sk_wmem_alloc
to reach 0 it would be possible to have sock_queue_err_skb orphan the last
buffer, resulting in __sk_free being called on the socket.  After this the
buffer is enqueued on sk_error_queue, however the queue has already been
flushed resulting in at least a memory leak, if not a data corruption.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-12 17:51:25 -04:00
..
2013-12-18 10:33:06 +01:00
2013-12-18 10:33:06 +01:00
2014-04-09 10:55:30 +02:00
2014-04-09 14:49:43 +02:00
2014-06-25 09:10:43 +02:00
2009-07-10 15:01:49 -04:00
2014-07-21 12:14:04 +02:00
2014-06-23 11:05:23 +02:00
2013-12-16 11:29:48 +01:00
2014-04-29 17:59:27 +02:00
2014-04-09 14:49:43 +02:00
2014-06-23 11:05:23 +02:00
2013-12-18 10:33:06 +01:00
2012-06-24 11:33:18 +02:00
2014-07-21 12:14:04 +02:00
2014-06-23 11:05:31 +02:00
2012-03-13 14:54:16 -04:00
2012-06-20 17:35:22 +02:00