NetBSD/src 0UDKnMisys/dev Makefile

   Hook spi.
VersionDeltaFile
1.41+2-2sys/dev/Makefile
+2-21 files

NetBSD/src emopH4Yshare/man/man9 Makefile

   Install spi.9 and friends.
VersionDeltaFile
1.435+2-2share/man/man9/Makefile
+2-21 files

NetBSD/src 9lIXMFoetc/mtree NetBSD.dist.base

   Add ./usr/include/dev/spi
VersionDeltaFile
1.194+2-1etc/mtree/NetBSD.dist.base
+2-11 files

NetBSD/src A3u7Tpltests/lib/libc/sys t_ptrace_wait.c

   Drop signal5 test-case from ATF t_ptrace_wait*

   This test is now duplicated with traceme_signalmasked_exec.
VersionDeltaFile
1.98+2-82tests/lib/libc/sys/t_ptrace_wait.c
+2-821 files

NetBSD/src 0uiKdbftests/lib/libc/sys t_ptrace_wait.c

   Add signal masked and ignored variations of traceme_exec in ATF tests

   All tests pass.
VersionDeltaFile
1.97+98-11tests/lib/libc/sys/t_ptrace_wait.c
+98-111 files

NetBSD/src ixJCOnDsys/external/bsd/drm2/dist/drm/amd/amdgpu amdgpu_display.c

   Rearrange code in amdgpu_display.c to prevent build error

   GCC reports that stat can be uninitialized when used, prevent this with
   changing the construction of the code a little bit.

   Keep original indent in order to not generate diff with upstream.

   Solution suggested by <mrg>

   Detected with GCC7 when building NetBSD/i386 with kUBSan.

NetBSD/src tiNnpwusys/external/bsd/drm2/dist/drm/amd/amdgpu amdgpu_gfx_v8_0.c

   Add missing break in amdgpu_gfx_v8_0.c

   Reviewed by <mrg>

   Detected with GCC7 with kUBSan build for NetBSD/i386

NetBSD/src AalTQpwsys/external/bsd/drm2/dist/drm/amd/amdgpu amdgpu_cz_smc.c

   Add missing break in amdgpu_cz_smc.c

   Reviewed by <mrg>

   Detected with GCC7 with kUBSan build for NetBSD/i386

NetBSD/src xHuUvM9tests/lib/libc/sys t_ptrace_wait.c

   Add signal masked and ignored variations of traceme_vfork_exec in ATF tests

   All tests pass.
VersionDeltaFile
1.96+97-10tests/lib/libc/sys/t_ptrace_wait.c
+97-101 files

NetBSD/src n3R8HRNshare/man/man9 spi.9

   New sentence, new line. Add missing Nd. Remove superfluous Rs.
VersionDeltaFile
1.2+5-6share/man/man9/spi.9
+5-61 files

NetBSD/src PM8gjtKshare/man/man4 spi.4

   Sort SEE ALSO.
VersionDeltaFile
1.7+3-3share/man/man4/spi.4
+3-31 files

NetBSD/src uxjBE2wshare/man/man4 kcov.4

   New sentence, new line.
VersionDeltaFile
1.2+5-4share/man/man4/kcov.4
+5-41 files

NetBSD/src Y3AbjD6sys/arch/arm/altera cycv_gmac.c, sys/arch/arm/amlogic meson_dwmac.c

   Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now.

NetBSD/src DBh5Ts5sys/dev/ic dwc_gmac.c dwc_gmac_var.h

   Pass the phy ID to dwc_gmac_attach.
VersionDeltaFile
1.57+4-4sys/dev/ic/dwc_gmac.c
1.13+3-2sys/dev/ic/dwc_gmac_var.h
+7-62 files

NetBSD/src ayNavJxsys/arch/i386/conf GENERIC

   Register kUBSan and KCOV in kernel=GENERIC of NetBSD/i386

   Both options are disabled by default.
VersionDeltaFile
1.1202+7-2sys/arch/i386/conf/GENERIC
+7-21 files

NetBSD/src HAD3iRZsys/dev/nvmm nvmm_internal.h, sys/dev/nvmm/x86 nvmm_x86.c nvmm_x86_vmx.c

   Install the x86 RESET state at VCPU creation time, for convenience, so
   that the libnvmm users can expect a functional VCPU right away.

NetBSD/src AQGYc06sys/conf majors

   Reserve majors for HAXM and example loadable kernel modules

   348-350 are reserved for HAXM
   351 is reserved for sys/modules/examples

   Discussed on tech-kern@
VersionDeltaFile
1.83+3-1sys/conf/majors
+3-11 files

NetBSD/src 6ZlkkRusys/kern subr_kcov.c

   Stop including <sys/atomic.h> in KCOV

   This header is not needed.

   Noted by <martin>
VersionDeltaFile
1.3+1-2sys/kern/subr_kcov.c
+1-21 files

NetBSD/src 7oqdnGAsys/kern subr_kcov.c

   Fix subr_kcov build on NetBSD/i386

   Cast the pointer returned from __builtin_return_address() to intptr_t
   before converting it to uint64_t.
VersionDeltaFile
1.2+2-2sys/kern/subr_kcov.c
+2-21 files

NetBSD/src nQJkohpsys/dev/scsipi st.c

   Correct printing type of b_blkno (int64_t) in st.c

   Fixes build with kUBSan on NetBSD/i386.
VersionDeltaFile
1.237+3-3sys/dev/scsipi/st.c
+3-31 files

NetBSD/src gQExsf9sys/dev/pci if_wm.c

   Fix GCC7 "avoid ambiguous 'else'" build error in if_wm.c

   Detected with kUBSan NetBSD/i386 build.
VersionDeltaFile
1.628+8-6sys/dev/pci/if_wm.c
+8-61 files

NetBSD/src m6ECbETsys/dev/gpib ct.c

   Improve fallthrough statement wording in dev/gpib/ct.c

   Fixes build with kUBSan on NetBSD/i386.
VersionDeltaFile
1.30+3-3sys/dev/gpib/ct.c
+3-31 files

NetBSD/src Hb30nMusys/external/isc/atheros_hal/dist/ar5210 ar5210_xmit.c

   Improve fallthrough statement wording

   Fixes build with kUBSan on NetBSD/i386.

NetBSD/src 3dNiGEAdistrib/sets/lists/debug module.mi

   add missing debug file for kcov.

NetBSD/src faY7DfJsys/arch/x86/include pmap.h, sys/arch/x86/x86 pmap.c

   Move PATENTRY into pmap.h, will be used outside.
VersionDeltaFile
1.327+2-10sys/arch/x86/x86/pmap.c
1.98+9-1sys/arch/x86/include/pmap.h
+11-112 files

NetBSD/src y3yBbWRsys/arch/x86/x86 pmap.c, sys/dev/nvmm/x86 nvmm_x86_vmx.c

   Add support for CPUs that don't have the EPT_{A,D} bits.

   On such CPUs, these bits are ignored by the hardware. We don't care about
   setting them, however, we must always assume they are set. Modify the pmap
   code to do that.

   While here, in pmap_ept_remove_pte, don't flush the TLB when it's not
   needed.

   Tested on an old Intel Celeron.
VersionDeltaFile
1.326+41-12sys/arch/x86/x86/pmap.c
1.13+9-5sys/dev/nvmm/x86/nvmm_x86_vmx.c
+50-172 files

NetBSD/src Aw4AVizdistrib/sets/lists/comp mi, etc MAKEDEV.tmpl

   Add userland driver to spi framework.

   Previously spi would configure the controller to use the lowest speed of
   all connected devices since the kernel started and to fail attempted mode
   changes. This is now improved to keep individual modes and speeds for each
   slave and to reconfigure the controller as necessary for each transfer.

   Added man page for spi(9).

NetBSD/src V3dhuCLsys/dev/nvmm/x86 nvmm_x86_vmx.c nvmm_x86_svm.c

   Reorder the functions, and constify setstate. No functional change.
VersionDeltaFile
1.12+478-475sys/dev/nvmm/x86/nvmm_x86_vmx.c
1.30+254-265sys/dev/nvmm/x86/nvmm_x86_svm.c
+732-7402 files

NetBSD/src p5MXLYDtests/modules t_kcov.c

   Fix build of kcov tests on CPUs without 64-bit atomics

   Restrict the 64-bit atomics to ports defining __HAVE_ATOMIC64_OPS.

   Using 64-bit atomics is still good for i586 fuzzing, but the tests are
   build for earlier CPUs. This makes this code to be disabled in i386 builds.

   There is a similar situation with few other ports that offer 64-bit atomics
   in certain CPU models and ABIs.
VersionDeltaFile
1.2+4-0tests/modules/t_kcov.c
+4-01 files

NetBSD/src AejtKoasys/conf majors

   Reserve major number for spi driver
VersionDeltaFile
1.82+2-1sys/conf/majors
+2-11 files

NetBSD/src Os7Vfntdoc CHANGES-7.3

   Tickets #1679 and #1680
VersionDeltaFile
1.1.2.40+26-1doc/CHANGES-7.3
+26-11 files

NetBSD/src Ew2CkDYsys/net rtsock.c

   Apply patch, requested by sborrill in ticket #1680:

        sys/net/rtsock.c              (apply patch)

   Fix locking for sysctl_rtable (fix in HEAD will be different).
VersionDeltaFile
1.163.2.2+6-2sys/net/rtsock.c
+6-21 files

NetBSD/src enkZcBYdoc CHANGES-7.1.3

   Tickets #1679 and #1680
VersionDeltaFile
1.1.2.42+26-1doc/CHANGES-7.1.3
+26-11 files

NetBSD/src AcvxR0Jsys/net rtsock.c

   Apply patch, requested by sborrill in ticket #1680:

        sys/net/rtsock.c              (apply patch)

   Fix locking for sysctl_rtable (fix in HEAD will be different).
VersionDeltaFile
1.163.8.2+6-2sys/net/rtsock.c
+6-21 files

NetBSD/src a6oLFBtdoc CHANGES-7.0.3

   Tickets #1679 and #1680
VersionDeltaFile
1.1.2.135+26-1doc/CHANGES-7.0.3
+26-11 files

NetBSD/src Iydltgasys/net rtsock.c

   Apply patch, requested by sborrill in ticket #1680:

        sys/net/rtsock.c              (apply patch)

   Fix locking for sysctl_rtable (fix in HEAD will be different).
VersionDeltaFile
1.163.4.2+6-2sys/net/rtsock.c
+6-21 files

NetBSD/src JvOvGyasys/compat/linux/common linux_ipc.c, sys/compat/linux32/common linux32_ipccall.c

   Pull up following revision(s) (requested by mrg in ticket #1679):
        sys/compat/sys/ipc.h: revision 1.6
        sys/compat/sys/ipc.h: revision 1.7
        sys/compat/sys/shm.h: revision 1.8
        sys/kern/sysv_shm.c: revision 1.133
        sys/compat/sys/sem.h: revision 1.7
        sys/compat/linux/common/linux_ipc.c: revision 1.56
        sys/compat/netbsd32/netbsd32_conv.h: revision 1.38
        sys/kern/sysv_sem.c: revision 1.96
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.28
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.29
        sys/compat/linux32/common/linux32_ipccall.c: revision 1.12
        sys/kern/sysv_msg.c: revision 1.73
        sys/compat/sys/msg.h: revision 1.6

   for sysv ipc stat operations, explicitly copy the exported parts
   instead of the whole ds structure.
   besides triggering a recently added assert in netbsd32, this stops
   exposing kernel addresses.

   copy the mode clamping to 0777 from sem to shm and msg.

   while here, make sure that the compat callers to sysv_ipc clear
   the contents of the compat structure before setting the result
   members to ensure padding bytes are cleared.

    [19 lines not shown]

NetBSD/src wF8veFlsys/compat/linux/common linux_ipc.c, sys/compat/linux32/common linux32_ipccall.c

   Pull up following revision(s) (requested by mrg in ticket #1679):
        sys/compat/sys/ipc.h: revision 1.6
        sys/compat/sys/ipc.h: revision 1.7
        sys/compat/sys/shm.h: revision 1.8
        sys/kern/sysv_shm.c: revision 1.133
        sys/compat/sys/sem.h: revision 1.7
        sys/compat/linux/common/linux_ipc.c: revision 1.56
        sys/compat/netbsd32/netbsd32_conv.h: revision 1.38
        sys/kern/sysv_sem.c: revision 1.96
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.28
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.29
        sys/compat/linux32/common/linux32_ipccall.c: revision 1.12
        sys/kern/sysv_msg.c: revision 1.73
        sys/compat/sys/msg.h: revision 1.6

   for sysv ipc stat operations, explicitly copy the exported parts
   instead of the whole ds structure.
   besides triggering a recently added assert in netbsd32, this stops
   exposing kernel addresses.

   copy the mode clamping to 0777 from sem to shm and msg.

   while here, make sure that the compat callers to sysv_ipc clear
   the contents of the compat structure before setting the result
   members to ensure padding bytes are cleared.

    [19 lines not shown]

NetBSD/src 5gpAP46sys/compat/linux/common linux_ipc.c, sys/compat/linux32/common linux32_ipccall.c

   Pull up following revision(s) (requested by mrg in ticket #1679):
        sys/compat/sys/ipc.h: revision 1.6
        sys/compat/sys/ipc.h: revision 1.7
        sys/compat/sys/shm.h: revision 1.8
        sys/kern/sysv_shm.c: revision 1.133
        sys/compat/sys/sem.h: revision 1.7
        sys/compat/linux/common/linux_ipc.c: revision 1.56
        sys/compat/netbsd32/netbsd32_conv.h: revision 1.38
        sys/kern/sysv_sem.c: revision 1.96
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.28
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.29
        sys/compat/linux32/common/linux32_ipccall.c: revision 1.12
        sys/kern/sysv_msg.c: revision 1.73
        sys/compat/sys/msg.h: revision 1.6

   for sysv ipc stat operations, explicitly copy the exported parts
   instead of the whole ds structure.
   besides triggering a recently added assert in netbsd32, this stops
   exposing kernel addresses.

   copy the mode clamping to 0777 from sem to shm and msg.

   while here, make sure that the compat callers to sysv_ipc clear
   the contents of the compat structure before setting the result
   members to ensure padding bytes are cleared.

    [19 lines not shown]

NetBSD/src O89rH6Ndoc CHANGES-8.1

   Ticket #1195
VersionDeltaFile
1.1.2.110+20-1doc/CHANGES-8.1
+20-11 files

NetBSD/src HhDEuBbsys/compat/linux/common linux_ipc.c, sys/compat/linux32/common linux32_ipccall.c

   Pull up following revision(s) (requested by mrg in ticket #1195):
        sys/compat/sys/ipc.h: revision 1.6
        sys/compat/sys/ipc.h: revision 1.7
        sys/compat/sys/shm.h: revision 1.8
        sys/kern/sysv_shm.c: revision 1.133
        sys/compat/sys/sem.h: revision 1.7
        sys/compat/linux/common/linux_ipc.c: revision 1.56
        sys/compat/netbsd32/netbsd32_conv.h: revision 1.38
        sys/kern/sysv_sem.c: revision 1.96
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.28
        sys/compat/netbsd32/netbsd32_compat_14.c: revision 1.29
        sys/compat/linux32/common/linux32_ipccall.c: revision 1.12
        sys/kern/sysv_msg.c: revision 1.73
        sys/compat/sys/msg.h: revision 1.6

   for sysv ipc stat operations, explicitly copy the exported parts
   instead of the whole ds structure.
   besides triggering a recently added assert in netbsd32, this stops
   exposing kernel addresses.

   copy the mode clamping to 0777 from sem to shm and msg.

   while here, make sure that the compat callers to sysv_ipc clear
   the contents of the compat structure before setting the result
   members to ensure padding bytes are cleared.

    [19 lines not shown]

NetBSD/src 7WttKLYtools/gcc mknative-gcc

   pull out libstdc++ config.h as-is, for gnu.ver processing.
   pull out the cxx11_sources and cxx98_sources values to avoid hard coding.
VersionDeltaFile
1.101+6-1tools/gcc/mknative-gcc
+6-11 files

NetBSD/src I1ydg9kshare/man/man4 kcov.4, share/mk bsd.sys.mk

   Add KCOV - kernel code coverage tracing device

   The KCOV driver implements collection of code coverage inside the kernel.
   It can be enabled on a per process basis from userland, allowing the kernel
   program counter to be collected during syscalls triggered by the same
   process.

   The device is oriented towards kernel fuzzers, in particular syzkaller.

   Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

   The KCOV driver was initially developed in Linux. A driver based on the
   same concept was then implemented in FreeBSD and OpenBSD.

   Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

   This patch has been prepared by Siddharth Muralee, improved by <maxv>
   and polished by myself before importing into the mainline tree.

   All ATF tests pass.

NetBSD/src zFu1Oydsys/arch/sparc/dev sxreg.h

   some register bits are defined differently by SunOS's sxreg.h and the SPAM
   manual, upon investigation the hardware appears to agree with the SunOS header,
   so adapt accordingly
VersionDeltaFile
1.17+49-2sys/arch/sparc/dev/sxreg.h
+49-21 files

NetBSD/src lR7zvNUusr.bin/tip tip.c

   Check getchar() result for EOF.

   Call cleanup(SIGHUP) if we get local EOF, as if we've got SIGHUP.
   While here, use EOF constant instead of literal -1 in an existing
   check.

   PR bin/53996
VersionDeltaFile
1.61+22-6usr.bin/tip/tip.c
+22-61 files

NetBSD/src gSDR3Lndistrib/amd64/uefi-installimage Makefile.bootimage

   Explicitly use ${TOOL_AWK} instead of system's awk.

NetBSD/src cu5RG0gdistrib/amd64/uefi-installimage Makefile.bootimage, distrib/common/bootimage Makefile.bootimage

   Reduce diffs between common and amd64 uefi Makefile.bootimage files.

   No functional change.

NetBSD/src 17pWKlVlib/libm Makefile

   Default our libm to -frounding-math, if built with GCC.

   The long-standing GCC default is to not respect rounding mode.
   it looks like GCC 7 optimizes rint to a builtin, causing our few
   rounding mode tests to fail.

   Fixes PR port-amd64/54000: FP tests failing on amd64 since gcc7 import
VersionDeltaFile
1.206+2-1lib/libm/Makefile
+2-11 files

NetBSD/src gE5IH5Qsys/dev/nvmm/x86 nvmm_x86_vmx.c

   Fix omission: if we receive a guest trap on CR0, and if the original
   instruction would have resulted in Long Mode being enabled, we need to
   manually enable Long Mode ourselves. We were already doing that correctly
   in setstate, but not in the CR0 trap handler.

   Problem initially reported by Aymeric Vincent; ArchLinux wouldn't boot,
   now it does and works correctly.

   While here, add CR0_ET in the CR0 mask, for the associated shadow to
   be taken into account. Normally this shadow bit shouldn't be necessary,
   but for now I keep it regardless.
VersionDeltaFile
1.11+23-3sys/dev/nvmm/x86/nvmm_x86_vmx.c
+23-31 files

NetBSD/src KwCg9XDexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_replay.c

   Always set "cn_namelen" in addition to "cn_nameptr".

   Fix vnode locking for REMOVE, RMDIR and RENAME.