]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/bnxt_re: Add compatibility checks to the uapi path
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 3 Mar 2026 19:50:05 +0000 (15:50 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Sun, 8 Mar 2026 10:20:25 +0000 (06:20 -0400)
commitb33d860a13b4f779a740b0c529d457f96d4688a8
tree03fe3c993106b5e2cbdf0e9683c2ac9e6ed3f321
parent5ebe8832ef900a889bfb72794086ebcde5fd40b7
RDMA/bnxt_re: Add compatibility checks to the uapi path

Check that the driver data is properly sized and properly zeroed by
calling ib_copy_validate_udata_in().

Use git history to find the commit introducing each req struct and use
that to select the end member.

Link: https://patch.msgid.link/r/8-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/hw/bnxt_re/ib_verbs.c