]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA: Add ib_copy_validate_udata_in_cm()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Mar 2026 19:50:01 +0000 (15:50 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Sun, 8 Mar 2026 10:20:25 +0000 (06:20 -0400)
commitdbf6491bb98d2821f0a23f4e8efd215cb2e5ff21
tree660876f9fc9d33a08204edb3f6d29b3ed6c4a16d
parent1de9287ece44022bd694e669153fb7644804e10d
RDMA: Add ib_copy_validate_udata_in_cm()

For structures with comp_mask also absorb the check of comp_mask valid
bits into the helper. This is slightly tricky because ~ might not fully
extend to 64 bits, the helper inserts an explicit type to ensure that ~
covers all bits.

Link: https://patch.msgid.link/r/4-v3-bd56dd443069+49-bnxt_re_uapi_jgg@nvidia.com
Tested-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Acked-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_ioctl.c
include/rdma/uverbs_ioctl.h