svn commit: r356220 - head/libexec/rtld-elf

2019-12-30 Thread Conrad Meyer
Author: cem Date: Tue Dec 31 05:41:47 2019 New Revision: 356220 URL: https://svnweb.freebsd.org/changeset/base/356220 Log: rtld(1): Do booleans like C99 Reviewed by: kib, rlibby Differential Revision:https://reviews.freebsd.org/D22964 Modified: head/libexec/rtld-elf/rtld.h Mo

svn commit: r356219 - head/sys/nfs

2019-12-30 Thread Rick Macklem
Author: rmacklem Date: Tue Dec 31 05:39:27 2019 New Revision: 356219 URL: https://svnweb.freebsd.org/changeset/base/356219 Log: Switch r356210 to use gone_in() instead of printf(). Suggested by: cem Modified: head/sys/nfs/nfs_lock.c Modified: head/sys/nfs/nfs_lock.c

svn commit: r356218 - head/usr.sbin/inetd

2019-12-30 Thread Kyle Evans
Author: kevans Date: Tue Dec 31 04:53:50 2019 New Revision: 356218 URL: https://svnweb.freebsd.org/changeset/base/356218 Log: inetd: prefer strlcpy to strlen(3) check + strcpy(3), NFC This is again functionally equivalent but more concise. Modified: head/usr.sbin/inetd/inetd.c Modified:

svn commit: r356217 - head/usr.sbin/inetd

2019-12-30 Thread Kyle Evans
Author: kevans Date: Tue Dec 31 04:36:14 2019 New Revision: 356217 URL: https://svnweb.freebsd.org/changeset/base/356217 Log: inetd: prefer strtonum(3) to strspn(3)+atoi(3), NFC strtonum(3) does effectively the same validation as we had, but it's more concise. Modified: head/usr.sbin/i

svn commit: r356216 - head/sys/dev/ioat

2019-12-30 Thread Alexander Motin
Author: mav Date: Tue Dec 31 04:16:52 2019 New Revision: 356216 URL: https://svnweb.freebsd.org/changeset/base/356216 Log: Don't spin on cleanup_lock if we are not interrupt. If somebody else holds that lock, it will likely do the work for us. If it won't, then we return here later and re

svn commit: r356215 - head/usr.sbin/inetd

2019-12-30 Thread Kyle Evans
Author: kevans Date: Tue Dec 31 04:00:24 2019 New Revision: 356215 URL: https://svnweb.freebsd.org/changeset/base/356215 Log: inetd: knock out some clang analyze warnings chargen_dg: clang-analyze is convinced that endring could be non-NULL at entry, and thus wants to assume that rs == NU

svn commit: r356214 - head/sys/geom

2019-12-30 Thread Alexander Motin
Author: mav Date: Tue Dec 31 03:43:13 2019 New Revision: 356214 URL: https://svnweb.freebsd.org/changeset/base/356214 Log: Avoid few memory accesses in g_disk_done(). Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c =

Re: svn commit: r356210 - head/sys/nfs

2019-12-30 Thread Conrad Meyer
Hi Rick, One suggestion: On Mon, Dec 30, 2019 at 2:39 PM Rick Macklem wrote: > > Author: rmacklem > Date: Mon Dec 30 22:39:29 2019 > New Revision: 356210 > ... > --- head/sys/nfs/nfs_lock.c Mon Dec 30 22:05:57 2019(r356209) > +++ head/sys/nfs/nfs_lock.c Mon Dec 30 22:39:29 2019

svn commit: r356213 - head/usr.bin/nfsstat

2019-12-30 Thread Rick Macklem
Author: rmacklem Date: Tue Dec 31 00:07:10 2019 New Revision: 356213 URL: https://svnweb.freebsd.org/changeset/base/356213 Log: Replace .h files included from old NFS directories with the new NFS ones. Prior to this patch, nfsstat.c includes files from sys/nfs, sys/nfsclient and sys/nfsse

svn commit: r356212 - in head: contrib/libarchive contrib/libarchive/libarchive contrib/libarchive/libarchive/test contrib/libarchive/test_utils lib/libarchive/tests usr.bin/bsdcat usr.bin/cpio usr...

2019-12-30 Thread Martin Matuska
Author: mm Date: Tue Dec 31 00:05:06 2019 New Revision: 356212 URL: https://svnweb.freebsd.org/changeset/base/356212 Log: MFV r356163,r356197: Update libarchive to 3.4.1 Relevant vendor changes since last update: Issue #351: Refactor and implement private state logic for write filters

svn commit: r356211 - in head/sys: arm/arm conf

2019-12-30 Thread Ian Lepore
Author: ian Date: Mon Dec 30 23:20:46 2019 New Revision: 356211 URL: https://svnweb.freebsd.org/changeset/base/356211 Log: Set a "kernbase" symbol in 32-bit arm locore.S and use it with ldscript.arm. This brings arm into line with how every other arch does it. For some reason, only arm l

svn commit: r356210 - head/sys/nfs

2019-12-30 Thread Rick Macklem
Author: rmacklem Date: Mon Dec 30 22:39:29 2019 New Revision: 356210 URL: https://svnweb.freebsd.org/changeset/base/356210 Log: Add warning printf w.r.t. removal of sys/nfs/nfs_lock.c. The code in sys/nfs/nfs_lock.c has not been run by default since March 2008 when it was replaced by the

svn commit: r356209 - head/share/man/man7

2019-12-30 Thread John Baldwin
Author: jhb Date: Mon Dec 30 22:05:57 2019 New Revision: 356209 URL: https://svnweb.freebsd.org/changeset/base/356209 Log: Formatting fixes for tables, no content changes. - Add missing .Pp after the end of some lists so that there is a blank line before the subsequent paragraph. - Us

Re: svn commit: r356207 - in head/sys/arm64: arm64 include

2019-12-30 Thread Alan Cox
On 12/30/19 2:59 PM, Colin Percival wrote: On 2019-12-30 12:30, Alan Cox wrote: Author: alc Date: Mon Dec 30 20:30:31 2019 New Revision: 356207 URL: https://svnweb.freebsd.org/changeset/base/356207 Log: Determine whether the MMU hardware is capable of updating a page table entry's acces

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Poul-Henning Kamp
In message , Warner Losh writes: >I never enabled it because I never had a good car size as the default. I'm >guessing it's somewhere on the order of 2 times the queue size in >hardware, but with modern drives I think phk might be right and that >disabling disksort entirely might be op

svn commit: r356208 - head/bin/sh/tests/execution

2019-12-30 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 30 21:32:55 2019 New Revision: 356208 URL: https://svnweb.freebsd.org/changeset/base/356208 Log: sh: Test that executing various binary files is rejected If executing a file fails with an [ENOEXEC] error, the shell executes the file as a shell script, except t

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Jeff Roberson
On Mon, 30 Dec 2019, Warner Losh wrote: On Mon, Dec 30, 2019 at 12:55 PM Alexander Motin wrote: On 30.12.2019 12:02, Alexey Dokuchaev wrote: > On Mon, Dec 30, 2019 at 08:55:14AM -0700, Warner Losh wrote: >> On Mon, Dec 30, 2019, 5:32 AM Alexey Dokuchaev wrote: >>> On S

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Warner Losh
On Mon, Dec 30, 2019 at 12:55 PM Alexander Motin wrote: > On 30.12.2019 12:02, Alexey Dokuchaev wrote: > > On Mon, Dec 30, 2019 at 08:55:14AM -0700, Warner Losh wrote: > >> On Mon, Dec 30, 2019, 5:32 AM Alexey Dokuchaev wrote: > >>> On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote:

Re: svn commit: r356207 - in head/sys/arm64: arm64 include

2019-12-30 Thread Colin Percival
On 2019-12-30 12:30, Alan Cox wrote: > Author: alc > Date: Mon Dec 30 20:30:31 2019 > New Revision: 356207 > URL: https://svnweb.freebsd.org/changeset/base/356207 > > Log: > Determine whether the MMU hardware is capable of updating a page table > entry's access flag and dirty state, and enable

svn commit: r356207 - in head/sys/arm64: arm64 include

2019-12-30 Thread Alan Cox
Author: alc Date: Mon Dec 30 20:30:31 2019 New Revision: 356207 URL: https://svnweb.freebsd.org/changeset/base/356207 Log: Determine whether the MMU hardware is capable of updating a page table entry's access flag and dirty state, and enable this feature when it's available. Ensure that

Re: svn commit: r356142 - in head/sys: dev/ofw sys

2019-12-30 Thread Warner Losh
On Sun, Dec 29, 2019, 8:02 PM Kevin P. Neal wrote: > On Sat, Dec 28, 2019 at 10:11:48AM -1000, Jeff Roberson wrote: > > It seems to be the prevailing theory that headers are not even really > > copyrightable. This has even been tested in court a few times (bsd, > java). > > > > http://lkml.iu.ed

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Alexander Motin
On 30.12.2019 12:02, Alexey Dokuchaev wrote: > On Mon, Dec 30, 2019 at 08:55:14AM -0700, Warner Losh wrote: >> On Mon, Dec 30, 2019, 5:32 AM Alexey Dokuchaev wrote: >>> On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote: New Revision: 356185 URL: https://svnweb.freebsd.org/ch

Re: svn commit: r356142 - in head/sys: dev/ofw sys

2019-12-30 Thread Jeff Roberson
On Sun, 29 Dec 2019, Kevin P. Neal wrote: On Sat, Dec 28, 2019 at 10:11:48AM -1000, Jeff Roberson wrote: It seems to be the prevailing theory that headers are not even really copyrightable. This has even been tested in court a few times (bsd, java). http://lkml.iu.edu/hypermail/linux/kernel/0

svn commit: r356206 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux

2019-12-30 Thread Pawel Biernacki
Author: kaktus Date: Mon Dec 30 18:11:06 2019 New Revision: 356206 URL: https://svnweb.freebsd.org/changeset/base/356206 Log: linux(4): implement copy_file_range(2) copy_file_range(2) is implemented natively since r350315, make it available for Linux binaries too. Reviewed by: kib (

svn commit: r356205 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 17:18:50 2019 New Revision: 356205 URL: https://svnweb.freebsd.org/changeset/base/356205 Log: Don't hard-code field offsets of struct riscv_bootparams. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Alexey Dokuchaev
On Mon, Dec 30, 2019 at 08:55:14AM -0700, Warner Losh wrote: > On Mon, Dec 30, 2019, 5:32 AM Alexey Dokuchaev wrote: > > On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote: > > > New Revision: 356185 > > > URL: https://svnweb.freebsd.org/changeset/base/356185 > > > > > > Log: > > > R

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Warner Losh
On Mon, Dec 30, 2019, 5:32 AM Alexey Dokuchaev wrote: > On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote: > > New Revision: 356185 > > URL: https://svnweb.freebsd.org/changeset/base/356185 > > > > Log: > > Remove GEOM_SCHED class and gsched tool. > > > > This code was not activ

svn commit: r356204 - head/usr.sbin/inetd

2019-12-30 Thread Kyle Evans
Author: kevans Date: Mon Dec 30 15:54:36 2019 New Revision: 356204 URL: https://svnweb.freebsd.org/changeset/base/356204 Log: inetd: don't leak `policy` on return sep->se_policy gets a strdup'd version of policy, so we don't need it to stick around afterwards. While here, remove a co

svn commit: r356203 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 14:38:06 2019 New Revision: 356203 URL: https://svnweb.freebsd.org/changeset/base/356203 Log: Don't hard-code size of struct riscv_bootparams. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D229

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Pedro Giffuni
On 2019-12-30 06:32, Alexey Dokuchaev wrote: > On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote: >> New Revision: 356185 >> URL: https://svnweb.freebsd.org/changeset/base/356185 >> >> Log: >> Remove GEOM_SCHED class and gsched tool. >> >> This code was not actively maintaine

Re: svn commit: r356092 - head/sys/dev/kbdmux

2019-12-30 Thread Hans Petter Selasky
On 2019-12-27 16:34, Hans Petter Selasky wrote: On 2019-12-27 17:28, Kyle Evans wrote: At the risk of asking a dumb question, where are you wanting to make this distinction at? For example when implementing applications which allow playing the piano via the system keyboard this is useful. See

svn commit: r356202 - head/sys/riscv/riscv

2019-12-30 Thread Ruslan Bukin
Author: br Date: Mon Dec 30 13:29:30 2019 New Revision: 356202 URL: https://svnweb.freebsd.org/changeset/base/356202 Log: Round the kernel stack allocation up as required. Submitted by: James Clarke Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D22

Re: svn commit: r356185 - in head: lib/geom lib/geom/sched sys/geom sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/sys

2019-12-30 Thread Alexey Dokuchaev
On Sun, Dec 29, 2019 at 09:16:04PM +, Alexander Motin wrote: > New Revision: 356185 > URL: https://svnweb.freebsd.org/changeset/base/356185 > > Log: > Remove GEOM_SCHED class and gsched tool. > > This code was not actively maintained since it was introduced 10 years ago. > It lacks su

svn commit: r356201 - head/sys/dev/hyperv/netvsc

2019-12-30 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 30 09:22:52 2019 New Revision: 356201 URL: https://svnweb.freebsd.org/changeset/base/356201 Log: Fix spelling. PR: 242891 MFC after:1 week Sponsored by: Mellanox Technologies Modified: head/sys/dev/hyperv/netvsc/if_hn.c Modified: head/sys