nvme-rdma: Don't leak uninitialized memory in connect request private data
authorRoland Dreier <roland@purestorage.com>
Sun, 31 Jul 2016 07:27:39 +0000 (00:27 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Wed, 3 Aug 2016 13:24:57 +0000 (16:24 +0300)
commit0b857b44b5e445dc850cd91c45ce6edeb7797480
treefac52459f64f5b1191869fcb070c9187fe1cbc21
parent07f00f06ba9a5533d6650d46d3e938f6cbeee97e
nvme-rdma: Don't leak uninitialized memory in connect request private data

Zero out the full nvme_rdma_cm_req structure before sending it.
Otherwise we end up leaking kernel memory in the reserved field, which
might break forward compatibility in the future.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c