aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-15 16:28:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-15 16:28:52 +0100
commit2409f1f69a5b2444990cb17f5a8d67eafb021740 (patch)
treef26a0a9b38da29108bbcbddfbe07331f62d237dc
parent69a5179ceab731892d4912bcfba80ff91058ac0c (diff)
downloadgnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.tar.gz
gnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.tar.bz2
gnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.zip
task_info: Fix resident_size overflow
-rw-r--r--kern/task.c2
1 files changed, 1 insertions, 1 deletions
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);