linux/drivers/infiniband/ulp
Md Haris Iqbal 394b2f4d5e RDMA/rtrs-srv: Avoid null pointer deref during path establishment
[ Upstream commit d0e62bf7b5 ]

For RTRS path establishment, RTRS client initiates and completes con_num
of connections. After establishing all its connections, the information
is exchanged between the client and server through the info_req message.
During this exchange, it is essential that all connections have been
established, and the state of the RTRS srv path is CONNECTED.

So add these sanity checks, to make sure we detect and abort process in
error scenarios to avoid null pointer deref.

Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com>
Link: https://patch.msgid.link/20240821112217.41827-9-haris.iqbal@ionos.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-10-17 15:11:51 +02:00
..
ipoib RDMA/IPoIB: Fix format truncation compilation errors 2024-06-16 13:39:33 +02:00
iser IB/iser: Prevent invalidating wrong MR 2024-01-25 14:52:45 -08:00
isert Revert "IB/isert: Fix incorrect release of isert connection" 2023-09-19 12:22:48 +02:00
opa_vnic RDMA: Convert comma to semicolon 2021-01-07 13:53:41 -04:00
rtrs RDMA/rtrs-srv: Avoid null pointer deref during path establishment 2024-10-17 15:11:51 +02:00
srp RDMA/srp: Do not call scsi_done() from srp_abort() 2023-10-19 23:05:32 +02:00
srpt RDMA/srpt: Do not register event handler until srpt device is fully setup 2024-03-26 18:21:32 -04:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00