[PATCH] exec: redzone page zero before loading anything

2014-09-22 Thread Justus Winter
This prevents load_section from mapping any sections to page zero. * exec/exec.c (do_exec): Redzone page zero before loading anything. --- exec/exec.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/exec/exec.c b/exec/exec.c index 2fc1e44..0ecf2d3 100644 --- a/exec/exec.c +++ b/ex

[PATCH] hurd: Handle `proc/self' magical lookup retry

2014-09-22 Thread Justus Winter
* hurd/lookup-retry.c: Handle `proc/self' magical lookup retry. --- hurd/lookup-retry.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c index f633e57..b18ad3b 100644 --- a/hurd/lookup-retry.c +++

And the libc patch

2014-09-22 Thread Justus Winter
And here the corresponding glibc patch.

[PATCH 7/7] procfs: provide magic retry response for /proc/self

2014-09-22 Thread Justus Winter
* hurd/hurd_types.h: Document the magic retry string `proc/self'. * hurd/paths.h (_HURD_MAGIC): New macro. * procfs/main.c: Remove all code related to faking /proc/self. * procfs/main.h: Likewise. * procfs/rootdir.c: Likewise. Instead, return the magic retry response `proc/self' for the `self' nod

[PATCH 6/7] procfs: reorganize rootdir.c

2014-09-22 Thread Justus Winter
* procfs/rootdir.c: Move the translator linkage code to the appropriate location. --- procfs/rootdir.c | 153 --- 1 file changed, 77 insertions(+), 76 deletions(-) diff --git a/procfs/rootdir.c b/procfs/rootdir.c index a04fb3e..d68645e 100644 --

[PATCH 1/7] procfs: implement /proc/N/maps

2014-09-22 Thread Justus Winter
Fixes https://savannah.gnu.org/bugs/?32770 . * procfs/process.c (process_file_gc_maps): New function. (entries): Use the new function to implement /proc/N/maps. --- procfs/process.c | 104 ++- 1 file changed, 103 insertions(+), 1 deletion(-) di

[PATCH 5/7] procfs: generalize the translator linkage code

2014-09-22 Thread Justus Winter
Generalize the translator linkage code previously introduced for the `mounts' node. * procfs/rootdir.c (struct procfs_translated_node_ops): New specialized node operations structure for translated nodes. (rootdir_mounts_make_node): Generalize and rename to rootdir_make_translated_node. Also, pass

[PATCH 2/7] procfs: implement /proc/filesystems

2014-09-22 Thread Justus Winter
* procfs/rootdir.c (rootdir_gc_filesystems): New function. (rootdir_entries): Use the new function to implement /proc/filesystems. --- procfs/rootdir.c | 61 +++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/procfs/rootdir.c b/pr

[PATCH 4/7] procfs: do not test whether /hurd/mtab exists

2014-09-22 Thread Justus Winter
Now that procfs is merged into the Hurd repository we can just assume that the mtab translator exists. * procfs/rootdir.c (rootdir_mounts_exists): Drop function. (rootdir_entries): Adjust accordingly. --- procfs/rootdir.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/procfs/rootd

[PATCH 3/7] procfs: implement /proc/N/mounts

2014-09-22 Thread Justus Winter
* procfs/process.c (process_gc_mounts): New function. (process_symlink_make_node): Likewise. (entries): Use the new functions to provide a symlink to ../mounts. --- procfs/process.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/procfs/process.c b/procfs/process.c