Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
xen.8425
59491909-gnttab-never-create-host-mapping-unles...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 59491909-gnttab-never-create-host-mapping-unless-asked-to.patch of Package xen.8425
# Commit 56f2ab5b970f1b18cf2019df4bf27db544cda6ea # Date 2017-06-20 14:46:01 +0200 # Author Jan Beulich <jbeulich@suse.com> # Committer Jan Beulich <jbeulich@suse.com> gnttab: never create host mapping unless asked to We shouldn't create a host mapping unless asked to even in the case of mapping a granted MMIO page. In particular the mapping wouldn't be torn down when processing the matching unmap request. This is part of XSA-224. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -677,10 +677,13 @@ __gnttab_map_grant_ref( goto undo_out; } - rc = create_grant_host_mapping( - op->host_addr, frame, op->flags, cache_flags); - if ( rc != GNTST_okay ) - goto undo_out; + if ( op->flags & GNTMAP_host_map ) + { + rc = create_grant_host_mapping(op->host_addr, frame, op->flags, + cache_flags); + if ( rc != GNTST_okay ) + goto undo_out; + } } else if ( owner == rd || owner == dom_cow ) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor