WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] RE: A race condition in xenlinux exit_mmap
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Tue, 1 Aug 2006 21:46:57 +0800
Cc: hanzhu@xxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 01 Aug 2006 06:47:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aca1WeSfBVVCqzbHSHGjY4WK7+bWOwAES0og
Thread-topic: 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