Re: [PATCH rdma-next] IB/uverbs: UAPI pointers should use __aligned_u64 type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 22, 2018 at 11:52:02AM +0200, Leon Romanovsky wrote:
> From: Matan Barak <matanb@xxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  include/uapi/rdma/ib_user_ioctl_verbs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to -next, thanks

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux