CVS: cvs.openbsd.org: src

2017-09-12 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/09/12 18:35:53

Modified files:
regress/usr.sbin/syslogd: Client.pm Makefile 
  args-client-multilisten.pl 
  args-dropped-sighup-tcp.pl 
  args-dropped-sighup-tls.pl 
  args-secure-udp.pl 
  args-server-tcp-reconnect.pl 
  args-server-tls-reconnect.pl 
  args-sighup-tcp.pl args-sighup-tls.pl 
  args-sync-tcp.pl funcs.pl 
Added files:
regress/usr.sbin/syslogd: args-hostname.pl 

Log message:
Check that the hostname added by syslogd -h in file and server log
is correct.  Use generic redo functions.  Do syntax check for all
Perl files.



CVS: cvs.openbsd.org: src

2017-09-12 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2017/09/12 13:14:35

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

Log message:
- sprinkle variable name and printf tweaks
- save product type for future use



CVS: cvs.openbsd.org: src

2017-09-12 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2017/09/12 12:36:30

Modified files:
lib/libc/stdlib: malloc.c 

Log message:
mapalign returns MAP_FAILED for failuer; from George Koehler



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 12:20:32

Modified files:
usr.bin/mandoc : mdoc_validate.c 

Log message:
Do not segfault when there are two .Dt macros, the first without
an architecture argument and the second with an invalid one.
Bug found by jsg@ with afl(1).



CVS: cvs.openbsd.org: src

2017-09-12 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2017/09/12 11:11:11

Modified files:
bin/pax: cpio.c extern.h pax.h tables.c tar.c 

Log message:
there is no offical way to get the max value of time_t, but this one works
on any sensible posix system (in which time_t must be an integer type)
ok deraadt@ millert@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/09/12 09:24:21

Modified files:
regress/usr.sbin/syslogd: args-client-bind-port.pl 
  args-client-bind.pl 
  args-client-bind4-port.pl 
  args-client-bind4.pl 
  args-client-bind6-port.pl 
  args-client-bind6.pl 
  args-client-tcp.pl args-client-tcp4.pl 
  args-client-tcp6.pl args-client-tls.pl 
  args-client-tls4.pl 
  args-client-tls6.pl 
  args-fdexhaustion-sighup.pl 
  args-privsep-daemon.pl 
  args-privsep-foreground.pl 
  args-privsep.pl args-secure-udp.pl 
  args-selector-syslog.pl 
  args-server-tcp.pl args-server-tcp4.pl 
  args-server-tcp6.pl args-server-tls.pl 
  args-server-tls4.pl 
  args-server-tls6.pl args-socket.pl 
  args-zulu.pl 
Added files:
regress/usr.sbin/syslogd: args-send46.pl 

Log message:
Syslogd does no longer keep the *:514 UDP sockets open by default.
Adapt tests.



CVS: cvs.openbsd.org: src

2017-09-12 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/09/12 09:17:21

Modified files:
usr.sbin/syslogd: syslogd.c 

Log message:
In the default configuration syslogd(8) kept two *:514 UDP sockets
open.  These sockets are used for sending UDP packets if there is
a UDP loghost in syslog.conf(5).  If syslogd is started with -u,
they can receive packets, otherwise they are disabled with
shutdown(SHUT_RD).  In case syslogd does neither send nor receive,
close the sockets after reading the configuration file.  This gives
us a cleaner netstat output, and the ports are not reported by port
scanners.  This has no security implication.
OK benno@ jca@ sthen@ deraadt@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 09:06:20

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

Log message:
use .Dv for ioctl(2) request names;
from 



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 09:01:21

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

Log message:
use the standard .Fa idiom for ioctl(2) args, and kill .Tn



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 08:57:15

Modified files:
share/man/man4 : gpio.4 radio.4 uhid.4 

Log message:
use the standard .Fa idiom for ioctl(2) args



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 08:36:46

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

Log message:
minor markup corrections: Cd for options(4), Vt for data types



CVS: cvs.openbsd.org: src

2017-09-12 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/09/12 08:29:35

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

Log message:
standard .Fa markup for ioctl(2) args, and add one missing .Dv;
from 



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:43:14

Modified files:
regress/sbin/route: Makefile rttest30.ok 

Log message:
Sleep for some time to avoid race reporting a different number of reference
count.

Iterating over the routing table implies using SRP which bump the refcount
of routes for a short period of time.  Depending on how work is schedule
the second ifconfig(8) command might run before the timer dereference the
route.

Should fix races on bluhm@'s test setup.



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:32:44

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

Log message:
Include room for NUL-termination when calculating the length of archive
member name.

Fix an of by one found by sthen@ with MALLOC_OPTIONS=C.

>From Matthew Martin, ok deraadt@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:27:44

Modified files:
share/man/man4 : ddb.4 options.4 

Log message:
option DDB_STRUCT is gone, 'show struct' now work in GENERIC.



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:23:42

Modified files:
sys/conf   : files 
sys/ddb: db_command.c 
sys/arch/alpha/conf: Makefile.alpha 
sys/arch/amd64/conf: Makefile.amd64 
sys/arch/arm64/conf: Makefile.arm64 
sys/arch/armv7/conf: Makefile.armv7 
sys/arch/hppa/conf: Makefile.hppa 
sys/arch/i386/conf: Makefile.i386 
sys/arch/landisk/conf: Makefile.landisk 
sys/arch/loongson/conf: Makefile.loongson 
sys/arch/luna88k/conf: Makefile.luna88k 
sys/arch/macppc/conf: Makefile.macppc 
sys/arch/octeon/conf: Makefile.octeon 
sys/arch/sgi/conf: Makefile.sgi 
sys/arch/socppc/conf: Makefile.socppc 
sys/arch/sparc64/conf: Makefile.sparc64 
Removed files:
sys/ddb: db_struct.c db_structinfo.c parse_structinfo.pl 

Log message:
Remove option DDB_STRUCTINFO.  Now that ddb(4) is CTF aware, similar
functionnalities are available in GENERIC.

ok jasper@, deraadt@, guenther@, dlg@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:20:04

Modified files:
sys/ddb: db_ctf.c 

Log message:
Skip forward declarations until ctfconv(1) properly merge them with
the corresponding struct definitions.

ok dlg@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/09/12 02:16:13

Modified files:
.  : Makefile.cross 

Log message:
Fix cross-compiling GCC toolchains on Clang archs.

ok patrick@



CVS: cvs.openbsd.org: src

2017-09-12 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/09/12 01:55:48

Modified files:
usr.bin/ssh: channels.c 

Log message:
unused variable



CVS: cvs.openbsd.org: src

2017-09-12 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/09/12 01:32:04

Modified files:
usr.bin/ssh: channels.c 

Log message:
fix tun/tap forwarding case in previous