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

Re: [Xen-devel] grant table interface addition?


  • To: Jan Beulich <jbeulich@xxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Mon, 03 Nov 2008 12:55:47 +0000
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 03 Nov 2008 04:56:08 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Ack9s310vA+P1KmmEd2ZhAAX8io7RQ==
  • Thread-topic: [Xen-devel] grant table interface addition?

On 3/11/08 12:13, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> While looking in more detail into how all this fits together, I realized that
> there appears to be a race condition in blktap: Since fast_flush_area()
> and dispatch_rw_block_io() call create_lookup_pte_addr() without holding
> mm->mmap_sem, there's nothing preventing the just verified (or
> created) page table structures to go away again before
> HYPERVISOR_grant_table_op() is able to finish (or even begin) its job.
> Am I missing something here?

So, for example, it could be munmap()ed under those functions' feet? Or the
process could die? Looks like you could be right, although I've never looked
closely at the blktap kernel driver.

 -- Keir



_______________________________________________
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®.