diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-05-26 13:15:05 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-03 15:12:43 -0300 |
| commit | 43b57d73ebbe5e7964a8b3ee3ffde0948fae6e2e (patch) | |
| tree | 5b0d21e2e8fba419def744de9bee5c394614d046 /scripts | |
| parent | b548a6c4eee5c428663f3944e173e6c92e2e8d6f (diff) | |
RDMA/core: Don't make a dummy ib_udata on the stack in create_qp
Sashiko points out the udata for destruction has to be created using
uverbs_get_cleared_udata(). Move it to ib_core_uverbs.c so that the core
qp code can call it. Rework the call chain to pass the struct
uverbs_attr_bundle right up to the driver op callback.
Fixes a possible wild stack reference in drivers during error unwinding,
mlx5 can call rdma_udata_to_drv_context() from destroy_qp() when
destroying a QP.
Fixes: 00a79d6b996d ("RDMA/core: Configure selinux QP during creation")
Link: https://patch.msgid.link/r/1-v1-922fa8e828ba+f7-ib_udata_stack_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
