summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/numa/hmat.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2020-08-18 16:24:25 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-09-24 12:57:37 +0200
commit8a3decac087aa897df5af04358c2089e52e70ac4 (patch)
treef6ee16ffb5c69459ffcb9589f403c18d44b3c1ff /drivers/acpi/numa/hmat.c
parentLinux 5.9-rc6 (diff)
downloadlinux-8a3decac087aa897df5af04358c2089e52e70ac4.tar.xz
linux-8a3decac087aa897df5af04358c2089e52e70ac4.zip
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>
Diffstat (limited to 'drivers/acpi/numa/hmat.c')
0 files changed, 0 insertions, 0 deletions