]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Prevent out of bounds access in numa_node override
authorSasha Levin <sasha.levin@oracle.com>
Wed, 7 Oct 2015 16:03:28 +0000 (11:03 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:28:23 +0000 (19:28 -0800)
commite8af0744bcc09bac9861564185806539a82343ed
treef2bc09a3f416618a6dce555e959ac6799298e759
parent0201d968bc31f6d1e6a16222457974952bfa292b
PCI: Prevent out of bounds access in numa_node override

Orabug: 22623819

commit 1266963170f576d4d08e6310b6963e26d3ff9d1e upstream.

63692df103e9 ("PCI: Allow numa_node override via sysfs") didn't check that
the numa node provided by userspace is valid.  Passing a node number too
high would attempt to access invalid memory and trigger a kernel panic.

Fixes: 63692df103e9 ("PCI: Allow numa_node override via sysfs")
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ca9ba892ebc734af45a9b61d9bc4169f73f8e379)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/pci/pci-sysfs.c