Re: [PATCH net-next] net: Fix race condition in store_rps_map

2015-08-07 Thread David Miller
From: Tom Herbert Date: Wed, 5 Aug 2015 09:39:27 -0700 > There is a race condition in store_rps_map that allows jump label > count in rps_needed to go below zero. This can happen when > concurrently attempting to set and a clear map. > > Scenario: > > 1. rps_needed count is zero > 2. New map is

[PATCH net-next] net: Fix race condition in store_rps_map

2015-08-05 Thread Tom Herbert
There is a race condition in store_rps_map that allows jump label count in rps_needed to go below zero. This can happen when concurrently attempting to set and a clear map. Scenario: 1. rps_needed count is zero 2. New map is assigned by setting thread, but rps_needed count _not_ yet incremente