On Sun, Apr 29, 2018 at 10:46:46AM +0300, Leon Romanovsky wrote: > From: Parav Pandit <parav@xxxxxxxxxxxx> > > Commit given in fixes tag introduced an accurate check to validate > device, port, index by referring to the cache layer for querying GIDs > for all link layers (IB, RoCE and iWarp). > > When rdmacm tries to modify the QP to RTR state for kernel consumers, > qp and ah attributes are uninitialized. Each transport layer (IB/iWarp) > initializes them depending on transport type. > However qp ah_attr are not used for iWarp and remained uninitialized, > which is further used in ib_query_gid() call. This results into a > failure to query the GID due to an invalid GID index coming from > the uninitialized stack memory. > This is reported and discussed in thread [1]. What is ib_query_gid supposed to do for iWarp? 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