CVS: cvs.openbsd.org: src

2020-09-29 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2020/09/29 15:05:05

Modified files:
sys/dev/fdt: sxiccmu_clocks.h 

Log message:
Add support for A64 UART resets.

ok patrick@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Richard Procter
CVSROOT:/cvs
Module name:src
Changes by: proc...@cvs.openbsd.org 2020/09/29 13:37:09

Modified files:
share/man/man4 : wg.4 

Log message:
Edit for clarity and precision.
Feedback and "Looks good to me" from Matt Dunwoodie

ok jmc@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Kurt Mosiejczuk
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/09/29 13:23:53

Modified files:
share/man/man5 : port-modules.5 

Log message:
Add a reference to ruby-module(5) in SEE ALSO since port-modules(5)
explicitly tells folks to read there for information about the
lang/ruby module.

ok kn



CVS: cvs.openbsd.org: www

2020-09-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:www
Changes by: dera...@cvs.openbsd.org 2020/09/29 10:56:16

Modified files:
.  : plus68.html 

Log message:
repair link to -current plus



CVS: cvs.openbsd.org: src

2020-09-29 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/09/29 10:40:33

Modified files:
sys/sys: smr.h 

Log message:
Fix mistypes within sys/smr.h

LIST_END -> SMR_LIST_END
TAILQ_END -> SMR_TAILQ_END

ok visa@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/09/29 08:51:40

Modified files:
sbin/iked  : ikev2_pld.c 

Log message:
Check ibuf_seek() return value.

ok patrick@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2020/09/29 08:23:54

Modified files:
usr.sbin/relayd: subagentx.c 

Log message:
Sync with libagentx



CVS: cvs.openbsd.org: src

2020-09-29 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2020/09/29 08:22:50

Modified files:
lib/libagentx  : subagentx.c 

Log message:
Fix 3 bugs:
1) Don't declare subagentx_index SA_DSTATE_CLOSE until all subfunctions
are done with it. This prevents premature freeing of the object.
2) In subagentx_index_free make sure that if an subagentx_object moves out
from under us we correct for this.
3) Don't call subagentx_index_free_finalize if sai_cstate is not
SA_CSTATE_CLOSE.

The first and last can be triggered when calling free while we're
disconnected from the agentx master.
The second one can only be triggered with when the freed object is not the
last one in the list.



CVS: cvs.openbsd.org: src

2020-09-29 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2020/09/29 07:59:22

Modified files:
share/man/man4 : iic.4 pcamux.4 
sys/dev/i2c: pca9548.c 

Log message:
Add support for the PCA9546 I2C switch to pcamux(4).  In comparison to
PCA9548, this variant supports only 4 instead of 8 channels.

ok kettenis@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2020/09/29 07:50:54

Modified files:
sys/dev/i2c: pca9548.c 

Log message:
The pcamux(4) device tree node's children are the individual channels,
which we each treat as an I2C bus.  While scanning these, we need to
use each channel's node as starting point instead of the pcamux(4) node.
This fixes finding and attaching devices connected to these channels.

ok kettenis@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2020/09/29 05:48:54

Modified files:
sys/kern   : uipc_socket.c uipc_syscalls.c 

Log message:
Move the solock() call outside of solisten(). The reason is that the
so_state and splice checks were done without the proper lock which is
incorrect. This is similar to sobind(), soconnect() which also require
the callee to hold the socket lock.
Found by, with and OK mvs@, OK mpi@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/09/29 05:47:41

Modified files:
sys/uvm: uvm_fault.c uvm_pdaemon.c uvm_swap.c uvm_swap.h 

Log message:
Introduce a helper to check if all available swap is in use.

This reduces code duplication, reduces the diff with NetBSD and will help
to introduce locks around global variables.

ok cheloha@



CVS: cvs.openbsd.org: src

2020-09-29 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/09/29 03:11:44

Modified files:
sys/dev/usb: ugen.c 

Log message:
Set the correct length before copying to userland.

Prevent copying a partial and corrupted descriptor or leaking kernel
memory.

ok kn@, deraadt@