svn commit: r356722 - stable/12/sbin/fsck_msdosfs

2020-01-13 Thread Xin LI
Author: delphij Date: Tue Jan 14 06:28:07 2020 New Revision: 356722 URL: https://svnweb.freebsd.org/changeset/base/356722 Log: MFC r356628: Require FAT to occupy at least one sector. Modified: stable/12/sbin/fsck_msdosfs/boot.c Directory Properties: stable/12/ (props changed) Modified: s

Re: svn commit: r356714 - head/sys/ufs/ffs

2020-01-13 Thread Pedro Giffuni
On 13/01/2020 21:00, Jeff Roberson wrote: Author: jeff Date: Tue Jan 14 02:00:24 2020 New Revision: 356714 URL: https://svnweb.freebsd.org/changeset/base/356714 Log: Fix a long standing bug in journaled soft-updates. The dirrem structure needs to handle file removal, directory removal,

svn commit: r356720 - head/sys/vm

2020-01-13 Thread Alexander Motin
Author: mav Date: Tue Jan 14 03:27:57 2020 New Revision: 356720 URL: https://svnweb.freebsd.org/changeset/base/356720 Log: Restore loop break in vm_pageout_lowmem(). r355004 removed return statement from this loop with intention to also call uma_reclaim_wakeup(). But in case of vm.lowmem

svn commit: r356719 - stable/12/sys/dev/smartpqi

2020-01-13 Thread Mark Johnston
Author: markj Date: Tue Jan 14 02:44:24 2020 New Revision: 356719 URL: https://svnweb.freebsd.org/changeset/base/356719 Log: MFC r356445: Decrease logging severity when adding a device or reading config table. PR: 243056 Modified: stable/12/sys/dev/smartpqi/smartpqi_discovery.c sta

svn commit: r356718 - stable/12/lib/libjail

2020-01-13 Thread Mark Johnston
Author: markj Date: Tue Jan 14 02:41:52 2020 New Revision: 356718 URL: https://svnweb.freebsd.org/changeset/base/356718 Log: MFC r356476: libjail: Handle an error from reallocarray() when trimming the buffer. PR: 243106 Modified: stable/12/lib/libjail/jail.c Directory Properties: s

svn commit: r356716 - head/sys/kern

2020-01-13 Thread Ryan Libby
Author: rlibby Date: Tue Jan 14 02:14:02 2020 New Revision: 356716 URL: https://svnweb.freebsd.org/changeset/base/356716 Log: malloc: remove assumptions about MINALLOCSIZE Remove assumptions about the minimum MINALLOCSIZE, in order to allow testing of smaller MINALLOCSIZE. A following pa

svn commit: r356717 - head/sys/vm

2020-01-13 Thread Ryan Libby
Author: rlibby Date: Tue Jan 14 02:14:15 2020 New Revision: 356717 URL: https://svnweb.freebsd.org/changeset/base/356717 Log: uma: split slabzone into two sizes By allowing more items per slab, we can improve memory efficiency for small allocs. If we were just to increase the bitmap size

svn commit: r356715 - head/sys/vm

2020-01-13 Thread Ryan Libby
Author: rlibby Date: Tue Jan 14 02:13:46 2020 New Revision: 356715 URL: https://svnweb.freebsd.org/changeset/base/356715 Log: uma: fixup some ktr messages Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision:https://reviews.freebsd.org/D23148 Modified: head

svn commit: r356714 - head/sys/ufs/ffs

2020-01-13 Thread Jeff Roberson
Author: jeff Date: Tue Jan 14 02:00:24 2020 New Revision: 356714 URL: https://svnweb.freebsd.org/changeset/base/356714 Log: Fix a long standing bug in journaled soft-updates. The dirrem structure needs to handle file removal, directory removal, file move, directory move, etc. The code in h

svn commit: r356713 - head/sys/dev/cxgbe/iw_cxgbe

2020-01-13 Thread Navdeep Parhar
Author: np Date: Tue Jan 14 01:43:04 2020 New Revision: 356713 URL: https://svnweb.freebsd.org/changeset/base/356713 Log: cxgbe/iw_cxgbe: Do not allow memory registrations with page size greater than 128MB, which is the maximum supported by the hardware in RDMA mode. Obtained from:

svn commit: r356712 - stable/11/sys/netinet

2020-01-13 Thread Alexander Motin
Author: mav Date: Tue Jan 14 00:51:35 2020 New Revision: 356712 URL: https://svnweb.freebsd.org/changeset/base/356712 Log: MFC r356240: Relax locking of carp_forus(). This fixes deadlock between CARP and bridge. Bridge calls this function taking CARP lock while holding bridge lock. Same

svn commit: r356711 - stable/12/sys/netinet

2020-01-13 Thread Alexander Motin
Author: mav Date: Tue Jan 14 00:50:30 2020 New Revision: 356711 URL: https://svnweb.freebsd.org/changeset/base/356711 Log: MFC r356240: Relax locking of carp_forus(). This fixes deadlock between CARP and bridge. Bridge calls this function taking CARP lock while holding bridge lock. Same

svn commit: r356710 - head/sys/powerpc/mpc85xx

2020-01-13 Thread Justin Hibbits
Author: jhibbits Date: Mon Jan 13 23:09:00 2020 New Revision: 356710 URL: https://svnweb.freebsd.org/changeset/base/356710 Log: powerpc/mpc85xx: Partially revert r356640 The count block was correct before. r356640 caused a read past the end of the tuple. Modified: head/sys/powerpc/mpc

svn commit: r356709 - head/usr.sbin/fstyp

2020-01-13 Thread Eric van Gyzen
Author: vangyzen Date: Mon Jan 13 22:36:29 2020 New Revision: 356709 URL: https://svnweb.freebsd.org/changeset/base/356709 Log: fstyp hammer2: remove dead code best_i will always be >= 0, so remove code to test otherwise. Reported by: Coverity CID: 1412244 MFC after:2

svn commit: r356708 - head/usr.sbin/fstyp

2020-01-13 Thread Eric van Gyzen
Author: vangyzen Date: Mon Jan 13 22:33:48 2020 New Revision: 356708 URL: https://svnweb.freebsd.org/changeset/base/356708 Log: fstyp hammer: use strlcpy Use strlcpy to guarantee NUL termination. Due to this, there is no need for strncmp; simply use strcmp. Reported by: Coverity

Re: svn commit: r356706 - head/sbin/savecore

2020-01-13 Thread Gleb Smirnoff
Eric, looks like this changes content format of info.X, whatever libxo output you choose, thus this change at minimum needs to be documented in UPDATING and in release notes for next release. On Mon, Jan 13, 2020 at 10:01:38PM +, Eric van Gyzen wrote: E> Author: vangyzen E> Date: Mon Jan 13

svn commit: r356707 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2020-01-13 Thread Alexander Motin
Author: mav Date: Mon Jan 13 22:06:16 2020 New Revision: 356707 URL: https://svnweb.freebsd.org/changeset/base/356707 Log: Map ECKSUM and EFRAGS from ZFS onto real errnos. Make it less confusing when, for example, stat sets errno to 122 because a checksum failed in ZFS: Before: getfa

svn commit: r356706 - head/sbin/savecore

2020-01-13 Thread Eric van Gyzen
Author: vangyzen Date: Mon Jan 13 22:01:37 2020 New Revision: 356706 URL: https://svnweb.freebsd.org/changeset/base/356706 Log: savecore: include time zone in info.N file This helps with event correlation when machines are distributed across multiple time zones. Format the time with

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

2020-01-13 Thread Eric van Gyzen
Author: vangyzen Date: Mon Jan 13 21:49:27 2020 New Revision: 356705 URL: https://svnweb.freebsd.org/changeset/base/356705 Log: Add missing comma in nfsv4_errstr Reported by: Coverity CID: 1412243 Sponsored by: Dell EMC Isilon Modified: head/sys/fs/nfs/nfsv4_errstr.h Modif

svn commit: r356704 - in head/sys: dev/netmap net

2020-01-13 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jan 13 21:47:23 2020 New Revision: 356704 URL: https://svnweb.freebsd.org/changeset/base/356704 Log: netmap: disable passthrough with no hypervisor support The netmap passthrough subsystem requires proper support in the hypervisor. In particular, two PCI device

svn commit: r356703 - head/sys/dev/vmware/vmxnet3

2020-01-13 Thread Vincenzo Maffione
Author: vmaffione Date: Mon Jan 13 21:26:17 2020 New Revision: 356703 URL: https://svnweb.freebsd.org/changeset/base/356703 Log: vmx: fix initialization of TSO related descriptor fields Fix a mistake introduced by r343291, which ported the vmx(4) driver to iflib. In case of TSO, the hle

svn commit: r356702 - head/sys/netinet

2020-01-13 Thread Gleb Smirnoff
Author: glebius Date: Mon Jan 13 21:12:10 2020 New Revision: 356702 URL: https://svnweb.freebsd.org/changeset/base/356702 Log: Fix yet another regression from r354484. Error code from cr_cansee() aliases with hard error from other operations. Reported by: flo Modified: head/sys/netine

svn commit: r356701 - head/contrib/llvm-project/llvm/lib/Target/Mips

2020-01-13 Thread Dimitry Andric
Author: dim Date: Mon Jan 13 20:31:10 2020 New Revision: 356701 URL: https://svnweb.freebsd.org/changeset/base/356701 Log: Merge commit f46ba4f07 from llvm git (by Simon Atanasyan): [mips] Use less registers to load address of TargetExternalSymbol There is no pattern matched `add h

svn commit: r356700 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Toomas Soome
Author: tsoome Date: Mon Jan 13 20:02:27 2020 New Revision: 356700 URL: https://svnweb.freebsd.org/changeset/base/356700 Log: Backout 356693. The libsa malloc does provide necessary alignment and memalign by 4 will reduce alignment for some platforms. Thanks for Ian for pointing this out. M

Re: svn commit: r356693 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Toomas Soome via svn-src-all
> On 13. Jan 2020, at 20:45, Ian Lepore wrote: > > On Mon, 2020-01-13 at 20:43 +0200, Toomas Soome wrote: >>> On 13. Jan 2020, at 20:31, Ian Lepore wrote: >>> >>> On Mon, 2020-01-13 at 18:22 +, Toomas Soome wrote: Author: tsoome Date: Mon Jan 13 18:22:54 2020 New Revision:

svn commit: r356699 - stable/12/share/man/man5

2020-01-13 Thread Bryan Drewery
Author: bdrewery Date: Mon Jan 13 19:34:15 2020 New Revision: 356699 URL: https://svnweb.freebsd.org/changeset/base/356699 Log: Regen src.conf.5 Modified: stable/12/share/man/man5/src.conf.5 Modified: stable/12/share/man/man5/src.conf.5 ===

svn commit: r356698 - stable/11/usr.sbin/mergemaster

2020-01-13 Thread Bryan Drewery
Author: bdrewery Date: Mon Jan 13 19:33:26 2020 New Revision: 356698 URL: https://svnweb.freebsd.org/changeset/base/356698 Log: MFC r355379,r355381: r355379: Run make in parallel. r355381: Use full path to sysctl(8) since /sbin is not in PATH. Modified: stable/11/usr.sb

svn commit: r356697 - stable/12/usr.sbin/mergemaster

2020-01-13 Thread Bryan Drewery
Author: bdrewery Date: Mon Jan 13 19:30:18 2020 New Revision: 356697 URL: https://svnweb.freebsd.org/changeset/base/356697 Log: MFC r355379,r355381: r355379: Run make in parallel. r355381: Use full path to sysctl(8) since /sbin is not in PATH. Modified: stable/12/usr.sb

svn commit: r356696 - stable/12/share/mk

2020-01-13 Thread Bryan Drewery
Author: bdrewery Date: Mon Jan 13 19:22:52 2020 New Revision: 356696 URL: https://svnweb.freebsd.org/changeset/base/356696 Log: MFC r355588: Fix WITHOUT_CLANG build. PR: 240507 Modified: stable/12/share/mk/src.opts.mk Directory Properties: stable/12/ (props changed)

Re: svn commit: r356693 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Ian Lepore
On Mon, 2020-01-13 at 20:43 +0200, Toomas Soome wrote: > > On 13. Jan 2020, at 20:31, Ian Lepore wrote: > > > > On Mon, 2020-01-13 at 18:22 +, Toomas Soome wrote: > > > Author: tsoome > > > Date: Mon Jan 13 18:22:54 2020 > > > New Revision: 356693 > > > URL: https://svnweb.freebsd.org/changes

Re: svn commit: r356693 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Toomas Soome via svn-src-all
> On 13. Jan 2020, at 20:31, Ian Lepore wrote: > > On Mon, 2020-01-13 at 18:22 +, Toomas Soome wrote: >> Author: tsoome >> Date: Mon Jan 13 18:22:54 2020 >> New Revision: 356693 >> URL: https://svnweb.freebsd.org/changeset/base/356693 >> >> Log: >> loader: allocate properly aligned buffe

Re: svn commit: r356693 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Ian Lepore
On Mon, 2020-01-13 at 18:22 +, Toomas Soome wrote: > Author: tsoome > Date: Mon Jan 13 18:22:54 2020 > New Revision: 356693 > URL: https://svnweb.freebsd.org/changeset/base/356693 > > Log: > loader: allocate properly aligned buffer for network packet > > Use memalign(4, size) to ensure

svn commit: r356695 - head/usr.bin/diff

2020-01-13 Thread Mark Johnston
Author: markj Date: Mon Jan 13 18:29:47 2020 New Revision: 356695 URL: https://svnweb.freebsd.org/changeset/base/356695 Log: Optimize diff -q. Once we know whether the files differ, we don't need to do any further work. PR: 242828 Submitted by: fehmi noyan isi (original

svn commit: r356694 - head/share/man/man4

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:26:27 2020 New Revision: 356694 URL: https://svnweb.freebsd.org/changeset/base/356694 Log: tap(4): also note that we drop configured addresses This provides a specific pointer for users of tap(4) to understand why their interfaces are losing their addres

svn commit: r356693 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Toomas Soome
Author: tsoome Date: Mon Jan 13 18:22:54 2020 New Revision: 356693 URL: https://svnweb.freebsd.org/changeset/base/356693 Log: loader: allocate properly aligned buffer for network packet Use memalign(4, size) to ensure we have properly aligned buffer. MFC after:2 weeks Modified:

svn commit: r356692 - in stable: 11/usr.sbin/camdd 12/usr.sbin/camdd

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:22:51 2020 New Revision: 356692 URL: https://svnweb.freebsd.org/changeset/base/356692 Log: MFC r356617: camdd: initialize devs earlier GCC9 points out that devs may be used initialized after the bailout label; in-fact, if num_io_opts != 2 then it is. Mov

svn commit: r356692 - in stable: 11/usr.sbin/camdd 12/usr.sbin/camdd

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:22:51 2020 New Revision: 356692 URL: https://svnweb.freebsd.org/changeset/base/356692 Log: MFC r356617: camdd: initialize devs earlier GCC9 points out that devs may be used initialized after the bailout label; in-fact, if num_io_opts != 2 then it is. Mov

svn commit: r356691 - stable/12/tests/sys/fs/fusefs

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:20:04 2020 New Revision: 356691 URL: https://svnweb.freebsd.org/changeset/base/356691 Log: MFC r356614: tests: fusefs: silence remaining unsigned/signed warnings External GCC turns these into errors; cast to long to silence them. Modified: stable/12/tes

svn commit: r356690 - in stable: 11/usr.sbin/inetd 12/usr.sbin/inetd

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:18:24 2020 New Revision: 356690 URL: https://svnweb.freebsd.org/changeset/base/356690 Log: MFC r356601-r356602: inetd fixes for WITHOUT_* knobs r356601: inetd: free WITHOUT_INET6_SUPPORT build of warnings If inetd is compiled without inet6 support,

svn commit: r356690 - in stable: 11/usr.sbin/inetd 12/usr.sbin/inetd

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:18:24 2020 New Revision: 356690 URL: https://svnweb.freebsd.org/changeset/base/356690 Log: MFC r356601-r356602: inetd fixes for WITHOUT_* knobs r356601: inetd: free WITHOUT_INET6_SUPPORT build of warnings If inetd is compiled without inet6 support,

svn commit: r356689 - stable/12/sys/arm/allwinner

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 18:16:57 2020 New Revision: 356689 URL: https://svnweb.freebsd.org/changeset/base/356689 Log: MFC r356600: a10_ahci: grab the target-supply regulator and enable it This regulator is marked regulator-boot-on, but it will get shutdown if it's not actually use

svn commit: r356688 - head/share/man/man4

2020-01-13 Thread Kyle Evans
Author: kevans Date: Mon Jan 13 17:02:42 2020 New Revision: 356688 URL: https://svnweb.freebsd.org/changeset/base/356688 Log: Install tap(4) manpage as vmnet(4) as well If one comes across a vmnet interface, this is a useful pointer to have towards what it actually is if they're otherwise

svn commit: r356687 - in head/usr.bin: . gprof

2020-01-13 Thread Kristof Provost
Author: kp Date: Mon Jan 13 16:52:26 2020 New Revision: 356687 URL: https://svnweb.freebsd.org/changeset/base/356687 Log: gprof: Enable riscv Add a missing riscv.h header file, and fix the check for riscv (must test MACHINE_CPUARCH, not MACHINE_ARCH, if we want to use 'riscv'). Spons

svn commit: r356686 - head/release

2020-01-13 Thread Glen Barber
Author: gjb Date: Mon Jan 13 16:31:58 2020 New Revision: 356686 URL: https://svnweb.freebsd.org/changeset/base/356686 Log: Fix a typo. MFC after:3 days Sponsored by: Rubicon Communications, LLC (netgate.com) Modified: head/release/Makefile Modified: head/release/Makefile =

svn commit: r356685 - head/release

2020-01-13 Thread Glen Barber
Author: gjb Date: Mon Jan 13 16:31:00 2020 New Revision: 356685 URL: https://svnweb.freebsd.org/changeset/base/356685 Log: Ensure the TYPE, BRANCH, and REVISION variables are set in cloudware targets when OSRELEASE is overridden. Submitted by: Trond Endrestol PR: 243287 MFC

svn commit: r356684 - head/share/man/man5

2020-01-13 Thread Ed Maste
Author: emaste Date: Mon Jan 13 14:50:22 2020 New Revision: 356684 URL: https://svnweb.freebsd.org/changeset/base/356684 Log: src.conf.5: regen after r356615, KERBEROS_SUPPORT dep on KERBEROS Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5 ==

Re: svn commit: r356682 - in head/sys: compat/linuxkpi/common/src kern

2020-01-13 Thread Hans Petter Selasky
On 2020-01-13 15:30, Konstantin Belousov wrote: Author: kib Date: Mon Jan 13 14:30:19 2020 New Revision: 356682 URL:https://svnweb.freebsd.org/changeset/base/356682 Log: Code must not unlock a mutex while owning the thread lock. Because the thread lock is not recursive. --HPS _

svn commit: r356683 - in head/sys/ufs: ffs ufs

2020-01-13 Thread Mateusz Guzik
Author: mjg Date: Mon Jan 13 14:33:51 2020 New Revision: 356683 URL: https://svnweb.freebsd.org/changeset/base/356683 Log: ufs: relax an overzealous assert added in r356671 Part of i_flag can persist across a drop to hold count of 0, at which point the vnode is taken off the lazy list. Th

svn commit: r356682 - in head/sys: compat/linuxkpi/common/src kern

2020-01-13 Thread Konstantin Belousov
Author: kib Date: Mon Jan 13 14:30:19 2020 New Revision: 356682 URL: https://svnweb.freebsd.org/changeset/base/356682 Log: Code must not unlock a mutex while owning the thread lock. Reviewed by: hselasky, markj Sponsored by: Mellanox Technologies MFC after:1 week Differential rev

svn commit: r356681 - in stable/10/sys: dev/usb sys

2020-01-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 13 11:33:03 2020 New Revision: 356681 URL: https://svnweb.freebsd.org/changeset/base/356681 Log: MFC r356409: Add own counter for cancelled USB transfers. Do not count these as errors. Bump the FreeBSD version to force recompilation of external modules.

svn commit: r356680 - in stable/11/sys: dev/usb sys

2020-01-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 13 11:30:07 2020 New Revision: 356680 URL: https://svnweb.freebsd.org/changeset/base/356680 Log: MFC r356409: Add own counter for cancelled USB transfers. Do not count these as errors. Bump the FreeBSD version to force recompilation of external modules.

svn commit: r356679 - in stable/12/sys: dev/usb sys

2020-01-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Jan 13 11:27:30 2020 New Revision: 356679 URL: https://svnweb.freebsd.org/changeset/base/356679 Log: MFC r356409: Add own counter for cancelled USB transfers. Do not count these as errors. Bump the freebsd version to force recompilation of external modules.