Skip to content
Commit d6f4a21f authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA/uverbs: Mark ioctl responses with UVERBS_ATTR_F_VALID_OUTPUT



When the ioctl interface for the write commands was introduced it did
not mark the core response with UVERBS_ATTR_F_VALID_OUTPUT. This causes
rdma-core in userspace to not mark the buffers as written for valgrind.

Along the same lines it turns out we have always missed marking the driver
data. Fixing both of these makes valgrind work properly with rdma-core and
ioctl.

Fixes: 4785860e ("RDMA/uverbs: Implement an ioctl that can call write and write_ex handlers")
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Reviewed-by: default avatarArtemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
parent 9d9f59b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment