svn commit: r319892 - head/bin/df

2017-06-12 Thread Phil Shafer
Author: phil Date: Tue Jun 13 05:38:40 2017 New Revision: 319892 URL: https://svnweb.freebsd.org/changeset/base/319892 Log: Use {T:Capacity} for header so html output looks tidy Submitted by: phil Approved by: sjg Modified: head/bin/df/df.c Modified: head/bin/df/df.c

svn commit: r319891 - head/contrib/llvm/tools/lld/ELF

2017-06-12 Thread Ed Maste
Author: emaste Date: Tue Jun 13 01:25:19 2017 New Revision: 319891 URL: https://svnweb.freebsd.org/changeset/base/319891 Log: lld: revert accidentally committed change from r319887 This change is a portion of LLD rev 305212 which accidentally ended up in my svn tree. We do want to

svn commit: r319890 - head/sys/security/mac_bsdextended

2017-06-12 Thread Ed Maste
Author: emaste Date: Tue Jun 13 01:17:58 2017 New Revision: 319890 URL: https://svnweb.freebsd.org/changeset/base/319890 Log: Correct bitwise test in mac_bsdextended ugidfw_rule_valid() PR: 218039 CID: 1008934 Reported by: Coverity, PVS-Studio Reviewed by: kib

svn commit: r319888 - head

2017-06-12 Thread Ian Lepore
Author: ian Date: Tue Jun 13 01:12:37 2017 New Revision: 319888 URL: https://svnweb.freebsd.org/changeset/base/319888 Log: By popular demand: change MAKE_GENERIC_KERNELS to MAKE_LINT_KERNELS. It appears that the same arches that lack GENERIC kernel configs also lack LINT. But enough

svn commit: r319887 - in head: contrib/llvm/tools/lld/ELF usr.bin/hexdump

2017-06-12 Thread Ed Maste
Author: emaste Date: Tue Jun 13 01:05:55 2017 New Revision: 319887 URL: https://svnweb.freebsd.org/changeset/base/319887 Log: hexdump: actually enter capability mode on last file Reviewed by: cem, Kyle Evans Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r319886 - head/sys/dev/etherswitch/e6000sw

2017-06-12 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 13 00:42:23 2017 New Revision: 319886 URL: https://svnweb.freebsd.org/changeset/base/319886 Log: Add the initial support for the Marvell 88E6141 and 88E6341 switches. Right now the driver only supports port VLANs, so make sure etherswitch_getinfo() return the

Re: svn commit: r319874 - head/sys/kern

2017-06-12 Thread Ngie Cooper
On Mon, Jun 12, 2017 at 4:43 PM, Gleb Smirnoff wrote: > On Mon, Jun 12, 2017 at 09:11:11PM +, Konstantin Belousov wrote: > K> Author: kib > K> Date: Mon Jun 12 21:11:11 2017 > K> New Revision: 319874 > K> URL: https://svnweb.freebsd.org/changeset/base/319874 > K> > K>

svn commit: r319885 - head/contrib/llvm/tools/lld/ELF

2017-06-12 Thread Ed Maste
Author: emaste Date: Tue Jun 13 00:31:16 2017 New Revision: 319885 URL: https://svnweb.freebsd.org/changeset/base/319885 Log: lld: ELF: Fix ICF crash on absolute symbol relocations. If two sections contained relocations to absolute symbols with the same value we would crash when trying

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
On Tue, Jun 13, 2017 at 12:33:00AM +0300, Konstantin Belousov wrote: > On Mon, Jun 12, 2017 at 01:47:05PM -0700, Mark Johnston wrote: > > On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > > > On Mon, Jun 12, 2017 at 08:14:44PM +, Mark Johnston wrote: > > > > +int > > > >

Re: svn commit: r319874 - head/sys/kern

2017-06-12 Thread Gleb Smirnoff
On Mon, Jun 12, 2017 at 09:11:11PM +, Konstantin Belousov wrote: K> Author: kib K> Date: Mon Jun 12 21:11:11 2017 K> New Revision: 319874 K> URL: https://svnweb.freebsd.org/changeset/base/319874 K> K> Log: K> Print unimplemented syscall number to the ctty on SIGSYS, if enabled K> by the

Re: svn commit: r319859 - head

2017-06-12 Thread Gleb Smirnoff
On Mon, Jun 12, 2017 at 05:22:23PM +, Ian Lepore wrote: I> Author: ian I> Date: Mon Jun 12 17:22:23 2017 I> New Revision: 319859 I> URL: https://svnweb.freebsd.org/changeset/base/319859 I> I> Log: I> Add support for "make universe_kernels -DMAKE_GENERIC_KERNELS" to build I> just the

svn commit: r319882 - head/sys/fs/nfs

2017-06-12 Thread Rick Macklem
Author: rmacklem Date: Mon Jun 12 23:41:20 2017 New Revision: 319882 URL: https://svnweb.freebsd.org/changeset/base/319882 Log: Define NFS_MAXXDR as the upper bound on XDR overhead in an NFS RPC. This definition is a part of the maxiotune2 patch that will be committed soon. It is being

svn commit: r319881 - head/sys/dev/netmap

2017-06-12 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jun 12 22:53:18 2017 New Revision: 319881 URL: https://svnweb.freebsd.org/changeset/base/319881 Log: Update the current version of netmap to bring it in sync with the github version. This commit contains mostly refactoring, a few fixes and minor added

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Konstantin Belousov
On Mon, Jun 12, 2017 at 01:47:05PM -0700, Mark Johnston wrote: > On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > > On Mon, Jun 12, 2017 at 08:14:44PM +, Mark Johnston wrote: > > > +int > > > +uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2) > > > +{ > > > + >

svn commit: r319876 - head/tools/test/ptrace

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 21:16:37 2017 New Revision: 319876 URL: https://svnweb.freebsd.org/changeset/base/319876 Log: Update scescx test to print syscall number and arguments. Sponsored by: The FreeBSD Foundation MFC after:3 weeks Modified: head/tools/test/ptrace/scescx.c

svn commit: r319875 - in head: lib/libc/sys sys/kern sys/sys

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 21:15:43 2017 New Revision: 319875 URL: https://svnweb.freebsd.org/changeset/base/319875 Log: Add ptrace(PT_GET_SC_ARGS) command to return debuggee' current syscall arguments. Reviewed by: jhb (previous version) Sponsored by: The FreeBSD Foundation MFC

svn commit: r319874 - head/sys/kern

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 21:11:11 2017 New Revision: 319874 URL: https://svnweb.freebsd.org/changeset/base/319874 Log: Print unimplemented syscall number to the ctty on SIGSYS, if enabled by the knob kern.lognosys. Discussed with: imp Reviewed by: jhb Sponsored by: The

svn commit: r319873 - in head/sys: amd64/amd64 amd64/cloudabi32 amd64/cloudabi64 amd64/ia32 amd64/linux amd64/linux32 arm/arm arm/cloudabi32 arm64/arm64 arm64/cloudabi64 compat/ia32 i386/cloudabi32...

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 21:03:23 2017 New Revision: 319873 URL: https://svnweb.freebsd.org/changeset/base/319873 Log: Move struct syscall_args syscall arguments parameters container into struct thread. For all architectures, the syscall trap handlers have to allocate the structure

svn commit: r319872 - head/sys/dev/cxgbe/common

2017-06-12 Thread Navdeep Parhar
Author: np Date: Mon Jun 12 20:55:20 2017 New Revision: 319872 URL: https://svnweb.freebsd.org/changeset/base/319872 Log: cxgbe(4): Do not request an FEC setting that the port does not support. MFC after:3 days. Sponsored by: Chelsio Communications Modified:

svn commit: r319871 - in head/sys: amd64/include arm64/include i386/include mips/include powerpc/include riscv/include sparc64/include

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 20:53:44 2017 New Revision: 319871 URL: https://svnweb.freebsd.org/changeset/base/319871 Log: Make struct syscall_args visible to userspace compilation environment from machine/proc.h, consistently on all architectures. Reviewed by: jhb Sponsored by: The

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
On Mon, Jun 12, 2017 at 11:29:52PM +0300, Konstantin Belousov wrote: > On Mon, Jun 12, 2017 at 08:14:44PM +, Mark Johnston wrote: > > +int > > +uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2) > > +{ > > + > > + return (memcmp(uuid1, uuid2, sizeof(struct uuid))); > > +} > > This

svn commit: r319870 - head/sys/fs/msdosfs

2017-06-12 Thread Ed Maste
Author: emaste Date: Mon Jun 12 20:42:37 2017 New Revision: 319870 URL: https://svnweb.freebsd.org/changeset/base/319870 Log: msdosfs: adjust #ifdefs to be similar to NetBSD - Add header guards where missing - Make parts available for use in makefs Sponsored by: The FreeBSD

svn commit: r319869 - head/tools/test/ptrace

2017-06-12 Thread Konstantin Belousov
Author: kib Date: Mon Jun 12 20:42:16 2017 New Revision: 319869 URL: https://svnweb.freebsd.org/changeset/base/319869 Log: Decode recently added flags. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/tools/test/ptrace/scescx.c Modified:

Re: svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Konstantin Belousov
On Mon, Jun 12, 2017 at 08:14:44PM +, Mark Johnston wrote: > +int > +uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2) > +{ > + > + return (memcmp(uuid1, uuid2, sizeof(struct uuid))); > +} This is unsafe. The function operation depends on the ABI properties that there is no

Re: svn commit: r319859 - head

2017-06-12 Thread Ed Maste
On 12 June 2017 at 13:22, Ian Lepore wrote: > > [*] Not all arches have a generic kernel (but they probably should for > test-building purposes, even if it can't boot on any real hardware). Or build GENERIC* + LINT*? ___

svn commit: r319868 - in head/sys: kern sys

2017-06-12 Thread Mark Johnston
Author: markj Date: Mon Jun 12 20:14:44 2017 New Revision: 319868 URL: https://svnweb.freebsd.org/changeset/base/319868 Log: Add a helper function for comparing struct uuids. Submitted by: Domagoj Stolfa MFC after:1 week Differential Revision:

svn commit: r319867 - head/usr.bin/top

2017-06-12 Thread Allan Jude
Author: allanjude Date: Mon Jun 12 19:54:42 2017 New Revision: 319867 URL: https://svnweb.freebsd.org/changeset/base/319867 Log: top: Missing man page update for r319866 MFC after:3 days Modified: head/usr.bin/top/top.local.1 Modified: head/usr.bin/top/top.local.1

svn commit: r319866 - head/usr.bin/top

2017-06-12 Thread Allan Jude
Author: allanjude Date: Mon Jun 12 19:51:57 2017 New Revision: 319866 URL: https://svnweb.freebsd.org/changeset/base/319866 Log: top: Change the way the ZFS ARC compression ratio is calculated Based on feedback from OpenZFS developers Matt Ahrens and George Wilson, the calculation of the

svn commit: r319865 - head

2017-06-12 Thread Ed Maste
Author: emaste Date: Mon Jun 12 19:45:05 2017 New Revision: 319865 URL: https://svnweb.freebsd.org/changeset/base/319865 Log: remove stale dependencies for utimens* wrappers removed in r319663 Use a similar approach to r318957 (which was for ptrace dependencies): grep the .depend file

svn commit: r319864 - head/usr.sbin/bsdinstall/scripts

2017-06-12 Thread Allan Jude
Author: allanjude Date: Mon Jun 12 19:31:26 2017 New Revision: 319864 URL: https://svnweb.freebsd.org/changeset/base/319864 Log: bsdinstall: support Auto ZFS mode for ARM64 Reported by: Shawn Webb MFC after:3 days Modified: head/usr.sbin/bsdinstall/scripts/auto Modified:

svn commit: r319863 - head/usr.sbin/bsdinstall/scripts

2017-06-12 Thread Allan Jude
Author: allanjude Date: Mon Jun 12 19:29:31 2017 New Revision: 319863 URL: https://svnweb.freebsd.org/changeset/base/319863 Log: bsdinstall: Make ZFS min_auto_ashift adjustment persistent Reported by: feld Reviewed by: dteske, tsoome MFC after:3 days Sponsored by: ScaleEngine

svn commit: r319862 - head/share/mk

2017-06-12 Thread Bryan Drewery
Author: bdrewery Date: Mon Jun 12 19:13:29 2017 New Revision: 319862 URL: https://svnweb.freebsd.org/changeset/base/319862 Log: META_MODE: Show .ERROR_CMD in error. This uses a hack to get the CMD from the meta file rather than .ERROR_CMD since bmake currently blanks the value for

svn commit: r319861 - head/share/mk

2017-06-12 Thread Bryan Drewery
Author: bdrewery Date: Mon Jun 12 18:44:14 2017 New Revision: 319861 URL: https://svnweb.freebsd.org/changeset/base/319861 Log: META_MODE: NO_FILEMON should imply nofilemon. This fixes NO_FILEMON to properly still use .depend.OBJ files for dependency tracking. MFC after:1 week

svn commit: r319859 - head

2017-06-12 Thread Ian Lepore
Author: ian Date: Mon Jun 12 17:22:23 2017 New Revision: 319859 URL: https://svnweb.freebsd.org/changeset/base/319859 Log: Add support for "make universe_kernels -DMAKE_GENERIC_KERNELS" to build just the GENERIC kernels for each arch (including variations such as GENERIC-NODEBUG, GENERIC64,

svn commit: r319858 - head/bin/ln/tests

2017-06-12 Thread Ngie Cooper
Author: ngie Date: Mon Jun 12 16:53:42 2017 New Revision: 319858 URL: https://svnweb.freebsd.org/changeset/base/319858 Log: Style fixes: clean up leading whitespace (8 single column spaces -> \t) MFC after:1 month MFC with: r319714, r319854, r319855, r319856 Modified:

svn commit: r319857 - head/bin/ln

2017-06-12 Thread Ngie Cooper
Author: ngie Date: Mon Jun 12 16:43:29 2017 New Revision: 319857 URL: https://svnweb.freebsd.org/changeset/base/319857 Log: ln(1): wordsmith -F option description MFC after:1 month Modified: head/bin/ln/ln.1 Modified: head/bin/ln/ln.1

svn commit: r319856 - head/bin/ln/tests

2017-06-12 Thread Ngie Cooper
Author: ngie Date: Mon Jun 12 16:38:37 2017 New Revision: 319856 URL: https://svnweb.freebsd.org/changeset/base/319856 Log: Add a testcase for `ln -sF` The testcase fails today, so mark it with atf_expect_fail: in particular, the target (B) isn't being unlinked and the documentation

svn commit: r319855 - head/bin/ln/tests

2017-06-12 Thread Ngie Cooper
Author: ngie Date: Mon Jun 12 16:31:32 2017 New Revision: 319855 URL: https://svnweb.freebsd.org/changeset/base/319855 Log: Use readlink(1)/stat(1) to query symlinks instead of file(1) file(1) can be compiled out of the system via MK_FILE == no, and the output isn't guaranteed to be

svn commit: r319854 - head/bin/ln/tests

2017-06-12 Thread Alan Somers
Author: asomers Date: Mon Jun 12 14:54:59 2017 New Revision: 319854 URL: https://svnweb.freebsd.org/changeset/base/319854 Log: bin/ln: Set umask appropriately before creating files for testing These changes were missed in D11084 Submitted by: shivansh Reviewed by: asomers MFC

svn commit: r319853 - head/usr.sbin/makefs

2017-06-12 Thread Ed Maste
Author: emaste Date: Mon Jun 12 13:49:57 2017 New Revision: 319853 URL: https://svnweb.freebsd.org/changeset/base/319853 Log: makefs: use C standard memcpy/memset in userland This file does not exist in NetBSD's makefs, but make the chance for consistency with memcpy/memset used in the

svn commit: r319852 - head/usr.sbin/rpc.lockd

2017-06-12 Thread Xin LI
Author: delphij Date: Mon Jun 12 09:11:31 2017 New Revision: 319852 URL: https://svnweb.freebsd.org/changeset/base/319852 Log: Fix buffer lengths. After r319369, the RPC code validates caller supplied buffer length in taddr2uaddr. When no -h is specified, the sizeof(ai_addr) is used,

svn commit: r319851 - head/sys/compat/linux

2017-06-12 Thread Dmitry Chagin
Author: dchagin Date: Mon Jun 12 07:48:51 2017 New Revision: 319851 URL: https://svnweb.freebsd.org/changeset/base/319851 Log: Remove the outdated definition. MFC after:1 week Modified: head/sys/compat/linux/linux_file.c Modified: head/sys/compat/linux/linux_file.c

svn commit: r319850 - in head: etc/mtree usr.bin/du usr.bin/du/tests

2017-06-12 Thread Ngie Cooper
Author: ngie Date: Mon Jun 12 07:43:58 2017 New Revision: 319850 URL: https://svnweb.freebsd.org/changeset/base/319850 Log: Add some initial basic tests for du(1) Tests that exercise the following flags are added in this commit: - -A - -H - -I - -g - -h - -k - -m

svn commit: r319849 - head/sys/compat/linux

2017-06-12 Thread Dmitry Chagin
Author: dchagin Date: Mon Jun 12 07:35:59 2017 New Revision: 319849 URL: https://svnweb.freebsd.org/changeset/base/319849 Log: Since r318735 (ino64 project) the size of the native struct dirent is equal or greater than the size of Linux struct dirent or struct dirent64. So, remove

svn commit: r319848 - head/contrib/ipfilter/tools

2017-06-12 Thread Cy Schubert
Author: cy Date: Mon Jun 12 06:08:57 2017 New Revision: 319848 URL: https://svnweb.freebsd.org/changeset/base/319848 Log: -v (verbose) is not a command option. (See ippool.1 for a definition of command options). Modified: head/contrib/ipfilter/tools/ippool.c Modified: