linux_dsm_epyc7002/drivers/infiniband/hw
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
..
cxgb3 iw_cxgb3: Fix incorrectly returning error on success 2015-12-24 00:17:30 -05:00
cxgb4 Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mlx4 IB/mlx4: Add support for the port info class for RoCE ports 2016-02-17 10:07:20 -05:00
mlx5 IB/{core, mlx5}: Fix input len in vendor part of create_qp/srq 2016-03-03 10:00:18 -05:00
mthca IB: remove in-kernel support for memory windows 2015-12-23 14:29:04 -05:00
nes infiniband: Replace memset with eth_zero_addr 2016-01-19 15:24:54 -05:00
ocrdma RDMA/ocrdma: Fix arm logic to align with new cq API 2016-02-17 10:07:20 -05:00
qib Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
usnic IB/usnic: delete unneeded IS_ERR test 2015-12-23 10:50:58 -05:00
Makefile IB/ehca: Deprecate driver, move to staging, schedule deletion 2015-09-11 18:13:35 -04:00