All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: A race condition in xenlinux exit_mmap
@ 2006-08-01 10:39 Li, Xin B
  2006-08-01 10:51 ` Keir Fraser
  0 siblings, 1 reply; 6+ messages in thread
From: Li, Xin B @ 2006-08-01 10:39 UTC (permalink / raw)
  To: Keir Fraser; +Cc: hanzhu, xen-devel

 >Do you mind creating a patch to do this? I can send you more 
>details if you like.

Sure, pls send more info on this.
Thanks
-Xin

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Re: A race condition in xenlinux exit_mmap
@ 2006-08-01 13:53 Li, Xin B
  0 siblings, 0 replies; 6+ messages in thread
From: Li, Xin B @ 2006-08-01 13:53 UTC (permalink / raw)
  To: ben; +Cc: hanzhu, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1635 bytes --]

yes, elegant fix is not easy.
-Xin


________________________________

	From: bjthomas3@gmail.com [mailto:bjthomas3@gmail.com] On Behalf Of Ben Thomas
	Sent: 2006年8月1日 21:03
	To: Li, Xin B
	Cc: hanzhu@sjtu.edu.cn; xen-devel@lists.xensource.com
	Subject: Re: [Xen-devel] Re: A race condition in xenlinux exit_mmap
	
	
	Xin,
	
	I'm attaching a patch that we've been using since late May/early June to address an "Eeek" issues. Since we applied the patch, we haven't seen the issue.  As this was some time ago, I cannot recall if this is the same problem that you're seeing now. The patch wasn't submitted, as it isn't particularly clean. It's one of the many "some day soon" patches that we need to get resubmitted after a bit more work. I attach it here, not because I believe that it is "the answer", but as a data point for you.
	
	-b
	
	
	
	On 8/1/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk > wrote: 


		On 1 Aug 2006, at 11:39, Li, Xin B wrote:
		
		>> Do you mind creating a patch to do this? I can send you more
		>> details if you like.
		>
		> Sure, pls send more info on this.
		
		  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.
		
		  -- Keir
		
		
		_______________________________________________
		Xen-devel mailing list
		Xen-devel@lists.xensource.com 
		http://lists.xensource.com/xen-devel
		



[-- Attachment #1.2: Type: text/html, Size: 3185 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-01 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01 10:39 A race condition in xenlinux exit_mmap Li, Xin B
2006-08-01 10:51 ` Keir Fraser
2006-08-01 13:02   ` Ben Thomas
2006-08-01 13:08     ` hanzhu
2006-08-01 13:23       ` Ben Thomas
  -- strict thread matches above, loose matches on Subject: below --
2006-08-01 13:53 Li, Xin B

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.