svn commit: r352434 - in head/sys/mips: include mips

2019-09-16 Thread Jason A. Harmening
Author: jah Date: Tue Sep 17 03:39:31 2019 New Revision: 352434 URL: https://svnweb.freebsd.org/changeset/base/352434 Log: mips: move support for temporary mappings above KSEG0 to per-CPU data This is derived from similar work done in r310481 for i386 and r312610 for armv6/armv7. Addition

svn commit: r352433 - head/sys/vm

2019-09-16 Thread Doug Moore
Author: dougm Date: Tue Sep 17 02:53:59 2019 New Revision: 352433 URL: https://svnweb.freebsd.org/changeset/base/352433 Log: Remove dead code from vm_map_unlink_entry made dead by r351476, and also a no-longer-used enumerant. Reviewed by: alc Approved by: markj (mentor, implicit) Test

Re: Re; svn commit: r352393 - head/sys/fs/nfsclient

2019-09-16 Thread Rick Macklem
Konstantin Belousov wrote: >On Mon, Sep 16, 2019 at 03:27:02PM +, Rick Macklem wrote: >> Hi Kostik, >> >> I'm afraid there was a reason that only certain cases (where the file was >> being shrunk) did the vnode_pager_setsize() call after the NFS node >> lock is released. >> >> See the commit lo

svn commit: r352432 - head/share/misc

2019-09-16 Thread Dmitri Goutnik
Author: dmgk (ports committer) Date: Tue Sep 17 00:22:20 2019 New Revision: 352432 URL: https://svnweb.freebsd.org/changeset/base/352432 Log: Amend r352422, add missing 'n' Reported by: yuripv Approved by: araujo (mentor) Differential Revision:https://reviews.freebsd.org/D2167

svn commit: r352431 - head/libexec/rc/rc.d

2019-09-16 Thread John-Mark Gurney
Author: jmg Date: Mon Sep 16 22:48:40 2019 New Revision: 352431 URL: https://svnweb.freebsd.org/changeset/base/352431 Log: fix the article to be correct... Modified: head/libexec/rc/rc.d/growfs Modified: head/libexec/rc/rc.d/growfs

svn commit: r352430 - in head/sys/riscv: conf riscv

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:17:16 2019 New Revision: 352430 URL: https://svnweb.freebsd.org/changeset/base/352430 Log: RISC-V: Support EARLY_AP_STARTUP The EARLY_AP_STARTUP option initializes non-boot processors much sooner during startup. This adds support for this option on RIS

svn commit: r352429 - stable/11/lib/libc/sys

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:02:14 2019 New Revision: 352429 URL: https://svnweb.freebsd.org/changeset/base/352429 Log: MFC r352048: Fix cpuwhich_t column width Modified: stable/11/lib/libc/sys/cpuset.2 Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/l

svn commit: r352428 - stable/12/lib/libc/sys

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:00:29 2019 New Revision: 352428 URL: https://svnweb.freebsd.org/changeset/base/352428 Log: MFC r352048: Fix cpuwhich_t column width Modified: stable/12/lib/libc/sys/cpuset.2 Directory Properties: stable/12/ (props changed) Modified: stable/12/lib/l

svn commit: r352427 - in head/sys: fs/tmpfs kern sys ufs/ffs

2019-09-16 Thread Mateusz Guzik
Author: mjg Date: Mon Sep 16 21:37:47 2019 New Revision: 352427 URL: https://svnweb.freebsd.org/changeset/base/352427 Log: vfs: convert struct mount counters to per-cpu There are 3 counters modified all the time in this structure - one for keeping the structure alive, one for preventing u

svn commit: r352426 - in head/sys: kern ufs/ffs

2019-09-16 Thread Mateusz Guzik
Author: mjg Date: Mon Sep 16 21:33:16 2019 New Revision: 352426 URL: https://svnweb.freebsd.org/changeset/base/352426 Log: vfs: manage mnt_writeopcount with atomics See r352424. Reviewed by: kib, jeff Tested by:pho Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r352425 - head/sys/kern

2019-09-16 Thread Mateusz Guzik
Author: mjg Date: Mon Sep 16 21:32:21 2019 New Revision: 352425 URL: https://svnweb.freebsd.org/changeset/base/352425 Log: vfs: manage mnt_lockref with atomics See r352424. Reviewed by: kib, jeff Tested by:pho Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r352424 - in head/sys: cddl/compat/opensolaris/kern kern sys vm

2019-09-16 Thread Mateusz Guzik
Author: mjg Date: Mon Sep 16 21:31:02 2019 New Revision: 352424 URL: https://svnweb.freebsd.org/changeset/base/352424 Log: vfs: manage mnt_ref with atomics New primitive is introduced to denote sections can operate locklessly on aspects of struct mount, but which can also be disabled if n

svn commit: r352423 - head/usr.bin/calendar/calendars

2019-09-16 Thread Dmitri Goutnik
Author: dmgk (ports committer) Date: Mon Sep 16 20:43:20 2019 New Revision: 352423 URL: https://svnweb.freebsd.org/changeset/base/352423 Log: Add myself (dmgk) to calendar.freebsd Approved by: tz (mentor) Differential Revision:https://reviews.freebsd.org/D21675 Modified: head/

svn commit: r352422 - head/share/misc

2019-09-16 Thread Dmitri Goutnik
Author: dmgk (ports committer) Date: Mon Sep 16 20:41:37 2019 New Revision: 352422 URL: https://svnweb.freebsd.org/changeset/base/352422 Log: Add myself (dmgk) as a ports committer Approved by: tz (mentor) Differential Revision:https://reviews.freebsd.org/D21672 Modified: head

svn commit: r352421 - head/stand/libsa

2019-09-16 Thread Toomas Soome
Author: tsoome Date: Mon Sep 16 20:28:08 2019 New Revision: 352421 URL: https://svnweb.freebsd.org/changeset/base/352421 Log: loader: Malloc(0) should return NULL. We really should not allocate anything with size 0. Modified: head/stand/libsa/zalloc_malloc.c Modified: head/stand/libsa/z

svn commit: r352420 - head/stand/forth

2019-09-16 Thread Toomas Soome
Author: tsoome Date: Mon Sep 16 20:26:53 2019 New Revision: 352420 URL: https://svnweb.freebsd.org/changeset/base/352420 Log: loader_4th: scan_buffer can leave empty string on stack When the file processing is done, we will have string with lenght 0 in stack and we will attempt to alloca

svn commit: r352419 - stable/12/sys/fs/fuse

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 18:40:27 2019 New Revision: 352419 URL: https://svnweb.freebsd.org/changeset/base/352419 Log: MFC r351613: Remove unused VM page locking macros. This completes the merge of the revision. r352043 updated only the merge info for some reason. Reported b

svn commit: r352418 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-09-16 Thread Johannes Lundberg
Author: johalun Date: Mon Sep 16 18:23:01 2019 New Revision: 352418 URL: https://svnweb.freebsd.org/changeset/base/352418 Log: LinuxKPI: Limit exposure of new field in dev_pm_ops to LinuxKPI >= 5. This will fix a suspend/resume issue that occurs on drm-kmod packages build on 12.0 and

svn commit: r352417 - head/sys/fs/fuse

2019-09-16 Thread Alan Somers
Author: asomers Date: Mon Sep 16 16:41:01 2019 New Revision: 352417 URL: https://svnweb.freebsd.org/changeset/base/352417 Log: Fix an off-by-one error from r351961 That revision addressed a Coverity CID that could lead to a buffer overflow, but it had an off-by-one error in the buffer siz

svn commit: r352416 - in stable/12: etc/mtree usr.bin/locale usr.bin/locale/tests

2019-09-16 Thread Yuri Pankov
Author: yuripv Date: Mon Sep 16 16:17:29 2019 New Revision: 352416 URL: https://svnweb.freebsd.org/changeset/base/352416 Log: MFC r352138, r352214, r352216: locale: handle day, abday, mon, abmon, am_pm keywords All of these are defined as mandatory by POSIX. While here, mark all n

svn commit: r352415 - stable/12/sys/dev/ichsmb

2019-09-16 Thread Yuri Pankov
Author: yuripv Date: Mon Sep 16 16:10:44 2019 New Revision: 352415 URL: https://svnweb.freebsd.org/changeset/base/352415 Log: MFC r351604: ichsmb: defer smbus attach until interrupts are available This fixes a "timed sleep before timers are working" panic seen while attaching jedec_d

svn commit: r352414 - head/tests/sys/fs/fusefs

2019-09-16 Thread Alan Somers
Author: asomers Date: Mon Sep 16 15:56:21 2019 New Revision: 352414 URL: https://svnweb.freebsd.org/changeset/base/352414 Log: fusefs: initialize C++ classes the Coverity way Coverity complained that I wasn't initializing some class members until the SetUp method. Do it in the constructo

svn commit: r352413 - head/tests/sys/fs/fusefs

2019-09-16 Thread Alan Somers
Author: asomers Date: Mon Sep 16 15:44:59 2019 New Revision: 352413 URL: https://svnweb.freebsd.org/changeset/base/352413 Log: fusefs: fix some minor Coverity CIDs in the tests Where open(2) is expected to fail, the tests should assert or expect that its return value is -1. These tests a

Re: Re; svn commit: r352393 - head/sys/fs/nfsclient

2019-09-16 Thread Rick Macklem
Resent to correct address... From: Rick Macklem Sent: Monday, September 16, 2019 11:27 AM To: k...@freebsd.org; pet...@freebsd.org Cc: src-svn-...@freebsd.org Subject: Re; svn commit: r352393 - head/sys/fs/nfsclient Hi Kostik, I'm afraid there was a reaso

svn commit: r352412 - stable/12/sys/amd64/amd64

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:21:37 2019 New Revision: 352412 URL: https://svnweb.freebsd.org/changeset/base/352412 Log: MFC r351727: Replace PMAP_LARGEMAP_MAX_ADDRESS() with a more general predicate. Modified: stable/12/sys/amd64/amd64/pmap.c Directory Properties: stable/12/ (props

svn commit: r352411 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:16:48 2019 New Revision: 352411 URL: https://svnweb.freebsd.org/changeset/base/352411 Log: Assert that the refcount value is not VPRC_BLOCKED in vm_page_drop(). VPRC_BLOCKED is a refcount flag used to indicate that a thread is tearing down mappings of a p

svn commit: r352410 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:12:49 2019 New Revision: 352410 URL: https://svnweb.freebsd.org/changeset/base/352410 Log: Fix a race in vm_page_dequeue_deferred_free() after r352110. This function loaded the page's queue index before setting PGA_DEQUEUE. In this window the page daemon

svn commit: r352409 - head/sys/vm

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:09:31 2019 New Revision: 352409 URL: https://svnweb.freebsd.org/changeset/base/352409 Log: Fix a page leak in vm_page_reclaim_run(). After r352110 the attempt to remove mappings of the page being replaced may fail if the page is wired. In this case we mu

svn commit: r352408 - in head: share/man/man9 sys/amd64/amd64

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:06:19 2019 New Revision: 352408 URL: https://svnweb.freebsd.org/changeset/base/352408 Log: Fix a couple of nits in r352110. - Remove a dead variable from the amd64 pmap_extract_and_hold(). - Fix grammar in the vm_page_wire man page. Reported by: alc

svn commit: r352407 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/dev/virtio/balloon sys/i386/i386 sys/m...

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:04:45 2019 New Revision: 352407 URL: https://svnweb.freebsd.org/changeset/base/352407 Log: Revert r352406, which contained changes I didn't intend to commit. Modified: head/share/man/man9/vm_page_wire.9 head/sys/amd64/amd64/pmap.c head/sys/amd64/include/p

svn commit: r352406 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/dev/virtio/balloon sys/i386/i386 sys/m...

2019-09-16 Thread Mark Johnston
Author: markj Date: Mon Sep 16 15:03:12 2019 New Revision: 352406 URL: https://svnweb.freebsd.org/changeset/base/352406 Log: Fix a couple of nits in r352110. - Remove a dead variable from the amd64 pmap_extract_and_hold(). - Fix grammar in the vm_page_wire man page. Reported by: alc

svn commit: r352405 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 15:00:11 2019 New Revision: 352405 URL: https://svnweb.freebsd.org/changeset/base/352405 Log: MFC r342937: Fix the location of td->td_frame at the top of the kernel stack. In cpu_thread_alloc we would allocate space for the trap frame at the top of the

svn commit: r352404 - head/sys/fs/fuse

2019-09-16 Thread Alan Somers
Author: asomers Date: Mon Sep 16 14:51:49 2019 New Revision: 352404 URL: https://svnweb.freebsd.org/changeset/base/352404 Log: fusefs: fix some minor issues with fuse_vnode_setparent * When unparenting a vnode, actually clear the flag. AFAIK this is basically a no-op because we only unp

svn commit: r352403 - in stable/12/sys/arm64: arm64 include

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:51:24 2019 New Revision: 352403 URL: https://svnweb.freebsd.org/changeset/base/352403 Log: MFC r340008, r340013 r340008: Add the ARMv8.3 HCR_EL2 register fields. Sponsored by: DARPA, AFRL r340013: Add the ARMv8.3 SCTLR_EL1 fields. While

svn commit: r352402 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:45:20 2019 New Revision: 352402 URL: https://svnweb.freebsd.org/changeset/base/352402 Log: MFC r339988: Use the correct offsets for the trap frame in fork_trampoline. Sponsored by: DARPA, AFRL Modified: stable/12/sys/arm64/arm64/swtch.S Directory P

svn commit: r352401 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:43:43 2019 New Revision: 352401 URL: https://svnweb.freebsd.org/changeset/base/352401 Log: MFC r339594: Stop advertising ARMv8.3 Pointer Authentication This needs firmware and kernel support before userspace can use it. Until then don't advertise it

svn commit: r352400 - stable/12

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:42:14 2019 New Revision: 352400 URL: https://svnweb.freebsd.org/changeset/base/352400 Log: MFC r341489: Only gnu/lib/csu when MK_BSD_CRTBEGIN is off. We were still building it from Makefile.inc1. Disable it there so we don't try to build the GNU crt

svn commit: r352399 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:35:02 2019 New Revision: 352399 URL: https://svnweb.freebsd.org/changeset/base/352399 Log: MFC r339948: Use pmap_invalidate_all rather than invalidating 512 level 2 entries in the early pmap_mapbios/unmapbios code. It is even worse when there are multi

svn commit: r352398 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:34:10 2019 New Revision: 352398 URL: https://svnweb.freebsd.org/changeset/base/352398 Log: MFC r339944: Fix some style(9) issues in the arm64 pmap_mapbios/unmapbios. Split lines when they are too long. Modified: stable/12/sys/arm64/arm64/pmap.c Direct

svn commit: r352397 - stable/12/sys/sys

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:25:51 2019 New Revision: 352397 URL: https://svnweb.freebsd.org/changeset/base/352397 Log: MFC r348323: The alignment is passed into contigmalloc_domainset in the 7th argument. KUBSAN was complaining the pointer contigmalloc_domainset returned was m

svn commit: r352396 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 14:07:30 2019 New Revision: 352396 URL: https://svnweb.freebsd.org/changeset/base/352396 Log: MFC r343876: Add missing data barriers after storeing a new valid pagetable entry. When moving from an invalid to a valid entry we don't need to invalidate th

svn commit: r352395 - stable/12/sys/arm64/arm64

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 13:45:31 2019 New Revision: 352395 URL: https://svnweb.freebsd.org/changeset/base/352395 Log: MFC r346996: Restore x18 in efi_arch_leave. Some UEFI implementations trash this register and, as we use it as a platform register, the kernel doesn't save it

svn commit: r352394 - in stable/12: etc/mtree gnu/lib gnu/lib/csu lib/csu lib/csu/aarch64 lib/csu/amd64 lib/csu/arm lib/csu/common lib/csu/i386 lib/csu/mips lib/csu/powerpc lib/csu/powerpc64 lib/cs...

2019-09-16 Thread Andrew Turner
Author: andrew Date: Mon Sep 16 13:41:24 2019 New Revision: 352394 URL: https://svnweb.freebsd.org/changeset/base/352394 Log: MFC r339738, r339744, r339770, r339773, r339864-r339866, r339907-r339908, r339912-r339913, r339916, r339954, r340213, r340395, r340840, r340910-r340911, r341424, r34277

svn commit: r352393 - head/sys/fs/nfsclient

2019-09-16 Thread Konstantin Belousov
Author: kib Date: Mon Sep 16 13:26:27 2019 New Revision: 352393 URL: https://svnweb.freebsd.org/changeset/base/352393 Log: nfscl_loadattrcache: fix rest of the cases to not call vnode_pager_setsize() under the node mutex. r248567 moved some calls of vnode_pager_setsize() after the node lo

svn commit: r352392 - stable/12/sys/dev/acpica

2019-09-16 Thread Ed Maste
Author: emaste Date: Mon Sep 16 13:10:34 2019 New Revision: 352392 URL: https://svnweb.freebsd.org/changeset/base/352392 Log: MFC r350499: acpi_resource.c: mention ThunderX2 firmware revision with issue [This has been fixed in a later version] and the workaround can eventually be removed.

svn commit: r352391 - head/share/man/man9

2019-09-16 Thread Yuri Pankov
Author: yuripv Date: Mon Sep 16 13:10:03 2019 New Revision: 352391 URL: https://svnweb.freebsd.org/changeset/base/352391 Log: sbuf(9): fix sbuf_drain_func typedef markup Reviewed by: 0mp (previous version) Differential Revision:https://reviews.freebsd.org/D21569 Modified: head

svn commit: r352390 - stable/12/sys/modules/i2c/controllers/ichiic

2019-09-16 Thread Ed Maste
Author: emaste Date: Mon Sep 16 12:54:44 2019 New Revision: 352390 URL: https://svnweb.freebsd.org/changeset/base/352390 Log: MFC r350303: enable ig4_acpi on aarch64 The already-listed APMC0D0F ID belongs to the Ampere eMAG aarch64 platform, but ACPI support was not even built on aarch64.

svn commit: r352388 - in stable/12/sys/compat/linuxkpi/common: include/linux src

2019-09-16 Thread Ed Maste
Author: emaste Date: Mon Sep 16 12:51:28 2019 New Revision: 352388 URL: https://svnweb.freebsd.org/changeset/base/352388 Log: MFC r346445: Enable ioremap for aarch64 in the LinuxKPI Required for Mellanox drivers (e.g. on Ampere eMAG at Packet.com). PR: 237055 Submitted by:

svn commit: r352389 - head/release/packages

2019-09-16 Thread Emmanuel Vadot
Author: manu Date: Mon Sep 16 12:51:30 2019 New Revision: 352389 URL: https://svnweb.freebsd.org/changeset/base/352389 Log: pkgbase: Move cap_mkdb from runtime to utilities POST-INSTALL Since login and login.conf moved to the utilities packages move also the post-install related commands.

svn commit: r352387 - head

2019-09-16 Thread Kyle Evans
Author: kevans Date: Mon Sep 16 12:44:44 2019 New Revision: 352387 URL: https://svnweb.freebsd.org/changeset/base/352387 Log: Fix 20190507 UPDATING entry The rc mechanism for loading kernel modules is actually called 'kld_list', not 'kld_load' Reported by: yuripv Modified: head/U

svn commit: r352386 - head/sys/netinet

2019-09-16 Thread Michael Tuexen
Author: tuexen Date: Mon Sep 16 08:18:05 2019 New Revision: 352386 URL: https://svnweb.freebsd.org/changeset/base/352386 Log: Don't write to memory outside of the allocated array for SACK blocks. Obtained from:rrs@ MFC after:3 days Sponsored by: Netfl

svn commit: r352385 - head/bin/sh

2019-09-16 Thread Baptiste Daroussin
Author: bapt Date: Mon Sep 16 07:31:59 2019 New Revision: 352385 URL: https://svnweb.freebsd.org/changeset/base/352385 Log: Do not use our custom completion function, it is not needed anymore Modified: head/bin/sh/histedit.c Modified: head/bin/sh/histedit.c ==

Re: svn commit: r352341 - head/contrib/libedit

2019-09-16 Thread Baptiste Daroussin
On Sat, Sep 14, 2019 at 09:49:43PM +, Dimitry Andric wrote: > Author: dim > Date: Sat Sep 14 21:49:42 2019 > New Revision: 352341 > URL: https://svnweb.freebsd.org/changeset/base/352341 > > Log: > Fix arm and aarch64 builds of libedit after r352275 > > On arm and arm64, where chars are