]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/infiniband/hw/mlx5/qp.c
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)
commit0625b4ba1a5d4703c7fb01c497bd6c156908af00
treef15b75c430a49c33bca7b26f84285d843691f4d8
parent0da9be22cdcbcbe0e5f04271dcfac71601526a3e
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: 41d902cb7c32 ("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