android_kernel_sony_sdm845/include/xen
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Beulich 3a707cbd81 Xen/gntdev: correct error checking in gntdev_map_grant_pages()
commit ebee0eab08594b2bd5db716288a4f1ae5936e9bc upstream.

Failure of the kernel part of the mapping operation should also be
indicated as an error to the caller, or else it may assume the
respective kernel VA is okay to access.

Furthermore gnttab_map_refs() failing still requires recording
successfully mapped handles, so they can be unmapped subsequently. This
in turn requires there to be a way to tell full hypercall failure from
partial success - preset map_op status fields such that they won't
"happen" to look as if the operation succeeded.

Also again use GNTST_okay instead of implying its value (zero).

This is part of XSA-361.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-23 13:59:17 +01:00
..
interface xen: Sync xen header 2016-09-05 13:52:37 +02:00
acpi.h
balloon.h xen/balloon: use hotplugged pages for foreign mappings etc. 2015-10-23 14:20:05 +01:00
events.h xen/events: add a new "late EOI" evtchn framework 2020-11-18 18:26:30 +01:00
features.h
grant_table.h Xen/gntdev: correct error checking in gntdev_map_grant_pages() 2021-02-23 13:59:17 +01:00
hvc-console.h
hvm.h
page.h xen: Fix page <-> pfn conversion on 32 bit systems 2016-04-06 11:18:17 +01:00
platform_pci.h xen/pvhvm: Remove the xen_platform_pci int. 2014-01-03 14:54:53 -05:00
swiotlb-xen.h swiotlb-xen: implement xen_swiotlb_dma_mmap callback 2017-10-05 09:44:05 +02:00
tmem.h
xen-ops.h xen: change the type of xen_vcpu_id to uint32_t 2016-08-24 18:17:27 +01:00
xen.h xen: Revert commits da72ff5bfcb0 and 72a9b18629 2017-05-14 14:00:22 +02:00
xenbus.h xen/xenbus: Count pending messages for each watch 2021-01-09 13:35:50 +01:00
xenbus_dev.h