Re: pluart(4): fifo support

2022-02-26 Thread Visa Hankala
On Sat, Feb 26, 2022 at 08:40:25AM +0100, Anton Lindqvist wrote: > Hi, > This enables fifo support in pluart(4). While here, I changed the > attachment output to look more like com(4). Tested on my rpi3b which has > a 16 byte fifo. > > Comments? OK? > > diff --git sys/dev/ic/pluart.c sys/dev/ic/p

Re: vmd(8) fix error handling when hitting rlimit

2022-02-26 Thread Ted Unangst
On 2022-02-26, Dave Voutila wrote: > Following the discusion on misc@ and a diff from tedu@ [1], here's a bit > more work cleaning up the issue in vmd(8) to prevent vmd dying if a user > tries to create a vm with memory above the rlimit. > > I changed tedu's diff a bit to make it less verbose and

vmd(8) fix error handling when hitting rlimit

2022-02-26 Thread Dave Voutila
Following the discusion on misc@ and a diff from tedu@ [1], here's a bit more work cleaning up the issue in vmd(8) to prevent vmd dying if a user tries to create a vm with memory above the rlimit. I changed tedu's diff a bit to make it less verbose and print a value that's human readable using fmt

Re: [patch] httpd static gzip compression

2022-02-26 Thread Tracey Emery
On Sat, Feb 26, 2022 at 10:55:59AM +0100, prx wrote: > First, thank you for your interest! > > > > Shouldn't we check for truncation on strlcpy and strlcat and goto fail > > > in that event? > > > > With goto abort we get an 500 internal server error. > > > > Moreover, if the strlcpy and strlca

Re: [patch] httpd static gzip compression

2022-02-26 Thread Tracey Emery
On Sat, Feb 26, 2022 at 02:52:03AM +0100, Alexander Bluhm wrote: > > Shouldn't we check for truncation on strlcpy and strlcat and goto fail > > in that event? > > With goto abort we get an 500 internal server error. ok > > Index: httpd.conf.5 > ==

Re: pfsync mutex

2022-02-26 Thread Hrvoje Popovski
On 25.2.2022. 23:22, Alexander Bluhm wrote: > On Fri, Feb 25, 2022 at 10:21:50PM +0100, Hrvoje Popovski wrote: >> On 24.2.2022. 22:42, Alexander Bluhm wrote: >>> Hi, >>> >>> Hrvoje reported some crashes with pfsync, IPsec and parallel >>> forwarding. Some locks were missing around the tdb flags in

Re: [patch] LOGIN_SETENV fails when login.conf is missing

2022-02-26 Thread Todd C . Miller
On Sat, 26 Feb 2022 11:16:44 -0600, Matthew Martin wrote: > Anton spotted a doas regression failure in t-run-keepenv-path after the > change to doas for LOGIN_SETALL. Since that test runs doas in a chroot > and the setup does not create a login.conf, login_getclass in > login_cap.c will return a l

[patch] LOGIN_SETENV fails when login.conf is missing

2022-02-26 Thread Matthew Martin
Anton spotted a doas regression failure in t-run-keepenv-path after the change to doas for LOGIN_SETALL. Since that test runs doas in a chroot and the setup does not create a login.conf, login_getclass in login_cap.c will return a login_cap_t with a NULL lc_cap (and errno set to ENOENT) on L133. se

Re: [patch] httpd static gzip compression

2022-02-26 Thread prx
First, thank you for your interest! > > Shouldn't we check for truncation on strlcpy and strlcat and goto fail > > in that event? > > With goto abort we get an 500 internal server error. > Moreover, if the strlcpy and strlcat failed, then the file requested (gpath) is obviously not found, and