commit | a7401b9cf342775921f7b8eb2f9cedcaf004a929 | [log] [tgz] |
---|---|---|
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | Tue Sep 30 12:03:49 2014 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 30 16:27:49 2014 -0400 |
tree | acabc4f35d537d90a2f33f7c85f1d6485c038398 | |
parent | e1c00e10e92c04aa637126db2e59b092bd4878f8 [diff] |
net/mlx4_core: Protect QUERY_PORT wrapper from untrusted guests The function mlx4_QUERY_PORT_wrapper implements only the QUERY_PORT "general" case (opcode modifier = 0). Verify that the opcode modifier is zero, and also that the input modifier contains only the port number in bits 0..7 (all other bits should be zero). Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>