From 2409f1f69a5b2444990cb17f5a8d67eafb021740 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 15 Dec 2024 16:28:52 +0100 Subject: task_info: Fix resident_size overflow --- kern/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kern/task.c b/kern/task.c index a85cd227..bd57ca2a 100644 --- a/kern/task.c +++ b/kern/task.c @@ -800,7 +800,7 @@ kern_return_t task_info( map = (task == kernel_task) ? kernel_map : task->map; basic_info->virtual_size = map->size; - basic_info->resident_size = pmap_resident_count(map->pmap) + basic_info->resident_size = ((rpc_vm_size_t) pmap_resident_count(map->pmap)) * PAGE_SIZE; task_lock(task); -- cgit v1.2.3