milos-linux/include/rdma
Jason Gunthorpe badad6fad6 RDMA: During rereg_mr ensure that REREG_ACCESS is compatible
If IB_MR_REREG_ACCESS changes from RO to RW then the umem has to be
re-evaluated to ensure it is properly pinned as RW. Since the umem is
hidden inside each driver's mr struct add a ib_umem_check_rereg() function
that each driver has to call before processing IB_MR_REREG_ACCESS.

mlx4 has to retain its duplicate ib_access_writable check because it
implements IB_MR_REREG_ACCESS | IB_MR_REREG_TRANS by changing both items
in place sequentially while the MR is live, so it will continue to not
support this combination.

Cc: stable@vger.kernel.org
Fixes: b40656aa7d ("RDMA/umem: remove FOLL_FORCE usage")
Link: https://patch.msgid.link/r/0-v1-06fb1a2d6cf5+107-rereg_access_jgg@nvidia.com
Reported-by: Philip Tsukerman <philiptsukerman@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2026-06-08 13:39:20 -03:00
..
frmr_pools.h RDMA/core: Add pinned handles to FRMR pools 2026-03-02 13:45:13 -05:00
ib.h
ib_addr.h
ib_cache.h IB/cache: avoid kernel-doc warnings 2026-02-24 05:38:45 -05:00
ib_cm.h RDMA/cm: Correct typedef and bad line warnings 2025-11-12 04:39:12 -05:00
ib_hdrs.h
ib_mad.h RDMA/sa_query: Support IB service records resolution 2025-08-13 06:15:56 -04:00
ib_marshall.h RDMA/core: Remove unused ib_copy_path_rec_from_user 2024-12-24 05:00:42 -05:00
ib_pack.h
ib_pma.h
ib_sa.h RDMA/sa_query: Support IB service records resolution 2025-08-13 06:15:56 -04:00
ib_smi.h
ib_sysfs.h
ib_ucaps.h RDMA/uverbs: Introduce UCAP (User CAPabilities) API 2025-03-09 13:13:02 -04:00
ib_umem.h RDMA: During rereg_mr ensure that REREG_ACCESS is compatible 2026-06-08 13:39:20 -03:00
ib_umem_odp.h RDMA/core: Convert UMEM ODP DMA mapping to caching IOVA and page linkage 2025-05-12 06:06:51 -04:00
ib_verbs.h RDMA: Properly propagate the number of CQEs as unsigned int 2026-03-30 13:47:44 -04:00
iba.h
ibta_vol1_c12.h
iter.h RDMA: Move DMA block iterator logic into dedicated files 2026-02-25 08:15:30 -05:00
iw_cm.h RDMA/iwcm: fix some kernel-doc issues in iw_cm.h 2026-02-24 05:39:13 -05:00
iw_portmap.h
lag.h
mr_pool.h
opa_addr.h
opa_port_info.h RDMA/OPA: Update OPA link speed list 2026-03-11 15:17:28 -04:00
opa_smi.h
rdma_cm.h RDMA/core: Check id_priv->restricted_node_type in cma_listen_on_dev() 2026-02-25 07:50:10 -05:00
rdma_cm_ib.h
rdma_counter.h RDMA/core: Pass port to counter bind/unbind operations 2025-03-18 06:18:46 -04:00
rdma_netlink.h RDMA/nldev: Add dellink function pointer 2026-03-30 13:47:43 -04:00
rdma_vt.h RDMA/rdmavt: Add driver mmap callback 2026-03-11 15:17:28 -04:00
rdmavt_cq.h
rdmavt_mr.h
rdmavt_qp.h IB/rdmavt: rdmavt_qp.h: clean up kernel-doc comments 2025-11-06 02:23:23 -05:00
restrack.h RDMA/restrack: fix kernel-doc indicator 2026-02-24 05:39:21 -05:00
rw.h RDMA/core: add rdma_rw_max_sge() helper for SQ sizing 2026-01-28 05:54:53 -05:00
signature.h
tid_rdma_defs.h
uverbs_ioctl.h RDMA/core: Do not read wild stack memory in uverbs_get_handler_fn() 2026-05-19 19:32:48 -03:00
uverbs_named_ioctl.h
uverbs_std_types.h RDMA/uverbs: Propagate errors from rdma_lookup_get_uobject() 2025-03-13 08:26:37 -04:00
uverbs_types.h RDMA/uverbs: Add DMABUF object type and operations 2026-02-08 23:50:41 -05:00