]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: validate VSI param from VFs
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 31 Mar 2015 07:45:00 +0000 (00:45 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 10:54:28 +0000 (03:54 -0700)
commitea24af0c8d02f26d0d03dca153a989df5f2a3cb1
tree11d9013019eababa7c0566e221fd08049e03afd4
parent121116f1d65c1aaebd0a5b3c621683cae892676c
i40e: validate VSI param from VFs

Validate that the VF has sent us a valid VSI index before actually using
that index. Without this code, a malicious or buggy VF driver could
panic the host by sending an invalid index into the VSI array.

Change-ID: I66a177687a0dcc281ec83e714d3813d70d18c8b4
Reported-by: Nick Nunley <nicholas.d.nunley@intel.com>
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c