]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: iproc: Fix out-of-bound array accesses
authorBharat Gooty <bharat.gooty@broadcom.com>
Thu, 1 Oct 2020 06:00:52 +0000 (11:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:51:14 +0000 (11:51 +0100)
commit49b563bfdd662a8b88ff493961a321af0d4f2e6a
treefa6e89de6093d5c0ed085c883d61dd9b59f8d124
parent4ef5a46d2964c5a91c9e4908ad4ff652d02363cc
PCI: iproc: Fix out-of-bound array accesses

[ Upstream commit a3ff529f5d368a17ff35ada8009e101162ebeaf9 ]

Declare the full size array for all revisions of PAX register sets
to avoid potentially out of bound access of the register array
when they are being initialized in iproc_pcie_rev_init().

Link: https://lore.kernel.org/r/20201001060054.6616-2-srinath.mannam@broadcom.com
Fixes: 06324ede76cdf ("PCI: iproc: Improve core register population")
Signed-off-by: Bharat Gooty <bharat.gooty@broadcom.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/pcie-iproc.c