CVS: cvs.openbsd.org: src

2019-12-02 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/12/02 23:53:04

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

Log message:
Fix typo: ECHD -> ECDH.

>From Michael Forney, thanks!



CVS: cvs.openbsd.org: src

2019-12-02 Thread ASOU Masato
CVSROOT:/cvs
Module name:src
Changes by: a...@cvs.openbsd.org2019/12/02 22:03:37

Modified files:
lib/libc/stdio : fwide.c 

Log message:
fwide() does not unlock if error was occurred.

ok guenther@ and deraadt



CVS: cvs.openbsd.org: src

2019-12-02 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/12/02 18:43:33

Modified files:
usr.sbin/tcpdump: Makefile interface.h print-ether.c print-gre.c 
Added files:
usr.sbin/tcpdump: print-nsh.c 

Log message:
add support for printing RFC 8300 Network Service Header (NSH)

ok deraadt@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/12/02 16:04:49

Modified files:
regress/sys/kern/syscall_segment/lib: Makefile 
regress/sys/kern/syscall_segment/main: Makefile 
Added files:
regress/sys/kern/syscall_segment/lib: syscall_library.c 
regress/sys/kern/syscall_segment/main: syscall_main.c 
Removed files:
regress/sys/kern/syscall_segment/lib: syscall_segment.c 
regress/sys/kern/syscall_segment/main: syscall_segment.c 

Log message:
rename binaries to differentiate failure cases (in dmesg output) between
the two cases "syscall in main program" (will succeed until we fix go)
and "syscall in library" (now properly fails)
ok mortimer



CVS: cvs.openbsd.org: src

2019-12-02 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/12/02 15:32:02

Modified files:
usr.sbin/tcpdump: print-gre.c print-udp.c 

Log message:
add support for VXLAN-GPE as per draft-ietf-nvo3-vxlan-gpe-08.

it's nicely backwards compatible, so we can use the same code for
both vxlan and vxlan-gpe.



CVS: cvs.openbsd.org: src

2019-12-02 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/12/02 15:32:18

Modified files:
usr.bin/ftp: fetch.c 

Log message:
Tweak inaccurate comment



CVS: cvs.openbsd.org: src

2019-12-02 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/12/02 15:23:19

Modified files:
usr.bin/patch  : pch.c 

Log message:
Tweak previous, using fputs here was fine



CVS: cvs.openbsd.org: src

2019-12-02 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/12/02 15:17:32

Modified files:
usr.bin/patch  : common.h ed.c patch.c pch.c pch.h util.c 

Log message:
Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa.  Diff tested by sthen@ in
a partial i386 bulk.  Input from and ok jsg@ millert@



CVS: cvs.openbsd.org: src

2019-12-02 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/12/02 15:08:58

Removed files:
usr.sbin/tcpdump: dhcp6.h dhcp6opt.h 

Log message:
the dhcp6 printing doesn't need these files anymore.

they were based on draft-ietf-dhc-dhcpv6-14, which was not what
ended up in the dhcpv6 rfc(s). the current printing code is a lot
smaller and self contained.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-12-02 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/12/02 15:07:20

Modified files:
usr.sbin/tcpdump: print-dhcp6.c print-udp.c interface.h 

Log message:
rewrite dhcpv6 parsing so it follows the rfc, not an incompat draft.

it looks like this code was using draft-ietf-dhc-dhcpv6-14 from
1999. there were 27 drafts, and by the time it got to draft 23 and
the rfc it was significantly different. this code for draft 14
cannot handle actual dhcpv6 messages. im kind of surprised
(disappointed?) that noone noticed before. i only noticed cos the
code was segfaulting on sparc64, and when i tried to fix it the
resulting messages looked nothing like what stock tcpdump produced.

the main difference between the early drafts and what ended up in
the rfc is that the base dhcpv6 messages in early drafts were large
structure with a lot of fixed fields, while the rfc settled on a 4
byte header that contains a 1 byte message type and a 3 byte
transaction id. the rest of the messages are built from dhcp options
fields.

this cuts all the old handling out, and fixes the fault in the
options handling by using EXTRACT_16BITS to get at the code and
length fields instead of using ntohs. dhcpv6 explicitly states that
it does not align options, so this is necessary to avoid faults on
strict alignment archs anyway. no options are pretty printed at the
moment, you just get a numeric type, a length, and a hexdump of the
value. this is still better than the garbage that the draft parsing
produced.

if someone is interested in making this easier to read, it would
be a straightforward and  well contained project to better handle
option printing.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/12/02 14:50:11

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

Log message:
With -R assume that "." was passed instead of printing a warning

Saner default behavior that matches GNU grep.  Diff from miod@, support
from espie@, ok visa@ millert@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2019/12/02 14:47:55

Modified files:
share/man/man9 : timeout.9 
sys/kern   : kern_timeout.c kern_tc.c uipc_socket.c 
sys/sys: timeout.h 
usr.sbin/trpt  : trpt.c 

Log message:
Revert "timeout(9): switch to tickless backend"

It appears to have caused major performance regressions all over the
network stack.

Reported by bluhm@

ok deraadt@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/12/02 12:25:52

Modified files:
usr.bin/tmux   : key-bindings.c 

Log message:
Remove client menu, I don't think it adds anything.



CVS: cvs.openbsd.org: src

2019-12-02 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/12/02 10:53:05

Modified files:
sys/scsi   : scsi_base.c 

Log message:
Have SCSIDEBUG show the number of bytes of VPD inquiry data received,
not the number of bytes that were available in the buffer.



CVS: cvs.openbsd.org: src

2019-12-02 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/12/02 10:19:25

Modified files:
libexec/ld.so  : Makefile 

Log message:
It is not always clear what ld.so was backed up to ld.so.backup, and
better that folk doing development in here use their own cp tooling.



CVS: cvs.openbsd.org: src

2019-12-02 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2019/12/02 09:00:13

Modified files:
sbin/unwind: resolver.c 

Log message:
Save the computed median to avoid having it to compute it all the time;
ok florian@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/12/02 08:35:35

Modified files:
usr.bin/units  : units.lib 

Log message:
update currency exchange rates;



CVS: cvs.openbsd.org: src

2019-12-02 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/12/02 08:10:27

Modified files:
sys/scsi   : scsi_base.c 

Log message:
Don't forget the scsi_vpd_header when calculating the number of bytes
obtained by scsi_inquire_vpd().



CVS: cvs.openbsd.org: src

2019-12-02 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/12/02 08:02:32

Modified files:
sys/kern   : vfs_lockf.c 

Log message:
Replace rwsleep(9) with rwsleep_nsec(9) in vfs_lockf.c.

Prompted by and OK cheloha@
OK mpi@ anton@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/12/02 08:01:18

Modified files:
sys/kern   : vfs_lockf.c 

Log message:
Remove now unneeded kernel locking from vfs_lockf.c.

OK mpi@ anton@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/12/02 07:40:53

Modified files:
sbin/unwind: resolver.c 

Log message:
Use a unified cache in all libunbound based resolvers.
OK otto



CVS: cvs.openbsd.org: src

2019-12-02 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2019/12/02 07:01:26

Modified files:
sys/uvm: uvm_map.c 

Log message:
Stop supporting UVM_FLAG_TRYLOCK in uvm_mapanon(), it is not used.

ok tedu@, visa@



CVS: cvs.openbsd.org: src

2019-12-02 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2019/12/02 01:56:04

Modified files:
sbin/unwind: resolver.c 

Log message:
increment refcount before doing the call to resolve(); ok florian@



CVS: cvs.openbsd.org: www

2019-12-02 Thread Frederic Cambus
CVSROOT:/cvs
Module name:www
Changes by: fcam...@cvs.openbsd.org 2019/12/02 01:34:39

Modified files:
.  : grp-tmpl.txt 

Log message:
Sync with reality. Since build/groups.dat r1.132 in early 2016 URLs do
not have trailing slashes anymore and "Irregular" is capitalized.