NetBSD/sys/arch/xen/x86
jdolecek d477b21b26 in xen_shm_map(), make sure to unmap any successfully mapped pages
before returning failure if there is partial failure

fix detection of partial failure - GNTTABOP_map_grant_ref can actually return
zero for partial failure, so we need to always check all the entries
to detect it

previously, DIAGNOSTIC kernel triggered panic() for partial failure,
and non-DIAGNOSTIC kernel did not detect it at all, leading to Dom0 page
fault later; since the mapping failure can be triggered by malicious
DomU via bad grant reference, it's important to expect the calls
to fail, and handle it gracefully without crashing Dom0

part of fixes for XSA-362
2021-02-21 20:11:59 +00:00
..
autoconf.c
consinit.c
cpu.c
hypervisor_machdep.c
pintr.c adjust includes to pull __HAVE_PCI_MSI_MSIX properly 2020-08-01 12:39:40 +00:00
pvh_consinit.c
x86_xpmap.c Fix fallout from previous uvm.h cleanup. 2020-09-06 02:18:53 +00:00
xen_bus_dma.c
xen_intr.c adjust includes to pull __HAVE_PCI_MSI_MSIX properly 2020-08-01 12:39:40 +00:00
xen_ipi.c
xen_mainbus.c
xen_pmap.c Fix fallout from previous uvm.h cleanup. 2020-09-06 02:18:53 +00:00
xen_shm_machdep.c in xen_shm_map(), make sure to unmap any successfully mapped pages 2021-02-21 20:11:59 +00:00
xenfunc.c