From 7a4ee0ae8effdbf475804b72995912b0911ad28a Mon Sep 17 00:00:00 2001 From: David Francis Date: Wed, 12 Feb 2025 09:26:21 -0500 Subject: [PATCH] restorer: Skip non-regular VMAs amdgpu represents allocated device memory as a memory mapping of the device file. This is a non-standard VMA that must be handled by the plugin, not the normal VMA code. Ignore all VMAs on device files. Signed-off-by: David Francis --- criu/pie/restorer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c index 5c40b0e93..008e1398d 100644 --- a/criu/pie/restorer.c +++ b/criu/pie/restorer.c @@ -1989,6 +1989,9 @@ __visible long __export_restore_task(struct task_restore_args *args) for (m = 0; m < sizeof(vma_entry->madv) * 8; m++) { if (vma_entry->madv & (1ul << m)) { + if (!(vma_entry_is(vma_entry, VMA_AREA_REGULAR))) + continue; + ret = sys_madvise(vma_entry->start, vma_entry_len(vma_entry), m); if (ret) { pr_err("madvise(%" PRIx64 ", %" PRIu64 ", %ld) "