CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 08:20:12 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Use only one label, clearer.


To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/net

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 08:43:26 UTC 2018

Modified Files:
src/sys/net: if_arp.h

Log Message:
Define ar_* as inlined functions, not as macros. Makes it easier to
understand why ARPHRD_IEEE1394 needs to be handled with care - it doesn't
have ar_tha.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/net/if_arp.h

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 08:51:38 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Don't force ARPHRD_IEEE1394 on IEEE1394 interfaces. If it's not there, then
kick the packet. And do this earlier.


To generate a diff of this commit:
cvs rdiff -u -r1.259 -r1.260 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/kern

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 09:26:18 UTC 2018

Modified Files:
src/sys/kern: kern_tc.c

Log Message:
Put time_second and time_uptime in different cache lines, probably saves
us some false sharing.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/kern/kern_tc.c

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



CVS commit: src/sys/conf

2018-02-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Feb 13 09:50:36 UTC 2018

Modified Files:
src/sys/conf: Makefile.kern.inc

Log Message:
use -fno-delete-null-pointer-checks for kernels.


To generate a diff of this commit:
cvs rdiff -u -r1.262 -r1.263 src/sys/conf/Makefile.kern.inc

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



CVS commit: src/crypto/external/bsd/openssh/dist

2018-02-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Feb 13 09:51:33 UTC 2018

Modified Files:
src/crypto/external/bsd/openssh/dist: sshkey.c

Log Message:
Fix copy & pasto (dsa code vs. rsa code) in previous, fixes PR lib/53012
and recentish sshfs test failures.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/crypto/external/bsd/openssh/dist/sshkey.c

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



CVS commit: src/distrib/sets/lists

2018-02-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Feb 13 10:02:12 UTC 2018

Modified Files:
src/distrib/sets/lists/base: ad.mips shl.mi
src/distrib/sets/lists/comp: ad.mips ad.powerpc ad.sh3 md.amd64 md.i386
mi shl.mi
src/distrib/sets/lists/debug: mi shl.mi

Log Message:
obsolete some GCC 4.8 files.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/distrib/sets/lists/base/ad.mips
cvs rdiff -u -r1.831 -r1.832 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.72 -r1.73 src/distrib/sets/lists/comp/ad.mips
cvs rdiff -u -r1.89 -r1.90 src/distrib/sets/lists/comp/ad.powerpc
cvs rdiff -u -r1.37 -r1.38 src/distrib/sets/lists/comp/ad.sh3
cvs rdiff -u -r1.256 -r1.257 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.178 -r1.179 src/distrib/sets/lists/comp/md.i386
cvs rdiff -u -r1.2180 -r1.2181 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.312 -r1.313 src/distrib/sets/lists/comp/shl.mi
cvs rdiff -u -r1.241 -r1.242 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.192 -r1.193 src/distrib/sets/lists/debug/shl.mi

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 10:05:05 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Replace dead code by KASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.260 -r1.261 src/sys/netinet/if_arp.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/rarpd

2018-02-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Feb 13 10:17:04 UTC 2018

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

Log Message:
Adapt to ar_tha() changes in if_arp.h rev1.31.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/usr.sbin/rarpd/rarpd.c

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 10:20:50 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Minor stylistic changes, and use C99 types.


To generate a diff of this commit:
cvs rdiff -u -r1.261 -r1.262 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 10:31:01 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Same change as rev1.258, but this time in revarpinput: use m_pullup.


To generate a diff of this commit:
cvs rdiff -u -r1.262 -r1.263 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 10:47:41 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Be tougher:

 * In arpintr(), don't allow IEEE1394 packets on non-IEEE1394 interfaces.

 * In revarpinput(), kick IEEE1394 packets right away. They are not
   supported.


To generate a diff of this commit:
cvs rdiff -u -r1.263 -r1.264 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/net

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 10:50:38 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Remove KERNEL_LOCK around the MPLS code. It's not needed, since we're only
touching the tag of the mbuf - the tag belongs only to the mbuf, and the
mbuf is not shared.

ok knakahara@


To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 src/sys/net/if_ethersubr.c

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



CVS commit: src/sbin/fsck_ffs

2018-02-13 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Tue Feb 13 11:20:08 UTC 2018

Modified Files:
src/sbin/fsck_ffs: pass1.c

Log Message:
Treat an inode with "mode == 0" and "blocks != 0" as partially allocated
and clear it as ffs_newvnode() tests for "blocks == 0".


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sbin/fsck_ffs/pass1.c

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



CVS commit: src/sys/dev/i2c

2018-02-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Feb 13 13:19:30 UTC 2018

Modified Files:
src/sys/dev/i2c: files.i2c

Log Message:
Delete 'define dbcool {}' line commented out in previous.  It's bogus
and the gcc6 correctly complains about that when it compiles ioconf.c

PR toolchain/53023


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/i2c/files.i2c

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



CVS import: src/crypto/external/bsd/openssl/dist/test

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 14:45:54 UTC 2018

Update of /cvsroot/src/crypto/external/bsd/openssl/dist/test
In directory ivanova.netbsd.org:/tmp/cvs-serv11416

Log Message:
add missing tests

Status:

Vendor Tag: OPENSSL
Release Tags:   openssl-1-1-0g


No conflicts created by this import



CVS import: src/crypto/external/bsd/openssl/dist/test

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 14:46:39 UTC 2018

Update of /cvsroot/src/crypto/external/bsd/openssl/dist/test
In directory ivanova.netbsd.org:/tmp/cvs-serv18120

Log Message:
add missing tests

Status:

Vendor Tag: OPENSSL
Release Tags:   openssl-1-1-0g

U src/crypto/external/bsd/openssl/dist/test/constant_time_test.c
U src/crypto/external/bsd/openssl/dist/test/evp_extra_test.c
U src/crypto/external/bsd/openssl/dist/test/heartbeat_test.c

No conflicts created by this import



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 14:50:28 UTC 2018

Modified Files:
src/sys/netinet: if_arp.c

Log Message:
Mmh. Add a missing check: if ARP was disabled on the interface, don't
process ARP packets. Otherwise the kernel will add ARP entries even if

ifconfig wm0 -arp

was entered.


To generate a diff of this commit:
cvs rdiff -u -r1.264 -r1.265 src/sys/netinet/if_arp.c

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



CVS commit: src/sys/net

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Feb 13 15:21:59 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Make the arpresolve branch more readable, fix typo, fix XXX (which I
added), add missing pserialize_read_exit (which I forgot).


To generate a diff of this commit:
cvs rdiff -u -r1.259 -r1.260 src/sys/net/if_ethersubr.c

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



CVS commit: src/crypto/external/bsd/openssl/dist/test

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 17:39:38 UTC 2018

Added Files:
src/crypto/external/bsd/openssl/dist/test: constant_time_test.c
evp_extra_test.c heartbeat_test.c

Log Message:
add missing test files added in the vendor branch.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
src/crypto/external/bsd/openssl/dist/test/constant_time_test.c \
src/crypto/external/bsd/openssl/dist/test/evp_extra_test.c
cvs rdiff -u -r0 -r1.4 \
src/crypto/external/bsd/openssl/dist/test/heartbeat_test.c

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



CVS commit: src/usr.bin/make

2018-02-13 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Tue Feb 13 19:37:31 UTC 2018

Modified Files:
src/usr.bin/make: meta.c

Log Message:
Avoid unused variable warning


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/usr.bin/make/meta.c

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



CVS commit: src/crypto/external/bsd/openssl/dist/crypto/bn

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 22:29:14 UTC 2018

Modified Files:
src/crypto/external/bsd/openssl/dist/crypto/bn: bn_rand.c

Log Message:
Add a (void *) cast to make things compile with our own sha2 header


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 \
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c

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



CVS commit: src/crypto/external/bsd/openssl/dist/include/openssl

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 22:32:10 UTC 2018

Modified Files:
src/crypto/external/bsd/openssl/dist/include/openssl: sha.h

Log Message:
Provide the means to use the libc sha2 internally instead of the openssl
implementation; this does not really matter since their structs are larger
than ours, but it helps when we want to verify that we are not using any
of the openssl code.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/crypto/external/bsd/openssl/dist/include/openssl/sha.h

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



CVS commit: src/crypto/external/bsd/openssl/dist/crypto/evp

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 13 22:35:47 UTC 2018

Modified Files:
src/crypto/external/bsd/openssl/dist/crypto/evp: m_sha1.c

Log Message:
Provide SHAR384 flavors: The OpenSSL SHA512_Final implementation is re-used
to implement SHA384_Final, but does the right thing by checking the internally
kept digest size. The NetBSD libc implementation provides two entry points
that write a different size digest, so if we use the SHA512_Final from here
we end up overwriting memory.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/crypto/external/bsd/openssl/dist/crypto/evp/m_sha1.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/dist/libsanitizer/sanitizer_common

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:10:06 UTC 2018

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_unwind_linux_libcdep.cc

Log Message:
- enable netbsd
- add cast to (uptr) for _Unwind_GetIP


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_unwind_linux_libcdep.cc

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/dist/libsanitizer/sanitizer_common

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:10:32 UTC 2018

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_flags.inc

Log Message:
enable addr2line


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_flags.inc

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/dist/libsanitizer/asan

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:11:22 UTC 2018

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_interceptors.cc

Log Message:
our __csa_atexit does not like NULL dso; use atexit(3) instead.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_interceptors.cc

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

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:12:07 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
Asan needs bits and pieces of ubsan now; go figure.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/Makefile.sanitizer

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/libasan

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:12:36 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
depend on librt for shm_{open,close}


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc/lib/libasan/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/lib/libubsan

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 03:37:39 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
need -lrt for shm_{open,close}


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/sys/kern

2018-02-13 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 14 03:56:26 UTC 2018

Modified Files:
src/sys/kern: subr_lockdebug.c

Log Message:
Use cpu_softintr_p


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/kern/subr_lockdebug.c

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



CVS commit: src/sys/netinet

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Feb 14 05:24:44 UTC 2018

Modified Files:
src/sys/netinet: udp_usrreq.c

Log Message:
Revert my two last changes in this file. They are apparently causing
problems with racoon, I'll investigate this later.


To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 src/sys/netinet/udp_usrreq.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-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Feb 14 05:29:39 UTC 2018

Modified Files:
src/sys/netinet6: ip6_input.c ip6_var.h

Log Message:
Re-make ip6_nexthdr global, it will be used in soon-to-be-added code...


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/netinet6/ip6_input.c
cvs rdiff -u -r1.79 -r1.80 src/sys/netinet6/ip6_var.h

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



CVS commit: src/usr.sbin/ndp

2018-02-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Feb 14 06:52:41 UTC 2018

Modified Files:
src/usr.sbin/ndp: ndp.8

Log Message:
Use .Cm instead of .Li, same as arp.8.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/ndp/ndp.8

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