]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix leaking stack memory to userspace
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Aug 2018 21:33:52 +0000 (15:33 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Aug 2018 21:35:12 +0000 (15:35 -0600)
commit6f5662ae04789c656d0663c551658f189e63075a
treef15b75c430a49c33bca7b26f84285d843691f4d8
parentd8b41590a090b4c29609a97ea0d2feeb94118486
IB/mlx5: Fix leaking stack memory to userspace

mlx5_ib_create_qp_resp was never initialized and only the first 4 bytes
were written.

Fixes: 52d7d947a442 ("RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp")
Cc: <stable@vger.kernel.org>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c