]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Make PF more robust against malicious VF
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sun, 5 Jun 2016 10:11:13 +0000 (13:11 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 10 Aug 2016 21:04:11 +0000 (14:04 -0700)
commit8ec23a75ec68d61bb32285d03e3035ea46f65d7c
tree852af146142851689e33dc51040e632b9a7397b6
parent20809cdf389befc50c38140ab751fbd588b49fbe
qed: Make PF more robust against malicious VF

There are several requests the VF can make toward the PF which the driver
would pass to firmware without checking the validity first - specifically,
opening queues and updating vports. Such configurations might cause the
firmware to assert.

This adds validation of the legality of said configurations on the PF side
before passing it onward via ramrod to firmware.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 24361996
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_sriov.c