RDMA/ucma: Fix uABI structure layouts for 32/64 compat
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Mar 2018 20:19:47 +0000 (14:19 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 20:25:08 +0000 (14:25 -0600)
commit611cb92b082ad16b2fe1258e51d5aca7de540dfb
tree641fe2e35df9c9441bcf8b324bc179f1b219e86c
parent38b48808b9af55f02cb226a1f09b7a5e67104569
RDMA/ucma: Fix uABI structure layouts for 32/64 compat

The rdma_ucm_event_resp is a different length on 32 and 64 bit compiles.

The kernel requires it to be the expected length or longer so 32 bit
builds running on a 64 bit kernel will not work.

Retain full compat by having all kernels accept a struct with or without
the trailing reserved field.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/ucma.c
include/uapi/rdma/rdma_user_cm.h