linux/drivers/net/ethernet/intel/ice
Michal Swiatkowski 9c7dd7566d ice: add validation in OP_CONFIG_VSI_QUEUES VF message
Check num_queue_pairs to avoid access to unallocated field of
vsi->tx_rings/vsi->rx_rings. Without this validation we can set
vsi->alloc_txq/vsi->alloc_rxq to value smaller than ICE_MAX_BASE_QS_PER_VF
and send this command with num_queue_pairs greater than
vsi->alloc_txq/vsi->alloc_rxq. This lead to access to unallocated memory.

In VF vsi alloc_txq and alloc_rxq should be the same. Get minimum
because looks more readable.

Also add validation for ring_len param. It should be greater than 32 and
be multiple of 32. Incorrect value leads to hang traffic on PF.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-08-26 23:25:14 -07:00
..
ice_adminq_cmd.h ice: silence some bogus error messages 2019-08-23 10:20:32 -07:00
ice_common.c ice: shorten local and add debug prints 2019-08-26 23:09:46 -07:00
ice_common.h ice: separate out control queue lock creation 2019-07-31 10:23:04 -07:00
ice_controlq.c ice: separate out control queue lock creation 2019-07-31 10:23:04 -07:00
ice_controlq.h ice: Trivial cosmetic changes 2019-05-30 10:57:55 -07:00
ice_dcb_lib.c ice: Fix ethtool port and PFC stats for 4x25G cards 2019-08-26 22:54:12 -07:00
ice_dcb_lib.h ice: Fix hang when ethtool disables FW LLDP 2019-05-23 10:51:53 -07:00
ice_dcb.c ice: Treat DCBx state NOT_STARTED as valid 2019-08-23 09:55:55 -07:00
ice_dcb.h ice: Refactor the LLDP MIB change event handling 2019-05-23 10:51:53 -07:00
ice_devids.h ice: Change device ID define names to align with branding string 2018-10-24 13:53:30 -07:00
ice_ethtool.c ice: update ethtool stats on-demand 2019-08-23 10:34:27 -07:00
ice_hw_autogen.h ice: Set WB_ON_ITR when we don't re-enable interrupts 2019-08-20 14:21:21 -07:00
ice_lan_tx_rx.h ice: Always set prefena when configuring an Rx queue 2019-07-31 10:23:04 -07:00
ice_lib.c ice: Fix issues updating VSI MAC filters 2019-08-23 10:46:53 -07:00
ice_lib.h ice: Fix issues updating VSI MAC filters 2019-08-23 10:46:53 -07:00
ice_main.c ice: Don't clog kernel debug log with VF MDD events errors 2019-08-26 23:21:28 -07:00
ice_nvm.c ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: added sibling head to parse nodes 2019-08-26 22:59:00 -07:00
ice_sched.h ice: Add code for DCB initialization part 3/4 2019-04-18 08:38:47 -07:00
ice_sriov.c ice: Add support for new PHY types 2019-01-15 12:38:44 -08:00
ice_sriov.h ice: Add handlers for VF netdevice operations 2018-10-03 07:42:30 -07:00
ice_status.h ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_switch.c ice: Don't allow VSI to remove unassociated ucast filter 2019-08-23 10:51:46 -07:00
ice_switch.h ice: Minor cleanup in ice_switch.h 2019-05-29 02:55:34 -07:00
ice_txrx.c ice: Allow egress control packets from PF_VSI 2019-08-23 09:17:45 -07:00
ice_txrx.h ice: Set WB_ON_ITR when we don't re-enable interrupts 2019-08-20 14:21:21 -07:00
ice_type.h ice: added sibling head to parse nodes 2019-08-26 22:59:00 -07:00
ice_virtchnl_pf.c ice: add validation in OP_CONFIG_VSI_QUEUES VF message 2019-08-26 23:25:14 -07:00
ice_virtchnl_pf.h ice: Don't clog kernel debug log with VF MDD events errors 2019-08-26 23:21:28 -07:00
ice.h ice: update ethtool stats on-demand 2019-08-23 10:34:27 -07:00
Makefile ice: Add code for DCB initialization part 1/4 2019-04-18 08:38:47 -07:00