linux/drivers/infiniband
Wenchao Hao 8ac281d423 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:33:51 +02:00
..
core RDMA/restrack: Fix potential invalid address access 2024-07-05 09:33:51 +02:00
hw RDMA/mlx5: Follow rb_key.ats when creating new mkeys 2024-06-27 13:49:12 +02:00
sw RDMA/rxe: Fix data copy for IB_SEND_INLINE 2024-06-27 13:49:12 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-12 11:12:11 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00