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

2018-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 20 08:51:57 UTC 2018

Modified Files:
src/external/bsd/flex/dist/src: flexdef.h

Log Message:
PR/53511: Palle Lyckegaard: Fix compiling flex on a Solaris 11 host system


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/flex/dist/src/flexdef.h

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



CVS commit: src/sys/arch/x86

2018-08-20 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Aug 20 08:53:48 UTC 2018

Modified Files:
src/sys/arch/x86/include: specialreg.h
src/sys/arch/x86/x86: procfs_machdep.c

Log Message:
OK'd by maxv:
- Add cpuid 7 edx L1D_FLUSH bit.
- Add IA32_ARCH_SKIP_L1DFL_VMENTRY bit.
- Add IA32_FLUSH_CMD MSR.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/arch/x86/include/specialreg.h
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/x86/x86/procfs_machdep.c

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



CVS commit: src/sys/external/bsd/gnu-efi/dist/gnuefi

2018-08-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Aug 20 09:50:18 UTC 2018

Modified Files:
src/sys/external/bsd/gnu-efi/dist/gnuefi: reloc_aarch64.c

Log Message:
Allow this to compile on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/sys/external/bsd/gnu-efi/dist/gnuefi/reloc_aarch64.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/flex/dist/src

2018-08-20 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Mon Aug 20 10:24:17 UTC 2018

Modified Files:
src/external/bsd/flex/dist/src: flexdef.h

Log Message:
PR toolchain/53511

_NETBSD_SOURCE and nbtool_config.h don't play well together...
(unbreak tools build on netbsd host)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/flex/dist/src/flexdef.h

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



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

2018-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 20 10:26:59 UTC 2018

Modified Files:
src/external/bsd/flex/dist/src: flexdef.h

Log Message:
avoid redefinition of the package macros.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/flex/dist/src/flexdef.h

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



CVS commit: src/tools/lex

2018-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 20 10:27:32 UTC 2018

Modified Files:
src/tools/lex: Makefile

Log Message:
make sure that nbtools_compat.h is the first thing included for generated files


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tools/lex/Makefile

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



CVS import: src/external/bsd/dhcpcd/dist

2018-08-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Aug 20 10:55:04 UTC 2018

Update of /cvsroot/src/external/bsd/dhcpcd/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv3194

Log Message:
Import dhcpcd-7.0.8 with the following changes:
  *  Don't use IP_PKTINFO on NetBSD-7 as it's incomplete.
  *  Workaround RTM_NEWADDR sending the wrong broadcast address
 on NetBSD-7.
  *  Silence diagnostics if an address vanishes when reading
 it's flags on all BSD's.
  *  Misc compiler warnings fixed.

Status:

Vendor Tag: roy
Release Tags:   dhcpcd-7-0-8

U src/external/bsd/dhcpcd/dist/.arcconfig
U src/external/bsd/dhcpcd/dist/.gitignore
U src/external/bsd/dhcpcd/dist/BUILDING.md
U src/external/bsd/dhcpcd/dist/LICENSE
U src/external/bsd/dhcpcd/dist/Makefile
U src/external/bsd/dhcpcd/dist/Makefile.inc
U src/external/bsd/dhcpcd/dist/README.md
U src/external/bsd/dhcpcd/dist/config-null.mk
U src/external/bsd/dhcpcd/dist/configure
U src/external/bsd/dhcpcd/dist/iconfig.mk
U src/external/bsd/dhcpcd/dist/compat/_strtoi.h
U src/external/bsd/dhcpcd/dist/compat/arc4random.c
U src/external/bsd/dhcpcd/dist/compat/arc4random.h
U src/external/bsd/dhcpcd/dist/compat/bitops.h
U src/external/bsd/dhcpcd/dist/compat/queue.h
U src/external/bsd/dhcpcd/dist/compat/arc4random_uniform.c
U src/external/bsd/dhcpcd/dist/compat/arc4random_uniform.h
U src/external/bsd/dhcpcd/dist/compat/reallocarray.c
U src/external/bsd/dhcpcd/dist/compat/dprintf.c
U src/external/bsd/dhcpcd/dist/compat/dprintf.h
U src/external/bsd/dhcpcd/dist/compat/endian.h
U src/external/bsd/dhcpcd/dist/compat/pidfile.c
U src/external/bsd/dhcpcd/dist/compat/pidfile.h
U src/external/bsd/dhcpcd/dist/compat/reallocarray.h
U src/external/bsd/dhcpcd/dist/compat/strlcpy.c
U src/external/bsd/dhcpcd/dist/compat/strlcpy.h
U src/external/bsd/dhcpcd/dist/compat/strtoi.c
U src/external/bsd/dhcpcd/dist/compat/strtoi.h
U src/external/bsd/dhcpcd/dist/compat/strtou.c
U src/external/bsd/dhcpcd/dist/compat/crypt/hmac.c
U src/external/bsd/dhcpcd/dist/compat/crypt/hmac.h
U src/external/bsd/dhcpcd/dist/compat/crypt/md5.c
U src/external/bsd/dhcpcd/dist/compat/crypt/md5.h
U src/external/bsd/dhcpcd/dist/compat/crypt/sha256.c
U src/external/bsd/dhcpcd/dist/compat/crypt/sha256.h
C src/external/bsd/dhcpcd/dist/src/dhcp.c
U src/external/bsd/dhcpcd/dist/src/GNUmakefile
U src/external/bsd/dhcpcd/dist/src/Makefile
U src/external/bsd/dhcpcd/dist/src/arp.c
U src/external/bsd/dhcpcd/dist/src/arp.h
U src/external/bsd/dhcpcd/dist/src/auth.c
U src/external/bsd/dhcpcd/dist/src/auth.h
U src/external/bsd/dhcpcd/dist/src/bpf.c
U src/external/bsd/dhcpcd/dist/src/bpf.h
U src/external/bsd/dhcpcd/dist/src/common.c
U src/external/bsd/dhcpcd/dist/src/common.h
U src/external/bsd/dhcpcd/dist/src/control.c
U src/external/bsd/dhcpcd/dist/src/control.h
U src/external/bsd/dhcpcd/dist/src/defs.h
U src/external/bsd/dhcpcd/dist/src/dev.c
U src/external/bsd/dhcpcd/dist/src/dev.h
U src/external/bsd/dhcpcd/dist/src/dhcp-common.c
U src/external/bsd/dhcpcd/dist/src/dhcp-common.h
U src/external/bsd/dhcpcd/dist/src/dhcp.h
U src/external/bsd/dhcpcd/dist/src/dhcp6.c
U src/external/bsd/dhcpcd/dist/src/dhcp6.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.8.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf
U src/external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.c
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf
U src/external/bsd/dhcpcd/dist/src/genembedc
U src/external/bsd/dhcpcd/dist/src/dhcpcd.h
U src/external/bsd/dhcpcd/dist/src/duid.c
U src/external/bsd/dhcpcd/dist/src/duid.h
U src/external/bsd/dhcpcd/dist/src/eloop.c
U src/external/bsd/dhcpcd/dist/src/eloop.h
U src/external/bsd/dhcpcd/dist/src/if-linux-wext.c
U src/external/bsd/dhcpcd/dist/src/genembedh
U src/external/bsd/dhcpcd/dist/src/if-bsd.c
U src/external/bsd/dhcpcd/dist/src/if-linux.c
U src/external/bsd/dhcpcd/dist/src/if-options.c
U src/external/bsd/dhcpcd/dist/src/if-options.h
U src/external/bsd/dhcpcd/dist/src/if-sun.c
U src/external/bsd/dhcpcd/dist/src/if.c
U src/external/bsd/dhcpcd/dist/src/if.h
U src/external/bsd/dhcpcd/dist/src/ipv4.c
U src/external/bsd/dhcpcd/dist/src/ipv4.h
U src/external/bsd/dhcpcd/dist/src/ipv4ll.c
U src/external/bsd/dhcpcd/dist/src/ipv4ll.h
U src/external/bsd/dhcpcd/dist/src/ipv6.c
U src/external/bsd/dhcpcd/dist/src/ipv6.h
U src/external/bsd/dhcpcd/dist/src/ipv6nd.c
U src/external/bsd/dhcpcd/dist/src/ipv6nd.h
U src/external/bsd/dhcpcd/dist/src/logerr.c
U src/external/bsd/dhcpcd/dist/src/logerr.h
U src/external/bsd/dhcpcd/dist/src/route.c
U src/external/bsd/dhcpcd/dist/src/route.h
U src/external/bsd/dhcpcd/dist/src/sa.c
U src/external/bsd/dhcpcd/dist/src/sa.h
U src/external/bsd/dhcpcd/dist/src/script.c
U src/external/bsd/dhcpcd/dist/src/script.h
U src/external/bsd/dhcpcd/dist/src/dev/Makefile
U src/

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

2018-08-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Aug 20 10:55:59 UTC 2018

Modified Files:
src/external/bsd/dhcpcd/dist/src: dhcp.c

Log Message:
Sync


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

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



CVS commit: src/doc

2018-08-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Aug 20 10:57:52 UTC 2018

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
Note import of dhcpcd-7.0.8


To generate a diff of this commit:
cvs rdiff -u -r1.1555 -r1.1556 src/doc/3RDPARTY
cvs rdiff -u -r1.2427 -r1.2428 src/doc/CHANGES

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-08-20 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Aug 20 11:35:28 UTC 2018

Modified Files:
src/sys/kern: files.kern subr_kmem.c

Log Message:
Retire KMEM_REDZONE and KMEM_POISON.

KMEM_REDZONE is not very efficient and cannot detect read overflows. KASAN
can, and will be used instead.

KMEM_POISON is enabled along with KMEM_GUARD, but it is redundant, since
the latter can detect read UAFs contrary to the former. In fact maybe
KMEM_GUARD should be retired too, because there are many cases where it
doesn't apply.

Simplifies the code.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/files.kern
cvs rdiff -u -r1.66 -r1.67 src/sys/kern/subr_kmem.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-08-20 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Aug 20 11:46:44 UTC 2018

Modified Files:
src/sys/kern: kern_malloc.c subr_kmem.c

Log Message:
Compute the pointer earlier, not in the return statement. No functional
change.


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/kern/kern_malloc.c
cvs rdiff -u -r1.67 -r1.68 src/sys/kern/subr_kmem.c

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



CVS commit: src/share/man/man9

2018-08-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Aug 20 14:23:27 UTC 2018

Modified Files:
src/share/man/man9: bus_dma.9

Log Message:
Clarify that bus_dmamem_alloc boundary can be zero for no constraint.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/share/man/man9/bus_dma.9

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



CVS commit: src/share/man/man9

2018-08-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Aug 20 14:29:05 UTC 2018

Modified Files:
src/share/man/man9: uvm_map.9

Log Message:
Clarify reference counting of uvm_map.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man9/uvm_map.9

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



CVS commit: src/sys

2018-08-20 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Aug 20 15:04:52 UTC 2018

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/amd64/conf: GENERIC Makefile.amd64 files.amd64
kern.ldscript
src/sys/arch/amd64/include: pmap.h types.h
src/sys/arch/x86/include: pmap.h
src/sys/arch/x86/x86: pmap.c
src/sys/conf: files
src/sys/kern: kern_malloc.c subr_kmem.c
src/sys/lib/libkern: libkern.h
src/sys/sys: Makefile
Added Files:
src/sys/arch/amd64/amd64: asan.c
src/sys/sys: asan.h

Log Message:
Add support for kASan on amd64. Written by me, with some parts inspired
from Siddharth Muralee's initial work. This feature can detect several
kinds of memory bugs, and it's an excellent feature.

It can be enabled by uncommenting these three lines in GENERIC:

#makeoptionsKASAN=1 # Kernel Address Sanitizer
#optionsKASAN
#no options SVS

The kernel is compiled without SVS, without DMAP and without PCPU area.
A shadow area is created at boot time, and it can cover the upper 128TB
of the address space. This area is populated gradually as we allocate
memory. With this design the memory consumption is kept at its lowest
level.

The compiler calls the __asan_* functions each time a memory access is
done. We verify whether this access is legal by looking at the shadow
area.

We declare our own special memcpy/memset/etc functions, because the
compiler's builtins don't add the __asan_* instrumentation.

Initially all the mappings are marked as valid. During dynamic
allocations, we add a redzone, which we mark as invalid. Any access on
it will trigger a kASan error message. Additionally, the compiler adds
a redzone on global variables, and we mark these redzones as invalid too.
The illegal-access detection works with a 1-byte granularity.

For now, we cover three areas:

- global variables
- kmem_alloc-ated areas
- malloc-ated areas

More will come, but that's a good start.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/amd64/amd64/asan.c
cvs rdiff -u -r1.314 -r1.315 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.503 -r1.504 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/amd64/conf/Makefile.amd64
cvs rdiff -u -r1.105 -r1.106 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/amd64/conf/kern.ldscript
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/amd64/include/types.h
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.303 -r1.304 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.1203 -r1.1204 src/sys/conf/files
cvs rdiff -u -r1.147 -r1.148 src/sys/kern/kern_malloc.c
cvs rdiff -u -r1.68 -r1.69 src/sys/kern/subr_kmem.c
cvs rdiff -u -r1.127 -r1.128 src/sys/lib/libkern/libkern.h
cvs rdiff -u -r1.166 -r1.167 src/sys/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/sys/asan.h

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



CVS commit: src/sys/arch/aarch64/aarch64

2018-08-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Aug 20 18:13:56 UTC 2018

Modified Files:
src/sys/arch/aarch64/aarch64: cpu.c

Log Message:
Use __SHIFTOUT to extract MPIDR affinity levels


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/cpu.c

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



CVS commit: src/share/examples/npf

2018-08-20 Thread Robert Swindells
Module Name:src
Committed By:   rjs
Date:   Mon Aug 20 20:45:52 UTC 2018

Modified Files:
src/share/examples/npf: soho_gw-npf.conf

Log Message:
Fix cvs id.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/examples/npf/soho_gw-npf.conf

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-08-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Aug 21 01:25:57 UTC 2018

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

Log Message:
Conditionalize inclusion of kasan.h so that rump can build.


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/sys/kern/kern_malloc.c

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



CVS commit: [pgoyette-compat] src/distrib/sets/lists/comp

2018-08-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Aug 21 04:10:04 UTC 2018

Modified Files:
src/distrib/sets/lists/comp [pgoyette-compat]: mi

Log Message:
Add the new sys/kasan.h to the distrib sets lists

Finish fixing the build.


To generate a diff of this commit:
cvs rdiff -u -r1.2185.2.6 -r1.2185.2.7 src/distrib/sets/lists/comp/mi

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

2018-08-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Aug 21 04:16:38 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add the new sys/kasan.h to the distrib sets lists


To generate a diff of this commit:
cvs rdiff -u -r1.2219 -r1.2220 src/distrib/sets/lists/comp/mi

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



CVS commit: [pgoyette-compat] src/distrib/sets/lists/comp

2018-08-20 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Aug 21 04:17:26 UTC 2018

Modified Files:
src/distrib/sets/lists/comp [pgoyette-compat]: mi

Log Message:
Revert previous - it was wrong, and on the wrong branch!


To generate a diff of this commit:
cvs rdiff -u -r1.2185.2.7 -r1.2185.2.8 src/distrib/sets/lists/comp/mi

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



CVS commit: src

2018-08-20 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Aug 21 06:49:21 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi
src/sys/sys: Makefile

Log Message:
There is no possible reason that  can be useful to
userland, all it contains is a few prototypes for kernel functions.
So, don't install asan.h in /usr/include/sys (if it ever gains
anything which would be useful, then this can be changed).

Note: I have simply removed /usr/includ/esys/asan.hit from the sets
list, rather than marking it obsolete - it has not been there for
very long, If you get build problems (sets list errors) from an
update build because you managed to install it during the last few
hours, just remove asan.h from /usr/include/sys


To generate a diff of this commit:
cvs rdiff -u -r1.2220 -r1.2221 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.167 -r1.168 src/sys/sys/Makefile

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