Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Wed, Feb 07, 2018 at 07:46:17AM +0100, Peter Holm wrote: > On Tue, Feb 06, 2018 at 04:45:49PM -0800, Gleb Smirnoff wrote: > > On Tue, Feb 06, 2018 at 04:42:13PM -0800, Gleb Smirnoff wrote: > > T> Hi Peter, > > T> > > T> can you please try this patch? In either case success > > T> or not, pl

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Tue, Feb 06, 2018 at 04:45:49PM -0800, Gleb Smirnoff wrote: > On Tue, Feb 06, 2018 at 04:42:13PM -0800, Gleb Smirnoff wrote: > T> Hi Peter, > T> > T> can you please try this patch? In either case success > T> or not, please provide me with dmesg. Thanks a lot! > > Sorry, patch was missing

svn commit: r328964 - head/sys/arm/allwinner

2018-02-06 Thread Kyle Evans
Author: kevans Date: Wed Feb 7 01:54:13 2018 New Revision: 328964 URL: https://svnweb.freebsd.org/changeset/base/328964 Log: if_awg: Skip emac reset if configured for internal PHY On the OrangePi One at least, emac reset when an ethernet cable is not plugged in seems to break ethernet. S

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
On Tue, Feb 06, 2018 at 04:42:13PM -0800, Gleb Smirnoff wrote: T> Hi Peter, T> T> can you please try this patch? In either case success T> or not, please provide me with dmesg. Thanks a lot! Sorry, patch was missing one file. 99.9% this is a no-op, but better use full patch. -- Gleb Smirnof

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
Hi Peter, can you please try this patch? In either case success or not, please provide me with dmesg. Thanks a lot! -- Gleb Smirnoff Index: uma_core.c === --- uma_core.c (revision 328955) +++ uma_core.c (working copy) @@ -96,6 +

Re: svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Rodney W. Grimes
[ Charset ISO-8859-1 unsupported, converting... ] > On Tue, 2018-02-06 at 11:25 -0800, Rodney W. Grimes wrote: > > > > > > Author: arichardson > > > Date: Tue Feb??6 15:41:35 2018 > > > New Revision: 328934 > > > URL: https://svnweb.freebsd.org/changeset/base/328934 > > > > > > Log: > > > ? Don't

Re: svn commit: r328951 - head/etc/rc.d

2018-02-06 Thread Rodney W. Grimes
> Author: feld (ports committer) > Date: Tue Feb 6 21:35:41 2018 > New Revision: 328951 > URL: https://svnweb.freebsd.org/changeset/base/328951 > > Log: > Refactor cleanvar to remove shell expansion vulnerability > > If any process creates a directory named "-P" in /var/run or > /var/spo

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Tue, Feb 06, 2018 at 03:06:35PM -0800, Gleb Smirnoff wrote: > On Tue, Feb 06, 2018 at 11:52:44PM +0100, Peter Holm wrote: > P> On Tue, Feb 06, 2018 at 02:15:55PM -0800, Gleb Smirnoff wrote: > P> > Peter, > P> > > P> > can you please check post r328952 kernel? > P> > > P> > P> Sure. > P>

svn commit: r328960 - head/sys/cam

2018-02-06 Thread Warner Losh
Author: imp Date: Tue Feb 6 23:21:08 2018 New Revision: 328960 URL: https://svnweb.freebsd.org/changeset/base/328960 Log: Keep a counter for number of requests completed with an error. Sponsored by: Netflix Modified: head/sys/cam/cam_iosched.c Modified: head/sys/cam/cam_iosched.c =

Re: svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Mark Millard via svn-src-head
Ian Lepore ian at freebsd.org wrote on Tue Feb 6 19:35:21 UTC 2018 : > I don't understand this idea of /usr/local "polluting" a system. It > seems to me exactly the opposite would be the case... if I have found > some 3rd party version of mktemp that I like better, it would be > installed in /usr

svn commit: r328959 - head/lib/libc/sys

2018-02-06 Thread Conrad Meyer
Author: cem Date: Tue Feb 6 23:12:47 2018 New Revision: 328959 URL: https://svnweb.freebsd.org/changeset/base/328959 Log: fsync.2: Cross-reference fsync(1) Reported by: rpokala Sponsored by: Dell EMC Isilon Modified: head/lib/libc/sys/fsync.2 Modified: head/lib/libc/sys/fsync.2

svn commit: r328958 - head/share/zoneinfo

2018-02-06 Thread Warner Losh
Author: imp Date: Tue Feb 6 23:12:16 2018 New Revision: 328958 URL: https://svnweb.freebsd.org/changeset/base/328958 Log: Avoid find -s, use find | sort instead. find -s was introduced to make the metalog more deterministic. However, find -s is not portable. find | sort is portable and

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
On Tue, Feb 06, 2018 at 11:52:44PM +0100, Peter Holm wrote: P> On Tue, Feb 06, 2018 at 02:15:55PM -0800, Gleb Smirnoff wrote: P> > Peter, P> > P> > can you please check post r328952 kernel? P> > P> P> Sure. P> P> FreeBSD 12.0-CURRENT #0 r328956: Tue Feb 6 23:26:58 CET 2018 P> p...@x4.o

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Tue, Feb 06, 2018 at 02:15:55PM -0800, Gleb Smirnoff wrote: > Peter, > > can you please check post r328952 kernel? > Sure. FreeBSD 12.0-CURRENT #0 r328956: Tue Feb 6 23:26:58 CET 2018 p...@x4.osted.lan:/usr/src/sys/i386/compile/PHO i386 FreeBSD clang version 6.0.0 (branches/release_

svn commit: r328957 - in head/sys: fs/ext2fs ufs/ufs

2018-02-06 Thread Pedro F. Giffuni
Author: pfg Date: Tue Feb 6 22:38:19 2018 New Revision: 328957 URL: https://svnweb.freebsd.org/changeset/base/328957 Log: {ext2|ufs}_readdir: Avoid setting negative ncookies. ncookies cannot be negative or the allocator will fail. This should only happen if a caller is very broken but we

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

2018-02-06 Thread Ian Lepore
Author: ian Date: Tue Feb 6 22:17:01 2018 New Revision: 328956 URL: https://svnweb.freebsd.org/changeset/base/328956 Log: Use const pointers for input data not modified by clock utility functions. Modified: head/sys/kern/subr_clock.c head/sys/kern/subr_fattime.c head/sys/sys/clock.h Mod

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
Peter, can you please check post r328952 kernel? -- Gleb Smirnoff ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r328955 - head/sys/vm

2018-02-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Feb 6 22:13:40 2018 New Revision: 328955 URL: https://svnweb.freebsd.org/changeset/base/328955 Log: Use correct arithmetic to calculate how many pages we need for kegs and hashes. There is no functional change with current sizes. Modified: head/sys/vm/uma_core.c

svn commit: r328954 - in head/sys: amd64/amd64 arm/arm cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs compat/linprocfs fs/tmpfs i386/i386 kern mips/mips powerpc/booke powerp...

2018-02-06 Thread Jeff Roberson
Author: jeff Date: Tue Feb 6 22:10:07 2018 New Revision: 328954 URL: https://svnweb.freebsd.org/changeset/base/328954 Log: Use per-domain locks for vm page queue free. Move paging control from global to per-domain state. Protect reservations with the free lock from the domain that they be

svn commit: r328953 - head/sys/vm

2018-02-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Feb 6 22:08:43 2018 New Revision: 328953 URL: https://svnweb.freebsd.org/changeset/base/328953 Log: Improve DIAGNOSTIC printf. Report using a boot page every time regardless of booted status. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c

svn commit: r328952 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
Author: glebius Date: Tue Feb 6 22:06:59 2018 New Revision: 328952 URL: https://svnweb.freebsd.org/changeset/base/328952 Log: Fix boot_pages calculation for machines that don't have UMA_MD_SMALL_ALLOC. o Call uma_startup1() after initializing kmem, vmem and domains. o Include 8 eight VM

svn commit: r328951 - head/etc/rc.d

2018-02-06 Thread Mark Felder
Author: feld (ports committer) Date: Tue Feb 6 21:35:41 2018 New Revision: 328951 URL: https://svnweb.freebsd.org/changeset/base/328951 Log: Refactor cleanvar to remove shell expansion vulnerability If any process creates a directory named "-P" in /var/run or /var/spool/lock it will caus

svn commit: r328950 - in head/sys/dev: mpr mps

2018-02-06 Thread Scott Long
Author: scottl Date: Tue Feb 6 21:01:38 2018 New Revision: 328950 URL: https://svnweb.freebsd.org/changeset/base/328950 Log: Cache the value of the request and reply frame size since it's used quite a bit in the normal operation of the driver. Covert it to represent bytes instead of 32bit

svn commit: r328949 - head/etc

2018-02-06 Thread Mark Felder
Author: feld (ports committer) Date: Tue Feb 6 20:12:05 2018 New Revision: 328949 URL: https://svnweb.freebsd.org/changeset/base/328949 Log: Fix firstboot fs mount logic The firstboot logic has an error which causes the filesystem to be mounted readonly even though root_rw_mount=YES. Thi

Re: svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Ian Lepore
On Tue, 2018-02-06 at 11:25 -0800, Rodney W. Grimes wrote: > > > > Author: arichardson > > Date: Tue Feb  6 15:41:35 2018 > > New Revision: 328934 > > URL: https://svnweb.freebsd.org/changeset/base/328934 > > > > Log: > >   Don't hardcode /usr/bin as the path for mktemp in build tools > >    > >

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Tue, Feb 06, 2018 at 10:28:39AM -0800, Gleb Smirnoff wrote: > Peter, > > On Tue, Feb 06, 2018 at 12:30:17PM +0100, Peter Holm wrote: > P> i386 also doesn't boot: > P> > P> FreeBSD 12.0-CURRENT #1 r328924: Tue Feb 6 11:51:17 CET 2018 > P> p...@x4.osted.lan:/usr/src/sys/i386/compile/PHO i

Re: svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Rodney W. Grimes
> Author: arichardson > Date: Tue Feb 6 15:41:35 2018 > New Revision: 328934 > URL: https://svnweb.freebsd.org/changeset/base/328934 > > Log: > Don't hardcode /usr/bin as the path for mktemp in build tools > > It won't work e.g. when crossbuilding from Ubuntu Linux as mktemp is in > /bin

svn commit: r328945 - head/sys/sys

2018-02-06 Thread Bjoern A. Zeeb
Author: bz Date: Tue Feb 6 19:14:15 2018 New Revision: 328945 URL: https://svnweb.freebsd.org/changeset/base/328945 Log: Remove a trailing whitspace. Modified: head/sys/sys/bus_dma.h Modified: head/sys/sys/bus_dma.h ===

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
Peter, On Tue, Feb 06, 2018 at 12:30:17PM +0100, Peter Holm wrote: P> i386 also doesn't boot: P> P> FreeBSD 12.0-CURRENT #1 r328924: Tue Feb 6 11:51:17 CET 2018 P> p...@x4.osted.lan:/usr/src/sys/i386/compile/PHO i386 P> FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLV

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Gleb Smirnoff
On Tue, Feb 06, 2018 at 10:54:05AM +, Andrew Turner wrote: A> > Author: glebius A> > Date: Tue Feb 6 04:16:00 2018 A> > New Revision: 328916 A> > URL: https://svnweb.freebsd.org/changeset/base/328916 A> > A> > Log: A> > Followup on r302393 by cperciva, improving calculation of boot pages re

svn commit: r328940 - head/sys/vm

2018-02-06 Thread Mark Johnston
Author: markj Date: Tue Feb 6 17:26:11 2018 New Revision: 328940 URL: https://svnweb.freebsd.org/changeset/base/328940 Log: Delete a declaration for a variable removed in r305362. Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h ===

svn commit: r328939 - head/contrib/gcc/config/mips

2018-02-06 Thread John Baldwin
Author: jhb Date: Tue Feb 6 17:01:10 2018 New Revision: 328939 URL: https://svnweb.freebsd.org/changeset/base/328939 Log: Use a workaround to compile the crt init functions correctly with clang. The MIPS assembly parser treats forward-declared local symbols as global symbols. This resul

Re: svn commit: r328933 - head/usr.bin/find

2018-02-06 Thread Eric van Gyzen
On 02/06/2018 09:41, Alex Richardson wrote: > +#if HAVE_STRUCT_STAT_ST_BIRTHTIME > else if (plan->flags & F_TIME_A) > ft = entry->fts_statp->st_atim; > else if (plan->flags & F_TIME_B) > ft = entry->fts_statp->st_birthtim; > +#endif Did you intend to put st_

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

2018-02-06 Thread Mark Johnston
Author: markj Date: Tue Feb 6 16:02:33 2018 New Revision: 328938 URL: https://svnweb.freebsd.org/changeset/base/328938 Log: Simplify synchronization read error handling. Since synchronization reads are performed by submitting a request to the external mirror provider, we know that the re

svn commit: r328937 - in head/sys/dev: mpr mps

2018-02-06 Thread Alexander Motin
Author: mav Date: Tue Feb 6 16:02:25 2018 New Revision: 328937 URL: https://svnweb.freebsd.org/changeset/base/328937 Log: Fix queue length reporting in mps(4) and mpr(4). Both drivers were found to report CAM bigger queue depth then they really can handle. It made them later under high

svn commit: r328936 - in head/sys/dev: mpr mps

2018-02-06 Thread Kenneth D. Merry
Author: ken Date: Tue Feb 6 15:58:22 2018 New Revision: 328936 URL: https://svnweb.freebsd.org/changeset/base/328936 Log: Diagnostic buffer fixes for the mps(4) and mpr(4) drivers. In mp{r,s}_diag_register(), which is used to register diagnostic buffers with the mp{r,s}(4) firmware, we a

svn commit: r328935 - head

2018-02-06 Thread Alex Richardson
Author: arichardson Date: Tue Feb 6 15:41:45 2018 New Revision: 328935 URL: https://svnweb.freebsd.org/changeset/base/328935 Log: crossbuild: Make the CHECK_TIME variable work on Linux Linux /usr/bin/find doesn't understand the -mtime -0s flag. Instead create a temporary file and compare

svn commit: r328934 - in head: . bin/sh

2018-02-06 Thread Alex Richardson
Author: arichardson Date: Tue Feb 6 15:41:35 2018 New Revision: 328934 URL: https://svnweb.freebsd.org/changeset/base/328934 Log: Don't hardcode /usr/bin as the path for mktemp in build tools It won't work e.g. when crossbuilding from Ubuntu Linux as mktemp is in /bin there. Reviewe

svn commit: r328933 - head/usr.bin/find

2018-02-06 Thread Alex Richardson
Author: arichardson Date: Tue Feb 6 15:41:26 2018 New Revision: 328933 URL: https://svnweb.freebsd.org/changeset/base/328933 Log: Allow compiling usr.bin/find on Linux and Mac When building FreeBSD the makefiles invoke find with various flags such as `-s` that aren't supported in the nat

svn commit: r328932 - head/sys/mips/mips

2018-02-06 Thread Alex Richardson
Author: arichardson Date: Tue Feb 6 15:41:15 2018 New Revision: 328932 URL: https://svnweb.freebsd.org/changeset/base/328932 Log: Make mips_postboot_fixup work when building the kernel with clang+lld The compiler/linker can align fake_preload anyway it would like. When building the kerne

svn commit: r328931 - head/share/man/man8

2018-02-06 Thread Dmitry Marakasov
Author: amdmi3 (ports committer) Date: Tue Feb 6 15:30:17 2018 New Revision: 328931 URL: https://svnweb.freebsd.org/changeset/base/328931 Log: - Document new ${name}_limits rc.conf option Approved by: cy MFC after:2 weeks (along with 328331 which introduced this option) Differenti

Re: svn commit: r328914 - in head/sys: kern ufs/ffs

2018-02-06 Thread Warner Losh
On Tue, Feb 6, 2018 at 1:09 AM, Conrad Meyer wrote: > Hi Kirk, > > On Mon, Feb 5, 2018 at 4:19 PM, Kirk McKusick > wrote: > > Author: mckusick > > Date: Tue Feb 6 00:19:46 2018 > > New Revision: 328914 > > URL: https://svnweb.freebsd.org/changeset/base/328914 > > > > Log: > > ... > > The seco

svn commit: r328930 - head/sys/modules/dtb/allwinner

2018-02-06 Thread Kyle Evans
Author: kevans Date: Tue Feb 6 14:57:03 2018 New Revision: 328930 URL: https://svnweb.freebsd.org/changeset/base/328930 Log: dtb/allwinner: Add sun7i-a20-lamobo-r1.dts (Banana Pi R1) FreeBSD boots on this board, but the ethernet switch is not currently supported, resulting in no ethernet

svn commit: r328928 - in head: contrib/libreadline gnu/lib gnu/lib/libreadline share/mk targets/pseudo/userland/gnu

2018-02-06 Thread Baptiste Daroussin
Author: bapt Date: Tue Feb 6 12:22:42 2018 New Revision: 328928 URL: https://svnweb.freebsd.org/changeset/base/328928 Log: Remove libreadline from the source tree, all consumers but gdb has been switched to libedit long ago, libreadline was built as an internallib for a while and kept only

svn commit: r328927 - head/contrib/gdb/gdb/tui

2018-02-06 Thread Baptiste Daroussin via svn-src-head
Author: bapt Date: Tue Feb 6 12:17:03 2018 New Revision: 328927 URL: https://svnweb.freebsd.org/changeset/base/328927 Log: Commit forgotten change in gdb allowing to use libedit Modified: head/contrib/gdb/gdb/tui/tui-io.c Modified: head/contrib/gdb/gdb/tui/tui-io.c =

Re: svn commit: r328489 - head/sys/conf

2018-02-06 Thread David Wolfskill
On Mon, Feb 05, 2018 at 01:32:04PM -0800, Jason Harmening wrote: > > Can you try downloading the raw diff from > https://reviews.freebsd.org/D14143 and > applying that to src? > For this morning's update of head (from r328876 to r328924), I reverted an earlier patch to src/sys/conf/kern.

svn commit: r328926 - in head/gnu/usr.bin/gdb: . gdb kgdb

2018-02-06 Thread Baptiste Daroussin
Author: bapt Date: Tue Feb 6 12:12:44 2018 New Revision: 328926 URL: https://svnweb.freebsd.org/changeset/base/328926 Log: Switch to use libedit instead of readline Modified: head/gnu/usr.bin/gdb/Makefile.inc head/gnu/usr.bin/gdb/gdb/Makefile head/gnu/usr.bin/gdb/kgdb/Makefile Modified:

svn commit: r328925 - in head: . gnu/usr.bin/gdb gnu/usr.bin/gdb/gdbtui targets/pseudo/userland/gnu tools/build/mk

2018-02-06 Thread Baptiste Daroussin
+# 20180206: remove gdbtui +OLD_FILES+=usr/bin/gdbtui # 20180201: Obsolete forth files OLD_FILES+=boot/efi.4th OLD_FILES+=boot/pcibios.4th - # 20180114: new clang import which bumps version from 5.0.1 to 6.0.0. OLD_FILES+=usr/lib/clang/5.0.1/include/sanitizer/allocator_interface.h OLD_FILES+=usr

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Peter Holm
On Tue, Feb 06, 2018 at 04:16:00AM +, Gleb Smirnoff wrote: > Author: glebius > Date: Tue Feb 6 04:16:00 2018 > New Revision: 328916 > URL: https://svnweb.freebsd.org/changeset/base/328916 > > Log: > Followup on r302393 by cperciva, improving calculation of boot pages > required > for UMA

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Andrew Turner
> On 6 Feb 2018, at 04:16, Gleb Smirnoff wrote: > > Author: glebius > Date: Tue Feb 6 04:16:00 2018 > New Revision: 328916 > URL: https://svnweb.freebsd.org/changeset/base/328916 > > Log: > Followup on r302393 by cperciva, improving calculation of boot pages required > for UMA startup. > >

svn commit: r328924 - head/sys/dev/etherswitch/arswitch

2018-02-06 Thread Adrian Chadd
Author: adrian Date: Tue Feb 6 08:35:49 2018 New Revision: 328924 URL: https://svnweb.freebsd.org/changeset/base/328924 Log: [arswitch] Implement the switch MAC address fetch API. The placeholders are here for some future "set" MAC address API. Tested: * AR9340 switch * AR8327

svn commit: r328923 - head/sbin/etherswitchcfg

2018-02-06 Thread Adrian Chadd
Author: adrian Date: Tue Feb 6 08:35:09 2018 New Revision: 328923 URL: https://svnweb.freebsd.org/changeset/base/328923 Log: [etherswitchcfg] print the switch MAC address if provided. Modified: head/sbin/etherswitchcfg/etherswitchcfg.c Modified: head/sbin/etherswitchcfg/etherswitchcfg.c ===

svn commit: r328922 - head/sys/dev/etherswitch

2018-02-06 Thread Adrian Chadd
Author: adrian Date: Tue Feb 6 08:34:50 2018 New Revision: 328922 URL: https://svnweb.freebsd.org/changeset/base/328922 Log: [etherswitch] add initial support for potentially configuring and fetching the switch MAC address. Switches that originate their own frames (eg obvious ones like Pa

Re: svn commit: r328914 - in head/sys: kern ufs/ffs

2018-02-06 Thread Conrad Meyer
Hi Kirk, On Mon, Feb 5, 2018 at 4:19 PM, Kirk McKusick wrote: > Author: mckusick > Date: Tue Feb 6 00:19:46 2018 > New Revision: 328914 > URL: https://svnweb.freebsd.org/changeset/base/328914 > > Log: > ... > The second problem was that the check hash computed at the end of the > read was in