android_kernel_sony_sdm845/drivers/xen
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Juergen Gross ae52960b08 xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status
[ Upstream commit 6b51fd3f65a22e3d1471b18a1d56247e246edd46 ]

xenbus_map_ring_valloc() maps a ring page and returns the status of the
used grant (0 meaning success).

There are Xen hypervisors which might return the value 1 for the status
of a failed grant mapping due to a bug. Some callers of
xenbus_map_ring_valloc() test for errors by testing the returned status
to be less than zero, resulting in no error detected and crashing later
due to a not available ring page.

Set the return value of xenbus_map_ring_valloc() to GNTST_general_error
in case the grant status reported by Xen is greater than zero.

This is part of XSA-316.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
Link: https://lore.kernel.org/r/20200326080358.1018-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-02 17:23:17 +02:00
..
events xen: fix GCC warning and remove duplicate EVTCHN_ROW/EVTCHN_COL usage 2018-10-10 08:53:22 +02:00
xen-pciback xen/pciback: Check dev_data before using it 2019-12-05 15:34:29 +01:00
xenbus xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status 2020-05-02 17:23:17 +02:00
xenfs
acpi.c
arm-device.c
balloon.c xen/balloon: fix ballooned page accounting without hotplug enabled 2020-01-12 11:24:11 +01:00
biomerge.c
cpu_hotplug.c xen, cpu_hotplug: Prevent an out of bounds access 2020-01-29 10:24:18 +01:00
dbgp.c
efi.c
evtchn.c
fallback.c
features.c
gntalloc.c
gntdev.c
grant-table.c
Kconfig
Makefile Kbuild: use -fshort-wchar globally 2018-11-23 08:20:37 +01:00
manage.c xen/manage: don't complain about an empty value in control/sysrq node 2018-10-10 08:53:22 +02:00
mcelog.c
pci.c xen/pci: reserve MCFG areas earlier 2019-10-17 13:42:10 -07:00
pcpu.c
platform-pci.c
preempt.c xen: Enable interrupts when calling _cond_resched() 2020-02-28 15:42:57 +01:00
privcmd.c
privcmd.h
swiotlb-xen.c xen/swiotlb: fix condition for calling xen_destroy_contiguous_region() 2019-08-06 18:29:41 +02:00
sys-hypervisor.c
time.c
tmem.c
xen-acpi-cpuhotplug.c
xen-acpi-memhotplug.c
xen-acpi-pad.c
xen-acpi-processor.c xen/acpi: off by one in read_acpi_id() 2018-05-30 07:50:42 +02:00
xen-balloon.c
xen-scsiback.c xen/scsiback: add error handling for xenbus_printf 2018-08-24 13:12:29 +02:00
xen-selfballoon.c
xen-stub.c
xlate_mmu.c xen: xlate_mmu: add missing header to fix 'W=1' warning 2018-12-17 09:38:34 +01:00