]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/qedr: Zero stack memory before copying to user space
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 02:58:13 +0000 (20:58 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 16:11:37 +0000 (10:11 -0600)
commit57939021e8f882d13a5263a9d682c64ae00c578d
tree96e9c1061de3dc1db16b1ba107a3b3670257df07
parent2d93fc856959bb940b3cf1e7cbad38721d6bea75
RDMA/qedr: Zero stack memory before copying to user space

The fact this struct was not init'd like all the others was missed when
the padding reserved field was added.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 71e80a4781af ("RDMA/qedr: Fix uABI structure layouts for 32/64 compat")
Acked-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/verbs.c