linux/drivers/infiniband/sw
Bernard Metzler ac791643e7 RDMA/siw: Fix user page pinning accounting
[ Upstream commit 65a8fc30fb ]

To avoid racing with other user memory reservations, immediately
account full amount of pages to be pinned.

Fixes: 2251334dca ("rdma/siw: application buffer management")
Reported-by: Jason Gunthorpe <jgg@nvidia.com>
Suggested-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20230202101000.402990-1-bmt@zurich.ibm.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:40:00 +01:00
..
rdmavt IB/rdmavt: add missing locks in rvt_ruc_loopback 2022-06-09 10:22:40 +02:00
rxe RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed 2022-12-31 13:14:24 +01:00
siw RDMA/siw: Fix user page pinning accounting 2023-03-10 09:40:00 +01:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00