android_kernel_samsung_a7y1.../drivers/xen
Dan Carpenter ce11a8f02a xen, cpu_hotplug: Prevent an out of bounds access
[ Upstream commit 201676095dda7e5b31a5e1d116d10fc22985075e ]

The "cpu" variable comes from the sscanf() so Smatch marks it as
untrusted data.  We can't pass a higher value than "nr_cpu_ids" to
cpu_possible() or it results in an out of bounds access.

Fixes: d68d82afd4c8 ("xen: implement CPU hotplugging")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:40:54 +02:00
..
events A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-pciback xen/pciback: Check dev_data before using it 2020-04-07 12:41:44 +02:00
xenbus fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock 2020-04-06 18:47:45 +02:00
xenfs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
balloon.c xen: let alloc_xenballooned_pages() fail if not enough memory free 2020-04-07 13:36:30 +02:00
biomerge.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu_hotplug.c xen, cpu_hotplug: Prevent an out of bounds access 2020-04-07 13:40:54 +02:00
dbgp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
efi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
evtchn.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fallback.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
features.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gntalloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gntdev.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
grant-table.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
manage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcelog.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.c xen/pci: reserve MCFG areas earlier 2020-04-07 08:08:00 +02:00
pcpu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platform-pci.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
preempt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
privcmd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
privcmd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
swiotlb-xen.c xen/swiotlb: fix condition for calling xen_destroy_contiguous_region() 2020-04-06 20:27:46 +02:00
sys-hypervisor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tmem.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-cpuhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-memhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-pad.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-acpi-processor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-balloon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-scsiback.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-selfballoon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-stub.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xlate_mmu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30