From: Alex Bligh Subject: Re: Fatal crash on xen4.2 HVM + qemu-xen dm + NFS Date: Mon, 21 Jan 2013 15:15:50 +0000 Message-ID: <77822E2DDAEA8F94631B6A52@Ximines.local> References: <5B4525F296F6ABEB38B0E614@nimrod.local> <50CEFDA602000078000B0B11@nat28.tlf.novell.com> <3B1D0701EAEA6532CEA91EA0@Ximines.local> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Ian Campbell , Konrad Rzeszutek Wilk , Stefano Stabellini , Xen Devel , Jan Beulich , Alex Bligh List-Id: xen-devel@lists.xenproject.org Stefano, --On 16 January 2013 17:33:59 +0000 Stefano Stabellini wrote: > Almost. I am saying that the kernel completed the AIO write and notified > QEMU after it received an ACK from the other end, but before the > tcp_retransmit was supposed to run. I admit I am not that familiar with > the network stack so this is just a supposition. OK, let's presume you are right here. The page is still referenced by the networking stack at this point because it's in some tcp transmit buffer (the original thread established that), and that will show up in a reference count. Surely before Xen removes the grant on the page, unmapping it from dom0's memory, it should check to see if there are any existing references to the page and if there are, given the kernel its own COW copy, rather than unmap it totally which is going to lead to problems. -- Alex Bligh