1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/infiniband/hw/mlx5
Patrisious Haddad 36ab7ada64 RDMA/mlx5: Add check for srq max_sge attribute
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>
2024-06-21 10:19:36 -03:00
..
ah.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
cmd.c RDMA/mlx5: Use query_special_contexts for mkeys 2023-02-17 16:22:23 -04:00
cmd.h RDMA/mlx5: Use query_special_contexts for mkeys 2023-02-17 16:22:23 -04:00
cong.c IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supported 2024-01-31 11:15:29 +02:00
counters.c IB/mlx5: Add HW counter called rx_dct_connect 2023-07-31 11:40:32 +03:00
counters.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
cq.c net/mlx5: Allocate completion EQs dynamically 2023-08-07 10:53:52 -07:00
devx.c RDMA/mlx5: Relax DEVX access upon modify commands 2024-01-31 11:15:39 +02:00
devx.h RDMA/mlx5: Attach ndescs to mlx5_ib_mkey 2021-10-19 14:42:53 +03:00
dm.c RDMA/mlx5: Support handling of SW encap ICM area 2023-12-12 09:03:57 +02:00
dm.h RDMA/mlx5: Expose UAPI to query DM 2021-04-13 19:36:37 -03:00
doorbell.c net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
fs.c RDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation 2023-09-26 12:29:40 +03:00
fs.h RDMA/mlx5: Create an indirect flow table for steering anchor 2023-06-11 11:25:34 +03:00
gsi.c net/mlx5: Lag, expose number of lag ports 2022-05-09 22:54:00 -07:00
ib_rep.c {net/RDMA}/mlx5: introduce lag_for_each_peer 2023-06-07 14:00:42 -07:00
ib_rep.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ib_virt.c RDMA/mlx5: Delete useless module.h include 2022-01-28 13:03:12 -04:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
macsec.c RDMA/mlx5: Handles RoCE MACsec steering rules addition and deletion 2023-08-20 12:35:24 +03:00
macsec.h RDMA/mlx5: Handles RoCE MACsec steering rules addition and deletion 2023-08-20 12:35:24 +03:00
mad.c RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-04-08 13:33:10 +03:00
main.c RDMA/mlx5: Fix unwind flow as part of mlx5_ib_stage_init_init 2024-06-21 10:19:36 -03:00
Makefile RDMA/mlx5: Implement MACsec gid addition and deletion 2023-08-20 12:35:24 +03:00
mem.c IB/mlx5: Use __iowrite64_copy() for write combining stores 2024-04-22 17:11:20 -03:00
mlx5_ib.h RDMA/mlx5: Change check for cacheable mkeys 2024-04-08 13:34:51 +03:00
mr.c RDMA/mlx5: Ensure created mkeys always have a populated rb_key 2024-06-21 10:19:36 -03:00
odp.c Merge mlx5-next into rdma.git for-next 2023-02-17 16:24:14 -04:00
qos.c RDMA/core: Allow the ioctl layer to abort a fully created uobject 2020-05-21 20:10:46 -03:00
qp.c RDMA/mlx5: Track DCT, DCI and REG_UMR QPs as diver_detail resources. 2024-04-30 11:19:37 +03:00
qp.h RDMA/mlx5: Handle DCT QP logic separately from low level QP interface 2023-06-11 11:21:40 +03:00
qpc.c RDMA/mlx5: Return the firmware result upon destroying QP/RQ 2023-06-11 11:21:46 +03:00
restrack.c RDMA/mlx5: Track DCT, DCI and REG_UMR QPs as diver_detail resources. 2024-04-30 11:19:37 +03:00
restrack.h RDMA/mlx5: Separate restrack callbacks initialization from main.c 2020-07-07 14:05:51 -03:00
srq.c RDMA/mlx5: Add check for srq max_sge attribute 2024-06-21 10:19:36 -03:00
srq.h RDMA/mlx5: Lower setting the umem's PAS for SRQ 2020-11-16 16:53:30 -04:00
srq_cmd.c RDMA/mlx5: Lower setting the umem's PAS for SRQ 2020-11-16 16:53:30 -04:00
std_types.c RDMA/mlx5: Fill port info based on the relevant eswitch 2021-08-05 13:49:24 -07:00
umr.c RDMA/mlx5: Implement mkeys management via LIFO queue 2023-09-26 12:36:18 +03:00
umr.h RDMA/mlx5: Allow relaxed ordering read in VFs and VMs 2023-04-16 13:29:26 +03:00
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-01-31 11:15:17 +02:00
wr.h RDMA/mlx5: Expose wqe posting helpers outside of wr.c 2022-04-25 11:53:00 -03:00