linux_dsm_epyc7002/drivers/infiniband
Leon Romanovsky 5700c3d4ab RDMA/addr: Be strict with gid size
[ Upstream commit d1c803a9ccd7bd3aff5e989ccfb39ed3b799b975 ]

The nla_len() is less than or equal to 16.  If it's less than 16 then end
of the "gid" buffer is uninitialized.

Fixes: ae43f82867 ("IB/core: Add IP to GID netlink offload")
Link: https://lore.kernel.org/r/20210405074434.264221-1-leon@kernel.org
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-14 08:42:12 +02:00
..
core RDMA/addr: Be strict with gid size 2021-04-14 08:42:12 +02:00
hw RDMA/qedr: Fix kernel panic when trying to access recv_cq 2021-04-14 08:42:12 +02:00
sw RDMA/rxe: Fix missing kconfig dependency on CRYPTO 2021-03-09 11:11:14 +01:00
ulp RDMA/rtrs-clt: Close rtrs client conn before destroying rtrs clt session files 2021-04-14 08:42:09 +02:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile