]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/mlx4_core: Check port number for validity before accessing data
authorMatan Barak <matanb@mellanox.com>
Thu, 19 Dec 2013 19:20:18 +0000 (21:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 00:04:44 +0000 (19:04 -0500)
commit982290a7fe36e528af292d3e3b61939b1900bfc6
treec8c21acd38576bc0518d79d4784dfc8938327ce0
parent0276a330617a0cf380f09e5065299078d3d45886
net/mlx4_core: Check port number for validity before accessing data

Need to validate port number at mlx4_promisc_qp() before use.
Since port number is extracted from gid, as a cooked or corrupted gid
could lead to a crash.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c