linux/drivers/net/ethernet/intel
Stefan Assmann 8b4b06919f 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: 37d318d780 ("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>
2021-07-19 09:18:30 -07:00
..
e1000 intel: remove checker warning 2021-05-26 09:11:40 -07:00
e1000e e1000e: Fix an error handling path in 'e1000_probe()' 2021-07-01 10:59:21 -07:00
fm10k fm10k: Fix an error handling path in 'fm10k_probe()' 2021-07-01 10:59:21 -07:00
i40e i40e: improve locking of mac_filter_hash 2021-07-19 09:18:30 -07:00
iavf iavf: Fix an error handling path in 'iavf_probe()' 2021-07-01 10:59:21 -07:00
ice Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-06-28 15:28:03 -07:00
igb igb: Fix position of assignment to *ring 2021-07-01 10:59:21 -07:00
igbvf igbvf: convert to strongly typed descriptors 2021-05-26 09:11:41 -07:00
igc igc: Export LEDs 2021-07-16 14:08:12 -07:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe ixgbe: Fix an error handling path in 'ixgbe_probe()' 2021-07-01 10:53:22 -07:00
ixgbevf ixgbevf: use xso.real_dev instead of xso.dev in callback functions of struct xfrmdev_ops 2021-07-06 10:36:59 -07:00
e100.c e100: handle eeprom as little endian 2021-05-26 09:11:40 -07:00
Kconfig igc: Export LEDs 2021-07-16 14:08:12 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00