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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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: 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

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: 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: 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: 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: 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: 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: