CVS: cvs.openbsd.org: src

2021-05-01 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2021/05/02 00:13:57

Modified files:
share/man/man5 : bsd.port.mk.5 

Log message:
explain what FETCH_CMD should support in a bit more detail



CVS: cvs.openbsd.org: src

2021-05-01 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/05/01 22:21:13

Modified files:
sys/arch/riscv64/riscv64: machdep.c 

Log message:
fix logic error in boot()
ok deraadt@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/01 14:07:01

Modified files:
sys/arch/arm64/include: ieeefp.h 

Log message:
Remove NetBSDisms that crept into the arm64 version of this file.

ok gnezdo@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/01 14:04:33

Modified files:
sys/dev/ic : stivar.h 

Log message:
Actually, that variable needs to be a u_int8_t pointer.

This is what was tested, but I forgot to commit a file.



CVS: cvs.openbsd.org: src

2021-05-01 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2021/05/01 10:55:14

Modified files:
regress/lib/libagentx: Makefile main.c walk.out 

Log message:
Expand the regress test quite a bit to make sure no new regressions are
introduced by the previous libagentx commit. There's a few of the new tests
failing, mark those as such.



CVS: cvs.openbsd.org: src

2021-05-01 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2021/05/01 10:44:17

Modified files:
lib/libagentx  : agentx.c 

Log message:
Refactor varbind OID parsing into their indices.  Simplifies the code by
about 40 LoC and fixes a potential out of bounds read.

Bug found by bluhm@ on arm64 regress
OK bluhm@



CVS: cvs.openbsd.org: xenocara

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs
Module name:xenocara
Changes by: v...@cvs.openbsd.org2021/05/01 10:29:52

Removed files:
distrib/sets/lists/xbase: md.sgi 
distrib/sets/lists/xetc: md.sgi 
distrib/sets/lists/xfont: md.sgi 
distrib/sets/lists/xserv: md.sgi 
distrib/sets/lists/xshare: md.sgi 

Log message:
Remove sgi sets.



CVS: cvs.openbsd.org: www

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs
Module name:www
Changes by: v...@cvs.openbsd.org2021/05/01 10:23:10

Modified files:
.  : sgi.html 

Log message:
6.9 was the last release with sgi.



CVS: cvs.openbsd.org: src

2021-05-01 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2021/05/01 10:18:58

Modified files:
sys/sys: sysctl.h 

Log message:
Removed unused SYSCTL_INT_UNBOUNDED (no use planned)

Added a comment for SYSCTL_INT_READONLY.

OK mvs@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2021/05/01 10:18:29

Modified files:
sys/arch/amd64/amd64: machdep.c 
sys/arch/i386/i386: machdep.c 
sys/kern   : kern_sysctl.c 
sys/miscfs/fuse: fuse_vfsops.c 
sys/ufs/ffs: ffs_vfsops.c 

Log message:
Update the remaining SYSCTL_INT_READONLY cases

OK mvs@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/05/01 10:13:13

Modified files:
sys/kern   : uipc_socket.c uipc_socket2.c 
sys/net: rtsock.c 
sys/sys: socketvar.h 

Log message:
Implement per-socket `so_lock' rwlock(9) and use it to protect routing
(PF_ROUTE) sockets. This can be done because we have no cases where one
thread should lock two sockets simultaneously.

Against the previous version rtm_senddesync_timer() execution was moved
to process context.

Also this time `so_lock' used for routing sockets only but in the future
it will be used to other socket types too.

tested by claudio@

ok claudio@ bluhm@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2021/05/01 10:11:17

Modified files:
.  : Makefile.cross 
distrib: Makefile 
distrib/notes  : Makefile 
distrib/sets/lists/base: mi 
distrib/sets/lists/comp: md.loongson md.octeon mi 
distrib/sets/lists/man: mi 
etc: Makefile 
etc/mtree  : 4.4BSD.dist 
lib/libarch/mips64: Makefile 
lib/libc/sys   : ptrace.2 
lib/libcrypto/arch/mips64: Makefile.inc 
regress/etc/MAKEDEV: Makefile 
share/man/man4 : Makefile com.4 onewire.4 pci.4 pckbd.4 pms.4 
 spdmem.4 
share/man/man5 : core.5 
share/man/man7 : mdoc.7 
share/man/man8 : Makefile diskless.8 
share/man/man9 : pci_conf_read.9 pci_intr_map.9 
share/mk   : bsd.own.mk 
sys: Makefile 
sys/arch/mips64/conf: files.mips64 
sys/arch/mips64/include: asm.h cpu.h mips_cpu.h pmap.h pte.h 
sys/arch/mips64/mips64: clock.c context.S cp0access.S cpu.c 
db_machdep.c exception.S lcore_access.S 
mips64_machdep.c pmap.c tlbhandler.S 
trap.c vm_machdep.c 
sys/dev/ic : aic7xxx.c 
sys/dev/microcode/atmel: Makefile 
sys/dev/microcode/bnx: Makefile 
sys/dev/microcode/fxp: Makefile 
sys/dev/microcode/kue: Makefile 
sys/dev/microcode/myx: Makefile 
sys/dev/microcode/ral: Makefile 
sys/dev/microcode/rum: Makefile 
sys/dev/microcode/symbol: Makefile 
sys/dev/microcode/tht: Makefile 
sys/dev/microcode/tigon: Makefile 
sys/dev/microcode/tusb3410: Makefile 
sys/dev/microcode/typhoon: Makefile 
sys/dev/microcode/udl: Makefile 
sys/dev/microcode/yds: Makefile 
sys/dev/microcode/zydas: Makefile 
sys/dev/pci: pcivar.h qlw_pci.c 
sys/dev/pckbc  : wskbdmap_mfii.c 
sys/dev/usb: ukbdmap.c 
sys/dev/wsfont : wsfont.c 
sys/kern   : Makefile 
usr.bin/mandoc : arch.c cgi.c 
usr.sbin/hotplugd: Makefile 
usr.sbin/pcidump: Makefile 
Removed files:
distrib/notes/sgi: contents features hardware install prep 
   upgrade whatis xfer 
distrib/sets/lists/base: md.sgi 
distrib/sets/lists/comp: clang.sgi gcc.sgi md.sgi 
distrib/sets/lists/etc: md.sgi 
distrib/sets/lists/game: md.sgi 
distrib/sets/lists/man: md.sgi 
distrib/sgi: Makefile 
distrib/sgi/cdfs: Makefile xfs512.bin.gz.uue 
distrib/sgi/iso: Makefile 
distrib/sgi/ramdisk: Makefile install.md list 
etc/etc.sgi: MAKEDEV MAKEDEV.md Makefile Makefile.inc 
 disktab fbtab login.conf sysctl.conf ttys 
share/man/man4 : wdsc.4 
share/man/man4/man4.sgi: Makefile dpclock.4 dsclock.4 dsrtc.4 
 gbe.4 gio.4 grtwo.4 hpc.4 iec.4 imc.4 
 impact.4 intro.4 ioc.4 iockbc.4 iof.4 
 light.4 macebus.4 mavb.4 mec.4 mkbc.4 
 newport.4 odyssey.4 owmac.4 owserial.4 
 panel.4 power.4 sq.4 xbow.4 xbridge.4 
 xheart.4 zs.4 
share/man/man8/man8.sgi: MAKEDEV.8 Makefile 
sys/arch/mips64/include: arcbios.h 
sys/arch/mips64/mips64: arcbios.c cache_r10k.c cache_r4k.c 
cache_r5k.c cache_tfp.c cache_tfp_subr.S 
exception_tfp.S r4000_errata.c tlb_tfp.S 
sys/arch/sgi   : Makefile 
sys/arch/sgi/compile: Makefile Makefile.inc 
sys/arch/sgi/compile/GENERIC-IP22: Makefile 
sys/arch/sgi/compile/GENERIC-IP26: Makefile 
sys/arch/sgi/compile/GENERIC-IP27: Makefile 
sys/arch/sgi/compile/GENERIC-IP27.MP: Makefile 
sys/arch/sgi/compile/GENERIC-IP28: Makefile 
sys/arch/sgi/compile/GENERIC-IP30: Makefile 
sys/arch/sgi/compile/GENERIC-IP30.MP: Makefile 
sys/arch/sgi/compile/GENERIC-IP32: Makefile 
sys/arch/sgi/compile/RAMDISK-IP22: Makefile 
sys/arch/sgi/compile/RAMDISK-IP26: Makefile 
sys/arch/sgi/compile/RAMDISK-IP27: Makefile 
sys/arch/sgi/compile/RAMDISK-IP28: Makefile 
sys/arch/sgi/compile/RAMDISK-IP30: Makefile 
sys/arch/sgi/compile/RAMDISK-IP32: Makefile 
sys/arch/sgi/conf: GENERIC-IP22 GENERIC-IP26 GENERIC-IP27 
   GENERIC-IP27.MP GENERIC-IP28 GENERIC-IP30 
   GENERIC-IP30.MP GENERIC-IP32 Makefile.sgi 
   RAMDISK-IP22 RAMDISK-IP26 RAMDISK-IP27 
   RAMDISK-IP28 RAMDISK-IP30 RAMDISK-IP32 
   files.sg

CVS: cvs.openbsd.org: src

2021-05-01 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/05/01 08:47:15

Modified files:
distrib/sets/lists/comp: clang.armv7 
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2021-05-01 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2021/05/01 08:15:57

Modified files:
lib/libcrypto  : opensslv.h 

Log message:
bump to LibreSSL 3.4.0 in -current



CVS: cvs.openbsd.org: src

2021-05-01 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/01 07:16:30

Modified files:
lib/libcrypto/asn1: a_object.c 

Log message:
Plug leak in c2i_ASN1_OBJECT

When using the object reuse facility of c2i_ASN1_OBJECT, the dynamically
allocated strings a may contain are set to NULL, so we must free them
beforehand. Also clear the flag, because that's what OpenSSL chose to do.

>From Richard Levitte OpenSSL 1.1.1 65b88a75921533ada8b465bc8d5c0817ad927947

ok inoguchi



CVS: cvs.openbsd.org: src

2021-05-01 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/05/01 07:13:45

Modified files:
lib/libcrypto/ts: ts_rsp_verify.c 

Log message:
Prevent double free in int_TS_RESP_verify_token

If TS_compute_imprint fails after md_alg was allocated, there will be a
double free in its caller. Obvious fix is to null out the output
parameter md_alg just like it's already done for imprint and imprint_len.

>From Pauli Dale, OpenSSL 1.1.1, a3dea76f742896b7d75a0c0529c0af1e628bd853

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2021-05-01 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/05/01 06:29:05

Modified files:
sys/arch/riscv64/conf: files.riscv64 
sys/arch/riscv64/riscv64: machdep.c sbi.c 

Log message:
Implement early console functionality based on available SBI calls.

While these calls are part of the legacy extensions and deprecated, they
are really useful for debugging purposes.

ok jsg@



CVS: cvs.openbsd.org: src

2021-05-01 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/05/01 05:53:24

Modified files:
sbin/slaacd: slaacd.c 

Log message:
In singel user mode / is mounted ro. Just warn if we can't create
the control socket instead of fatal().
OK deraadt



CVS: cvs.openbsd.org: src

2021-05-01 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/05/01 05:53:06

Modified files:
sbin/slaacd: engine.c frontend.c 

Log message:
Allow running in single user mode where /var/empty doesn't exist by
switching from chroot("/var/empty") to unveil("/", "").
This is just an extra pair of suspenders since these processes
pledge(2) to not access the filesystem.
OK deraadt



CVS: cvs.openbsd.org: src

2021-05-01 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/05/01 05:52:36

Modified files:
sbin/dhcpleased: dhcpleased.c 

Log message:
In singel user mode / is mounted ro. Just warn if we can't create
the control socket instead of fatal().
OK deraadt



CVS: cvs.openbsd.org: src

2021-05-01 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2021/05/01 05:51:59

Modified files:
sbin/dhcpleased: engine.c frontend.c 

Log message:
Allow running in single user mode where /var/empty doesn't exist by
switching from chroot("/var/empty") to unveil("/", "").
This is just an extra pair of suspenders since these processes
pledge(2) to not access the filesystem.
OK deraadt