[lvc-project] [PATCH v2] PCI: kirin: Fix buffer overflow

Fedor Pchelkin pchelkin at ispras.ru
Thu Aug 29 20:34:25 MSK 2024


On Fri, 19. Jul 15:21, Alexandra Diupina wrote:
> 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.
> 
> Fixes: b22dbbb24571 ("PCI: kirin: Support PERST# GPIOs for HiKey970 external PEX 8606 bridge")
> Signed-off-by: Alexandra Diupina <adiupina at astralinux.ru>
> ---
> v2: some changes

Патч добавлен в linux-6.1-lvc-next, спасибо!




More information about the lvc-project mailing list