[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RE: A race condition in xenlinux exit_mmap



>  1. Add an 'int has_foreign_mappings' to mmu_context structure
>  2. Ensure the field is initialised in init_new_context() (e.g., 
>memset-zero the whole structure; already done on x86/64)
>  3. Set the field in direct_remap_pfn_range()
>  4. Check the field in _arch_exit_mmap() to avoid calling mm_unpin().
>
>That's it. Just needs testing.
>

Patch attached, and it passed on our patch test system.
-Xin

Attachment: fix_exit_mmap.patch
Description: fix_exit_mmap.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.