[CRIU] [PATCH] aio: Don't consider aio_nr_req as a fd

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed Jun 24 06:21:53 PDT 2015


When freeing the vma entries, don't call close on vm_file_fd when dealing
with a VMA AIO entry since the vm_file_fd is then filled with aio_nr_req as
part of the union.

I hit this issue when running the test aio00 on ppc64. Here the value of
the VMA aio aio_nr_req field was matching the value of the service file
descriptor IMG_FD_OFF. This leads to an obscure checkpoint error.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 cr-dump.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cr-dump.c b/cr-dump.c
index f865967db43a..8ca18a51aecb 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -90,6 +90,8 @@ static void close_vma_file(struct vma_area *vma)
 		return;
 	if (vma->file_borrowed)
 		return;
+	if (vma_area_is(vma, VMA_AREA_AIORING))
+		return;
 
 	close(vma->vm_file_fd);
 }
-- 
1.9.1



More information about the CRIU mailing list