Skip to contentSkip to conversation

RDMA/cxgb4: stack info leak in c4iw_create_qp()

PATCH In review Dan Carpenter 2 participants 2 messages Jul 25, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/cxgb4: stack info leak in c4iw_create_qp()

"uresp.ma_sync_key" doesn't get set on this path so we leak 8 bytes of data.

drivers/infiniband/hw/cxgb4/qp.c +2 -0
index 2320404..a4975e1 100644
@@ -1657,6 +1657,8 @@ struct ib_qp *c4iw_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *attrs,
 		if (mm5) {
 			uresp.ma_sync_key = ucontext->key;
 			ucontext->key += PAGE_SIZE;
+		} else {
+			uresp.ma_sync_key =  0;
 		}
 		uresp.sq_key = ucontext->key;
 		ucontext->key += PAGE_SIZE;

A message that is not in the archive (sent off-list or not yet received): [email protected]