linux-stable/drivers/acpi/numa
Jonathan Cameron 8a3decac08 ACPI: Add out of bounds and numa_off protections to pxm_to_node()
The function should check the validity of the pxm value before using
it to index the pxm_to_node_map[] array.

Whilst hardening this code may be good in general, the main intent
here is to enable following patches that use this function to replace
acpi_map_pxm_to_node() for non SRAT usecases which should return
NO_NUMA_NODE for PXM entries not matching with those in SRAT.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Barry Song <song.bao.hua@hisilicon.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-09-24 12:57:37 +02:00
..
hmat.c ACPI: HMAT: use %u instead of %d to print u32 values 2019-11-12 10:05:57 +01:00
Kconfig ACPI: NUMA: HMAT: Register "soft reserved" memory as an "hmem" device 2019-11-07 15:45:23 +01:00
Makefile
srat.c ACPI: Add out of bounds and numa_off protections to pxm_to_node() 2020-09-24 12:57:37 +02:00