diff options
author | Matan Barak <matanb@mellanox.com> | 2018-03-22 11:52:02 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-27 14:43:10 -0600 |
commit | be23fb9a2c1d33037c1499a04e93bb0c03cf73d6 (patch) | |
tree | 4de6c284d051146f346d9bc77b45657333cd3b18 /drivers | |
parent | 819b60286e4e99e499d966ea55d5ef8fb9151b13 (diff) |
IB/uverbs: UAPI pointers should use __aligned_u64 type
The ioctl() UAPIs are meant to be used by both user-space
and kernel ioctl() handlers.
Mostly, these UAPI structs tend to consist of simple types, but
sometimes user-space pointers may be passed between user-space and
kernel. We would like to avoid dereferencing a user-space pointer in
the kernel, thus - we always define RDMA_UAPI_PTR as a __aligned_u64
type.
Fixes: 1f7ff9d5d36a ('IB/uverbs: Move to new headers and make naming consistent')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions