Uninitialized bitmap is sent to function which is only setting corresponding bits when MDD event occurs. Heaving random values in this bitmap leads to showing MDD events when there is no such events. Fix it by setting bitmap to all zeroes before calling handle_mdd() function.
Fixes: 61cb1bcf7e2a ("ixgbe: check for MDD events") Signed-off-by: Michal Swiatkowski <michal.swiatkow...@linux.intel.com> --- To be squashed with 61cb1bcf7e2a ("ixgbe: check for MDD events"). The changes are only on dev-queue. There is a bug found by validation. Tony, if you prefer I can send whole series with this fix in. Up to you. Thanks --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c index 8a1fc7f06007..bd9a054d7d94 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c @@ -1374,6 +1374,7 @@ bool ixgbe_check_mdd_event(struct ixgbe_adapter *adapter) return false; /* Did we have a malicious event */ + bitmap_zero(vf_bitmap, 64); hw->mac.ops.handle_mdd(hw, vf_bitmap); /* Log any blocked queues and release lock */ -- 2.42.0