summaryrefslogtreecommitdiff
path: root/arch/score/include/uapi
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2016-06-22 17:27:30 +0300
committerDoug Ledford <dledford@redhat.com>2016-06-23 10:07:04 -0400
commit5533c18ab02b17a7f2ac11908e2d97d4b421617d (patch)
treec99fbd9f404082739a6e15e30b5cfe2ce54c2941 /arch/score/include/uapi
parenta6100603a4a87fc436199362bdb81cb849faaf6e (diff)
downloadlinux-5533c18ab02b17a7f2ac11908e2d97d4b421617d.tar.gz
IB/mlx4: Verify port number in flow steering create flow
In procedure mlx4_ib_create_flow, passing an invalid port number will cause an out-of-bounds array access. Data passed to this procedure can come from user-space. Therefore, need to validate port number before proceeding onwards. Note that we check against the number of physical ports declared at the verbs (ib core) level; When bonding is active, the verbs level sees one physical port, even though the low-level driver sees two ports. Fixes: f77c0162a339 ("IB/mlx4: Add receive flow steering support") Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'arch/score/include/uapi')
0 files changed, 0 insertions, 0 deletions