WSL2-Linux-Kernel/drivers/infiniband
Patrisious Haddad 1e692244bf RDMA/mlx5: Add check for srq max_sge attribute
[ Upstream commit 36ab7ada64caf08f10ee5a114d39964d1f91e81d ]

max_sge attribute is passed by the user, and is inserted and used
unchecked, so verify that the value doesn't exceed maximum allowed value
before using it.

Fixes: e126ba97db ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/277ccc29e8d57bfd53ddeb2ac633f2760cf8cdd0.1716900410.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:14:33 +02:00
..
core RDMA/cm: Print the old state when cm_destroy_id gets timeout 2024-04-27 17:05:25 +02:00
hw RDMA/mlx5: Add check for srq max_sge attribute 2024-07-05 09:14:33 +02:00
sw RDMA/rxe: Fix the problem "mutex_destroy missing" 2024-04-27 17:05:25 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-16 13:39:33 +02:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile