ACRN_IOCTL_VM_INTR_MONITOR pins the page it is given with pin_user_pages_fast() and stores it in vm->monitor_page. The ioctl releases a previous page with unpin_user_page(), but acrn_vm_destroy() releases the last one with put_page(). put_page() doesn't undo a pin. A small page is never freed, and a large folio is freed with its pin count still raised. To fix it, use unpin_user_page() in acrn_vm_destroy() as well. Fixes: c7cf8d27244f ("virt: acrn: Introduce interrupt injection interfaces") Cc: stable@vger.kernel.org Signed-off-by: Tal Zussman --- Compile tested only. --- drivers/virt/acrn/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/acrn/vm.c b/drivers/virt/acrn/vm.c index 3753b27c5312..49643dc52831 100644 --- a/drivers/virt/acrn/vm.c +++ b/drivers/virt/acrn/vm.c @@ -82,7 +82,7 @@ int acrn_vm_destroy(struct acrn_vm *vm) acrn_ioreq_deinit(vm); if (vm->monitor_page) { - put_page(vm->monitor_page); + unpin_user_page(vm->monitor_page); vm->monitor_page = NULL; } --- base-commit: c44104f3642da720164042623e4832836aefdd8e change-id: 20261121-acrn-unpin-monitor-page-632d5f7760c3 Best regards, -- Tal Zussman