[PATCH 1/2] startup: Mark all essential tasks as our children

2021-05-07 Thread Damien Zammit
This marks all essential tasks as children of startup (or proc?) With this patch, rumpdisk appears as an essential task but cat /proc/6/stat still fails with EIO, and the next patch catches the error by printing a warning. --- startup/startup.c | 8 1 file changed, 8 insertion

[PATCH 2/2] procfs: Add debug for failing EIO

2021-05-07 Thread Damien Zammit
--- procfs/process.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/procfs/process.c b/procfs/process.c index 6e4c1515..61e7cde4 100644 --- a/procfs/process.c +++ b/procfs/process.c @@ -387,9 +387,12 @@ process_file_get_contents (void *hook, char **contents, ssize_t *c

settrans: (os/kern) invalid right

2021-05-07 Thread Sergey Bugaev
Hello yet again, I'm hitting the following issue when trying to re-set a translator on a node whose translator has previously died: $ settrans -acP /tmp/yes ~/dev-yes/hurd/yes Translator pid: 1039 Pausing... $ kill 1039 $ settrans -ag /tmp/yes ~/dev-yes/hurd/yes settrans: /tmp/yes: (os/kern) inva

Re: [PATCH 6/6] libpager: Use libc heap for pagemap

2021-05-07 Thread Sergey Bugaev
On Thu, May 6, 2021 at 3:56 PM Sergey Bugaev wrote: > - newaddr = mmap (0, newsize * sizeof (*p->pagemap), > - PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); > + void *newaddr = reallocarray (p->pagemap, off, > +sizeof (*p->pagemap)); It s