linux_dsm_epyc7002/drivers/infiniband
Moni Shoua 05d14e7b0c IB/uverbs: Fix command checking as part of ib_uverbs_ex_modify_qp()
If the input command length is larger than the kernel supports an error should
be returned in case the unsupported bytes are not cleared, instead of the
other way aroudn. This matches what all other callers of ib_is_udata_cleared
do and will avoid user ABI problems in the future.

Cc: <stable@vger.kernel.org> # v4.10
Fixes: 189aba99e7 ("IB/uverbs: Extend modify_qp and support packet pacing")
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2017-12-27 15:24:41 -07:00
..
core IB/uverbs: Fix command checking as part of ib_uverbs_ex_modify_qp() 2017-12-27 15:24:41 -07:00
hw IB/mlx5: Serialize access to the VMA list 2017-12-27 15:24:40 -07:00
sw
ulp IB/ipoib: Fix lockdep issue found on ipoib_ib_dev_heavy_flush 2017-12-21 16:06:07 -07:00
Kconfig IB: INFINIBAND should depend on HAS_DMA 2017-11-30 16:01:28 -07:00
Makefile