From: Jack Morgenstein Date: Tue, 30 Sep 2014 09:03:49 +0000 (+0300) Subject: net/mlx4_core: Protect QUERY_PORT wrapper from untrusted guests X-Git-Tag: fixes-against-v3.18-rc2~144^2~102^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7401b9cf342775921f7b8eb2f9cedcaf004a929;p=pandora-kernel.git 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 Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed