CVS: cvs.openbsd.org: src

2022-12-20 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2022/12/21 00:59:02

Modified files:
sys/kern   : sys_process.c 

Log message:
The location of the aux info vector is now cached in ps_auxinfo of struct
process. Use this information to access the vector.
OK mpi@ mbuhl@ deraadt@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/12/21 00:16:03

Modified files:
sys/kern   : exec_elf.c 

Log message:
fix a mangled comment



CVS: cvs.openbsd.org: src

2022-12-20 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/12/20 20:02:34

Modified files:
sys/net: pf.c 

Log message:
tiny whitespace tweak.



CVS: cvs.openbsd.org: src

2022-12-20 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/12/20 19:51:06

Modified files:
sys/net: pf.c 

Log message:
consistently use the PF_REF wrappers around refcnts.



CVS: cvs.openbsd.org: src

2022-12-20 Thread Kevin Lo
CVSROOT:/cvs
Module name:src
Changes by: ke...@cvs.openbsd.org   2022/12/20 19:31:09

Modified files:
sys/dev/pci: if_rge.c if_rgereg.h 

Log message:
Update the Rx descriptor based on the vendor driver for Linux.
This fixes a panic seen by Geoff Steckel on RTL8125 with MCLGETL.

Tested by Geoff Steckel and Nick Owens.

ok dlg@



CVS: cvs.openbsd.org: src

2022-12-20 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2022/12/20 19:23:10

Modified files:
sys/net: pf.c pf_ioctl.c pfvar.h pfvar_priv.h 

Log message:
prefix pf_state_key and pf_state_item struct bits to make them more unique.

this makes searching for the struct members easier, which in turn
makes tweaking code around them a lot easier too. sk_refcnt in
particular would have been a lot nicer to fiddle with than just
refcnt because pf_state structs also have a refcnt, which is annoying.

tweaks and ok sashan@
reads ok kn@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2022/12/20 14:44:19

Modified files:
usr.bin/kdump  : kdump.c 

Log message:
Add argument support for msyscall, pledge, unveil, __realpath,
ypconnect, and __tmpfd.  Reorder several other syscalls to match
the order in syscalls.master

ok deraadt@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/12/20 13:12:27

Modified files:
usr.bin/snmp   : snmpc.c 

Log message:
If we don't have usecommonopt for our application we shouldn't check the
default values for snmp protocol level stuff. Makes snmp mibtree work
again which got broken since the defaults changed back in 2021.

Reported by Matthias Pitzl (pitzl  genua  de)
Hint to use usecommonopt and OK gerhard@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/12/20 13:06:47

Modified files:
usr.sbin/snmpd : snmpe.c 

Log message:
Apply proper bounds checking to non-repeaters and max-repetitions.

OK sthen@, kn@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/12/20 13:04:55

Modified files:
usr.sbin/snmpd : application.c 

Log message:
Make ar[du]_{nonrepeaters,maxrepetitions} uint16_t instead of int16_t.
snmp uses signed 32 bits integers and agentx uses unsigned 16 bits
integers. I somehow ended up somewhere in between.

OK sthen@, kn@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/12/20 13:01:25

Modified files:
usr.sbin/snmpd : usm.c 

Log message:
When writing out a PDU with authpriv that's larger than READ_BUF_SIZE
we overflow the encbuf. Allocate encbuf on the fly so that we always have
enough room.

Give decryption the same treatment, although this one is not at risk, since
the input is limited to READ_BUF_SIZE.

OK sthen@, kn@



CVS: cvs.openbsd.org: src

2022-12-20 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2022/12/20 12:53:33

Modified files:
usr.sbin/snmpd : snmpe.c 

Log message:
When writing a message out over tcp that's too large to fit in a single
write(2), make sure that we don't restart the message on the next write
out, but continue where we left of.

OK sthen@, kn@



CVS: cvs.openbsd.org: geo

2022-12-20 Thread George Rosamond
CVSROOT:/cvs
Module name:geo
Changes by: geo...@cvs.openbsd.org  2022/12/20 12:08:18

Log message:
commit 0

Status:

Vendor Tag: george
Release Tags:   george_20221220

N geo/openbsd-developers/Makefile
cvs: ERROR: cannot write file /cvs/geo/openbsd-developers/Makefile,v: No 
such file or directory
cvs: ERROR: cannot mkdir /cvs/geo/openbsd-developers/files -- not added: No 
such file or directory
cvs: ERROR: cannot mkdir /cvs/geo/openbsd-developers/pkg -- not added: No 
such file or directory

No conflicts created by this import



CVS: cvs.openbsd.org: src

2022-12-20 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/12/20 10:59:29

Modified files:
lib/libc/stdio : getdelim.3 

Log message:
add a missing .Vt macro;
from Josiah Frentsos 



CVS: cvs.openbsd.org: src

2022-12-20 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/12/20 08:34:03

Modified files:
lib/libcrypto/man: BIO_dump.3 

Log message:
Mark BIO_dump_cb(3) and BIO_dump_indent_cb(3) as intentionally undocumented.

It appears Richard Levitte succumbed to everything-needs-a-callback-paranoia
in 2004, but nobody is going to be surprised that nothing whatsoever wants
to use this particular callback, according to codesearch.debian.net.



CVS: cvs.openbsd.org: src

2022-12-20 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2022/12/20 07:55:45

Modified files:
lib/libcrypto/man: BIO_s_fd.3 

Log message:
document BIO_fd_non_fatal_error(3) and BIO_fd_should_retry(3)



CVS: cvs.openbsd.org: src

2022-12-20 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2022/12/20 02:01:05

Modified files:
lib/libc/sys   : waitid.2 

Log message:
- some small tweaks for the text
- on guenther's advice, remove NOTES: the text is either not relevant
or already described correctly elsewhere

ok guenther