kernel_samsung_a53x/drivers/infiniband/hw/i40iw
Christopher Bednarz a85db37df0 RDMA/irdma: Prevent zero-length STAG registration
commit bb6d73d9add68ad270888db327514384dfa44958 upstream.

Currently irdma allows zero-length STAGs to be programmed in HW during
the kernel mode fast register flow. Zero-length MR or STAG registration
disable HW memory length checks.

Improve gaps in bounds checking in irdma by preventing zero-length STAG or
MR registrations except if the IB_PD_UNSAFE_GLOBAL_RKEY is set.

This addresses the disclosure CVE-2023-25775.

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Christopher Bednarz <christopher.n.bednarz@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230818144838.1758-1-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:10:54 +01:00
..
i40iw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_cm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_cm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_ctrl.c RDMA/irdma: Prevent zero-length STAG registration 2024-11-18 12:10:54 +01:00
i40iw_d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_hmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_hmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_osdep.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_p.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_pble.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_pble.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_puda.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_puda.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_register.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_status.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_type.h RDMA/irdma: Prevent zero-length STAG registration 2024-11-18 12:10:54 +01:00
i40iw_uk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_user.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_verbs.c RDMA/irdma: Prevent zero-length STAG registration 2024-11-18 12:10:54 +01:00
i40iw_verbs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_vf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_vf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_virtchnl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40iw_virtchnl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00