linux_dsm_epyc7002/drivers/pci
Mathias Krause 3dcc8d39cf PCI: Prevent out of bounds access in numa_node override
Commit 1266963170 ("PCI: Prevent out of bounds access in numa_node
override") missed that the user-provided node could also be negative.
Handle this case as well to avoid out-of-bounds accesses to the
node_states[] array.  However, allow the special value -1, i.e.
NUMA_NO_NODE, to be able to set the 'no specific node' configuration.

Fixes: 1266963170 ("PCI: Prevent out of bounds access in numa_node override")
Fixes: 63692df103 ("PCI: Allow numa_node override via sysfs")
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Sasha Levin <sasha.levin@oracle.com>
CC: Prarit Bhargava <prarit@redhat.com>
CC: stable@vger.kernel.org	# v3.19+
2015-11-24 12:33:13 -06:00
..
host PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
hotplug
pcie
access.c
ats.c
bus.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c Merge branches 'pci/aer', 'pci/hotplug', 'pci/misc', 'pci/msi', 'pci/resource' and 'pci/virtualization' into next 2015-11-02 15:57:03 -06:00
irq.c
Kconfig
Makefile
msi.c PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
of.c
pci-acpi.c
pci-driver.c PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c PCI: Prevent out of bounds access in numa_node override 2015-11-24 12:33:13 -06:00
pci.c PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
pci.h PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
probe.c Merge branches 'acpi-smbus', 'acpi-ec' and 'acpi-pci' 2015-11-20 01:22:52 +01:00
proc.c
quirks.c PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
remove.c
rom.c
search.c
setup-bus.c PCI: Handle IORESOURCE_PCI_FIXED when assigning resources 2015-10-29 17:35:39 -05:00
setup-irq.c
setup-res.c Merge branches 'pci/aer', 'pci/hotplug', 'pci/misc', 'pci/msi', 'pci/resource' and 'pci/virtualization' into next 2015-11-02 15:57:03 -06:00
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c