aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2014-10-10 04:48:18 -0700
committerDavid S. Miller <[email protected]>2014-10-10 15:37:29 -0400
commit4c450583d9d0a8241f0f62b80038ac47b43ff843 (patch)
tree85ca97083049de5acf67f1a1b467b1db209e7cdc /lib/test-string_helpers.c
parent98226208c8a1fe5834e92d827a2a1e8051a17943 (diff)
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions