The following commit has been merged in the master branch:
commit a552d956e86682b4af80c8fa5e6cc48282fd5a28
Author: Samuel Thibault <[email protected]>
Date: Mon Dec 5 03:56:42 2011 +0100
Fix proc fault
* proc/info.c (get_vector): Set `scanned' relatively to `readaddr' instead
of to `data'.
diff --git a/proc/info.c b/proc/info.c
index 1162544..f35ad16 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -228,8 +228,6 @@ get_vector (task_t task,
if (err)
return err;
- /* XXX fault bad here */
-
/* Scan for a null. */
for (t = (vm_address_t *) (data + (scanned - readaddr));
t < (vm_address_t *) (data + readlen);
@@ -248,7 +246,7 @@ get_vector (task_t task,
/* If we didn't find the null terminator, then we will loop
to read an additional page. */
- scanned = data + readlen;
+ scanned = readaddr + readlen;
munmap ((caddr_t) data, readlen);
} while (!err && *vec == NULL);
--
Debian GNU Hurd packaging