svn commit: r352690 - head/sys/vm

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 17:08:35 2019 New Revision: 352690 URL: https://svnweb.freebsd.org/changeset/base/352690 Log: Add some counters for per-VM page events. For now, just count batched page queue state operations. vm.stats.page.queue_ops counts the number of batch entries that

svn commit: r352688 - in head/sys: amd64/amd64 arm/arm arm64/arm64 dev/agp i386/i386 mips/mips powerpc/booke riscv/riscv vm x86/iommu

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 16:11:35 2019 New Revision: 352688 URL: https://svnweb.freebsd.org/changeset/base/352688 Log: Complete the removal of the "wire_count" field from struct vm_page. Convert all remaining references to that field to "ref_count" and update comments accordingly.

svn commit: r352634 - head/sbin/ping6

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 22:20:11 2019 New Revision: 352634 URL: https://svnweb.freebsd.org/changeset/base/352634 Log: ping6: Use caph_rights_limit(3) for STDIN_FILENO Update some error messages while here. Reported by: olivier MFC after:3 days Modified: head/sbin/ping6

Re: svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
On Mon, Sep 23, 2019 at 10:13:14PM +0200, Warner Losh wrote: > On Mon, Sep 23, 2019, 9:06 PM Mark Johnston wrote: > > > On Mon, Sep 23, 2019 at 11:28:52AM -0700, Conrad Meyer wrote: > > > Hi Mark, > > > > > > On Mon, Sep 23, 2019 at 7:14 AM Mark Johnsto

Re: svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
On Mon, Sep 23, 2019 at 11:28:52AM -0700, Conrad Meyer wrote: > Hi Mark, > > On Mon, Sep 23, 2019 at 7:14 AM Mark Johnston wrote: > > > > Author: markj > > Date: Mon Sep 23 14:14:43 2019 > > New Revision: 352623 > > URL: https://svnweb.freebsd.org/chang

svn commit: r352627 - in head/sys/cddl/dev/dtrace: amd64 i386

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 15:08:17 2019 New Revision: 352627 URL: https://svnweb.freebsd.org/changeset/base/352627 Log: Implement x86 dtrace_invop_(un)init() in C. There is no reason for these routines to be written in assembly. In the ports of DTrace to other platforms, they are al

svn commit: r352626 - head/sys/dev/jme

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:34:23 2019 New Revision: 352626 URL: https://svnweb.freebsd.org/changeset/base/352626 Log: Fix a harmless typo. MFC after:1 week Modified: head/sys/dev/jme/if_jme.c Modified: head/sys/dev/jme/if_jme.c

svn commit: r352625 - head/sys/dev/jme

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:29:05 2019 New Revision: 352625 URL: https://svnweb.freebsd.org/changeset/base/352625 Log: Revert r316820. Despite appearing correct, r316820 breaks packet rx/tx for jme(4) interfaces. With 12.1 approaching, let's just revert the commit for now. PR:

svn commit: r352624 - head/sys/amd64/amd64

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:19:41 2019 New Revision: 352624 URL: https://svnweb.freebsd.org/changeset/base/352624 Log: Set NX on some non-leaf direct map page table entries. The direct map is never used for execution of code, so we might as well set NX in the direct map's PML4Es. A

svn commit: r352623 - in head/sys: amd64/amd64 kern

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:14:43 2019 New Revision: 352623 URL: https://svnweb.freebsd.org/changeset/base/352623 Log: Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations. This is required for DPCPU and VNET data variable definitions to work when KLDs are linked as DSOs.

svn commit: r352622 - head/sys/amd64/amd64

2019-09-23 Thread Mark Johnston
Author: markj Date: Mon Sep 23 14:11:59 2019 New Revision: 352622 URL: https://svnweb.freebsd.org/changeset/base/352622 Log: Set NX in mappings created by pmap_kenter() and pmap_kenter_attr(). There does not appear to be any existing need for such mappings to be executable. Reviewed

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: r352256 - head/sys/kern

2019-09-12 Thread Mark Johnston
Author: markj Date: Thu Sep 12 16:47:38 2019 New Revision: 352256 URL: https://svnweb.freebsd.org/changeset/base/352256 Log: Remove a redundant NULL pointer check in cpuset_modify_domain(). cpuset_getroot() is guaranteed to return a non-NULL pointer. Reported by: Mark Millard MFC a

svn commit: r352110 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/sgx sys/amd64/vmm sys/arm/arm sys/arm/nvidia/drm2 sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/l...

2019-09-09 Thread Mark Johnston
Author: markj Date: Mon Sep 9 21:32:42 2019 New Revision: 352110 URL: https://svnweb.freebsd.org/changeset/base/352110 Log: Change synchonization rules for vm_page reference counting. There are several mechanisms by which a vm_page reference is held, preventing the page from being freed

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-08 Thread Mark Johnston
On Sat, Sep 07, 2019 at 06:31:10PM +0300, Slawa Olhovchenkov wrote: > On Sat, Sep 07, 2019 at 10:50:34AM -0400, Mark Johnston wrote: > > > On Wed, Sep 04, 2019 at 05:45:24PM +0300, Slawa Olhovchenkov wrote: > > > On Tue, Sep 03, 2019 at 06:01:06PM -0400, Mark Johnston wr

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 05:45:24PM +0300, Slawa Olhovchenkov wrote: > On Tue, Sep 03, 2019 at 06:01:06PM -0400, Mark Johnston wrote: > > > Mostly problem I am see at this > > > work -- very slowly vm_page_free(). May be currenly this is more > > > speedy... >

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 09:27:00AM +0300, Andriy Gapon wrote: > On 04/09/2019 01:01, Mark Johnston wrote: > > Some of the vm_lowmem eventhandlers probably shouldn't be called each > > time the page daemon scans the inactive queue (every 0.1s under memory > > pressur

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-07 Thread Mark Johnston
On Wed, Sep 04, 2019 at 09:00:03AM +0300, Andriy Gapon wrote: > On 04/09/2019 01:01, Mark Johnston wrote: > > Slawa and I talked about this in the past. His complaint is that a > > large cache can take a significant amount of time to trim, and it > > manifests as a s

svn commit: r351800 - in head/sys/amd64: amd64 include

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 22:26:01 2019 New Revision: 351800 URL: https://svnweb.freebsd.org/changeset/base/351800 Log: Fix some nits in pmap_page_array_startup(). - Use ptoa() instead of the archaic ctob(). - Use pagezero() to zero a PDP page. - Remove PA_MIN_ADDRESS, orphaned by

Re: svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-03 Thread Mark Johnston
On Tue, Sep 03, 2019 at 07:14:27PM +0300, Slawa Olhovchenkov wrote: > On Tue, Sep 03, 2019 at 10:02:59AM +0300, Andriy Gapon wrote: > > > On 02/09/2019 01:22, Mark Johnston wrote: > > > Author: markj > > > Date: Sun Sep 1 22:22:43 2019 > > >

svn commit: r351743 - head/sys/vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 14:29:58 2019 New Revision: 351743 URL: https://svnweb.freebsd.org/changeset/base/351743 Log: Add preliminary support for atomic updates of per-page queue state. Queue operations on a page use the page lock when updating the page to reflect the desired queue

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

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 14:39:36 2019 New Revision: 351744 URL: https://svnweb.freebsd.org/changeset/base/351744 Log: Revert a portion of r351628 that I did not mean to commit. Reported by: mjg MFC with: r351628 Modified: head/share/man/man9/Makefile Modified: head/share/m

svn commit: r346544 - head/sys/conf

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:31:13 2019 New Revision: 346544 URL: https://svnweb.freebsd.org/changeset/base/346544 Log: Clarify the relationship between INVARIANTS and DIAGNOSTIC a bit. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/conf/NOTES Modifi

svn commit: r346550 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 13:57:52 2019 New Revision: 346550 URL: https://svnweb.freebsd.org/changeset/base/346550 Log: Use separate descriptors in bhyve's stdio uart backend. bhyve was previously using stdin for both reading and writing to the console, which made it difficult to red

svn commit: r346543 - head/sys/vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:23:35 2019 New Revision: 346543 URL: https://svnweb.freebsd.org/changeset/base/346543 Log: Disable vm map consistency checking by default on INVARIANTS kernels. The checks are too expensive for a general-purpose kernel. Enable the checks when DIAGNOSTIC

svn commit: r346440 - head/sys/modules/opensolaris

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:34:53 2019 New Revision: 346440 URL: https://svnweb.freebsd.org/changeset/base/346440 Log: Export cpu_core from opensolaris.ko. It is referenced by dtrace*.ko. PR: 191462 Submitted by: me.free...@cgf.cx MFC after:1 week Modified: h

svn commit: r346118 - in head/sys: netinet netinet6

2019-09-03 Thread Mark Johnston
Author: markj Date: Thu Apr 11 08:00:59 2019 New Revision: 346118 URL: https://svnweb.freebsd.org/changeset/base/346118 Log: Reinitialize multicast source filter structures after invalidation. When leaving a multicast group, a hole may be created in the inpcb's source filter and group mem

svn commit: r346010 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:28:02 2019 New Revision: 346010 URL: https://svnweb.freebsd.org/changeset/base/346010 Log: Fix indentation. No functional change intended. Reviewed by: bcran, jhb, rgrimes MFC after:3 days Sponsored by: The FreeBSD Foundation Differential Re

svn commit: r346011 - head/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:30:17 2019 New Revision: 346011 URL: https://svnweb.freebsd.org/changeset/base/346011 Log: Stop compiling bhyve(8) with -O0. DEBUG_FLAGS is always added to CFLAGS. This setting appears to be accidental and came in with r243327. Reviewed by: anish,

svn commit: r346009 - in head: sys/kern tests/sys/kern

2019-09-03 Thread Mark Johnston
Author: markj Date: Sun Apr 7 14:26:14 2019 New Revision: 346009 URL: https://svnweb.freebsd.org/changeset/base/346009 Log: Set the p_oppid field of orphans when exiting. Such processes will be reparented to the reaper when the current parent is done with them (i.e., ptrace detached), so

svn commit: r345739 - in head/sys: net netinet6

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Mar 30 18:00:44 2019 New Revision: 345739 URL: https://svnweb.freebsd.org/changeset/base/345739 Log: Do not perform DAD on stf(4) interfaces. stf(4) interfaces are not multicast-capable so they can't perform DAD. They also did not set IFF_DRV_RUNNING when an addres

svn commit: r345596 - in head/lib/libutil: . tests

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:40:18 2019 New Revision: 345596 URL: https://svnweb.freebsd.org/changeset/base/345596 Log: Fix pidfile_open(3) to handle relative paths with multiple components. r322369's use of basename(3) was incorrect and worked by accident so long as the pidfile path

svn commit: r345593 - head/contrib/elftoolchain/libdwarf

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:32:21 2019 New Revision: 345593 URL: https://svnweb.freebsd.org/changeset/base/345593 Log: Prepend DW_AT_comp_dir to relative line number directory table entries. Relative directories may appear in the line number program for a CPU if files were included

svn commit: r345594 - head/sys/conf

2019-09-03 Thread Mark Johnston
Author: markj Date: Wed Mar 27 19:34:19 2019 New Revision: 345594 URL: https://svnweb.freebsd.org/changeset/base/345594 Log: Stop using -fdebug-prefix-map to map the object directory. We were doing so as a workaround for the problem addressed by r345593, so it's no longer necessary.

svn commit: r351742 - in head/sys: amd64/amd64 amd64/include vm

2019-09-03 Thread Mark Johnston
Author: markj Date: Tue Sep 3 13:18:51 2019 New Revision: 351742 URL: https://svnweb.freebsd.org/changeset/base/351742 Log: Map the vm_page array into KVA on amd64. r351198 allows the kernel to use domain-local memory to back the vm_page array (up to 2MB boundaries) and reserves a separa

Re: svn commit: r351727 - head/sys/amd64/amd64

2019-09-02 Thread Mark Johnston
On Mon, Sep 02, 2019 at 09:54:09PM +, Mark Johnston wrote: > Author: markj > Date: Mon Sep 2 21:54:08 2019 > New Revision: 351727 > URL: https://svnweb.freebsd.org/changeset/base/351727 > > Log: > Replace PMAP_LARGEMAP_MAX_ADDRESS() with a more general predicate. &

svn commit: r351728 - head/sys/amd64/amd64

2019-09-02 Thread Mark Johnston
Author: markj Date: Mon Sep 2 21:57:57 2019 New Revision: 351728 URL: https://svnweb.freebsd.org/changeset/base/351728 Log: Add a sysctl to dump kernel mappings and their properties on amd64. The sysctl is called vm.pmap.kernel_maps. It dumps address ranges and their corresponding prote

svn commit: r351727 - head/sys/amd64/amd64

2019-09-02 Thread Mark Johnston
Author: markj Date: Mon Sep 2 21:54:08 2019 New Revision: 351727 URL: https://svnweb.freebsd.org/changeset/base/351727 Log: Replace PMAP_LARGEMAP_MAX_ADDRESS() with a more general predicate. No functional change intended. Reviewed by: kib MFC after:1 week Sponsored by: The Fr

Re: svn commit: r351702 - head/sys/kern

2019-09-02 Thread Mark Johnston
On Mon, Sep 02, 2019 at 03:24:26PM +, Mateusz Guzik wrote: > Author: mjg > Date: Mon Sep 2 15:24:25 2019 > New Revision: 351702 > URL: https://svnweb.freebsd.org/changeset/base/351702 > > Log: > vfs: restore mp null check in vop_stdgetwritemount > > The initially read mount point can a

svn commit: r351673 - in head: lib/libmemstat share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/vm

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 22:22:43 2019 New Revision: 351673 URL: https://svnweb.freebsd.org/changeset/base/351673 Log: Extend uma_reclaim() to permit different reclamation targets. The page daemon periodically invokes uma_reclaim() to reclaim cached items from each zone when the sys

svn commit: r351672 - head/sys/kern

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 21:38:08 2019 New Revision: 351672 URL: https://svnweb.freebsd.org/changeset/base/351672 Log: Restrict the input domain set in cpuset_setdomain(2) to all_domains. To permit larger values of MAXMEMDOM, which is currently 8 on amd64, cpuset_setdomain(2) accept

svn commit: r351671 - head/usr.bin/cpuset

2019-09-01 Thread Mark Johnston
Author: markj Date: Sun Sep 1 21:20:31 2019 New Revision: 351671 URL: https://svnweb.freebsd.org/changeset/base/351671 Log: Fix an off-by-one bug in the CPU and domain ID parser. The "size" parameter is the size of the corresponding bit set, so the maximum CPU or domain index is size - 1

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

2019-08-30 Thread Mark Johnston
Author: markj Date: Fri Aug 30 19:35:44 2019 New Revision: 351628 URL: https://svnweb.freebsd.org/changeset/base/351628 Log: Update and clean up the UMA man page. - Fix warnings from igor and mandoc. - Provide a brief description of the separation between zones and their backend slab

svn commit: r351624 - head/sys/dev/sound/midi

2019-08-30 Thread Mark Johnston
Author: markj Date: Fri Aug 30 15:40:31 2019 New Revision: 351624 URL: https://svnweb.freebsd.org/changeset/base/351624 Log: Properly check for an interrupted cv_wait_sig(). The returned error number may be EINTR or ERESTART depending on whether or not the signal is supposed to interrupt

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

2019-08-29 Thread Mark Johnston
Author: markj Date: Thu Aug 29 22:13:15 2019 New Revision: 351613 URL: https://svnweb.freebsd.org/changeset/base/351613 Log: Remove unused VM page locking macros. They were orphaned by r292373. Reviewed by: asomers MFC after:1 week Sponsored by: Netflix Differential Revision

Re: svn commit: r350544 - head/usr.bin/bzip2recover

2019-08-28 Thread Mark Johnston
On Wed, Aug 28, 2019 at 10:54:13PM +0200, Antoine Brodin wrote: > On Sat, Aug 3, 2019 at 12:10 AM Mark Johnston wrote: > > > > Author: markj > > Date: Fri Aug 2 22:09:56 2019 > > New Revision: 350544 > > URL: https://svnweb.freebsd.org/changeset/base/350544 >

svn commit: r351587 - in head/usr.bin: bzip2 bzip2recover

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 21:01:51 2019 New Revision: 351587 URL: https://svnweb.freebsd.org/changeset/base/351587 Log: Install all bzip2.1 MLINKs from the same place. Reported by: antoine MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/bzip2/Ma

svn commit: r351575 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs kern

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 18:01:54 2019 New Revision: 351575 URL: https://svnweb.freebsd.org/changeset/base/351575 Log: Avoid direct accesses of the vm_page wire_count field. No functional change intended. Sponsored by: Netflix Modified: head/sys/cddl/contrib/opensolaris/uts/co

svn commit: r351573 - head/lib/libfetch

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 17:01:28 2019 New Revision: 351573 URL: https://svnweb.freebsd.org/changeset/base/351573 Log: Document fetchReqHTTP(). Submitted by: Farhan Khan Reviewed by: 0mp MFC after:1 week Differential Revision:https://reviews.freebsd.org/D18788 Mod

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

2019-08-28 Thread Mark Johnston
Author: markj Date: Wed Aug 28 16:08:06 2019 New Revision: 351569 URL: https://svnweb.freebsd.org/changeset/base/351569 Log: Wire pages in vm_page_grab() when appropriate. uiomove_object_page() and exec_map_first_page() would previously wire a page after having grabbed it. Ask vm_page_gr

svn commit: r351549 - head/sys/kern

2019-08-27 Thread Mark Johnston
Author: markj Date: Tue Aug 27 15:42:08 2019 New Revision: 351549 URL: https://svnweb.freebsd.org/changeset/base/351549 Log: Remove an extraneous + 1 in _domainset_create(). DOMAINSET_FLS, like our fls(), is 1-indexed. Reported by: alc MFC after:1 week Sponsored by: The FreeBS

svn commit: r351547 - head/sys/kern

2019-08-27 Thread Mark Johnston
Author: markj Date: Tue Aug 27 14:06:34 2019 New Revision: 351547 URL: https://svnweb.freebsd.org/changeset/base/351547 Log: Fix several logic issues in domainset_empty_vm(). - Don't add 1 to the result of DOMAINSET_FLS. - Do not modify domainsets containing only empty domains. - Always

svn commit: r351518 - head/sys/vm

2019-08-26 Thread Mark Johnston
Author: markj Date: Mon Aug 26 20:20:10 2019 New Revision: 351518 URL: https://svnweb.freebsd.org/changeset/base/351518 Log: Fix a few nits in vm_pqbatch_process_page(). - Don't bother masking off non-queue state flags when loading the page's atomic state, since it is only required for

svn commit: r351496 - head/sys/vm

2019-08-25 Thread Mark Johnston
Author: markj Date: Sun Aug 25 21:14:46 2019 New Revision: 351496 URL: https://svnweb.freebsd.org/changeset/base/351496 Log: Handle UMA_ANYDOMAIN in kstack_import(). The kernel thread stack zone performs first-touch allocations by default, and must handle the case where the local memory d

svn commit: r351437 - head/sys/vm

2019-08-23 Thread Mark Johnston
Author: markj Date: Fri Aug 23 19:53:11 2019 New Revision: 351437 URL: https://svnweb.freebsd.org/changeset/base/351437 Log: Stop clearing page flags in vm_page_pqbatch_submit(). All existing callers guarantee that the page does not have a pre-existing dequeue pending. Thus, if the page

svn commit: r351436 - head/sys/vm

2019-08-23 Thread Mark Johnston
Author: markj Date: Fri Aug 23 19:49:29 2019 New Revision: 351436 URL: https://svnweb.freebsd.org/changeset/base/351436 Log: Make vm_pqbatch_submit_page() externally visible. It will become useful for the page daemon to be able to directly create a batch queue entry for a page, and withou

svn commit: r351373 - head

2019-08-21 Thread Mark Johnston
Author: markj Date: Thu Aug 22 01:18:36 2019 New Revision: 351373 URL: https://svnweb.freebsd.org/changeset/base/351373 Log: Document r351361. Modified: head/RELNOTES Modified: head/RELNOTES == --- head/RELNOTES

svn commit: r351363 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:47:01 2019 New Revision: 351363 URL: https://svnweb.freebsd.org/changeset/base/351363 Log: Add hold events for lockmgr probes, missed in r351361. MFC with: r351361 Modified: head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c Modified: head/cddl/c

svn commit: r351361 - in head: cddl/contrib/opensolaris/cmd/lockstat share/man/man4 sys/kern sys/sys

2019-08-21 Thread Mark Johnston
ointer to the lock structure that describes the lock. The second argument is the length of time, in nanoseconds, @@ -240,28 +221,40 @@ if the thread is attempting to acquire the lock as a w if the thread is attempting to acquire the lock a

svn commit: r351359 - head/cddl/contrib/opensolaris/cmd/lockstat

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 23:13:00 2019 New Revision: 351359 URL: https://svnweb.freebsd.org/changeset/base/351359 Log: Fix inverted predicates for sx lock hold events in lockstat(1). This caused shared sx holds to be reported as exclusive, and vice versa. Reviewed by: mjg MF

svn commit: r351351 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 20:01:52 2019 New Revision: 351351 URL: https://svnweb.freebsd.org/changeset/base/351351 Log: Remove manual wire_count adjustments from the unmapped mbuf code. The original code came from a desire to minimize the number of updates to v_wire_count, which prio

svn commit: r351348 - head/sys/kern

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 19:35:04 2019 New Revision: 351348 URL: https://svnweb.freebsd.org/changeset/base/351348 Log: Modify pipe_poll() to properly check for pending direct writes. With r349546, it is a responsibility of the writer to clear PIPE_DIRECTW after pinned data has been

svn commit: r351333 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:11:12 2019 New Revision: 351333 URL: https://svnweb.freebsd.org/changeset/base/351333 Log: Simplify vm_page_dequeue() and fix an assertion. - Add a vm_pagequeue_remove() function to physically remove a page from its queue and update the queue length.

svn commit: r351332 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 16:01:17 2019 New Revision: 351332 URL: https://svnweb.freebsd.org/changeset/base/351332 Log: Unconditionally enable debug.vm_lowmem. It is useful for testing purposes to be able to drain UMA caches, so do not limit the sysctl to DIAGNOSTIC kernels. MFC

svn commit: r351331 - head/sys/vm

2019-08-21 Thread Mark Johnston
Author: markj Date: Wed Aug 21 15:52:10 2019 New Revision: 351331 URL: https://svnweb.freebsd.org/changeset/base/351331 Log: Don't requeue active pages in vm_swapout_object_deactivate_pages(). As of r332974 the page daemon does not requeue pages during a scan of the active queue, so there

svn commit: r351262 - head/sys/dev/sound/midi

2019-08-20 Thread Mark Johnston
Author: markj Date: Tue Aug 20 17:52:12 2019 New Revision: 351262 URL: https://svnweb.freebsd.org/changeset/base/351262 Log: Use a sleepable lock for midistat functions. Otherwise the mutex needs to be dropped when copying out the midistat sbuf, leading to a race which allows one to read

svn commit: r351219 - head/sys/netinet/netdump

2019-08-19 Thread Mark Johnston
Author: markj Date: Mon Aug 19 16:29:51 2019 New Revision: 351219 URL: https://svnweb.freebsd.org/changeset/base/351219 Log: Fix netdump buffering after r348473. nd_buf is used to buffer headers (for both the kernel dump itself and for EKCD) before the final call to netdump_dumper(), whic

svn commit: r350782 - head/usr.bin/du

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:16:15 2019 New Revision: 350782 URL: https://svnweb.freebsd.org/changeset/base/350782 Log: Flesh out the STANDARDS and AUTHORS sections in the du(1) man page. PR: 239722 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr

svn commit: r350781 - head/usr.bin/whois

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:15:02 2019 New Revision: 350781 URL: https://svnweb.freebsd.org/changeset/base/350781 Log: Update RFC references in the whois(1) man page. PR: 239720 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr.bin/whois/whois.1

svn commit: r350780 - head/usr.sbin/mountd

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:08:13 2019 New Revision: 350780 URL: https://svnweb.freebsd.org/changeset/base/350780 Log: Add a reference to the NFSv3 RFC. PR: 239721 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr.sbin/mountd/mountd.8 Modified: h

svn commit: r350779 - head/sbin/iscontrol

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 20:56:52 2019 New Revision: 350779 URL: https://svnweb.freebsd.org/changeset/base/350779 Log: Fix formatting. PR: 239726 Submitted by: Gordon Bergling MFC after:3 days Modified: head/sbin/iscontrol/iscontrol.8 Modified: head/sbin/iscontr

Re: svn commit: r350512 - head/tests/sys/kern

2019-08-07 Thread Mark Johnston
On Thu, Aug 01, 2019 at 06:19:16PM +, Li-Wen Hsu wrote: > Author: lwhsu > Date: Thu Aug 1 18:19:16 2019 > New Revision: 350512 > URL: https://svnweb.freebsd.org/changeset/base/350512 > > Log: > Only skip test cases sometimes failing in CI when they are running in CI > > Suggested by:

svn commit: r350696 - in head/sys/amd64/vmm: amd intel

2019-08-07 Thread Mark Johnston
Author: markj Date: Wed Aug 7 19:45:44 2019 New Revision: 350696 URL: https://svnweb.freebsd.org/changeset/base/350696 Log: Use designated initializers for vmm_ops. MFC after:3 days Modified: head/sys/amd64/vmm/amd/svm.c head/sys/amd64/vmm/intel/vmx.c Modified: head/sys/amd64/vmm

svn commit: r350679 - head/contrib/elftoolchain/elfcopy

2019-08-07 Thread Mark Johnston
Author: markj Date: Wed Aug 7 16:22:25 2019 New Revision: 350679 URL: https://svnweb.freebsd.org/changeset/base/350679 Log: Merge r3780 from elftoolchain. Adjust argc and argv by optind before using them. This slightly simplifies the code. No functional change intended. MFC after:

svn commit: r350671 - head/contrib/elftoolchain/readelf

2019-08-06 Thread Mark Johnston
Author: markj Date: Wed Aug 7 03:14:45 2019 New Revision: 350671 URL: https://svnweb.freebsd.org/changeset/base/350671 Log: readelf: Close input files when done with them. The low fd limit used by poudriere exposed an odd failure mode in cap_fileargs (used by readelf as of r350516). In

svn commit: r350544 - head/usr.bin/bzip2recover

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 22:09:56 2019 New Revision: 350544 URL: https://svnweb.freebsd.org/changeset/base/350544 Log: Add bzip2recover.1. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/bzip2recover/Makefile Modified: head/usr.bin/bzip2recover/M

svn commit: r350540 - head/sys/kern

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 18:01:47 2019 New Revision: 350540 URL: https://svnweb.freebsd.org/changeset/base/350540 Log: Only check the blessings table for known LORs. Previously we would check for blessings before marking a given lock pair as reversed, so each "reversed" lock acquisi

svn commit: r350538 - head/sys/dev/mlx5/mlx5_en

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 15:19:11 2019 New Revision: 350538 URL: https://svnweb.freebsd.org/changeset/base/350538 Log: Fix warnings about unused identifiers when compiling without RATELIMIT. Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_

svn commit: r350525 - in head/sys/arm64: arm64 include

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 22:48:06 2019 New Revision: 350525 URL: https://svnweb.freebsd.org/changeset/base/350525 Log: Use ATTR_DBM even when hardware dirty bit management is not enabled. The ARMv8 reference manual only states that the bit is reserved in this case; following Linux's

svn commit: r350519 - head/tools/build

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 19:26:16 2019 New Revision: 350519 URL: https://svnweb.freebsd.org/changeset/base/350519 Log: Include caph_rights_limit() in libegacy if need be. Reported by: jenkins Sponsored by: The FreeBSD Foundation Modified: head/tools/build/Makefile Modified: hea

svn commit: r350517 - in head: contrib/elftoolchain/size usr.bin/size

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:57:37 2019 New Revision: 350517 URL: https://svnweb.freebsd.org/changeset/base/350517 Log: Capsicumize size(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21105 Modified: head

svn commit: r350516 - in head: contrib/elftoolchain/readelf usr.bin/readelf

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:57:08 2019 New Revision: 350516 URL: https://svnweb.freebsd.org/changeset/base/350516 Log: Capsicumize readelf(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21108 Modified: h

svn commit: r350515 - head/contrib/elftoolchain/addr2line

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:56:32 2019 New Revision: 350515 URL: https://svnweb.freebsd.org/changeset/base/350515 Log: Capsicumize addr2line(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21104 Modified:

svn commit: r350514 - head/lib/libc/gen

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:51:18 2019 New Revision: 350514 URL: https://svnweb.freebsd.org/changeset/base/350514 Log: Add an MLINK for daemonfd(3). MFC after:3 days Modified: head/lib/libc/gen/Makefile.inc Modified: head/lib/libc/gen/Makefile.inc =

svn commit: r350513 - head/lib/libc/gen

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:51:06 2019 New Revision: 350513 URL: https://svnweb.freebsd.org/changeset/base/350513 Log: Fix formatting. MFC after:3 days Modified: head/lib/libc/gen/daemon.3 Modified: head/lib/libc/gen/daemon.3 ===

Re: svn commit: r350505 - in head: contrib/binutils/binutils/doc gnu/usr.bin/binutils/objdump

2019-08-01 Thread Mark Johnston
On Thu, Aug 01, 2019 at 11:22:46AM -0500, Warner Losh wrote: > On Thu, Aug 1, 2019, 11:00 AM Rodney W. Grimes > wrote: > > > > Author: emaste > > > Date: Thu Aug 1 14:42:41 2019 > > > New Revision: 350505 > > > URL: https://svnweb.freebsd.org/changeset/base/350505 > > > > > > Log: > > > objdum

svn commit: r350458 - head/sys/sys

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 22:41:25 2019 New Revision: 350458 URL: https://svnweb.freebsd.org/changeset/base/350458 Log: Use VNASSERT() in checked VOP wrappers. Reviewed by: kib MFC after:3 days Sponsored by: The FreeBSD Foundation Differential Revision:https://review

svn commit: r350450 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 17:09:58 2019 New Revision: 350450 URL: https://svnweb.freebsd.org/changeset/base/350450 Log: Enable witness(4) blessings. witness has long had a facility to "bless" designated lock pairs. Lock order reversals between a pair of blessed locks are not reporte

svn commit: r350448 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 16:01:16 2019 New Revision: 350448 URL: https://svnweb.freebsd.org/changeset/base/350448 Log: Regenerate after r350447. Modified: head/sys/kern/init_sysent.c Modified: head/sys/kern/init_sysent.c =

svn commit: r350447 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 15:59:44 2019 New Revision: 350447 URL: https://svnweb.freebsd.org/changeset/base/350447 Log: Enable copy_file_range(2) in capability mode. copy_file_range() operates on a pair of file descriptors; it requires CAP_READ for the source descriptor and CAP_WRITE

svn commit: r350446 - head/sys/sys

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 15:57:31 2019 New Revision: 350446 URL: https://svnweb.freebsd.org/changeset/base/350446 Log: Handle refcount(9) wraparound. Attempt to mitigate the security risks around refcount overflows by introducing a "saturated" state for the counter. Once a counter

Re: svn commit: r350420 - in head: include lib/libc/stdio

2019-07-29 Thread Mark Johnston
On Mon, Jul 29, 2019 at 06:38:42PM -0400, Shawn Webb wrote: > On Mon, Jul 29, 2019 at 07:02:16PM +0000, Mark Johnston wrote: > > Author: markj > > Date: Mon Jul 29 19:02:16 2019 > > New Revision: 350420 > > URL: https://svnweb.freebsd.org/changeset/base/350420 > >

svn commit: r350432 - head/contrib/elftoolchain/elfcopy

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 22:07:43 2019 New Revision: 350432 URL: https://svnweb.freebsd.org/changeset/base/350432 Log: Merge r3778 and r3779 from ELFToolchain. Modify strip(1) to not accept multiple input files when an output file is specified. There is no good way to handle this c

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

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 22:01:28 2019 New Revision: 350431 URL: https://svnweb.freebsd.org/changeset/base/350431 Log: Centralize the logic in vfs_vmio_unwire() and sendfile_free_page(). Both of these functions atomically unwire a page, optionally attempt to free the page, and enque

svn commit: r350427 - head/sys/arm64/arm64

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 21:21:53 2019 New Revision: 350427 URL: https://svnweb.freebsd.org/changeset/base/350427 Log: Have arm64's pmap_fault() handle WnR faults on dirty PTEs. If we take a WnR permission fault on a managed, writeable and dirty PTE, simply return success without ca

<    2   3   4   5   6   7   8   9   10   11   >