CVS: cvs.openbsd.org: src

2021-08-30 Thread Robert Nagy
CVSROOT:/cvs
Module name:src
Changes by: rob...@cvs.openbsd.org  2021/08/30 23:29:55

Modified files:
sys/scsi   : ch.c 
sys/sys: chio.h 
bin/chio   : chio.c 

Log message:
add support for obtaining sense status and source slot of a media

this fixes a bug in bacula where the catalog was not properly kept
up-to-date if a tape was in a drive becuse its source slot was
unknown

based on code from FreeBSD; ok krw@

picker 0:  sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <>
slot 0:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 1:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 2:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 3:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 4:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 5:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 6:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 7:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 8:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 9:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 10:  sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: 
slot 11:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 12:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 13:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 14:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 15:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 16:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 17:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 18:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 19:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 20:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 21:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 22:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
slot 23:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 
drive 0:  sense: <0x00/0x00> voltag:  avoltag: <:0> 
source: 



CVS: cvs.openbsd.org: src

2021-08-30 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2021/08/30 23:17:49

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

Log message:
In enumerating mode, calculate the bit offset using the HID input
location as the product of the corresponding Report Count and Report
Size can be greater than one.

Fixes Richard Toohey's  Dell keyboard.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2021/08/30 23:16:46

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

Log message:
Protect against missing bit to key symbols in ucc_bit_to_sym(). This can
only happen if ucc_hid_parse() has a bug, better play it safe.



CVS: cvs.openbsd.org: src

2021-08-30 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/08/30 22:21:04

Modified files:
sys/dev/ic : nvme.c 

Log message:
sprinkle barriers and dmamem_syncs around the hibernate io path.

at the very least it stops the compiler omgoptimising away important
code.

tested by and ok deraadt@ jmatthew@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/30 19:54:12

Modified files:
distrib/notes/arm64: prep 

Log message:
revert change to use single rockchip U-Boot image in rev 1.13
abieber@ reports it fails to boot on pinebook-pro-rk3399



CVS: cvs.openbsd.org: src

2021-08-30 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/08/30 19:25:27

Modified files:
regress/usr.bin/ssh: sshfp-connect.sh 

Log message:
Specify hostkeyalgorithms in sshd's default set for the SSHFP test,
from djm@.  Make the reason for when the test is skipped a bit clearer.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 14:41:33

Modified files:
lib/libc/uuid  : uuid_from_string.c 

Log message:
Make uuid_from_string() reject a string of the correct length but having a
non-hex digit in the last character.

Inspired by code in uuid_parse() from Ted Ts'o.

ok millert@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/30 14:25:24

Modified files:
usr.bin/rsync  : rsync.1 

Log message:
Document new include*/exclude* options in the man page



CVS: cvs.openbsd.org: src

2021-08-30 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/30 14:25:01

Modified files:
usr.bin/rsync  : main.c 

Log message:
Add include/exclude to usage()

OK claudio@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2021/08/30 13:25:43

Modified files:
lib/libssl : d1_pkt.c ssl_both.c ssl_clnt.c ssl_lib.c 
 ssl_locl.h ssl_pkt.c ssl_srvr.c tls13_lib.c 

Log message:
Clean up and simplify info and msg callbacks.

The info and msg callbacks result in duplication - both for code that
refers to the function pointers and for the call sites. Avoid this by
providing typedefs for the function pointers and pulling the calling
sequences into their own functions.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 13:14:30

Modified files:
sbin/resolvd   : resolvd.c 

Log message:
Accept dns proposals for the loopback addresses

Don't reserve^Wignore them for unwind(8);  there are non-unwind use-cases
and so far resolvd(8) always seems to do the right thing when proposing
localhost while unwind is running.

OK benno



CVS: cvs.openbsd.org: src

2021-08-30 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2021/08/30 13:12:25

Modified files:
lib/libssl : d1_lib.c d1_pkt.c dtls_locl.h ssl_locl.h 
 tls12_record_layer.c 

Log message:
Replace DTLS r_epoch with the read epoch from the TLSv1.2 record layer.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2021/08/30 13:00:49

Modified files:
lib/libssl : tls12_record_layer.c 

Log message:
Move to an AEAD nonce allocated in the TLSv1.2 record layer.

There is little to gain by mallocing and freeing the AEAD nonce for each
record - move to an AEAD nonce allocated for the record layer, which
matches what we do for TLSv1.3.

ok inoguchi@ tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 12:49:19

Modified files:
sbin/route : route.c 

Log message:
Fix max nameserver proposals limit

Count the total number of proposals and not five per address family each.
Don't print ignored addresses by default anymore and leave that to `-v'.

OK benno



CVS: cvs.openbsd.org: src

2021-08-30 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2021/08/30 12:40:19

Modified files:
sys/dev/acpi   : pchgpio.c 

Log message:
Remove magic offset from data structures.  This makes it much easier to
compare the data structures with the Linux code which unfortunately is
the only documentation we have for the pin numbers used by ACPI.
While there make the data structures const.

ok jcs@



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 12:18:35

Modified files:
app/xenodm/man : xenodm.man 

Log message:
zap trailing white space



CVS: cvs.openbsd.org: src

2021-08-30 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2021/08/30 12:18:16

Modified files:
lib/libssl/man : SSL_CTX_set_tlsext_servername_callback.3 

Log message:
sync with OpenSSL 1.1.1, which is still under a free license;
in particular, this includes new text by Matt Caswell
from OpenSSL commit 721eb8f6 Nov 28 12:03:00 2019 +
and corrects a wrong argument type that i introduced into the SYNOPSIS;
requested by tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 11:50:06

Modified files:
regress/usr.bin/openssl/x509: Makefile 

Log message:
Remove tests that are now covered by regress/lib/libssl/verify



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 11:34:32

Modified files:
regress/lib/libssl: Makefile 

Log message:
hook verify regress test to build



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 11:34:02

Modified files:
regress/lib/libssl: Makefile 
regress/lib/libssl/client: Makefile clienttest.c 
regress/lib/libssl/interop: Makefile 
regress/lib/libssl/openssl-ruby: Makefile 
regress/lib/libssl/tlsfuzzer: Makefile 
regress/lib/libssl/tlslegacy: tlslegacytest.c 

Log message:
Revert accidental commit



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 11:28:47

Modified files:
regress/lib/libssl: Makefile 
regress/lib/libssl/client: Makefile clienttest.c 
regress/lib/libssl/interop: Makefile 
regress/lib/libssl/openssl-ruby: Makefile 
regress/lib/libssl/tlsfuzzer: Makefile 
regress/lib/libssl/tlslegacy: tlslegacytest.c 

Log message:
link verify regress tests to build



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 11:27:46

Log message:
Reimplement part of the openssl/x509 regress tests in C

Instead of using s_client and s_server and complicated shell scripts,
we can reuse the framework from the ssl_get_shared_cipher() regress
test and inspect the verify return value directly.

Discussed with beck jan jsing

Status:

Vendor Tag: tb
Release Tags:   tb_20210830

N src/regress/lib/libssl/verify/verify.c
N src/regress/lib/libssl/verify/Makefile
N src/regress/lib/libssl/verify/create-libressl-test-certs.pl

No conflicts created by this import



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/08/30 11:07:48

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

Log message:
Document that %n has been neutered -- it now does syslog+abort.
ok ingo



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 11:01:56

Modified files:
app/xenodm : Makefile.bsd-wrapper Makefile.in configure 
 configure.ac 
app/xenodm/config: Makefile.in 
app/xenodm/greeter: Makefile.in 
app/xenodm/include: Makefile.in 
app/xenodm/man : Makefile.in 
app/xenodm/xenodm: Makefile.in 

Log message:
Make DEF_SERVER configurable.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/08/30 10:59:17

Modified files:
sys/uvm: uvm_amap.c 

Log message:
Fix a locking assertion in error path.

In amap_copy() make the new amap share the source amap's lock right in
the begining and only allocate a new one if no anon have been referenced.

Issue reported by Thomas L.  on bugs@.

ok tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/08/30 10:58:52

Modified files:
etc: netstart 

Log message:
Improve dubgging in /etc/netstart.  Enable print only in ifcreate.
Add debugging output for ipv6 routes.  Make localhost and multicast
code aware of the print only switch.  Allow netstart -n to work
also if no interface is given.
OK kn@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/08/30 10:50:23

Modified files:
lib/libssl : tls13_legacy.c 

Log message:
Ignore warning alert returns from servername callback in TLSv1.3

If a servername callback returns SSL_TLSEXT_ERR_ALERT_WARNING, this
results in a fatal error in TLSv1.3 since alert levels are implicit
in the alert type and neither close_notify nor user_canceled make
sense in this context. OpenSSL chose to ignore this, so we need to
follow suit.

Found via a broken servername callback in p5-IO-Socket-SSL which
returns a Boolean instead of SSL_TLSEXT_ERR_*. This happened to
have worked before TLSv1.3 since warning alerts are often ignored.

This "fixes" sni.t and sni-verify.t in p5-IO-Socket-SSL.

ok beck jsing



CVS: cvs.openbsd.org: src

2021-08-30 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/30 10:05:55

Modified files:
usr.sbin/rpki-client: main.c 

Log message:
Properly account entity_queue when the file has already been seen

Thanks to Ben Maddison for helping create a test case

OK claudio@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 09:46:07

Modified files:
sbin/route : route.8 

Log message:
Clarify how dns proposals are replaced not added per interface

OK benno



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 09:38:27

Modified files:
app/xenodm : configure configure.ac 
app/xenodm/config: Makefile.in 
Added files:
app/xenodm/config: GiveConsole.in TakeConsole.in Xsetup_0.in 
Removed files:
app/xenodm/config: GiveConsole TakeConsole Xsetup_0 

Log message:
Generate all the config scripts to avoid hard-coding /usr/X11R6.

This was already done partially.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2021/08/30 08:44:39

Modified files:
sys/dev/ic : gdtvar.h gdt_common.c 
sys/net: if_vlan.c 

Log message:
remove a bunch of forward-only structs that were found with ctfconv.

ok mpi@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/08/30 06:44:02

Removed files:
usr.sbin/traceroute: mean.awk median.awk 

Log message:
Remove unused files

OK deraadt@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2021/08/30 06:25:54

Modified files:
usr.bin/openssl: ca.c 

Log message:
Clean up end of do_body in openssl(1) ca

suggested from tb@



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 06:14:14

Modified files:
.  : MODULES 

Log message:
update



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 06:13:33

Modified files:
lib/libpciaccess: ChangeLog Makefile.am Makefile.in aclocal.m4 
  compile config.h.in configure configure.ac 
lib/libpciaccess/src: Makefile.am Makefile.in common_bridge.c 
  common_init.c freebsd_pci.c linux_sysfs.c 
  pciaccess_private.h x86_pci.c 
Added files:
lib/libpciaccess: README.md 
lib/libpciaccess/src: hurd_pci.c x86_pci.h 
Removed files:
lib/libpciaccess: README 

Log message:
Update to libpciaccess 0.16.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2021/08/30 06:12:11

Modified files:
usr.bin/openssl: ca.c 

Log message:
Remove NULL check before free in openssl(1) ca

ok tb@



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 06:02:41

Modified files:
lib/libX11 : ChangeLog README.md configure configure.ac 
lib/libX11/include/X11: Xlib.h 
lib/libX11/man : XAllocClassHint.man XAllocColor.man 
 XAllocIconSize.man XAllocSizeHints.man 
 XAllocStandardColormap.man XAllocWMHints.man 
 XAnyEvent.man XChangeKeyboardControl.man 
 XConfigureWindow.man XCreateColormap.man 
 XCreateGC.man XCreateWindow.man XErrorEvent.man 
 XFlush.man XGetVisualInfo.man XGrabKeyboard.man 
 XGrabPointer.man XGraphicsExposeEvent.man 
 XInitImage.man XLoadFont.man XMapWindow.man 
 XOpenDisplay.man XParseGeometry.man 
 XRecolorCursor.man XSelectInput.man 
 XSetInputFocus.man XSetScreenSaver.man 
 XStringToKeysym.man XTextExtents.man 
 XUnmapWindow.man XcmsStoreColor.man 
lib/libX11/man/xkb: XkbActionCtrls.man XkbAddDeviceLedInfo.man 
XkbAddGeomColor.man XkbAddGeomKey.man 
XkbAddGeomKeyAlias.man XkbAddGeomOutline.man 
XkbAddGeomOverlay.man 
XkbAddGeomOverlayKey.man 
XkbAddGeomOverlayRow.man 
XkbAddGeomProperty.man XkbAddGeomSection.man 
XkbAddGeomShape.man XkbAllocCompatMap.man 
XkbAllocDeviceInfo.man 
XkbAllocDeviceLedInfo.man 
XkbApplyCompatMapToKey.man XkbBell.man 
XkbBellEvent.man XkbChangeControls.man 
XkbChangeDeviceInfo.man 
XkbChangeEnabledControls.man 
XkbChangeIndicators.man XkbChangeMap.man 
XkbChangeNames.man XkbChangeTypesOfKey.man 
XkbComputeShapeBounds.man 
XkbComputeShapeTop.man XkbCopyKeyType.man 
XkbCopyKeyTypes.man XkbDeviceBell.man 
XkbDeviceBellEvent.man XkbForceBell.man 
XkbForceDeviceBell.man XkbFreeClientMap.man 
XkbFreeCompatMap.man XkbFreeDeviceInfo.man 
XkbFreeServerMap.man 
XkbGetAccessXTimeout.man 
XkbGetBounceKeysDelay.man 
XkbGetControlsChanges.man 
XkbGetDeviceInfo.man 
XkbGetIndicatorChanges.man 
XkbGetKeyboardByName.man XkbGetMap.man 
XkbGetSlowKeysDelay.man 
XkbGetStickyKeysOptions.man 
XkbGetUpdatedMap.man XkbGetVirtualMods.man 
XkbKeyAction.man XkbKeyActionEntry.man 
XkbKeyActionsPtr.man XkbKeyGroupInfo.man 
XkbKeyHasActions.man XkbKeyNumActions.man 
XkbKeyNumGroups.man XkbKeyType.man 
XkbListComponents.man 
XkbNoteControlsChanges.man 
XkbNoteDeviceChanges.man 
XkbNoteIndicatorChanges.man 
XkbOutOfRangeGroupInfo.man 
XkbOutOfRangeGroupNumber.man 
XkbPtrActionX.man XkbPtrActionY.man 
XkbResizeDeviceButtonActions.man 
XkbSAActionSetCtrls.man XkbSAGroup.man 
XkbSAPtrDfltValue.man 
XkbSARedirectSetVMods.man 
XkbSARedirectSetVModsMask.man 
XkbSARedirectVMods.man 
XkbSARedirectVModsMask.man XkbSAScreen.man 
XkbSASetGroup.man XkbSASetPtrDfltValue.man 
XkbSASetScreen.man XkbSetAccessXTimeout.man 
XkbSetBounceKeysDelay.man 
XkbSetCompatMap.man XkbSetDeviceInfo.man 
XkbSetIgnoreLockMods.man XkbSetMap.man 
XkbSetNames.man XkbSetPtrActionX.man 
XkbSetPtrActionY.man 
XkbSetServerInternalMods.man 
lib/libX11/nls : locale.alias.pre 
lib/libX11/nls/en_US.UTF-8: Compose.pre 
lib/libX11/src : Font.c FontInfo.c FontNames.c GetColor.c 
 LoadFont.c LookupCol.c ParseCol.c QuExt.c 
 

CVS: cvs.openbsd.org: src

2021-08-30 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/08/30 05:57:45

Modified files:
usr.sbin/btrace: bt_parse.y bt_parser.h btrace.c 

Log message:
Implement '<' and '>' operators in filters.

Based on a diff from and ok dv@



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 05:22:46

Modified files:
driver/xf86-input-elographics: ChangeLog Makefile.am Makefile.in 
   aclocal.m4 configure configure.ac 
driver/xf86-input-elographics/man: Makefile.in 
driver/xf86-input-elographics/src: Makefile.in xf86Elo.c 
Added files:
driver/xf86-input-elographics: README.md 

Log message:
Update to xf86-input-elographics 1.4.2



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/08/30 05:16:49

Modified files:
lib/libc/stdio : vfprintf.c vfwprintf.c 

Log message:
jca and I converted %n to a syslog warning about a year ago, and the ports
ecosystem experienced a very good cleanup.  Time has arrived to switch (as
planned) to syslog + abort, which will result in a coredump thus identifying
the remaining culprits in a more visible fashion.
vfprintf(3) and vfwprintf(3) man pages still require documentation changes.
with jca



CVS: cvs.openbsd.org: src

2021-08-30 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 05:09:58

Modified files:
sbin/unwind: resolver.c 

Log message:
INADDR_LOOPBACK check needs htonl(3) to work

Found in resolvd(8) which uses the same code.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/08/30 05:04:50

Modified files:
sbin/resolvd   : resolvd.c 

Log message:
INADDR_LOOPBACK check needs htonl(3) to work



CVS: cvs.openbsd.org: src

2021-08-30 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2021/08/30 03:45:29

Modified files:
sys/kern   : subr_hibernate.c 

Log message:
increase hibernate writeout speed a little.  modern machines have vast
tracts of unused memory, and the empty-space RLE scanner (uvm_page_rle)
would rescan for empty space needlessly wasting excessive cpu time
16G machine, 100sec -> 9sec
40G machine, 325sec -> 28sec
with kettenis mlarkin



CVS: cvs.openbsd.org: xenocara

2021-08-30 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2021/08/30 03:41:51

Modified files:
lib/libXRes: ChangeLog Makefile.am Makefile.in aclocal.m4 
 compile configure configure.ac 
lib/libXRes/include/X11/extensions: XRes.h 
lib/libXRes/man: Makefile.in 
lib/libXRes/src: Makefile.in XRes.c 
Added files:
lib/libXRes: README.md 
Removed files:
lib/libXRes: README 

Log message:
Update to libXRes 1.2.1



CVS: cvs.openbsd.org: src

2021-08-30 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/08/30 03:09:21

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
Test for the pathetic case that the 2nd unveil in
unveil(NULL, NULL); if (fork() == 0) unveil("/", "rwx")
fails with EPERM.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/08/30 03:06:04

Modified files:
regress/usr.bin/openssl/x509: Makefile 

Log message:
Admit that we return error 20 in the failure case here. Changing
our verifier to return 21 results in other regress failures in
ruby and perl.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/08/30 03:05:44

Modified files:
sys/kern   : kern_unveil.c 

Log message:
Make sure unveil remains locked over fork even in the case where the
parent just called unveil(NULL, NULL) and nothing else.
With and OK beck@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/08/30 02:59:34

Modified files:
lib/libcrypto/x509: x509_verify.c 

Log message:
Revert previous change that changed our default return for unable to
find leaf cert issuers.  This breaks perl and ruby regress, as noticed
by tb that "we tried this before".

Jan's regress that cares about 21 vs 20 needs to change
ok tb@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2021/08/30 02:11:12

Modified files:
sys/arch/alpha/include: db_machdep.h 
sys/arch/amd64/include: db_machdep.h 
sys/arch/arm/include: db_machdep.h 
sys/arch/arm64/include: db_machdep.h 
sys/arch/hppa/include: db_machdep.h 
sys/arch/i386/include: db_machdep.h 
sys/arch/m88k/include: db_machdep.h 
sys/arch/mips64/include: db_machdep.h 
sys/arch/powerpc/include: db_machdep.h 
sys/arch/powerpc64/include: db_machdep.h 
sys/arch/riscv64/include: db_machdep.h 
sys/arch/sh/include: db_machdep.h 
sys/arch/sparc64/include: db_machdep.h 

Log message:
Remove typedef of db_addr_t; mpi converted the users of it to vaddr_t already
back in 2019.

ok mpi@



CVS: cvs.openbsd.org: src

2021-08-30 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/08/30 02:07:22

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
Check that fchdir() works. The problem in unveil was fixed some time ago.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/08/30 02:06:02

Modified files:
regress/sys/kern/unveil: syscalls.c 

Log message:
Make lines not wrap on 80 char terminals. Code gets more readable.



CVS: cvs.openbsd.org: src

2021-08-30 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/08/30 00:51:36

Modified files:
lib/libcrypto/x509: x509_verify.c 
regress/usr.bin/openssl/x509: Makefile 

Log message:
Fix Jan's regress in openssl/x509 to do what it says it does,
then fix the only thing it still has complaints about which
is that we don't return the leaf version of the error code
when we can't verify the leaf (as opposed to the rest of the chain)

ok jan@ tb@