CVS commit: [netbsd-9] src/doc

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar  9 05:37:37 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.1

Log Message:
Ticket #775


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.10 -r1.1.2.11 src/doc/CHANGES-9.1

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



CVS commit: [netbsd-9] src/sys/compat/netbsd32

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar  9 05:36:24 UTC 2020

Modified Files:
src/sys/compat/netbsd32 [netbsd-9]: netbsd32_mod.c

Log Message:
Apply patch, requested by pgoyette in ticket #775 to fix fallout from
ticket #762:

sys/compat/netbsd32/netbsd32_mod.c  (patched)

Fiy arguments to MODULE_HOOK_SET for the new amd64_oosyscall_hook.


To generate a diff of this commit:
cvs rdiff -u -r1.15.4.1 -r1.15.4.2 src/sys/compat/netbsd32/netbsd32_mod.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/crash

2020-03-08 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Mar  9 05:10:19 UTC 2020

Modified Files:
src/usr.sbin/crash: Makefile

Log Message:
Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/crash/Makefile

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

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  9 02:22:20 UTC 2020

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

Log Message:
wrong test name


To generate a diff of this commit:
cvs rdiff -u -r1.833 -r1.834 src/distrib/sets/lists/tests/mi

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



CVS commit: src/sys/dev/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Mar  9 01:55:16 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c

Log Message:
Add an assertion.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/dev/pci/if_txp.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/crash

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  9 01:54:31 UTC 2020

Modified Files:
src/usr.sbin/crash: Makefile crash.c

Log Message:
Add primitive LOCKDEBUG support.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/crash/Makefile
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/crash/crash.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/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Mar  9 01:53:11 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c

Log Message:
Now that we're allocating rx software state from a fixed pool, we
don't have to round-trip pointers in a sketchy way -- we can round-
trip indices.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/dev/pci/if_txp.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

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  9 01:47:51 UTC 2020

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

Log Message:
comment out enough stuff to allow crash to print locks.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 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/ddb

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  9 01:46:24 UTC 2020

Modified Files:
src/sys/ddb: db_command.c

Log Message:
print a message for the commands crash does not support.
Allow "show lock"


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/ddb/db_command.c

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



CVS commit: src/sys/compat/netbsd32

2020-03-08 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Mar  9 01:06:34 UTC 2020

Modified Files:
src/sys/compat/netbsd32: netbsd32_mod.c

Log Message:
If a syscall requires a module to be autoloaded, the initial invocation
of that syscall will return ERESTART.  For amd64's netbsd32_syscall()
that means we need to back up the PC saved in the trap frame so we can
re-issue the syscall instruction.  For "normal" syscall traps, we saved
the instruction length in the trap frame, but this was missing for the
oosyscall/lcall path.  Since the PC was not backed up, the kernel-only
value ERESTART was returned to userland, causing all sort of grief for
old compat_netbsd32 executables!

XXX Pullup-9


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/compat/netbsd32/netbsd32_mod.c

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



CVS commit: src/sys/compat/common

2020-03-08 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Mar  9 00:42:36 UTC 2020

Modified Files:
src/sys/compat/common: compat_50_quota.c

Log Message:
The compat_50_quota code needs quota support from ufs.  Add dependency.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/common/compat_50_quota.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/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Mar  9 00:32:53 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c if_txpreg.h

Log Message:
Allocate a static set of receive software state descriptors at attach
time, and create a simple allocator for them for use by the rx reclaim
handlers.  Don't create and destroy DMA maps for receoive buffers
in the interrupt handlers -- just use the maps that are created at
attach time.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/pci/if_txp.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/if_txpreg.h

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



CVS commit: src/sys/rump

2020-03-08 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Mar  9 00:03:00 UTC 2020

Modified Files:
src/sys/rump: Makefile.rump

Log Message:
Build RUMP with -fno-delete-null-pointer-checks on all compilers

no-delete-null-pointer-checks is required in Clang/LLVM at least for
NULL + 0 operations that trigger LLVM UBSan and could be miscompiled.


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/rump/Makefile.rump

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

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:42:35 UTC 2020

Modified Files:
src/distrib/sets/lists/base: shl.mi
src/distrib/sets/lists/debug: shl.mi

Log Message:
Update libc SOVERSION


To generate a diff of this commit:
cvs rdiff -u -r1.878 -r1.879 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.237 -r1.238 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/lib/libc

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:27:38 UTC 2020

Modified Files:
src/lib/libc: shlib_version

Log Message:
Bump new libc minor due to new errno codes


To generate a diff of this commit:
cvs rdiff -u -r1.285 -r1.286 src/lib/libc/shlib_version

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



CVS commit: src/sys/dev/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Mar  8 22:26:03 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c if_txpreg.h

Log Message:
Give each Tx DMA map 16 DMA segments rather than the previous absurdly large
number, and structure the loop in txp_start() similarly to other drivers
(e.g. ste_start() in the ste(4) driver).  Similar in spirit to OpenBSD's
rev 1.126, but implemented a bit differently.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/pci/if_txp.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/if_txpreg.h

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



CVS commit: src/sys/sys

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:19:15 UTC 2020

Modified Files:
src/sys/sys: param.h

Log Message:
Bump kernel version after errno changes in compat and nfs


To generate a diff of this commit:
cvs rdiff -u -r1.651 -r1.652 src/sys/sys/param.h

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



CVS commit: src/sys/nfs

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:12:43 UTC 2020

Modified Files:
src/sys/nfs: nfs_subs.c

Log Message:
Update NFS errno mapping and add assert for correctness

Add the mapping for errno values missing in nfsrv_v2errmap[].  While
at it, add a compile-time assert to make sure that the array does not
become out-of-date again.


To generate a diff of this commit:
cvs rdiff -u -r1.237 -r1.238 src/sys/nfs/nfs_subs.c

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



CVS commit: src/external/cddl/osnet/lib/libdtrace

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:11:48 UTC 2020

Modified Files:
src/external/cddl/osnet/lib/libdtrace: errno.d
Added Files:
src/external/cddl/osnet/lib/libdtrace: make-errno-d.awk

Log Message:
Update dtrace errno.d mapping and add a script for it

Add a new script to autogenerate errno.d from errno.h, and use it
to regenerate the list to match NetBSD errno codes.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/lib/libdtrace/errno.d
cvs rdiff -u -r0 -r1.1 src/external/cddl/osnet/lib/libdtrace/make-errno-d.awk

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



CVS commit: src/external/gpl3

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:11:08 UTC 2020

Modified Files:
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/aarch64: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/alpha: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/arm: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/armeb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/coldfire: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earm: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmeb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmhf: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmhfeb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv4: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv4eb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6eb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6hf: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv6hfeb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7eb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7hf: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/earmv7hfeb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/hppa: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/i386: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/ia64: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/m68000: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/m68k: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/mips64eb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/mips64el: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/mipseb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/mipsel: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/or1k: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/powerpc: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/powerpc64: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/riscv32: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/riscv64: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/sh3eb: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/sh3el: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/sparc: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/sparc64: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/vax: c++config.h
src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/x86_64: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/hppa: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/i386: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/ia64: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68k: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb: c++config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el: c++config.h
src/external/gpl3/gcc/lib/l

CVS commit: src

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:09:43 UTC 2020

Modified Files:
src/lib/libc/nls: C.msg
src/lib/libc/sys: intro.2
src/sys/compat/linux/common: linux_errno.c
src/sys/sys: errno.h
src/tests/include: t_errno.c

Log Message:
PR standards/44921: Add errno consts for robust mutexes

Add the two missing errno.h constants: EOWNERDEAD and ENOTRECOVERABLE.
While technically they're used for robust mutexes which we do not
support at the moment, they are listed in POSIX and used by libc++.
While libc++ can be made to build without it, it just locally redefines
the values then, so we may as well define them globally.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/nls/C.msg
cvs rdiff -u -r1.60 -r1.61 src/lib/libc/sys/intro.2
cvs rdiff -u -r1.15 -r1.16 src/sys/compat/linux/common/linux_errno.c
cvs rdiff -u -r1.41 -r1.42 src/sys/sys/errno.h
cvs rdiff -u -r1.1 -r1.2 src/tests/include/t_errno.c

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



CVS commit: src

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:08:46 UTC 2020

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/lib/libc: Makefile
Added Files:
src/tests/lib/libc/nls: Makefile t_catalog.c

Log Message:
Add tests for missing libc catalog entries


To generate a diff of this commit:
cvs rdiff -u -r1.297 -r1.298 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.832 -r1.833 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.160 -r1.161 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.49 -r1.50 src/tests/lib/libc/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/nls/Makefile \
src/tests/lib/libc/nls/t_catalog.c

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



CVS commit: src/lib/libc/nls

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:06:06 UTC 2020

Modified Files:
src/lib/libc/nls: C.msg

Log Message:
Sync signal messages between catalog and sys_siglist


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/nls/C.msg

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



CVS commit: src

2020-03-08 Thread Michał Górny
Module Name:src
Committed By:   mgorny
Date:   Sun Mar  8 22:05:41 UTC 2020

Modified Files:
src/lib/libc/nls: C.msg
src/sys/sys: errno.h

Log Message:
Sync errno messages between catalog and errno.h


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/nls/C.msg
cvs rdiff -u -r1.40 -r1.41 src/sys/sys/errno.h

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



CVS commit: src/common/lib/libc/misc

2020-03-08 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Mar  8 21:35:03 UTC 2020

Modified Files:
src/common/lib/libc/misc: ubsan.c

Log Message:
Add support for alignment_assumptions in uubsan

Cherry-pick from FreeBSD:

>From 7c1bc5ffc2fa68ddc76e5ea8a3a1a6fdfeee57f0 Mon Sep 17 00:00:00 2001
From: andrew 
Date: Tue, 28 May 2019 09:12:15 +
Subject: [PATCH] Teach the kernel KUBSAN runtime about alignment_assumption

This checks the alignment of a given pointer is sufficient for the
requested alignment asked for. This fixes the build with a recent
llvm/clang.

Sponsored by:   DARPA, AFRL


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/common/lib/libc/misc/ubsan.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

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Mar  8 20:49:31 UTC 2020

Modified Files:
src/sys/dev/microcode/typhoon: 3c990img.bin 3c990img.h
src/sys/dev/pci: if_txp.c if_txpreg.h
Added Files:
src/sys/dev/microcode/typhoon: 3c990-license

Log Message:
Upgrade to newer firmware needed by some txp(4) variants.
>From FreeBSD via OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/microcode/typhoon/3c990-license
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/microcode/typhoon/3c990img.bin \
src/sys/dev/microcode/typhoon/3c990img.h
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/pci/if_txp.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/if_txpreg.h

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



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2020-03-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Mar  8 19:59:45 UTC 2020

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
Avoid unnecessary zil_commit on rm.

1. Issue zil_commit only if we're actually updating something --
   there's no need to commit if we're unlinking the file or if
   there's no atime update being applied.

2. Issue zil_commit only if the zfs has sync=always set -- for
   sync=standard there's no need for us to commit anything here since
   no application asked for an explicit sync.

Speeds up untarring base.tgz on top of itself by a factor of about
2x, and speeds up rm by a factor of about 10x, on my system with an
SSD SLOG over SATA.  Histogram of unlink, rmdir, and rename timing
shows dramatic reduction in latency for most samples.

(To be fair, this was not an improvement over zfs; issuing the
unnecessary zil_commit was a self-inflicted performance wound.)


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.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/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Mar  8 19:24:40 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c

Log Message:
Follow the example of the MII code and don't register the half-duplex
versions of each media type.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/if_txp.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/pci

2020-03-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Mar  8 19:02:03 UTC 2020

Modified Files:
src/sys/dev/pci: if_txp.c if_txpreg.h

Log Message:
- Use BUS_ADDR_{LO,HI}32(), and rather than forcing the descriptor
  DMA addresses into a 64-bit value (and thus using 64-bit shifts
  when unnecessary), just reference the address from the DMA map
  directly.
- Add some missing byte-swaps.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/pci/if_txp.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/if_txpreg.h

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



CVS commit: src/sys/uvm

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 18:40:30 UTC 2020

Modified Files:
src/sys/uvm: uvm_readahead.c

Log Message:
Only need a read lock for uvm_pagelookup().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/uvm/uvm_readahead.c

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



CVS commit: xsrc/external/mit/xf86-video-ati-kms/dist/src

2020-03-08 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Sun Mar  8 18:27:52 UTC 2020

Modified Files:
xsrc/external/mit/xf86-video-ati-kms/dist/src: radeon.h

Log Message:
Backport upstream commits (there is no newer release yet):

>From c0eb5dbd9c1db6b6d5b1574bcd8c584170d7ab54 Mon Sep 17 00:00:00 2001
From: Alexey Sheplyakov 
Date: Wed, 27 Nov 2019 20:50:58 +0400
Subject: Don't crash X server if GPU acceleration is not available

>From 4d84cf438e7f1bebf0053035ef0292e9fed257d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= 
Date: Fri, 29 Nov 2019 16:37:32 +0100
Subject: Handle NULL fb_ptr in pixmap_get_fb

This can happen when HW acceleration is disabled.

>From Onno van der Linden in xsrc/55059.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.10 -r1.2 \
xsrc/external/mit/xf86-video-ati-kms/dist/src/radeon.h

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



CVS commit: src/sys/kern

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 18:26:59 UTC 2020

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

Log Message:
Typo.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/kern/vfs_wapbl.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/file/dist/magic/magdir

2020-03-08 Thread Ignatios Souvatzis
Module Name:src
Committed By:   is
Date:   Sun Mar  8 17:54:23 UTC 2020

Modified Files:
src/external/bsd/file/dist/magic/magdir: parix

Log Message:
mask was too loose, creating false positives.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/bsd/file/dist/magic/magdir/parix

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



CVS commit: src/sys/ufs/ext2fs

2020-03-08 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Mar  8 17:38:12 UTC 2020

Modified Files:
src/sys/ufs/ext2fs: ext2fs_vnops.c

Log Message:
Perform bit operations on unsigned integer

ext2fs_vnops.c:1002:2, signed integer overflow: 510008 * 4294 cannot be 
represented in type 'int

Maximum usec * 4294 is in the range of unsigned int.

>>> 100*4294
429400
>>> 2**32
4294967296

Patch submitted by Nisarg S. Joshi.


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/sys/ufs/ext2fs/ext2fs_vnops.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/config

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar  8 17:38:37 UTC 2020

Modified Files:
src/usr.bin/config: scan.l

Log Message:
Add debugging, no functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/config/scan.l

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

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar  8 17:23:55 UTC 2020

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

Log Message:
new test for ifconfig


To generate a diff of this commit:
cvs rdiff -u -r1.831 -r1.832 src/distrib/sets/lists/tests/mi

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



CVS commit: src/tests/usr.bin/config

2020-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar  8 17:21:52 UTC 2020

Modified Files:
src/tests/usr.bin/config: Makefile t_config.sh
Added Files:
src/tests/usr.bin/config: d_ifdef

Log Message:
Add an ifdef test


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/config/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/config/d_ifdef
cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/config/t_config.sh

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



CVS commit: src/sys/kern

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 17:04:46 UTC 2020

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

Log Message:
PR kern/55020: dbregs_dr?_dont_inherit_lwp test cases fail on real hardware

lwp_wait(): make the check for deadlock much more permissive.


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/kern/kern_lwp.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/modules

2020-03-08 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Mar  8 15:21:15 UTC 2020

Modified Files:
src/distrib/sets/lists/modules: ad.aarch64

Log Message:
Fix sets


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/modules/ad.aarch64

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



CVS commit: src/tests/lib/libc/sys

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 15:07:44 UTC 2020

Modified Files:
src/tests/lib/libc/sys: t_ptrace_wait.h

Log Message:
Only inlcude fenv.h if __HAVE_FENV


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/tests/lib/libc/sys/t_ptrace_wait.h

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



CVS commit: src/sys

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 15:05:18 UTC 2020

Modified Files:
src/sys/kern: kern_exit.c kern_lock.c kern_softint.c
src/sys/sys: lock.h

Log Message:
Kill off kernel_lock_plug_leak(), and go back to dropping kernel_lock in
exit1(), since there seems little hope of finding the leaking code any
time soon.  Can still be caught with LOCKDEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.284 -r1.285 src/sys/kern/kern_exit.c
cvs rdiff -u -r1.169 -r1.170 src/sys/kern/kern_lock.c
cvs rdiff -u -r1.61 -r1.62 src/sys/kern/kern_softint.c
cvs rdiff -u -r1.88 -r1.89 src/sys/sys/lock.h

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



CVS commit: src/sys/uvm

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 15:01:50 UTC 2020

Modified Files:
src/sys/uvm: uvm_pdpolicy_clock.c

Log Message:
Don't zap the non-pdpolicy bits in pg->pqflags.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/uvm/uvm_pdpolicy_clock.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

2020-03-08 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Mar  8 15:00:31 UTC 2020

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

Log Message:
sched_preempted(): always clear LP_TELEPORT.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/kern/kern_runq.c

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



CVS commit: [netbsd-9] src/sys/dev/pci

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 14:44:06 UTC 2020

Modified Files:
src/sys/dev/pci [netbsd-9]: if_ena.c

Log Message:
Pull up following revision(s) (requested by jdolecek in ticket #759):

sys/dev/pci/if_ena.c: revision 1.24

replace #if condition for irq_slot with __diagused on the cleanup path

fixes PR kern/55044 by Uwe Toenjes


To generate a diff of this commit:
cvs rdiff -u -r1.15.2.1 -r1.15.2.2 src/sys/dev/pci/if_ena.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/pci

2020-03-08 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun Mar  8 14:10:24 UTC 2020

Modified Files:
src/sys/dev/pci: if_nfe.c

Log Message:
 Use unsigned to avoid undefined behavior. Found by kUBSan.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/pci/if_nfe.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/hid

2020-03-08 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun Mar  8 14:09:33 UTC 2020

Modified Files:
src/sys/dev/hid: hid.h

Log Message:
Use unsigned to avoid undefined behavior. Found by kUBSan.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/hid/hid.h

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



CVS commit: [netbsd-9] src/doc

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:22:50 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.1

Log Message:
Tickets #757 - #768


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.9 -r1.1.2.10 src/doc/CHANGES-9.1

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



CVS commit: [netbsd-9] src/sys/kern

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:21:29 UTC 2020

Modified Files:
src/sys/kern [netbsd-9]: kern_mutex.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #768):

sys/kern/kern_mutex.c: revision 1.90

split an "a && b" assertion into two so it's clear in the dump which condition
was not true even if both are true by the time the dump is written.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.79.2.1 src/sys/kern/kern_mutex.c

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



CVS commit: [netbsd-9] src/sys/ufs/ufs

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:07:58 UTC 2020

Modified Files:
src/sys/ufs/ufs [netbsd-9]: ufs_dirhash.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #767):

sys/ufs/ufs/ufs_dirhash.c: revision 1.38

in ufsdirhash_free(), only examine dh->dh_onlist after taking the
dirhashlist lock.  if we skip the lock then we might see that
dh_onlist is zero while ufsdirhash_recycle() is still working on
the dirhash.  the symptom I saw was that ufsdirhash_free() would
try to destroy the dh_lock mutex while it was still held.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.22.1 src/sys/ufs/ufs/ufs_dirhash.c

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



CVS commit: [netbsd-9] src/sys/kern

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:04:43 UTC 2020

Modified Files:
src/sys/kern [netbsd-9]: subr_pool.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #766):

sys/kern/subr_pool.c: revision 1.265

fix assertions about when it is ok for pool_get() to return NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.252.2.2 -r1.252.2.3 src/sys/kern/subr_pool.c

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



CVS commit: [netbsd-9] src/sys/dev/acpi

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:03:19 UTC 2020

Modified Files:
src/sys/dev/acpi [netbsd-9]: acpi_pci_link.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #765):

sys/dev/acpi/acpi_pci_link.c: revision 1.25

apply FreeBSD revs r214848 and r214849:

r214849 | jkim | 2010-11-05 13:24:26 -0700 (Fri, 05 Nov 2010) | 2 lines
Add a forgotten change from the previous commit.
r214848 | jkim | 2010-11-05 12:50:09 -0700 (Fri, 05 Nov 2010) | 13 lines

Fix a use-after-free bug for extended IRQ resource[1].  When _PRS buffer is
copied as a template for _SRS, a string pointer for descriptor name is also
copied and it becomes stale as soon as it gets de-allocated[2].  Now _CRS is
used as a template for _SRS as ACPI specification suggests if it is usable.

The template from _PRS is still utilized but only when _CRS is not available
or broken.  To avoid use-after-free the problem in this case, however, only
mandatory fields are copied, optional data is removed, and structure length
is adjusted accordingly.

Reported by:hps[1]
Analyzed by:avg[2]
Tested by:  hps

This also fixes reading past the end of a structure as detected by KASAN.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.22.26.1 src/sys/dev/acpi/acpi_pci_link.c

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



CVS commit: [netbsd-9] src/sys/uvm

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 11:01:22 UTC 2020

Modified Files:
src/sys/uvm [netbsd-9]: uvm_fault.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #764):

sys/uvm/uvm_fault.c: revision 1.207

fix two bugs reported in
https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9

 - in uvm_fault_check(), if the map entry is wired, handle the fault the same 
way
   that we would handle UVM_FAULT_WIRE.  faulting on wired mappings is valid
   if the mapped object was truncated and then later grown again.

 - in uvm_fault_unwire_locked(), we must hold the locks for the vm_map_entry
   while calling pmap_extract() in order to avoid races with the mapped object
   being truncated while we are unwiring it.


To generate a diff of this commit:
cvs rdiff -u -r1.206.2.1 -r1.206.2.2 src/sys/uvm/uvm_fault.c

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



CVS commit: [netbsd-9] src/lib/libkvm

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:57:15 UTC 2020

Modified Files:
src/lib/libkvm [netbsd-9]: kvm.c kvm_x86_64.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #763):

lib/libkvm/kvm.c: revision 1.105
lib/libkvm/kvm_x86_64.c: revision 1.11

only do bounce buffering for character devices.

use a binary search in _kvm_pa2off().  this helps a lot for sparse dumps,
which can have millions of memory segments.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.104.2.1 src/lib/libkvm/kvm.c
cvs rdiff -u -r1.10 -r1.10.28.1 src/lib/libkvm/kvm_x86_64.c

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



CVS commit: [netbsd-9] src/sys

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:54:43 UTC 2020

Modified Files:
src/sys/arch/amd64/amd64 [netbsd-9]: trap.c
src/sys/compat/netbsd32 [netbsd-9]: netbsd32_mod.c
src/sys/sys [netbsd-9]: compat_stub.h

Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #762):

sys/arch/amd64/amd64/trap.c: revision 1.126
sys/compat/netbsd32/netbsd32_mod.c: revision 1.17
sys/compat/netbsd32/netbsd32_mod.c: revision 1.18
sys/sys/compat_stub.h: revision 1.23

Fix another left-over from last year's [pgoyette-compat] work.  This
allows recognition of the oosyscall sequence for amd64.

Fixes PR kern/55038
XXX pullup-9

 -

fix indentation.  NFCI


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.121.2.1 src/sys/arch/amd64/amd64/trap.c
cvs rdiff -u -r1.15 -r1.15.4.1 src/sys/compat/netbsd32/netbsd32_mod.c
cvs rdiff -u -r1.18.2.2 -r1.18.2.3 src/sys/sys/compat_stub.h

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



CVS commit: [netbsd-9] src/sys/compat/netbsd32

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:38:10 UTC 2020

Modified Files:
src/sys/compat/netbsd32 [netbsd-9]: netbsd32_syscall.h
netbsd32_syscallargs.h netbsd32_syscalls.c
netbsd32_syscalls_autoload.c netbsd32_sysent.c
netbsd32_systrace_args.c

Log Message:
Regen (for ticket #761)


To generate a diff of this commit:
cvs rdiff -u -r1.142.2.1 -r1.142.2.2 \
src/sys/compat/netbsd32/netbsd32_syscall.h
cvs rdiff -u -r1.141.2.1 -r1.141.2.2 \
src/sys/compat/netbsd32/netbsd32_syscallargs.h \
src/sys/compat/netbsd32/netbsd32_syscalls.c
cvs rdiff -u -r1.21.2.1 -r1.21.2.2 \
src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c
cvs rdiff -u -r1.140.2.1 -r1.140.2.2 \
src/sys/compat/netbsd32/netbsd32_sysent.c
cvs rdiff -u -r1.32.2.1 -r1.32.2.2 \
src/sys/compat/netbsd32/netbsd32_systrace_args.c

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



CVS commit: [netbsd-9] src/sys/compat/netbsd32

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:36:38 UTC 2020

Modified Files:
src/sys/compat/netbsd32 [netbsd-9]: netbsd32_compat_43.c
syscalls.master

Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #761):

sys/compat/netbsd32/syscalls.master: revision 1.132
sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.60

Properly mark netbsd32_compat_43 syscalls that are directly implemented
by calling their compat_43 equivalents.  With these changes, and with
built-in versions of COMPAT_NETBSD32, COMPAT_NOMID, and COMPAT_09, I can
now run a netbsd-0.9 statically linked i386 (32-bit) version of /bin/ls
on a 9.99.x amd64 host!

Addresses PR kern/55047 but more changes coming to handle non-built-in
modules.

XXX pullup-9


To generate a diff of this commit:
cvs rdiff -u -r1.57.4.2 -r1.57.4.3 \
src/sys/compat/netbsd32/netbsd32_compat_43.c
cvs rdiff -u -r1.127.2.1 -r1.127.2.2 src/sys/compat/netbsd32/syscalls.master

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



CVS commit: [netbsd-9] src/sys/arch

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:28:17 UTC 2020

Modified Files:
src/sys/arch/amiga/dev [netbsd-9]: gayle_pcmcia.c
src/sys/arch/amigappc/include [netbsd-9]: bus_defs.h

Log Message:
Pull up following revision(s) (requested by is in ticket #760):

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32
sys/arch/amigappc/include/bus_defs.h: revision 1.8

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg  with Dlink DE-660+  (ne)
- by Frank Willewith D-Link DFE-670TXD  (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III   (ep)
- by Martin and Frank   with CompactFlash cards (wdc)

 -

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.31.22.1 src/sys/arch/amiga/dev/gayle_pcmcia.c
cvs rdiff -u -r1.6 -r1.6.34.1 src/sys/arch/amigappc/include/bus_defs.h

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



CVS commit: [netbsd-9] src/libexec/ld.elf_so

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:22:29 UTC 2020

Modified Files:
src/libexec/ld.elf_so [netbsd-9]: headers.c map_object.c rtld.c

Log Message:
Pull up following revision(s) (requested by thorpej in ticket #758):

libexec/ld.elf_so/map_object.c: revision 1.61
libexec/ld.elf_so/headers.c: revision 1.68
libexec/ld.elf_so/rtld.c: revision 1.203

PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends
on a linker common page size boundary.  However, if the common page size
used by the linker is less than the VM page size being used by the kernel,
this can end up in the middle of a VM page and when the region is write-
protected, this can cause objects in neighboring .data to get incorrectly
write-protected, resulting in a crash.

Avoid this situation by calculating the end of the RELRO region not by
rounding memsz up to the VM page size, but rather by adding vaddr + memsz
and then truncating to the VM page size.

Fixes PR toolchain/55043.

XXX pullup-9


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.65.2.1 src/libexec/ld.elf_so/headers.c
cvs rdiff -u -r1.60 -r1.60.2.1 src/libexec/ld.elf_so/map_object.c
cvs rdiff -u -r1.197.2.2 -r1.197.2.3 src/libexec/ld.elf_so/rtld.c

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



CVS commit: [netbsd-9] src/sys/conf

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:18:04 UTC 2020

Modified Files:
src/sys/conf [netbsd-9]: files

Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #757):

sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258
sys/conf/files: revision 1.1259

mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout

Addresses PR kern/55037.
XXX pullup-9

Fix comment - thanks Ryo Shimizu

Also exclude EXEC_AOUT stuff for aarch64
XXX Pullup-9 and -8


To generate a diff of this commit:
cvs rdiff -u -r1.1237.2.4 -r1.1237.2.5 src/sys/conf/files

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



CVS commit: [netbsd-8] src/doc

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:03:19 UTC 2020

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Tickets #1514 - #1518


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.104 -r1.1.2.105 src/doc/CHANGES-8.2

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



CVS commit: [netbsd-8] src/sys/arch/amigappc/include

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:01:45 UTC 2020

Modified Files:
src/sys/arch/amigappc/include [netbsd-8]: bus_defs.h

Log Message:
Pull up following revision(s) (requested by is in ticket #1518):

sys/arch/amigappc/include/bus_defs.h: revision 1.8

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.22.1 src/sys/arch/amigappc/include/bus_defs.h

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



CVS commit: [netbsd-8] src/sys/arch/amiga/dev

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 10:00:24 UTC 2020

Modified Files:
src/sys/arch/amiga/dev [netbsd-8]: gayle_pcmcia.c

Log Message:
Pull up following revision(s) (requested by is in ticket #1517):

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg  with Dlink DE-660+  (ne)
- by Frank Willewith D-Link DFE-670TXD  (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III   (ep)
- by Martin and Frank   with CompactFlash cards (wdc)


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.31.10.1 src/sys/arch/amiga/dev/gayle_pcmcia.c

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



CVS commit: [netbsd-8] src/sys/dev/ic

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:57:50 UTC 2020

Modified Files:
src/sys/dev/ic [netbsd-8]: tms320av110.c

Log Message:
Pull up following revision(s) (requested by is in ticket #1516):

sys/dev/ic/tms320av110.c: revision 1.24

Make it compilable (remove unused variables).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.30.1 src/sys/dev/ic/tms320av110.c

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



CVS commit: [netbsd-8] src/sys/kern

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:47:28 UTC 2020

Modified Files:
src/sys/kern [netbsd-8]: sys_select.c

Log Message:
Pull up following revision(s) (requested by mlelstv in ticket #1515):

sys/kern/sys_select.c: revision 1.42-1.45

PR/54158: Anthony Mallet: poll(2) does not allow polling all possible fds
(hardcoded limit to 1000 + #). Changed to limit by the max of
the resource limit of open descriptors and the above.

Remove the slop code. Suggested by mrg@

Use the max limit (aka maxfiles or the moral equivalent of OPEN_MAX) which
makes poll(2) align with the Posix documentation (which allows EINVAL if
nfds > OPEN_MAX). From: Anthony Mallet

Add slop of 1000 and explain why.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.40.2.1 src/sys/kern/sys_select.c

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



CVS commit: [netbsd-8] src/sys/conf

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:42:29 UTC 2020

Modified Files:
src/sys/conf [netbsd-8]: files

Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #1514):

sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258

mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout
Addresses PR kern/55037.
XXX pullup-9

Fix comment - thanks Ryo Shimizu


To generate a diff of this commit:
cvs rdiff -u -r1.1173.2.8 -r1.1173.2.9 src/sys/conf/files

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



CVS commit: [netbsd-8] src/doc

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:29:10 UTC 2020

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1512


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.103 -r1.1.2.104 src/doc/CHANGES-8.2

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



CVS commit: [netbsd-8] src/sys/external/bsd/drm2/nouveau

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:28:04 UTC 2020

Modified Files:
src/sys/external/bsd/drm2/nouveau [netbsd-8]: nouveau_pci.c

Log Message:
Pull up following revision(s) (requested by mrg in ticket #1512):

sys/external/bsd/drm2/nouveau/nouveau_pci.c: revision 1.24,1.25
(via patch)

Improve nouveau pci attachment code so it waits for the availability of /
before trying to load firmware.
Fixes my PR 54274.

LGTM mrg

list the PCI ID range for new nvidia TU117 and TU116.

adjust the check to simply be >= 0x1580, which is the
first pciid not support.

should fix PR#54600.


To generate a diff of this commit:
cvs rdiff -u -r1.8.10.2 -r1.8.10.3 \
src/sys/external/bsd/drm2/nouveau/nouveau_pci.c

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



CVS commit: [netbsd-7] src/doc

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:20:52 UTC 2020

Modified Files:
src/doc [netbsd-7]: CHANGES-7.3

Log Message:
Tickets #1723 - #1725


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.76 -r1.1.2.77 src/doc/CHANGES-7.3

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



CVS commit: [netbsd-7] src/sys/arch/amigappc/include

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:19:55 UTC 2020

Modified Files:
src/sys/arch/amigappc/include [netbsd-7]: bus_defs.h

Log Message:
Pull up following revision(s) (requested by is in ticket #1725):

sys/arch/amigappc/include/bus_defs.h: revision 1.8

gayle wants stride_1swap now, so declare the rest of the bus methods since
we already define them anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.4.1 src/sys/arch/amigappc/include/bus_defs.h

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



CVS commit: [netbsd-7] src/sys/arch/amiga/dev

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:18:34 UTC 2020

Modified Files:
src/sys/arch/amiga/dev [netbsd-7]: gayle_pcmcia.c

Log Message:
Pull up following revision(s) (requested by is in ticket #1724):

sys/arch/amiga/dev/gayle_pcmcia.c: revision 1.32

The Gayle interface uses swapped (little-endian) word accesses, so we
need to use the amiga_bus_stride_1swap methods for the word accesses.

Analyzed and submitted via port-amiga@ by Martin �berg.

Tested on formerly working hardware
- by Jukka Andberg  with Dlink DE-660+  (ne)
- by Frank Willewith D-Link DFE-670TXD  (ne)

Tested on formerly not working hardware:
- by Martin with 3Com 3c589 Etherling III   (ep)
- by Martin and Frank   with CompactFlash cards (wdc)


To generate a diff of this commit:
cvs rdiff -u -r1.29.4.2 -r1.29.4.3 src/sys/arch/amiga/dev/gayle_pcmcia.c

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



CVS commit: [netbsd-7] src/sys/dev/ic

2020-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar  8 09:15:34 UTC 2020

Modified Files:
src/sys/dev/ic [netbsd-7]: tms320av110.c

Log Message:
Pull up following revision(s) (requested by is in ticket #1723):

sys/dev/ic/tms320av110.c: revision 1.24

Make it compilable (remove unused variables).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.12.1 src/sys/dev/ic/tms320av110.c

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



CVS commit: src/tests/net/if_vlan

2020-03-08 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Sun Mar  8 09:05:34 UTC 2020

Modified Files:
src/tests/net/if_vlan: t_vlan.sh

Log Message:
address to ATF t_vlan failure. adapt ifmcstat(8) output format change.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/tests/net/if_vlan/t_vlan.sh

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



CVS commit: src/sys

2020-03-08 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Mar  8 08:26:54 UTC 2020

Modified Files:
src/sys/arch/evbarm/fdt: fdt_machdep.c
src/sys/dev/fdt: fdt_subr.c

Log Message:
Fix LOCKDEBUG by calling fdtbus_intr_init as part of cpu_startup_hook, i.e.
later.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/evbarm/fdt/fdt_machdep.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/fdt/fdt_subr.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/fdt

2020-03-08 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Mar  8 08:25:36 UTC 2020

Modified Files:
src/sys/dev/fdt: fdt_intr.c

Log Message:
Use MUTEX_DEFAULT to avoid confusion


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/fdt/fdt_intr.c

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