]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Don't post statistics to malicious VFs
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Fri, 9 Jun 2017 14:17:02 +0000 (17:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 20:02:55 +0000 (16:02 -0400)
commit6ec8e9cd99be42a14134cf5668d470be02aa537b
tree8cbd26e7fd48ca3e2b60de0120ae15a1fec0c2a8
parentf5331316eb18cb5e8b8189b03cfcb9fe4f738e85
bnx2x: Don't post statistics to malicious VFs

Once firmware indicates that a given VF is malicious and until
that VF passes an FLR all bets are off - PF can't know anything
is happening to the VF [since VF can't communicate anything to its PF].
But PF is currently still periodically asking device to collect
statistics for the VF which might in turn fill logs by IOMMU blocking
memory access done by the VF's PCI function [in the case VF has unmapped
its buffers].

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h