linux/drivers/infiniband
Wenchao Hao 782bdaf9d0 RDMA/restrack: Fix potential invalid address access
[ Upstream commit ca537a3477 ]

struct rdma_restrack_entry's kern_name was set to KBUILD_MODNAME
in ib_create_cq(), while if the module exited but forgot del this
rdma_restrack_entry, it would cause a invalid address access in
rdma_restrack_clean() when print the owner of this rdma_restrack_entry.

These code is used to help find one forgotten PD release in one of the
ULPs. But it is not needed anymore, so delete them.

Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20240318092320.1215235-1-haowenchao2@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-07-05 09:31:49 +02:00
..
core RDMA/restrack: Fix potential invalid address access 2024-07-05 09:31:49 +02:00
hw RDMA/mlx5: Add check for srq max_sge attribute 2024-06-27 13:46:21 +02:00
sw RDMA/rxe: Fix incorrect rxe_put in error path 2024-06-12 11:03:29 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-12 11:03:31 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-31 13:32:36 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00