[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240906064214.GC679795@rocinante>
Date: Fri, 6 Sep 2024 15:42:14 +0900
From: Krzysztof WilczyĆski <kw@...ux.com>
To: Alexandra Diupina <adiupina@...ralinux.ru>
Cc: Xiaowei Song <songxiaowei@...ilicon.com>,
Binghui Wang <wangbinghui@...ilicon.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Rob Herring <robh@...nel.org>, Bjorn Helgaas <bhelgaas@...gle.com>,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH] PCI: kirin: Fix buffer overflow
Hello,
By the way, this would be v2, technically, but not to worry.
> In kirin_pcie_parse_port() pcie->num_slots is compared to
> pcie->gpio_id_reset size (MAX_PCI_SLOTS). Need to fix
> condition to pcie->num_slots + 1 >= MAX_PCI_SLOTS and move
> pcie->num_slots increment lower to avoid out-of-bounds
> array access.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
Applied to controller/kirin, thank you!
[1/1] PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()
https://git.kernel.org/pci/pci/c/c500a86693a1
Krzysztof
Powered by blists - more mailing lists