linux/drivers/infiniband/hw/mlx5
Majd Dibbiny 3d943c9d1c IB/{core, mlx5}: Fix input len in vendor part of create_qp/srq
Currently, the inlen field of the vendor's part of the command
doesn't match the command buffer. This happens because the inlen
accommodates ib_uverbs_cmd_hdr which is deducted from the in buffer.
This is problematic since the vendor function could be called either
from the legacy verb (where the input length mismatches the actual
length) or by the extended verb (where the length matches). The vendor
has no idea which function calls it and therefore has no way to know
how the length variable should be treated.

Fixing this by aligning the inlen to the correct length.

All vendor drivers either assumed that inlen >= sizeof(vendor_uhw_cmd)
or just failed wrongly (mlx5) and fixed in this patch.

Fixes: cfb5e088e2 ('IB/mlx5: Add CQE version 1 support to user QPs and SRQs')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-03-03 10:00:18 -05:00
..
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
Makefile IB/mlx5: Implement the ODP capability query verb 2014-12-15 18:19:02 -08:00
ah.c IB/mlx5: Add RoCE fields to Address Vector 2015-12-23 12:07:37 -05:00
cq.c Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
mad.c IB/mad: Remove improper use of BUG_ON 2015-07-14 13:20:08 -04:00
main.c IB/mlx5: Fix reqlen validation in mlx5_ib_alloc_ucontext 2016-02-02 16:42:22 -05:00
mem.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
mlx5_ib.h Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mr.c IB/mlx5: Postpone remove_keys under knowledge of coming preemption 2015-12-08 16:55:31 -05:00
odp.c IB/mlx5: Refactor mlx5_ib_qp to accommodate other QP types 2016-01-21 12:01:09 -05:00
qp.c IB/mlx5: Fix RC transport send queue overhead computation 2016-02-12 14:56:08 -05:00
srq.c IB/{core, mlx5}: Fix input len in vendor part of create_qp/srq 2016-03-03 10:00:18 -05:00
user.h IB/mlx5: Add create and destroy functionality for Raw Packet QP 2016-01-21 12:01:09 -05:00