CVS commit: src/usr.sbin/syslogd

2018-11-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Nov  5 08:34:20 UTC 2018

Modified Files:
src/usr.sbin/syslogd: syslogd.c

Log Message:
Make it compilable with gcc


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/usr.sbin/syslogd/syslogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Nov  5 08:45:32 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
GCC 6.5 ios_failure.cc needs to be compiled with cxx mode.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Nov  5 08:46:46 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/alpha: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/arm: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earm: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmeb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhfeb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4eb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6eb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hf: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hfeb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7eb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hf: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hfeb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/hppa: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/i386: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/ia64: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/m68k: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64eb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64el: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mipseb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsel: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3el: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc64: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/vax: gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/x86_64: gcov-iov.h
src/external/gpl3/gcc/lib/libgomp/arch/aarch64: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/alpha: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/arm: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/armeb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earm: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmeb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmhf: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmhfeb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv4: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv4eb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv6: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv6eb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv6hf: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv6hfeb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv7: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv7eb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv7hf: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/earmv7hfeb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/hppa: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/i386: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/ia64: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/m68000: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/m68k: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/mips64eb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/mips64el: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/mipseb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/mipsel: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/powerpc: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/sh3eb: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/sh3el: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/sparc: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/sparc64: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/vax: omp.h
src/external/gpl3/gcc/lib/libgomp/arch/x86_64: omp.h
src/external/gpl3/gcc/lib/libiberty: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64: c++config.h
defs.mk gstdint.h
src/external/gpl3/gcc/lib

CVS commit: src/lib/libc/sys

2018-11-05 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov  5 09:18:55 UTC 2018

Modified Files:
src/lib/libc/sys: getsockopt.2

Log Message:
Fix xref.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/sys/getsockopt.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/syslogd

2018-11-05 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov  5 09:22:30 UTC 2018

Modified Files:
src/usr.sbin/syslogd: syslogd.8 syslogd.c

Log Message:
Sort options.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/syslogd/syslogd.8
cvs rdiff -u -r1.128 -r1.129 src/usr.sbin/syslogd/syslogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/syslogd

2018-11-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Nov  5 10:27:06 UTC 2018

Modified Files:
src/usr.sbin/syslogd: syslogd.c

Log Message:
Revert previous - local merge mishap


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/usr.sbin/syslogd/syslogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/cortex

2018-11-05 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Nov  5 11:50:15 UTC 2018

Modified Files:
src/sys/arch/arm/cortex: gicv3.c

Log Message:
ICC_PMR_EL1 has different encoding than IPRIORITYR. Not 100% sure that this is 
correct yet, but it works with both RK3399 and QEMU.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/cortex/gicv3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2018-11-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Nov  5 17:04:03 UTC 2018

Modified Files:
src/usr.sbin/sysinst: util.c

Log Message:
For "unknown" sets (should only happen for pkgsrc.tgz), always use
.tgz suffix.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/sysinst/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/top/dist

2018-11-05 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Nov  5 17:44:09 UTC 2018

Modified Files:
src/external/bsd/top/dist: top.1.in

Log Message:
Fix typo s/fron/from/

>From dfive on freenode, thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/bsd/top/dist/top.1.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ppbus

2018-11-05 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Mon Nov  5 18:37:18 UTC 2018

Modified Files:
src/sys/dev/ppbus: if_plip.c

Log Message:
When refactoring interface drivers after netbsd-4, the SIOCINITIFADDR
ioctl was passed through ifioctl_common, because the case falls through
to the SIOCSIFFLAGS case. The common handler however doesn't implement
SIOCINITIFADDR, so an attempt to configure plip always failed with ENOTTY.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ppbus/if_plip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2018-11-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Nov  5 19:45:57 UTC 2018

Modified Files:
src/usr.sbin/sysinst: disks.c
src/usr.sbin/sysinst/arch/amd64: md.h
src/usr.sbin/sysinst/arch/amiga: md.h
src/usr.sbin/sysinst/arch/emips: md.h
src/usr.sbin/sysinst/arch/hp300: md.h
src/usr.sbin/sysinst/arch/i386: md.h
src/usr.sbin/sysinst/arch/sparc: md.h
src/usr.sbin/sysinst/arch/vax: md.h

Log Message:
Get rid of hard coded disk names and use sysctl hw.disknames
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/amd64/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/amiga/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/emips/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/hp300/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/i386/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/sparc/md.h
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/arch/vax/md.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Nov  5 21:34:33 UTC 2018

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Match the right MACHINE_ARCHes for GENERIC.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/etc/etc.evbarm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/fs/puffs

2018-11-05 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Tue Nov  6 02:39:49 UTC 2018

Modified Files:
src/sys/fs/puffs: puffs_vnops.c

Log Message:
Fix use after RECLAIM in PUFFS filesystems

>From hannken@

When puffs_cookie2vnode() misses an entry and vrele() it operations
puffs_vnop_reclaim() and puffs_vnop_fsync() get called with a VNON
vnode.

Do not notify the server in this case as the cookie is stale.


To generate a diff of this commit:
cvs rdiff -u -r1.212 -r1.213 src/sys/fs/puffs/puffs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov  6 04:04:34 UTC 2018

Modified Files:
src/common/lib/libutil: getfstypename.c
src/sbin/gpt: gpt_uuid.c
src/sys/dev/dkwedge: dkwedge_gpt.c
src/sys/sys: disk.h disklabel.h disklabel_gpt.h

Log Message:
add support to detect the 3 vmware GPT partition types:

- VMKcore (dump partition)
- VMFS
- VMware reserved

this enables vmkcore partitions for netbsd swap or dump, as well
as naming all of them.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/common/lib/libutil/getfstypename.c
cvs rdiff -u -r1.15 -r1.16 src/sbin/gpt/gpt_uuid.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dkwedge/dkwedge_gpt.c
cvs rdiff -u -r1.72 -r1.73 src/sys/sys/disk.h
cvs rdiff -u -r1.119 -r1.120 src/sys/sys/disklabel.h
cvs rdiff -u -r1.12 -r1.13 src/sys/sys/disklabel_gpt.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/savecore

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov  6 04:07:22 UTC 2018

Modified Files:
src/sbin/savecore: savecore.c

Log Message:
put a bunch of the kvm_read + warn on failure code into a macro that
describes more about what failed.  now errors tell you which actual
variable was being requested instead of simply saying "not yours".

tested on amd64 as working.  written for arm64 testing.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sbin/savecore/savecore.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet6

2018-11-05 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Tue Nov  6 04:27:41 UTC 2018

Modified Files:
src/sys/netinet6: udp6_usrreq.c

Log Message:
Restore the length check of a sockaddr passed from userland at udp6_output

A sockaddr with invalid length could be passed to the network stack resulting in
a kernel panic like this:

panic: sockaddr_copy: source too long, 28 < 128 bytes
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip 0x80216c35 cs 0x8 rflags 0x246 cr2 
0x7f7ff7ef3000 ilevel 0x4 rsp 0x80003308b690
curlwp 0xfe803e11ca40 pid 48.1 lowest kstack 0x8000330852c0
Stopped in pid 48.1 (a.out) at  netbsd:breakpoint+0x5:  leave
db{1}> bt
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0x140
panic() at netbsd:panic+0x3c
sockaddr_copy() at netbsd:sockaddr_copy+0x95
rtcache_setdst() at netbsd:rtcache_setdst+0x73
rtcache_lookup2() at netbsd:rtcache_lookup2+0x56
in6_selectroute() at netbsd:in6_selectroute+0x184
in6_selectsrc() at netbsd:in6_selectsrc+0x119
udp6_output() at netbsd:udp6_output+0x25e
udp6_send_wrapper() at netbsd:udp6_send_wrapper+0x8a
sosend() at netbsd:sosend+0x7bf
do_sys_sendmsg_so() at netbsd:do_sys_sendmsg_so+0x28e
do_sys_sendmsg() at netbsd:do_sys_sendmsg+0x89
sys_sendto() at netbsd:sys_sendto+0x5c
syscall() at netbsd:syscall+0x1ed
--- syscall (number 133) ---
7f7ff790173a:

Reported by Paul Ripke


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/netinet6/udp6_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/postinstall

2018-11-05 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Nov  6 06:16:00 UTC 2018

Modified Files:
src/usr.sbin/postinstall: postinstall

Log Message:
add rc.d/dhcpd6


To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov  6 06:17:29 UTC 2018

Modified Files:
src/external/gpl3/gcc/dist/gcc: ipa-inline.c
src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
- make the build depend upon the BASE-VER file.
- workaround a problem only see with -O2 in ipa-inline.c: it can't
  convince itself that an integer underflow can't happen.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 src/external/gpl3/gcc/dist/gcc/ipa-inline.c
cvs rdiff -u -r1.50 -r1.51 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.