Re: Stop using direct syscall(2) from perl(1)

2023-07-12 Thread George Koehler
On Sun, 9 Jul 2023 13:29:58 -0700 Andrew Hewus Fresh wrote: > Here is a patch to replace perl(1)'s use of syscall(2) with a dispatcher > that will call the libc function instead. patch(1) didn't "chmod +x gen_syscall_emulator.pl", but I needed to do so to get around this this error, $ make -f

Remove ENGINE use from relayd

2023-07-12 Thread Theo Buehler
This is analogous to the change that op committed to smtpd a few days ago. Instead of using ENGINE to make RSA use privsep via imsg, create an RSA method that has custom priv_enc/priv_dec methods, replace the default RSA method. Ditch numerous wrappers that extract the default methods on the fly

Move solock() down to sosetopt()

2023-07-12 Thread Vitaliy Makkoveev
This is a part of my standalone sblock() work. I need this movement because buffers related SO_SND* and SO_RCV* socket options modification should be protected with sblock(). However, standalone sblock() has different lock orders with solock() for receive and send buffers. At least sblock() for

Re: refcnt_init(9): Add missing word

2023-07-12 Thread Jason McIntyre
On Wed, Jul 12, 2023 at 12:19:40PM +0200, thib4711 wrote: > diff --git a/share/man/man9/refcnt_init.9 b/share/man/man9/refcnt_init.9 > index 96fa94e7e64..142c1e57d8d 100644 > --- a/share/man/man9/refcnt_init.9 > +++ b/share/man/man9/refcnt_init.9 > @@ -71,7 +71,7 @@ is used to release an existing

vfs: drop a bunch of cast macros

2023-07-12 Thread thib4711
make it obvious in the vfsops assignment that an op isnt supported. diff --git sys/isofs/cd9660/cd9660_extern.h sys/isofs/cd9660/cd9660_extern.h index 2a5348e1768..bd8154a27bd 100644 --- sys/isofs/cd9660/cd9660_extern.h +++ sys/isofs/cd9660/cd9660_extern.h @@ -94,10 +94,8 @@ int

vnode: drop comment, nonsensical where it is

2023-07-12 Thread thib4711
The line comment in struct vnode is fine; diff --git sys/sys/vnode.h sys/sys/vnode.h index 30787afddd8..b2f0fa4b60c 100644 --- sys/sys/vnode.h +++ sys/sys/vnode.h @@ -74,12 +74,7 @@ enum vtagtype{ "unused", "unused", "unused", "ISOFS", "unused", \ "EXT2FS", "VFS",

refcnt_init(9): Add missing word

2023-07-12 Thread thib4711
diff --git a/share/man/man9/refcnt_init.9 b/share/man/man9/refcnt_init.9 index 96fa94e7e64..142c1e57d8d 100644 --- a/share/man/man9/refcnt_init.9 +++ b/share/man/man9/refcnt_init.9 @@ -71,7 +71,7 @@ is used to release an existing reference. is used to release an existing reference and wakes up a

OpenBGPD 8.1 released

2023-07-12 Thread Claudio Jeker
We have released OpenBGPD 8.1, which will be arriving in the OpenBGPD directory of your local OpenBSD mirror soon. This release includes the following changes to the previous release: * Include OpenBSD 7.3 errata 002: Avoid fatal errors in bgpd(8) due to incorrect refcounting and

OpenBSD Errata: July 12, 2023 (bgpd, httpd, elf, bgpd)

2023-07-12 Thread Theo Buehler
Errata patches for bgpd(8), httpd(8) and the kernel have been released for OpenBSD 7.2 and 7.3. Binary updates for the amd64, i386 and arm64 platform are available via the syspatch utility. Source code patches can be found on the respective errata page: https://www.openbsd.org/errata72.html

Re: patch(1): don't run off the end in num_components.

2023-07-12 Thread Omar Polo
On 2023/07/12 12:54:54 +0200, Florian Obser wrote: > Found with afl, if path ends in '/', num_components will run off the end > of the string. > > OK? ok op > (this is on top of tb's fix on bugs but should be independent and not > cause conflicts.) > > diff --git pch.c pch.c > index

Re: patch(1): basename(3) can fail

2023-07-12 Thread Theo Buehler
On Wed, Jul 12, 2023 at 12:53:10PM +0200, Florian Obser wrote: > So I was sufficiently bored during breakfast and decided to run afl > against patch... > > basename(3) can fail thusly: > ERRORS > The following error codes may be set in errno: > > [ENAMETOOLONG] The path component

patch(1): don't run off the end in num_components.

2023-07-12 Thread Florian Obser
Found with afl, if path ends in '/', num_components will run off the end of the string. OK? (this is on top of tb's fix on bugs but should be independent and not cause conflicts.) diff --git pch.c pch.c index 63543a609fb..8c58dc9ffe5 100644 --- pch.c +++ pch.c @@ -1484,7 +1484,8 @@

patch(1): basename(3) can fail

2023-07-12 Thread Florian Obser
So I was sufficiently bored during breakfast and decided to run afl against patch... basename(3) can fail thusly: ERRORS The following error codes may be set in errno: [ENAMETOOLONG] The path component to be returned was larger than PATH_MAX. and then

Re: GPROF: sleep_state: disable _mcount() across suspend/resume

2023-07-12 Thread Theo de Raadt
> ok kettenis@ ok deraadt also

wscons shift+arrow keys terminal sequence support

2023-07-12 Thread jon
Hello. I have been missing the ability to have my Shift + {up,down,left,right} arrows picked up and represented by the usual character sequence in e.g. xterm's terminfo. Here is a diff I have been using to that end, hoping that it will be of interest and usefulness for others in this list. P.S. I