svn commit: r326791 - head/usr.bin/gzip

2017-12-11 Thread Xin LI
Author: delphij Date: Tue Dec 12 06:56:21 2017 New Revision: 326791 URL: https://svnweb.freebsd.org/changeset/base/326791 Log: Close the correct file descriptor. MFC after:2 weeks Modified: head/usr.bin/gzip/gzip.c Modified: head/usr.bin/gzip/gzip.c =

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Alexey Dokuchaev
On Mon, Dec 11, 2017 at 10:14:04AM -0800, Nathan Whitehorn wrote: > I think this name might confuse people looking for "syscons". Can it be > renamed? Also, if it is ARM-specific, maybe it belongs in sys/arm? +1 for rename, it's very confusing now. ./danfe

svn commit: r326790 - stable/10/usr.bin/find

2017-12-11 Thread Xin LI
Author: delphij Date: Tue Dec 12 04:08:30 2017 New Revision: 326790 URL: https://svnweb.freebsd.org/changeset/base/326790 Log: Revert r326763. The change depends on r264387 which was not merged. Pointy hat to:delphij Modified: stable/10/usr.bin/find/function.c Directory Properti

svn commit: r326789 - head/sys/powerpc/powerpc

2017-12-11 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 12 03:16:10 2017 New Revision: 326789 URL: https://svnweb.freebsd.org/changeset/base/326789 Log: Decode some PowerPC trap registers Decode on Book-E: * ESR (Exception Syndrome Register) * MCSR (Machine Check Status Register) On AIM: * MSSSR (Memory

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Bruce Evans
On Mon, 11 Dec 2017, Nathan Whitehorn wrote: I think this name might confuse people looking for "syscons". Can it be renamed? Also, if it is ARM-specific, maybe it belongs in sys/arm? The wouldn't find it since it is not in any man page, GENERIC, or even in NOTES. It is not as bad as some dri

Re: svn commit: r326771 - head/usr.sbin/efibootmgr

2017-12-11 Thread Bruce Evans
On Mon, 11 Dec 2017, Warner Losh wrote: Log: Unbreak gcc build by using (void) for functions that take no args. You mean "Fix a bug (K&R function definition without even a C99 prototype) that is detected by compilers like gcc with non-broken support for the -W flag that we used to detect such

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Don Lewis
On 12 Dec, Eugene Grosbein wrote: > Now I run FreeBSD 11/i386 as my home router with IPSEC and torrent > client, and I run several virtualized routers with IPSEC tunnels, > jabber and mail server, squid and ZFS for src/obj/ports compression > and they all easily crash unless kern.kstack_pages rais

svn commit: r326788 - stable/11/sys/dev/vnic

2017-12-11 Thread Ed Maste
Author: emaste Date: Tue Dec 12 01:20:45 2017 New Revision: 326788 URL: https://svnweb.freebsd.org/changeset/base/326788 Log: MFC r326597: vnic: apply hardware L3 checksum only for IPv4 Previously we set the csum_l3 flag for IPv4 and IPv6, but only IPv4 should have header checksumming app

svn commit: r326787 - stable/11/contrib/llvm/tools/lld/ELF

2017-12-11 Thread Ed Maste
Author: emaste Date: Tue Dec 12 01:19:18 2017 New Revision: 326787 URL: https://svnweb.freebsd.org/changeset/base/326787 Log: MFC r326547: lld: make -v behave similarly to GNU ld.bfd Previously, lld exited with an error status if the only option given to the command was -v. GNU linkers gr

svn commit: r326786 - head/usr.bin/gzip

2017-12-11 Thread Conrad Meyer
Author: cem Date: Tue Dec 12 01:19:08 2017 New Revision: 326786 URL: https://svnweb.freebsd.org/changeset/base/326786 Log: gzip(1): Remove duplicate close() CID: 1383560 Reported by: Coverity Sponsored by: Dell EMC Isilon Modified: head/usr.bin/gzip/gzip.c Modified: head/u

svn commit: r326785 - vendor-sys/illumos/dist/uts/common/dtrace

2017-12-11 Thread Mark Johnston
Author: markj Date: Tue Dec 12 00:51:39 2017 New Revision: 326785 URL: https://svnweb.freebsd.org/changeset/base/326785 Log: 8880 improve DTrace error checking illumos/illumos-gate@2cf374268f3e1c9e9be6367466b183d27632583a https://github.com/illumos/illumos-gate/commit/2cf374268f3e1c9e9be

svn commit: r326784 - head/stand/common

2017-12-11 Thread Warner Losh
Author: imp Date: Mon Dec 11 23:15:43 2017 New Revision: 326784 URL: https://svnweb.freebsd.org/changeset/base/326784 Log: Revert part of 362772. It was causing problems for includes and making the menus disappear. Sponsored by: Netflix Modified: head/stand/common/interp_forth.c Modif

svn commit: r326783 - head/sys/dev/syscon

2017-12-11 Thread Kyle Evans
Author: kevans Date: Mon Dec 11 22:55:51 2017 New Revision: 326783 URL: https://svnweb.freebsd.org/changeset/base/326783 Log: Correct a typo in syscon driver 'modify' logic Not previously caught because the current consumer (not yet in tree) doesn't use the 'modify' bits (yet). Repor

svn commit: r326782 - in stable/11: lib/libcam/tests sys/cam

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:47:26 2017 New Revision: 326782 URL: https://svnweb.freebsd.org/changeset/base/326782 Log: MFC r304443, r326034, r326065 r304443 by imp: Improve the pattern matching so that internal *'s work, as well as [set] notation. This fixes pattern matching for

svn commit: r326781 - stable/11/usr.sbin/periodic

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:36:01 2017 New Revision: 326781 URL: https://svnweb.freebsd.org/changeset/base/326781 Log: MFC r326041: periodic: fix exit status for nonexistent arguments When called with an absolute pathname, periodic should attempt to execute every script in th

svn commit: r326780 - in stable/11: etc/mtree usr.bin/head usr.bin/head/tests

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:33:11 2017 New Revision: 326780 URL: https://svnweb.freebsd.org/changeset/base/326780 Log: MFC r326039: Add ATF tests for head(1) Submitted by: Fred Schlecter Reviewed by: asomers, jilles Differential Revision:

svn commit: r326779 - stable/11/sys/cam/scsi

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:30:58 2017 New Revision: 326779 URL: https://svnweb.freebsd.org/changeset/base/326779 Log: MFC r326036: da(4): Short-circuit unnecessary BIO_FLUSH commands sys/cam/scsi/scsi_da.c Complete BIO_FLUSH commands immediately if the da(4) device has

svn commit: r326778 - stable/11/sbin/camcontrol

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:24:29 2017 New Revision: 326778 URL: https://svnweb.freebsd.org/changeset/base/326778 Log: MFC r326032: Print ZAC device type in "camcontrol identify" output ZAC (Zoned-device ATA Command set) is the standard for addressing SMR (shingled magnetic r

svn commit: r326777 - stable/11/sys/cam/scsi

2017-12-11 Thread Alan Somers
Author: asomers Date: Mon Dec 11 20:21:35 2017 New Revision: 326777 URL: https://svnweb.freebsd.org/changeset/base/326777 Log: MFC r325959: Add assertion in probedone() that we're holding the device lock. Submitted by: ken Reviewed by: asomers Sponsored by: Spectra Logic Corp Mod

svn commit: r326776 - in head/contrib/llvm/tools/clang: include/clang/Sema lib/Sema

2017-12-11 Thread Dimitry Andric
Author: dim Date: Mon Dec 11 20:04:40 2017 New Revision: 326776 URL: https://svnweb.freebsd.org/changeset/base/326776 Log: Pull in r320396 from upstream clang trunk (by Malcolm Parsons): [Sema] Fix crash in unused-lambda-capture warning for VLAs Summary: Clang was crashing when

svn commit: r326775 - head/sys/net

2017-12-11 Thread Stephen Hurd
Author: shurd Date: Mon Dec 11 20:01:28 2017 New Revision: 326775 URL: https://svnweb.freebsd.org/changeset/base/326775 Log: Increment encap_pad_mbuf_fail when m_dup() fails in padding Previously, the counter was only incremented when m_append() failed. Since the function can also fail o

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
12.12.2017 2:12, Rodney W. Grimes wrote: >>> Not sure about IPSEC and ZFS. But I was NOT able to reproduce the issue by >>> just using >>> an SCTP association on a 32-bit VM using FreeBSD 11.1. So right now I don't >>> know what >>> is wrong and therefore what could be fixed... >> >> You just go

svn commit: r326774 - in head/sys: amd64/amd64 cddl/contrib/opensolaris/uts/common/sys cddl/contrib/opensolaris/uts/intel/dtrace cddl/contrib/opensolaris/uts/powerpc/dtrace i386/i386 powerpc/powerp...

2017-12-11 Thread Mark Johnston
Author: markj Date: Mon Dec 11 19:21:39 2017 New Revision: 326774 URL: https://svnweb.freebsd.org/changeset/base/326774 Log: Pass the trap frame to fasttrap hooks. The DTrace fasttrap entry points expect a struct reg containing the register values of the calling thread. Perform the conver

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Rodney W. Grimes
> 12.12.2017 1:52, Michael Tuexen wrote: > > > Not sure about IPSEC and ZFS. But I was NOT able to reproduce the issue by > > just using > > an SCTP association on a 32-bit VM using FreeBSD 11.1. So right now I don't > > know what > > is wrong and therefore what could be fixed... > > You just g

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
12.12.2017 1:52, Michael Tuexen wrote: > Not sure about IPSEC and ZFS. But I was NOT able to reproduce the issue by > just using > an SCTP association on a 32-bit VM using FreeBSD 11.1. So right now I don't > know what > is wrong and therefore what could be fixed... You just got lucky. Kernel s

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Michael Tuexen
> On 11. Dec 2017, at 17:21, Eugene Grosbein wrote: > > 11.12.2017 22:08, Konstantin Belousov пишет: >> On Mon, Dec 11, 2017 at 06:03:36PM +0700, Eugene Grosbein wrote: >>> I do not try to contradict other usage patterns. In fact, I'm eager to know >>> a practical example of such pattern: a task,

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
12.12.2017 0:33, Rodney W. Grimes пишет: > [ Charset UTF-8 unsupported, converting... ] >> 11.12.2017 23:45, Alexey Dokuchaev wrote: >> Understood. While I'm sure that modern internet browsers make it uncomfortable to browse with less than 4G total RAM (e.g. 2GB) available for the sy

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Ian Lepore
On Mon, 2017-12-11 at 10:14 -0800, Nathan Whitehorn wrote: > I think this name might confuse people looking for "syscons". Can it > be  > renamed? Also, if it is ARM-specific, maybe it belongs in sys/arm? > -Nathan > > On 12/11/17 10:04, Kyle Evans wrote: > > > > Author: kevans > > Date: Mon Dec

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Nathan Whitehorn
I think this name might confuse people looking for "syscons". Can it be renamed? Also, if it is ARM-specific, maybe it belongs in sys/arm? -Nathan On 12/11/17 10:04, Kyle Evans wrote: Author: kevans Date: Mon Dec 11 18:04:04 2017 New Revision: 326773 URL: https://svnweb.freebsd.org/changeset/ba

svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Kyle Evans
Author: kevans Date: Mon Dec 11 18:04:04 2017 New Revision: 326773 URL: https://svnweb.freebsd.org/changeset/base/326773 Log: Add generic 'syscon' driver Upstream dts for allwinner will require a syscon driver, since the emac node coming in 4.15 will be using xref to /soc/syscon for confi

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Rodney W. Grimes
... > > > > We need to break the developers model that i386 is dead and that i386 is > > not running on extremly modern hardware due to the factor of virtualization. > > > > Output from one of my VM's running inside bhyve: > > > > # uname -a > > FreeBSD filestore.dnsmgr.net 11.1-RELEASE FreeBSD

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > 11.12.2017 23:45, Alexey Dokuchaev wrote: > > >> Understood. While I'm sure that modern internet browsers make it > >> uncomfortable to browse with less than 4G total RAM (e.g. 2GB) available > >> for the system thus requiring amd64, > > > > Browsing

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
11.12.2017 23:45, Alexey Dokuchaev wrote: >> Understood. While I'm sure that modern internet browsers make it >> uncomfortable to browse with less than 4G total RAM (e.g. 2GB) available >> for the system thus requiring amd64, > > Browsing just fine on 2G RAM with Firefox, both under GNU/Linux and

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Alexey Dokuchaev
On Mon, Dec 11, 2017 at 11:21:06PM +0700, Eugene Grosbein wrote: > 11.12.2017 22:08, Konstantin Belousov пишет: > > Plain workstation use, like X11+browser+editor+some other programs easily > > allocates 1000+ threads. It was still possible to use 32bit x86 for that, > > of course in max memory co

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
11.12.2017 22:09, Rodney W. Grimes write: > THis is a mistake, there is a huge worled of i386 deployment, not all > the world needs, or even wants amd64, especially in teh virtualization > world when you are running anything with less than 4G of memory, which > I would argue is a huge depolyement

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
11.12.2017 22:08, Konstantin Belousov пишет: > On Mon, Dec 11, 2017 at 06:03:36PM +0700, Eugene Grosbein wrote: >> I do not try to contradict other usage patterns. In fact, I'm eager to know >> a practical example of such pattern: a task, an application, anything real? > Plain workstation use, like

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Konstantin Belousov
On Mon, Dec 11, 2017 at 07:33:08AM -0800, Rodney W. Grimes wrote: > > On Mon, Dec 11, 2017 at 07:09:10AM -0800, Rodney W. Grimes wrote: > > > The current comment about a pcb, I thought that code was changed > > > so we only put the pointer to a pcb on the stack. > > > > pcb is on top of the stack,

svn commit: r326772 - in head/stand: common efi/loader i386/loader mips/beri/loader ofw/common powerpc/kboot powerpc/ps3 sparc64/loader userboot/userboot

2017-12-11 Thread Warner Losh
Author: imp Date: Mon Dec 11 16:18:05 2017 New Revision: 326772 URL: https://svnweb.freebsd.org/changeset/base/326772 Log: Fix regression with lua import Don't print when we can't find a file. Copy it instead to the error buffer. Higher level routines determine if it's appropriate to prin

svn commit: r326771 - head/usr.sbin/efibootmgr

2017-12-11 Thread Warner Losh
Author: imp Date: Mon Dec 11 16:17:53 2017 New Revision: 326771 URL: https://svnweb.freebsd.org/changeset/base/326771 Log: Unbreak gcc build by using (void) for functions that take no args. Sponsored by: Netflix Modified: head/usr.sbin/efibootmgr/efibootmgr.c Modified: head/usr.sbin/efi

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Alexey Dokuchaev
On Mon, Dec 11, 2017 at 07:09:10AM -0800, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > New Revision: 326758 > > URL: https://svnweb.freebsd.org/changeset/base/326758 > > > > Log: > > i386: Bump KSTACK_PAGES default to match amd64 > > > > Logically, extend r2862

svn commit: r326770 - head/sys/vm

2017-12-11 Thread Mark Johnston
Author: markj Date: Mon Dec 11 15:33:24 2017 New Revision: 326770 URL: https://svnweb.freebsd.org/changeset/base/326770 Log: Use a dedicated counter for inactive queue scans. The laundry thread keeps track of the number of inactive queue scans performed by the page daemon, and was previou

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Rodney W. Grimes
> On Mon, Dec 11, 2017 at 07:09:10AM -0800, Rodney W. Grimes wrote: > > The current comment about a pcb, I thought that code was changed > > so we only put the pointer to a pcb on the stack. > > pcb is on top of the stack, followed by the userspace FPU registers save > area. I do not see any sens

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Konstantin Belousov
On Mon, Dec 11, 2017 at 07:09:10AM -0800, Rodney W. Grimes wrote: > The current comment about a pcb, I thought that code was changed > so we only put the pointer to a pcb on the stack. pcb is on top of the stack, followed by the userspace FPU registers save area. I do not see any sense in existen

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: cem > Date: Mon Dec 11 04:32:37 2017 > New Revision: 326758 > URL: https://svnweb.freebsd.org/changeset/base/326758 > > Log: > i386: Bump KSTACK_PAGES default to match amd64 > > Logically, extend r286288 to cover all threads, by default

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Konstantin Belousov
On Mon, Dec 11, 2017 at 06:03:36PM +0700, Eugene Grosbein wrote: > I do not try to contradict other usage patterns. In fact, I'm eager to know > a practical example of such pattern: a task, an application, anything real? Plain workstation use, like X11+browser+editor+some other programs easily allo

svn commit: r326769 - head/usr.bin/ctlstat

2017-12-11 Thread Baptiste Daroussin
Author: bapt Date: Mon Dec 11 14:54:42 2017 New Revision: 326769 URL: https://svnweb.freebsd.org/changeset/base/326769 Log: Remove hard coded number of lun definition The number of lun exposed is now exposed via sysctl by the kernel. Use that number in ctlstat instead of the hardcoded ver

svn commit: r326768 - head/stand

2017-12-11 Thread Warner Losh
Author: imp Date: Mon Dec 11 14:47:23 2017 New Revision: 326768 URL: https://svnweb.freebsd.org/changeset/base/326768 Log: Fix a comment to be more accurate Modified: head/stand/defs.mk Modified: head/stand/defs.mk =

svn commit: r326767 - stable/11/usr.bin/ctlstat

2017-12-11 Thread Alexander Motin
Author: mav Date: Mon Dec 11 14:38:42 2017 New Revision: 326767 URL: https://svnweb.freebsd.org/changeset/base/326767 Log: MFC r326273: Make ctlstat -n option work reasonably for sparse LUN list. Modified: stable/11/usr.bin/ctlstat/ctlstat.c Directory Properties: stable/11/ (props changed

svn commit: r326766 - stable/11/contrib/bsnmp/snmpd

2017-12-11 Thread Andrey V. Elsukov
Author: ae Date: Mon Dec 11 12:38:50 2017 New Revision: 326766 URL: https://svnweb.freebsd.org/changeset/base/326766 Log: MFC r326510: Fix format string warning with enabled DEBUGGING. Modified: stable/11/contrib/bsnmp/snmpd/config.c Directory Properties: stable/11/ (props changed) M

svn commit: r326765 - head/contrib/ofed/include

2017-12-11 Thread Konstantin Belousov
Author: kib Date: Mon Dec 11 11:59:45 2017 New Revision: 326765 URL: https://svnweb.freebsd.org/changeset/base/326765 Log: ofed: Define barriers for mips and arm. I used the strongest barriers available on the architectures, so if the future analysis show that it is excessive, the barrier

svn commit: r326764 - head/contrib/ofed/librdmacm

2017-12-11 Thread Konstantin Belousov
Author: kib Date: Mon Dec 11 11:57:46 2017 New Revision: 326764 URL: https://svnweb.freebsd.org/changeset/base/326764 Log: ofed: Remove duplicated symbols from the version file. ld.bfd accepts multiple listing of the same symbol in the version script. lld is stricter and errors out. Sinc

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
On 11.12.2017 17:52, Konstantin Belousov wrote: >> I still wonder if there is really such load pattern that creates "enough >> threads" >> for i386 to make 4-pages stack troublesome. > Yes, there is such load pattern, it is when you do create threads. Your > load, as described, is static. Peter'

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Konstantin Belousov
On Mon, Dec 11, 2017 at 05:26:12PM +0700, Eugene Grosbein wrote: > On 11.12.2017 16:19, Konstantin Belousov wrote: > > On Mon, Dec 11, 2017 at 04:32:37AM +, Conrad Meyer wrote: > >> Author: cem > >> Date: Mon Dec 11 04:32:37 2017 > >> New Revision: 326758 > >> URL: https://svnweb.freebsd.org/ch

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Eugene Grosbein
On 11.12.2017 16:19, Konstantin Belousov wrote: > On Mon, Dec 11, 2017 at 04:32:37AM +, Conrad Meyer wrote: >> Author: cem >> Date: Mon Dec 11 04:32:37 2017 >> New Revision: 326758 >> URL: https://svnweb.freebsd.org/changeset/base/326758 >> >> Log: >> i386: Bump KSTACK_PAGES default to match

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-11 Thread Konstantin Belousov
On Mon, Dec 11, 2017 at 04:32:37AM +, Conrad Meyer wrote: > Author: cem > Date: Mon Dec 11 04:32:37 2017 > New Revision: 326758 > URL: https://svnweb.freebsd.org/changeset/base/326758 > > Log: > i386: Bump KSTACK_PAGES default to match amd64 i386 is not amd64, the change is wrong. i386 has