pluart(4): fifo support

2022-02-25 Thread Anton Lindqvist
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/pluart.c index eaa11b6c44b..601435c0e0c 100644 --- sys/dev/ic/pluart.c +++

Re: request for testing: malloc and large allocations

2022-02-25 Thread Otto Moerbeek
On Tue, Feb 01, 2022 at 08:00:36AM +0100, Otto Moerbeek wrote: > On Fri, Jan 28, 2022 at 05:17:48PM +0100, Otto Moerbeek wrote: > > > On Fri, Jan 28, 2022 at 04:33:28PM +0100, Alexander Bluhm wrote: > > > > > On Sun, Jan 09, 2022 at 02:54:43PM +0100, Otto Moerbeek wrote: > > > > currently

Re: [PATCH] Report versioned lib.so in cc --print-file-name given short name

2022-02-25 Thread Greg Steuck
No opinions? Greg Steuck writes: > LLVM OpenBSD guardians, > > I want to get a closure on "Power-up cc --print-file-name for .so names" > thread on tech@. I care because it helps me with lang/ghc port. > > Here's a is fairly finished diff. I'll be taking it through the > make-build-twice dance

Re: [patch] httpd static gzip compression

2022-02-25 Thread Alexander Bluhm
> 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. Index: httpd.conf.5 === RCS file:

Re: stpecpy(): A better string copy and concatenation function

2022-02-25 Thread Alejandro Colomar (man-pages)
Hello Ali, On 25/2/22 17:22, Ali Farzanrad wrote: "Alejandro Colomar (man-pages)" wrote: char dest[SIZE]; char *end; end = [SIZE - 1]; stpecpy(dest, "Hello world", end); Perfect way to introduce new hidden backdoors! Just use realloc `dest'

Re: makefs, inodes, the universe and everything

2022-02-25 Thread Theo de Raadt
Miod Vallat wrote: > > So should it be -f 200, or 250, and/or should the minimum default built-in > > be changed? Basically 100% of makefs use is for our install media, is it > > not > > right to change the default? > > Well it would be interesting to hear from people using makefs for other >

Re: pfsync mutex

2022-02-25 Thread Alexander Bluhm
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 pfsync. > > before trying this diff i

Re: makefs, inodes, the universe and everything

2022-02-25 Thread Miod Vallat
> Should the default for makefs not be changed, rather than requiring an > argument? I'm not fond of that idea, but why not, as long as it gets documented. > 100 seem extremely small. Imagine a person installing a machine with 5 > drives. Our installer lets people iterate over all their

Re: pfsync mutex

2022-02-25 Thread Hrvoje Popovski
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 pfsync. before trying this diff i wanted to see if i could still trigger panic with sasyncd setup and parallel

Hidden LUN 0

2022-02-25 Thread Scott Nicholas
This solves boot issue on Oracle Cloud Infrastructure (OCI) as mentioned: Subject:VirtIO SCSI device recognized by boot loader but not kernel Date: 2021-01-13 16:37:45 https://marc.info/?l=openbsd-misc=161055611306914 Index: sys/scsi/scsiconf.c

Re: [patch] httpd static gzip compression

2022-02-25 Thread Tracey Emery
On Fri, Feb 25, 2022 at 07:47:38PM +0100, Alexander Bluhm wrote: > On Fri, Feb 25, 2022 at 11:00:22AM +0100, prx wrote: > > After a few months, I reupload the patch to enable httpd static > > compression using "location {}" instructions. > > > > I use it without any issue on my own website and

Re: [patch] httpd static gzip compression

2022-02-25 Thread Alexander Bluhm
On Fri, Feb 25, 2022 at 11:00:22AM +0100, prx wrote: > After a few months, I reupload the patch to enable httpd static > compression using "location {}" instructions. > > I use it without any issue on my own website and to serve > https://webzine.pufy.cafe. > Anyone else tried it? I just added

Re: makefs, inodes, the universe and everything

2022-02-25 Thread Theo de Raadt
> tl;dr: by removing unneeded MAKEDEV entries, some platforms will end up > with makefs creating a file system with 256 inodes, of which about 250 > are used, and installation will misbehave in interesting ways due to the > lack of free inodes. Should the default for makefs not be changed, rather

Re: stpecpy(): A better string copy and concatenation function

2022-02-25 Thread Ali Farzanrad
"Alejandro Colomar (man-pages)" wrote: >char dest[SIZE]; >char *end; > >end = [SIZE - 1]; >stpecpy(dest, "Hello world", end); Perfect way to introduce new hidden backdoors! Just use realloc `dest' to a new value, but forget to update `end'

makefs, inodes, the universe and everything

2022-02-25 Thread Miod Vallat
As you may vaguely remember, I have plans to clean up MAKEDEV a bit, which have the side effect of removing many unneeded device nodes from the ramdisk target, used on the installation media. Doing this will in turn expose a slight difference in filesystem creation between the pre-makefs(8) world

i would not trust Thranduil - GNU-Bash Elvish Es Oksh Simple-Terminal Nushell Zsh Korn Tcsh Edex-ui Guake Hyper XTerm Rxvt Terminus and others - great Kings of open-source shells - to honor their word

2022-02-25 Thread Sergei Udris
i would not trust Thranduil - Osh Ngs Tsch QTerminal Kitty Konsole FluentTerminal Ergonomica Darktile Notty Sakura Tilix Yash ZOC Warp Tabby Extraterm adn others great Kings of open-source shells to honor their word - program peer-to-peer programs including unseen competitive games should the end

Re: bgpd make adjout handle multiple paths per prefix

2022-02-25 Thread Theo Buehler
On Fri, Feb 25, 2022 at 12:41:56PM +0100, Claudio Jeker wrote: > On Fri, Feb 25, 2022 at 11:55:08AM +0100, Theo Buehler wrote: > > On Fri, Feb 25, 2022 at 11:15:49AM +0100, Claudio Jeker wrote: > > > For add-path send the Adj-RIB-Out needs to handle multiple paths per > > > prefix. The Adj-RIB-Out

Re: bgpd make adjout handle multiple paths per prefix

2022-02-25 Thread Claudio Jeker
On Fri, Feb 25, 2022 at 11:55:08AM +0100, Theo Buehler wrote: > On Fri, Feb 25, 2022 at 11:15:49AM +0100, Claudio Jeker wrote: > > For add-path send the Adj-RIB-Out needs to handle multiple paths per > > prefix. The Adj-RIB-Out stores the prefixes on RB trees and so extend > > the lookup function

Re: bgpd make adjout handle multiple paths per prefix

2022-02-25 Thread Theo Buehler
On Fri, Feb 25, 2022 at 11:15:49AM +0100, Claudio Jeker wrote: > For add-path send the Adj-RIB-Out needs to handle multiple paths per > prefix. The Adj-RIB-Out stores the prefixes on RB trees and so extend > the lookup function to include the path_id (which will be path_id_tx). > > For now the

bgpd make adjout handle multiple paths per prefix

2022-02-25 Thread Claudio Jeker
For add-path send the Adj-RIB-Out needs to handle multiple paths per prefix. The Adj-RIB-Out stores the prefixes on RB trees and so extend the lookup function to include the path_id (which will be path_id_tx). For now the path_id_tx in the Adj-RIB-Out is forced to 0 since up_generate_updates() is

Re: [patch] httpd static gzip compression

2022-02-25 Thread prx
Hello, After a few months, I reupload the patch to enable httpd static compression using "location {}" instructions. I use it without any issue on my own website and to serve https://webzine.pufy.cafe. Anyone else tried it? I emphasize on the fact it is admin responsibility to enable or not