[PATCH] socket_local46: Make room on the stack for IPv6 sockaddrs

2015-07-26 Thread Jesse Young
byte_copy() reads past the end of the sockaddr structure because it isn't sufficiently large enough to handle sockaddr_in6 addresses resulting in undefined behavior. armv6-alpine-linux-muslgnueabihf-gcc 5.1.0-r0 generates the "UDF" instruction in this case, causing programs to SIGILL. --- src/libs

Re: [PATCH] socket_local46: Make room on the stack for IPv6 sockaddrs

2015-07-26 Thread Jesse Young
On Sun, 26 Jul 2015 21:29:31 +0200 Laurent Bercot wrote: > On 26/07/2015 21:15, Jesse Young wrote: > > byte_copy() reads past the end of the sockaddr structure because it > > isn't sufficiently large enough to handle sockaddr_in6 addresses > > resulting in undefined be

[PATCH] s6-supervise: Optionally run child in a new pid namespace

2017-07-15 Thread Jesse Young
This patch modifies s6-supervise to use the Linux specific clone() system call to enable the child process to become the pid 1 of a new pid namespace. To enable it, compile with -DWANT_CLONE_NEWPID and make the ./clone-newpid file readable to s6-supervise in the desired service directories. I ask

Re: [PATCH] s6-supervise: Optionally run child in a new pid namespace

2017-07-16 Thread Jesse Young
On Sun, 16 Jul 2017 08:41:03 + "Laurent Bercot" wrote: > As I told Jesse on IRC, the patch isn't going in. I'm not including > OS-specific code into s6, even with a compile-time option. The main > reason for it is that it changes the API: the choice to spawn the > service in a new namespace

Re: execlineb -S does not stop the command from running

2018-07-29 Thread Jesse Young
On Sun, Jul 29, 2018, at 08:50, Laurent Bercot wrote: > >`execline` does indeed exits when not given arguments, and displays the > >error `execlineb: warning: too few arguments: expecting at least 1 but > >got 0` but the first command gets run. > > > >``` > >$ execlineb -S1 -c 'echo wrong' > >execl

[PATCH 1/2] doc: reconcile openwrite{,v}nclose_suffix{,_devino}{,_sync} with djbunix.h

2021-06-13 Thread Jesse Young
--- Hello, I've been working with the some of the scatter/gather I/O functions and noticed the documentation duplicated the non-vectored names. On closer inspection, I also discovered the devino variants have their arguments rearranged (except for *_internal). Cheers, Jesse doc/libstddjb

[PATCH 2/2] doc: allreadwrite: document scatter/gatter functions

2021-06-13 Thread Jesse Young
--- Document scatter/gatter functions as well as unsanitize_read() in the allreadwrite.h header. doc/libstddjb/allreadwrite.html| 53 ++ src/include/skalibs/allreadwrite.h | 5 ++- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/doc/libstddjb/all

[PATCH] gccattributes.h: define gccattr_returns_twice

2021-06-14 Thread Jesse Young
Signed-off-by: Jesse Young --- For some out-of-tree code that wraps clone(), using setjmp()/longjmp() making it behave more like fork(). src/include/skalibs/gccattributes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/skalibs/gccattributes.h b/src/include/skalibs