NetBSD/sys/arch/xen
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
..
compile
conf Add need-flags for kernfs. 2020-05-26 10:37:24 +00:00
include Add back <xen/xenio3.h>, it's needed by xentools413 2020-08-31 11:32:01 +00:00
x86 in xen_shm_map(), make sure to unmap any successfully mapped pages 2021-02-21 20:11:59 +00:00
xen reset xio_xv before calling xbdback_io_error() so it won't try to unmap 2021-02-21 20:02:25 +00:00
xenbus Add need-flags for kernfs. 2020-05-26 10:37:24 +00:00
Makefile