OSDN Git Service

IB/mlx5: Fix leaking stack memory to userspace
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 14 Aug 2018 21:33:52 +0000 (15:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:32 +0000 (10:32 +0200)
commit103a3a62e0fbe718f2c85f029544163f332d19d3
tree9fa506d116f68126a42df9da7660a3eec395f2d3
parente48fd87e93e1cac29e4a33b74bb15090884ca5a0
IB/mlx5: Fix leaking stack memory to userspace

commit 0625b4ba1a5d4703c7fb01c497bd6c156908af00 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/qp.c