svn commit: r356595 - head/sys/powerpc/aim

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 04:13:16 2020 New Revision: 356595 URL: https://svnweb.freebsd.org/changeset/base/356595 Log: powerpc: Prevent infinite loop in moea_sync_icache() This applies r344049 to the 32-bit pmap. Reported by: Mark Millard Modified:

svn commit: r356594 - stable/12/lib/csu/mips

2020-01-09 Thread Kyle Evans
Author: kevans Date: Fri Jan 10 03:46:58 2020 New Revision: 356594 URL: https://svnweb.freebsd.org/changeset/base/356594 Log: MFC r356327-r356328: mips: csu: fix compilation w/ LLVM r356327: mips: csu: fix compilation w/ LLVM GCC issues the warning, but with LLVM it is fatal- no

svn commit: r356593 - in stable: 11/lib/libbe 11/sbin/bectl/tests 12/lib/libbe 12/sbin/bectl/tests

2020-01-09 Thread Kyle Evans
Author: kevans Date: Fri Jan 10 03:37:52 2020 New Revision: 356593 URL: https://svnweb.freebsd.org/changeset/base/356593 Log: MFC r356279: libbe(3): promote dependent clones when destroying a BE When removing a boot environment iterate over the dependents and process the snapshots by

svn commit: r356593 - in stable: 11/lib/libbe 11/sbin/bectl/tests 12/lib/libbe 12/sbin/bectl/tests

2020-01-09 Thread Kyle Evans
Author: kevans Date: Fri Jan 10 03:37:52 2020 New Revision: 356593 URL: https://svnweb.freebsd.org/changeset/base/356593 Log: MFC r356279: libbe(3): promote dependent clones when destroying a BE When removing a boot environment iterate over the dependents and process the snapshots by

svn commit: r356592 - head/sys/riscv/riscv

2020-01-09 Thread Mitchell Horne
Author: mhorne Date: Fri Jan 10 03:17:28 2020 New Revision: 356592 URL: https://svnweb.freebsd.org/changeset/base/356592 Log: Replace inline assembly with rdtime macro This macro is used elsewhere and is slightly cleaner. NFC. Modified: head/sys/riscv/riscv/timer.c Modified:

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

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 03:16:40 2020 New Revision: 356591 URL: https://svnweb.freebsd.org/changeset/base/356591 Log: powerpc: Mark cpu_feature-based sysctls as MP_SAFE hw.floatingpoint and hw.altivec are effectively runtime constants (bits from the cpu_feature bitfield), so

svn commit: r356590 - head/sys/powerpc/powernv

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 01:24:49 2020 New Revision: 356590 URL: https://svnweb.freebsd.org/changeset/base/356590 Log: powerpc/powernv: Un-Giant-ify opal_nvram driver It may be possible to make this completely lock free, but for now it's using a statically allocated bounce

svn commit: r356589 - stable/11/sys/geom

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:55:37 2020 New Revision: 356589 URL: https://svnweb.freebsd.org/changeset/base/356589 Log: MFC r356214: Avoid few memory accesses in g_disk_done(). Modified: stable/11/sys/geom/geom_disk.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r356588 - stable/12/sys/geom

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:53:20 2020 New Revision: 356588 URL: https://svnweb.freebsd.org/changeset/base/356588 Log: MFC r356214: Avoid few memory accesses in g_disk_done(). Modified: stable/12/sys/geom/geom_disk.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r356587 - stable/11/sys/geom/virstor

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:48:00 2020 New Revision: 356587 URL: https://svnweb.freebsd.org/changeset/base/356587 Log: MFC r356181: Fix GEOM_VIRSTOR orphanization. Previous code closed and destroyed consumer even with I/O in progress. This patch postpones the destruction till the

svn commit: r356586 - stable/12/sys/geom/virstor

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:47:37 2020 New Revision: 356586 URL: https://svnweb.freebsd.org/changeset/base/356586 Log: MFC r356181: Fix GEOM_VIRSTOR orphanization. Previous code closed and destroyed consumer even with I/O in progress. This patch postpones the destruction till the

svn commit: r356584 - stable/12/sys/geom/mountver

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:46:33 2020 New Revision: 356584 URL: https://svnweb.freebsd.org/changeset/base/356584 Log: MFC r356178: Fix GEOM_MOUNTVER orphanization. Previous code closed and detached consumer even with I/O still in progress. This patch adds locking and request

svn commit: r356585 - stable/11/sys/geom/mountver

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:46:59 2020 New Revision: 356585 URL: https://svnweb.freebsd.org/changeset/base/356585 Log: MFC r356178: Fix GEOM_MOUNTVER orphanization. Previous code closed and detached consumer even with I/O still in progress. This patch adds locking and request

svn commit: r356582 - stable/12/sys/geom/shsec

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:45:27 2020 New Revision: 356582 URL: https://svnweb.freebsd.org/changeset/base/356582 Log: MFC r356162, r356182: Fix GEOM_SHSEC orphanization. Previous code closed and destroyed consumer even with I/O in progress. This patch postpones the destruction till

svn commit: r356583 - stable/11/sys/geom/shsec

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:45:52 2020 New Revision: 356583 URL: https://svnweb.freebsd.org/changeset/base/356583 Log: MFC r356162, r356182: Fix GEOM_SHSEC orphanization. Previous code closed and destroyed consumer even with I/O in progress. This patch postpones the destruction till

svn commit: r356581 - stable/11/sys/geom/gate

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:44:07 2020 New Revision: 356581 URL: https://svnweb.freebsd.org/changeset/base/356581 Log: MFC r356151: Fix GEOM_GATE orphanization. Previous code closed and destroyed direct read consumer even with I/O still in progress. This patch adds locking and

svn commit: r356580 - stable/12/sys/geom/gate

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:43:40 2020 New Revision: 356580 URL: https://svnweb.freebsd.org/changeset/base/356580 Log: MFC r356151: Fix GEOM_GATE orphanization. Previous code closed and destroyed direct read consumer even with I/O still in progress. This patch adds locking and

svn commit: r356579 - stable/11/sys/geom/uzip

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:43:08 2020 New Revision: 356579 URL: https://svnweb.freebsd.org/changeset/base/356579 Log: MFC r356138: Fix GEOM_UZIP orphanization. Previous code destroyed softc even with provider still open, that resulted in panic under load. This change postpones the

svn commit: r356578 - stable/12/sys/geom/uzip

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:42:39 2020 New Revision: 356578 URL: https://svnweb.freebsd.org/changeset/base/356578 Log: MFC r356138: Fix GEOM_UZIP orphanization. Previous code destroyed softc even with provider still open, that resulted in panic under load. This change postpones the

svn commit: r356577 - stable/11/sys/geom/vinum

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:42:05 2020 New Revision: 356577 URL: https://svnweb.freebsd.org/changeset/base/356577 Log: MFC r356138: Reimplement gvinum orphanization. gvinum was the only GEOM class, using consumer nstart/nend fields. Making it do its own accounting for orphanization

svn commit: r356576 - stable/12/sys/geom/vinum

2020-01-09 Thread Alexander Motin
Author: mav Date: Fri Jan 10 00:41:15 2020 New Revision: 356576 URL: https://svnweb.freebsd.org/changeset/base/356576 Log: MFC r356108: Modified: stable/12/sys/geom/vinum/geom_vinum.h stable/12/sys/geom/vinum/geom_vinum_events.c stable/12/sys/geom/vinum/geom_vinum_plex.c

svn commit: r356575 - stable/12/sys/i386/i386

2020-01-09 Thread Mark Johnston
Author: markj Date: Fri Jan 10 00:39:44 2020 New Revision: 356575 URL: https://svnweb.freebsd.org/changeset/base/356575 Log: MFC r356442: Consistently use pmap_t instead of struct pmap *. Modified: stable/12/sys/i386/i386/pmap.c Directory Properties: stable/12/ (props changed)

svn commit: r356574 - head/sys/cddl/dev/dtrace/arm

2020-01-09 Thread Ian Lepore
Author: ian Date: Thu Jan 9 22:51:37 2020 New Revision: 356574 URL: https://svnweb.freebsd.org/changeset/base/356574 Log: Remove scary-looking printf output that happens when you kldload dtrace on arm. Replace it with a comment block explaining why the function is empty on 32-bit arm.

svn commit: r356573 - in stable: 11/release 12/release

2020-01-09 Thread Glen Barber
Author: gjb Date: Thu Jan 9 21:50:15 2020 New Revision: 356573 URL: https://svnweb.freebsd.org/changeset/base/356573 Log: MFC r353440: Increase the default VMSIZE for raw, qcow2, vhd, and vmdk virtual machine images due to 'filesystem full' failures. Sponsored by: Rubicon

svn commit: r356573 - in stable: 11/release 12/release

2020-01-09 Thread Glen Barber
Author: gjb Date: Thu Jan 9 21:50:15 2020 New Revision: 356573 URL: https://svnweb.freebsd.org/changeset/base/356573 Log: MFC r353440: Increase the default VMSIZE for raw, qcow2, vhd, and vmdk virtual machine images due to 'filesystem full' failures. Sponsored by: Rubicon

svn commit: r356572 - stable/11/stand/i386/libi386

2020-01-09 Thread Toomas Soome
Author: tsoome Date: Thu Jan 9 21:40:59 2020 New Revision: 356572 URL: https://svnweb.freebsd.org/changeset/base/356572 Log: MFC r356570: loader: bioscd probe can get sector size 0 With buggy BIOS, it may happen we get sector size reported 0 for cd, and then the default 512 is used,

svn commit: r356571 - stable/12/stand/i386/libi386

2020-01-09 Thread Toomas Soome
Author: tsoome Date: Thu Jan 9 21:37:50 2020 New Revision: 356571 URL: https://svnweb.freebsd.org/changeset/base/356571 Log: MFC r356570: loader: bioscd probe can get sector size 0 With buggy BIOS, it may happen we get sector size reported 0 for cd, and then the default 512 is used,

svn commit: r356570 - head/stand/i386/libi386

2020-01-09 Thread Toomas Soome
Author: tsoome Date: Thu Jan 9 21:21:08 2020 New Revision: 356570 URL: https://svnweb.freebsd.org/changeset/base/356570 Log: loader: bioscd probe can get sector size 0 With buggy BIOS, it may happen we get sector size reported 0 for cd, and then the default 512 is used, which is quite

Re: svn commit: r356569 - head/lib/libc/locale

2020-01-09 Thread Conrad Meyer
On Thu, Jan 9, 2020 at 12:49 Mark Johnston wrote: > Author: markj > Date: Thu Jan 9 20:49:26 2020 > New Revision: 356569 > URL: https://svnweb.freebsd.org/changeset/base/356569 > > Log: > libc: Fix a few bugs in the xlocale collation code. > > - Fix checks for mmap() failures. [1] > - Set

svn commit: r356569 - head/lib/libc/locale

2020-01-09 Thread Mark Johnston
Author: markj Date: Thu Jan 9 20:49:26 2020 New Revision: 356569 URL: https://svnweb.freebsd.org/changeset/base/356569 Log: libc: Fix a few bugs in the xlocale collation code. - Fix checks for mmap() failures. [1] - Set the "map" and "maplen" fields of struct xlocale_collate so that

svn commit: r356568 - stable/12/sys/dev/cxgbe/iw_cxgbe

2020-01-09 Thread Navdeep Parhar
Author: np Date: Thu Jan 9 20:45:01 2020 New Revision: 356568 URL: https://svnweb.freebsd.org/changeset/base/356568 Log: MFC r355566: cxgbe/iw_cxgbe: Support 64b length in the memory registration routines. Submitted by: bharat @ chelsio Sponsored by: Chelsio Communications

svn commit: r356567 - in head/share: examples/etc mk

2020-01-09 Thread Jung-uk Kim
Author: jkim Date: Thu Jan 9 20:07:38 2020 New Revision: 356567 URL: https://svnweb.freebsd.org/changeset/base/356567 Log: Catch up with Clang 9.0. Modified: head/share/examples/etc/make.conf head/share/mk/bsd.cpu.mk Modified: head/share/examples/etc/make.conf

svn commit: r356566 - stable/11/contrib/smbfs/lib/smb

2020-01-09 Thread Baptiste Daroussin
Author: bapt Date: Thu Jan 9 19:58:05 2020 New Revision: 356566 URL: https://svnweb.freebsd.org/changeset/base/356566 Log: MFC r356317 (by arrowd): mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters. PR: 231656 Approved by: bapt Differential

svn commit: r356565 - stable/12/contrib/smbfs/lib/smb

2020-01-09 Thread Baptiste Daroussin
Author: bapt Date: Thu Jan 9 19:56:25 2020 New Revision: 356565 URL: https://svnweb.freebsd.org/changeset/base/356565 Log: MFC r356317 (by arrowd): mount_smbfs: Issue a warning when .nsmbrc section name contains lowercase characters. PR: 231656 Approved by: bapt Differential

svn commit: r356564 - head/sys/dev/usb/controller

2020-01-09 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 19:22:11 2020 New Revision: 356564 URL: https://svnweb.freebsd.org/changeset/base/356564 Log: dwc_otg: fix fdt attachment for newer bcm2708-usb nodes The newer versions of RPi FDT flipped the order of the interrupts specification and added an

svn commit: r356563 - head/sys/vm

2020-01-09 Thread Mark Johnston
Author: markj Date: Thu Jan 9 19:17:42 2020 New Revision: 356563 URL: https://svnweb.freebsd.org/changeset/base/356563 Log: UMA: Don't destroy zones after the system shutdown process starts. Some kernel subsystems, notably ZFS, will destroy UMA zones from a shutdown eventhandler. This

svn commit: r356562 - head/sys/arm/broadcom/bcm2835

2020-01-09 Thread Kyle Evans
Author: kevans Date: Thu Jan 9 19:13:09 2020 New Revision: 356562 URL: https://svnweb.freebsd.org/changeset/base/356562 Log: bcm2835_vcbus: hide 'checking root' messages under bootverbose Modified: head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.c Modified:

svn commit: r356561 - head/sys/opencrypto

2020-01-09 Thread John Baldwin
Author: jhb Date: Thu Jan 9 18:29:59 2020 New Revision: 356561 URL: https://svnweb.freebsd.org/changeset/base/356561 Log: Add stricter checking on mac key lengths. Negative lengths are always invalid. The key length should also be zero for hash algorithms that do not accept a key.

svn commit: r356560 - head/share/mk

2020-01-09 Thread Warner Losh
Author: imp Date: Thu Jan 9 18:14:48 2020 New Revision: 356560 URL: https://svnweb.freebsd.org/changeset/base/356560 Log: Add note to remind me there are three choices for arm32 floating point. hard use floating point hardware, pass registers to functions in floating point

svn commit: r356559 - in head/sys: net netinet netinet6 sys

2020-01-09 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 9 17:21:00 2020 New Revision: 356559 URL: https://svnweb.freebsd.org/changeset/base/356559 Log: Add fibnum, family and vnet pointer to each rib head. Having metadata such as fibnum or vnet in the struct rib_head is handy as it eases building functionality

svn commit: r356558 - in stable/12: sbin/ifconfig share/man/man4 sys/net

2020-01-09 Thread Mark Johnston
Author: markj Date: Thu Jan 9 16:47:59 2020 New Revision: 356558 URL: https://svnweb.freebsd.org/changeset/base/356558 Log: MFC r356029: lagg: Clean up handling of the rr_limit option. Modified: stable/12/sbin/ifconfig/ifconfig.8 stable/12/share/man/man4/lagg.4

svn commit: r356557 - head/sys/cam

2020-01-09 Thread Warner Losh
Author: imp Date: Thu Jan 9 16:34:54 2020 New Revision: 356557 URL: https://svnweb.freebsd.org/changeset/base/356557 Log: Const-poison the cam_sim_* convenience accessor functions. These don't modify the cam_sim, so make that parameter const. Modified: head/sys/cam/cam_sim.h Modified:

svn commit: r356556 - head/sys/cam/scsi

2020-01-09 Thread Gleb Popov
Author: arrowd (ports committer) Date: Thu Jan 9 15:21:42 2020 New Revision: 356556 URL: https://svnweb.freebsd.org/changeset/base/356556 Log: Fix typo: MANGAEMENT_PROTOCOL_OUT -> MANAGEMENT_PROTOCOL_OUT. Approved by: allanjude Modified: head/sys/cam/scsi/scsi_all.h Modified:

svn commit: r356555 - head/sys/kern

2020-01-09 Thread Mark Johnston
Author: markj Date: Thu Jan 9 15:02:48 2020 New Revision: 356555 URL: https://svnweb.freebsd.org/changeset/base/356555 Log: Change malloc_domain() to return the allocation size to the caller. Otherwise the malloc type accounting in malloc_domainset(9) is wrong after r355203.

svn commit: r356554 - in head: sbin/ifconfig sys/net

2020-01-09 Thread Mark Johnston
Author: markj Date: Thu Jan 9 14:58:41 2020 New Revision: 356554 URL: https://svnweb.freebsd.org/changeset/base/356554 Log: lagg: Further cleanup of the rr_limit option. Add an option flag so that arbitrary updates to a lagg's configuration do not clear sc_stride. Preseve compatibility

svn commit: r356553 - head/share/mk

2020-01-09 Thread Ed Maste
Author: emaste Date: Thu Jan 9 14:12:57 2020 New Revision: 356553 URL: https://svnweb.freebsd.org/changeset/base/356553 Log: Revert r356515 - add LLVM_LIBUNWIND back to sparc64 BROKEN_OPTIONS r356552 reverted the untested build fix for LLVM libunwind on sparc64, so mark it broken again.

svn commit: r356552 - in head/contrib/llvm-project/libunwind: include src

2020-01-09 Thread Ed Maste
Author: emaste Date: Thu Jan 9 14:10:11 2020 New Revision: 356552 URL: https://svnweb.freebsd.org/changeset/base/356552 Log: revert r356513: libunwind: untested attempt to fix sparc64 build The patch is untested and is almost certainly insufficient. Per the author's request, revert

svn commit: r356551 - head/usr.sbin/arp

2020-01-09 Thread Eugene Grosbein
Author: eugen Date: Thu Jan 9 11:58:26 2020 New Revision: 356551 URL: https://svnweb.freebsd.org/changeset/base/356551 Log: arp(8): avoid segfaulting due to out-of-bounds memory access Fix obvious mistake that sometimes results in reading memory past end of an array. PR:

svn commit: r356550 - head/sys/arm64/include

2020-01-09 Thread Andrew Turner
Author: andrew Date: Thu Jan 9 10:26:36 2020 New Revision: 356550 URL: https://svnweb.freebsd.org/changeset/base/356550 Log: Add atomic_testandset/clear on arm64. These will reportedly be used in future uma changes. MFC after:2 weeks Sponsored by: DARPA, AFRL Differential

svn commit: r356549 - head/libexec/rtld-elf

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 10:05:45 2020 New Revision: 356549 URL: https://svnweb.freebsd.org/changeset/base/356549 Log: rtld: Return error if $ORIGIN for a dlopen-ed library cannot be resolved ... instead of killing the process. The same behaviour of terminating image activation if

svn commit: r356548 - head/libexec/rtld-elf

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 10:00:24 2020 New Revision: 356548 URL: https://svnweb.freebsd.org/changeset/base/356548 Log: Resolve relative argv0 for direct exec mode to absolute path for AT_EXECPATH. We know the binary relative name and can reliably calculate cwd path. Because

svn commit: r356547 - stable/11/libexec/rtld-elf

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 09:47:23 2020 New Revision: 356547 URL: https://svnweb.freebsd.org/changeset/base/356547 Log: MFC r356300, r356503: Fix AT_EXECPATH for direct exec mode. Modified: stable/11/libexec/rtld-elf/rtld.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r356546 - stable/11/sys/kern

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 09:30:14 2020 New Revision: 356546 URL: https://svnweb.freebsd.org/changeset/base/356546 Log: MFC r356292: Style: remove trailing spaces/tabs. Modified: stable/11/sys/kern/kern_umtx.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r356545 - head/sys/dev/usb/controller

2020-01-09 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 9 09:29:24 2020 New Revision: 356545 URL: https://svnweb.freebsd.org/changeset/base/356545 Log: Fix a XHCI driver issue with Intel's Gemini Lake SOC. Do not configure any endpoint twice, but instead keep track of which endpoints are configured on a per

svn commit: r356544 - stable/12/libexec/rtld-elf

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 09:14:54 2020 New Revision: 356544 URL: https://svnweb.freebsd.org/changeset/base/356544 Log: MFC r356300, r356503: Fix AT_EXECPATH for direct exec mode. Modified: stable/12/libexec/rtld-elf/rtld.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r356543 - in stable/12/sys/amd64: include vmm vmm/io

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 08:29:31 2020 New Revision: 356543 URL: https://svnweb.freebsd.org/changeset/base/356543 Log: MFC r356296: bhyve: terminate waiting loops if thread suspension is requested. PR: 242724 Modified: stable/12/sys/amd64/include/vmm.h

svn commit: r356542 - in stable/12/sys: kern sys

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 08:24:09 2020 New Revision: 356542 URL: https://svnweb.freebsd.org/changeset/base/356542 Log: MFC r356293: Rename umtxq_check_susp() to thread_check_susp(). Modified: stable/12/sys/kern/kern_thread.c stable/12/sys/kern/kern_umtx.c stable/12/sys/sys/proc.h

svn commit: r356541 - stable/12/sys/kern

2020-01-09 Thread Konstantin Belousov
Author: kib Date: Thu Jan 9 08:20:31 2020 New Revision: 356541 URL: https://svnweb.freebsd.org/changeset/base/356541 Log: MFC r356292: Style: remove trailing spaces/tabs. Modified: stable/12/sys/kern/kern_umtx.c Directory Properties: stable/12/ (props changed) Modified: