summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2021-03-04 10:34:30 +0100
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-07-19 09:18:30 -0700
commit8b4b06919fd66caf49fdf4fe59f9d6312cf7956d (patch)
tree12361330b03ef66edd3346cc0529a1755de2d1f7 /scripts/gcc-plugins
parent0d6835ffe50c9c1f098b5704394331710b67af48 (diff)
i40e: improve locking of mac_filter_hash
i40e_config_vf_promiscuous_mode() calls i40e_getnum_vf_vsi_vlan_filters() without acquiring the mac_filter_hash_lock spinlock. This is unsafe because mac_filter_hash may get altered in another thread while i40e_getnum_vf_vsi_vlan_filters() traverses the hashes. Simply adding the spinlock in i40e_getnum_vf_vsi_vlan_filters() is not possible as it already gets called in i40e_get_vlan_list_sync() with the spinlock held. Therefore adding a wrapper that acquires the spinlock and call the correct function where appropriate. Fixes: 37d318d7805f ("i40e: Remove scheduling while atomic possibility") Fix-suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions