1
0
Fork 0
alistair23-linux/drivers/pci/endpoint
Kishon Vijay Abraham I 8b6f8619fc PCI: endpoint: Fix for concurrent memory allocation in OB address region
commit 04e046ca57 upstream.

pci-epc-mem uses a bitmap to manage the Endpoint outbound (OB) address
region. This address region will be shared by multiple endpoint
functions (in the case of multi function endpoint) and it has to be
protected from concurrent access to avoid updating an inconsistent state.

Use a mutex to protect bitmap updates to prevent the memory
allocation API from returning incorrect addresses.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:11 +02:00
..
functions PCI: endpoint: Clear BAR before freeing its space 2019-06-11 10:57:54 +01:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile PCI: Add SPDX GPL-2.0 when no license was specified 2018-01-26 11:45:16 -06:00
pci-ep-cfs.c PCI: endpoint: Add MSI-X interfaces 2018-07-19 11:34:23 +01:00
pci-epc-core.c PCI: endpoint: Set endpoint controller pointer to NULL 2019-06-11 10:55:12 +01:00
pci-epc-mem.c PCI: endpoint: Fix for concurrent memory allocation in OB address region 2020-04-17 10:50:11 +02:00
pci-epf-core.c PCI: endpoint: Add support to specify alignment for buffers allocated to BARs 2019-04-15 13:24:02 +01:00