Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
xen.5852
599da329-arm-mm-release-grant-lock-on-xatp1-err...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 599da329-arm-mm-release-grant-lock-on-xatp1-error-paths.patch of Package xen.5852
# Commit 59546c1897a90fe9af5ebbbb05ead8d98b4d17b9 # Date 2017-08-23 17:45:45 +0200 # Author Jan Beulich <jbeulich@suse.com> # Committer Jan Beulich <jbeulich@suse.com> arm/mm: release grant lock on xenmem_add_to_physmap_one() error paths Commit 55021ff9ab ("xen/arm: add_to_physmap_one: Avoid to map mfn 0 if an error occurs") introduced error paths not releasing the grant table lock. Replace them by a suitable check after the lock was dropped. This is XSA-235. Reported-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Julien Grall <julien.grall@arm.com> --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -1081,7 +1081,7 @@ int xenmem_add_to_physmap_one( if ( idx < nr_status_frames(d->grant_table) ) mfn = virt_to_mfn(d->grant_table->status[idx]); else - return -EINVAL; + mfn = INVALID_MFN; } else { @@ -1092,14 +1092,21 @@ int xenmem_add_to_physmap_one( if ( idx < nr_grant_frames(d->grant_table) ) mfn = virt_to_mfn(d->grant_table->shared_raw[idx]); else - return -EINVAL; + mfn = INVALID_MFN; } - d->arch.grant_table_gpfn[idx] = gpfn; + if ( mfn != INVALID_MFN ) + { + d->arch.grant_table_gpfn[idx] = gpfn; - t = p2m_ram_rw; + t = p2m_ram_rw; + } grant_write_unlock(d->grant_table); + + if ( mfn == INVALID_MFN ) + return -EINVAL; + break; case XENMAPSPACE_shared_info: if ( idx != 0 )
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