Eric Dumazet 4c450583d9 net: fix races in page->_count manipulation
This is illegal to use atomic_set(&page->_count, ...) even if we 'own'
the page. Other entities in the kernel need to use get_page_unless_zero()
to get a reference to the page before testing page properties, so we could
loose a refcount increment.

The only case it is valid is when page->_count is 0

Fixes: 540eb7bf0bbed ("net: Update alloc frag to reduce get/put page usage and recycle pages")
Signed-off-by: Eric Dumaze <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-10 15:37:29 -04:00
..
2014-08-22 12:23:11 -07:00
2014-10-04 20:44:44 -04:00
2014-09-30 17:08:06 -04:00
2014-09-10 12:40:10 -07:00
2013-09-23 16:52:45 -04:00
2014-09-28 07:05:16 -07:00
2014-10-09 01:40:05 -04:00
2014-09-07 16:07:25 -07:00
2014-10-07 20:28:44 -04:00