Re: svn commit: r326139 - head/usr.bin/vmstat

2017-11-23 Thread Bruce Evans
On Thu, 23 Nov 2017, Konstantin Belousov wrote: Log: vmstat: use 64-bit counters from struct vmtotal. Consistently print counters using unsigned intmax type. Not very consistently. After fixing 0.01% of libxo (just add __printflike() to xo_emit(), the following errors are detected: X

svn commit: r326145 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux32 arm/cloudabi32 arm64/arm64 arm64/cloudabi64 compat/linux i386/i386 kern powerpc/powerpc riscv/riscv sparc64/sparc64

2017-11-23 Thread Ed Schouten
Author: ed Date: Fri Nov 24 07:35:08 2017 New Revision: 326145 URL: https://svnweb.freebsd.org/changeset/base/326145 Log: Don't let cpu_set_syscall_retval() clobber exec_setregs(). Upon successful completion, the execve() system call invokes exec_setregs() to initialize the registers of

svn commit: r326144 - head/stand/userboot/test

2017-11-23 Thread Warner Losh
Author: imp Date: Fri Nov 24 05:01:00 2017 New Revision: 326144 URL: https://svnweb.freebsd.org/changeset/base/326144 Log: Mark the func pointer as __dead2. It looks up loader_main, which either aborts or exits, but never returns. Tag it as a non-returning function rather than supply a

svn commit: r326143 - head/stand/common

2017-11-23 Thread Warner Losh
Author: imp Date: Fri Nov 24 05:00:25 2017 New Revision: 326143 URL: https://svnweb.freebsd.org/changeset/base/326143 Log: Fix theoretical integer overflow issues. If the product here is greater than 2^31-1, then the result will be huge. This is unlikely, as we don't support that many

svn commit: r326142 - in stable/11/sys: modules/ipfw netpfil/ipfw

2017-11-23 Thread Andrey V. Elsukov
Author: ae Date: Fri Nov 24 04:42:21 2017 New Revision: 326142 URL: https://svnweb.freebsd.org/changeset/base/326142 Log: MFC r325960: Unconditionally enable support for O_IPSEC opcode. IPsec support can be loaded as kernel module, thus do not depend from kernel option IPSEC and

svn commit: r326141 - head/sys/arm/allwinner/clkng

2017-11-23 Thread Kyle Evans
Author: kevans Date: Fri Nov 24 02:39:38 2017 New Revision: 326141 URL: https://svnweb.freebsd.org/changeset/base/326141 Log: Add ccu compat string for Allwinner a83t A ccu driver was added for the a83t in r326114. Add compat string to aw_ccung and register the clocks for the a83t upon

svn commit: r326140 - head/share/examples/bhyve

2017-11-23 Thread Andriy Gapon
Author: avg Date: Thu Nov 23 22:10:12 2017 New Revision: 326140 URL: https://svnweb.freebsd.org/changeset/base/326140 Log: vmrun.sh: add -A option for AHCI emulation of disk devices AHCI emulation is useful for testing scenarios closer to the real hardware. For example, it allows to

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Devin Teske
> On Nov 23, 2017, at 9:29 AM, Rodney W. Grimes > wrote: > > [ Charset UTF-8 unsupported, converting... ] >> On Thu, Nov 23, 2017 at 7:17 AM, Rodney W. Grimes >> wrote: Also we do provide an ntp.conf so ... >>> >>> We do,

svn commit: r326139 - head/usr.bin/vmstat

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 19:10:09 2017 New Revision: 326139 URL: https://svnweb.freebsd.org/changeset/base/326139 Log: vmstat: use 64-bit counters from struct vmtotal. Consistently print counters using unsigned intmax type. Submitted by: Pawel Biernacki

svn commit: r326138 - head/usr.bin/vmstat

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 19:06:44 2017 New Revision: 326138 URL: https://svnweb.freebsd.org/changeset/base/326138 Log: Use C standard spelling uint64_t for u_int64_t. Submitted by: Pawel Biernacki Sponsored by: Mysterious Code Ltd. X-Differential

svn commit: r326137 - in head/sys: arm/arm arm64/arm64 arm64/include

2017-11-23 Thread Andrew Turner
Author: andrew Date: Thu Nov 23 17:40:40 2017 New Revision: 326137 URL: https://svnweb.freebsd.org/changeset/base/326137 Log: Ensure we check the program state set in the trap frame on arm and arm64. This value may be set by userspace so we need to check it before using it. If this is not

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > On Thu, Nov 23, 2017 at 7:17 AM, Rodney W. Grimes > wrote: > >> Also we do provide an ntp.conf so ... > > > > We do, a template, all commented out, and does not work for > > machines behind strong firewalls that wont

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Conrad Meyer
On Thu, Nov 23, 2017 at 7:17 AM, Rodney W. Grimes wrote: >> Also we do provide an ntp.conf so ... > > We do, a template, all commented out, and does not work for > machines behind strong firewalls that wont allow ntp out > to the net but have internal ntp servers

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Ian Lepore
On Thu, 2017-11-23 at 06:56 -0800, Rodney W. Grimes wrote: > > > > > >  Hi Devin, > > > > On Thu, 23 Nov 2017 01:33:39 -0800 > > Devin Teske wrote: > > > > > > > > > > > > > > > > > > > On Nov 22, 2017, at 11:15 PM, Emmanuel Vadot wrote: > > > > > > > > > > > > > > On

svn commit: r326136 - head/contrib/binutils/bfd

2017-11-23 Thread Ed Maste
Author: emaste Date: Thu Nov 23 16:04:52 2017 New Revision: 326136 URL: https://svnweb.freebsd.org/changeset/base/326136 Log: bfd: avoid crash on corrupt binaries From binutils commits 5a4b0ccc20ba30caef53b01bee2c0aaa5b855339 and 7e1e19887abd24aeb15066b141cdff5541e0ec8e, made available

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Emmanuel Vadot
On Thu, 23 Nov 2017 07:17:49 -0800 (PST) "Rodney W. Grimes" wrote: > > On Thu, 23 Nov 2017 06:56:50 -0800 (PST) > > "Rodney W. Grimes" wrote: > > > > > > > > > > Hi Devin, > > > > > > > > On Thu, 23 Nov 2017 01:33:39 -0800 > >

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-23 Thread Konstantin Belousov
On Fri, Nov 24, 2017 at 12:10:09AM +1100, Bruce Evans wrote: > On Thu, 23 Nov 2017, Konstantin Belousov wrote: > > > On Thu, Nov 23, 2017 at 04:24:13AM +1100, Bruce Evans wrote: > >> sysctl/sysctl.c: > >>sysctl(8) has bogus support for prettyprinting struct vmtotal (sysctl > >>shouldn't

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Rodney W. Grimes
> On Thu, 23 Nov 2017 06:56:50 -0800 (PST) > "Rodney W. Grimes" wrote: > > > > > > > Hi Devin, > > > > > > On Thu, 23 Nov 2017 01:33:39 -0800 > > > Devin Teske wrote: > > > > > > > > > > > > > > > > On Nov 22, 2017, at 11:15 PM, Emmanuel

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Emmanuel Vadot
On Thu, 23 Nov 2017 06:56:50 -0800 (PST) "Rodney W. Grimes" wrote: > > > > Hi Devin, > > > > On Thu, 23 Nov 2017 01:33:39 -0800 > > Devin Teske wrote: > > > > > > > > > > > > On Nov 22, 2017, at 11:15 PM, Emmanuel Vadot

Re: svn commit: r326125 - head/usr.sbin/kgmon

2017-11-23 Thread Rodney W. Grimes
> Author: trasz > Date: Thu Nov 23 12:41:05 2017 > New Revision: 326125 > URL: https://svnweb.freebsd.org/changeset/base/326125 > > Log: > Mark kgmon(8) obsolete, redirecting users to pmcstat(8). If you are planning to remove kgmon you need to make it spit out a warning that it is being

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Rodney W. Grimes
> > Hi Devin, > > On Thu, 23 Nov 2017 01:33:39 -0800 > Devin Teske wrote: > > > > > > > > On Nov 22, 2017, at 11:15 PM, Emmanuel Vadot > > > wrote: > > > > > >> On 2017-11-22 17:38, Ian Lepore wrote: > > >>> On Wed, 2017-11-22 at 15:27 +,

Re: svn commit: r326125 - head/usr.sbin/kgmon

2017-11-23 Thread Bruce Evans
On Thu, 23 Nov 2017, Edward Tomasz Napierala wrote: Log: Mark kgmon(8) obsolete, redirecting users to pmcstat(8). It isn't obsolete. pmcstat can't do at least full (non-statistical) call graphs and high-resolution profiling. gmon in the kernel is slow to use in the SMP case and dangerous

svn commit: r326135 - head/contrib/binutils/bfd

2017-11-23 Thread Ed Maste
Author: emaste Date: Thu Nov 23 14:30:41 2017 New Revision: 326135 URL: https://svnweb.freebsd.org/changeset/base/326135 Log: bfd: fix segfault in the ihex parser on malformed ihex file From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made available under GPLv2 by Nick

svn commit: r326134 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:29:07 2017 New Revision: 326134 URL: https://svnweb.freebsd.org/changeset/base/326134 Log: Duplicate helpers after disabling inherited tracepoints during a fork. We may create probes in the nascent child process, so we first need to ensure that any

svn commit: r326132 - head/sys/geom/mirror

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:07:52 2017 New Revision: 326132 URL: https://svnweb.freebsd.org/changeset/base/326132 Log: Allow kern.geom.mirror.debug to be negative. A negative value can be used to suppress all prints from the gmirror kernel code, which can be useful when attempting

svn commit: r326131 - stable/11/sys/vm

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:03:10 2017 New Revision: 326131 URL: https://svnweb.freebsd.org/changeset/base/326131 Log: MFC r325528: Correct the type of foff. Modified: stable/11/sys/vm/vm_mmap.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r326130 - stable/11/sys/vm

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:02:35 2017 New Revision: 326130 URL: https://svnweb.freebsd.org/changeset/base/326130 Log: MFC r325561: Allow various page daemon parameters to be set from loader.conf. Modified: stable/11/sys/vm/vm_pageout.c Directory Properties: stable/11/ (props

svn commit: r326129 - in stable/11/sys/cddl: compat/opensolaris/kern contrib/opensolaris/uts/intel/dtrace

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 14:01:52 2017 New Revision: 326129 URL: https://svnweb.freebsd.org/changeset/base/326129 Log: MFC r325887: Avoid holding the process in uread() and uwrite(). Modified: stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_proc.c

svn commit: r326128 - stable/11/cddl/contrib/opensolaris/lib/libctf/common

2017-11-23 Thread Mark Johnston
Author: markj Date: Thu Nov 23 13:59:34 2017 New Revision: 326128 URL: https://svnweb.freebsd.org/changeset/base/326128 Log: MFC r324864, r324865: Cleanups for ctf.5. Modified: stable/11/cddl/contrib/opensolaris/lib/libctf/common/ctf.5 Directory Properties: stable/11/ (props changed)

svn commit: r326127 - in head/sys/dev: iscsi iser

2017-11-23 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 23 13:57:44 2017 New Revision: 326127 URL: https://svnweb.freebsd.org/changeset/base/326127 Log: Make sure the iSCSI I/O limits are set properly so that the ISCSIDSEND IOCTL can be used prior to the ISCSIDHANDOFF IOCTL which set the negotiated values. Else the

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-23 Thread Bruce Evans
On Thu, 23 Nov 2017, Konstantin Belousov wrote: On Thu, Nov 23, 2017 at 04:24:13AM +1100, Bruce Evans wrote: sysctl/sysctl.c: sysctl(8) has bogus support for prettyprinting struct vmtotal (sysctl shouldn't have any prettyprinting, especially not for structs that have specialized

svn commit: r326125 - head/usr.sbin/kgmon

2017-11-23 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Nov 23 12:41:05 2017 New Revision: 326125 URL: https://svnweb.freebsd.org/changeset/base/326125 Log: Mark kgmon(8) obsolete, redirecting users to pmcstat(8). MFC after:2 weeks Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r326123 - in head: include sys/amd64/include sys/i386/include sys/sys sys/x86/include

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 11:40:16 2017 New Revision: 326123 URL: https://svnweb.freebsd.org/changeset/base/326123 Log: Remove lint support from system headers and MD x86 headers. Reviewed by: dim, jhb Discussed with: imp Sponsored by: The FreeBSD Foundation Differential

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

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 11:25:11 2017 New Revision: 326122 URL: https://svnweb.freebsd.org/changeset/base/326122 Log: Kill all descendants of the reaper, even if they are descendants of a subordinate reaper. Also, mark reapers when listing pids. Reported by: Michael Zuo

svn commit: r326121 - head/sys/dev/efidev

2017-11-23 Thread Andrew Turner
Author: andrew Date: Thu Nov 23 10:34:38 2017 New Revision: 326121 URL: https://svnweb.freebsd.org/changeset/base/326121 Log: Zero struct efi_tm before setting the needed values. We don't use the dst or timezone fields so ensure these are set. Reported by: emaste Sponsored by: DARPA,

svn commit: r326120 - stable/11/sys/dev/ahci

2017-11-23 Thread Alexander Motin
Author: mav Date: Thu Nov 23 10:09:49 2017 New Revision: 326120 URL: https://svnweb.freebsd.org/changeset/base/326120 Log: MFC r325571: Add some PCI IDs found on AMD Epyc system. Modified: stable/11/sys/dev/ahci/ahci_pci.c Directory Properties: stable/11/ (props changed) Modified:

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Devin Teske
> On Nov 22, 2017, at 11:15 PM, Emmanuel Vadot wrote: > >> On 2017-11-22 17:38, Ian Lepore wrote: >>> On Wed, 2017-11-22 at 15:27 +, Emmanuel Vadot wrote: >>> Author: manu >>> Date: Wed Nov 22 15:27:47 2017 >>> New Revision: 326095 >>> URL:

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-23 Thread Emmanuel Vadot
Hi Devin, On Thu, 23 Nov 2017 01:33:39 -0800 Devin Teske wrote: > > > > On Nov 22, 2017, at 11:15 PM, Emmanuel Vadot wrote: > > > >> On 2017-11-22 17:38, Ian Lepore wrote: > >>> On Wed, 2017-11-22 at 15:27 +, Emmanuel Vadot wrote: > >>> Author:

svn commit: r326119 - in stable/11/sys/cam: ata scsi

2017-11-23 Thread Baptiste Daroussin
Author: bapt Date: Thu Nov 23 09:35:01 2017 New Revision: 326119 URL: https://svnweb.freebsd.org/changeset/base/326119 Log: MFC r325888: Add some 4k quirks for Samsung pm863a SSDs Submitted by: Nikita Kozlov Sponsored by: blade Differential Revision:

svn commit: r326118 - head/sys/netpfil/ipfw

2017-11-23 Thread Andrey V. Elsukov
Author: ae Date: Thu Nov 23 08:02:02 2017 New Revision: 326118 URL: https://svnweb.freebsd.org/changeset/base/326118 Log: Modify ipfw's dynamic states KPI. Hide the locking logic used in the dynamic states implementation from generic code. Rename ipfw_install_state() and