svn commit: r304614 - in stable/11/sys: kern sys

2016-08-22 Thread Mark Johnston
Author: markj Date: Mon Aug 22 17:23:27 2016 New Revision: 304614 URL: https://svnweb.freebsd.org/changeset/base/304614 Log: MFC r304440, r304487: Fix some handling of P2_PTRACE_FSTP. Modified: stable/11/sys/kern/kern_fork.c stable/11/sys/kern/kern_sig.c stable/11/sys/kern/sys_process.c

svn commit: r304861 - in vendor/illumos/dist: cmd/dtrace/test/tst/common/llquantize lib/libdtrace/common

2016-08-26 Thread Mark Johnston
Author: markj Date: Fri Aug 26 20:51:09 2016 New Revision: 304861 URL: https://svnweb.freebsd.org/changeset/base/304861 Log: 7297 clear() on llquantize aggregation causes dtrace to exit 7298 printa() of multiple aggregations can fail for llquantize() illumos/illumos-gate@0ddc0ebb74cedb0ac

svn commit: r344106 - in head/sys: riscv/include riscv/riscv vm

2019-02-13 Thread Mark Johnston
Author: markj Date: Wed Feb 13 17:19:37 2019 New Revision: 344106 URL: https://svnweb.freebsd.org/changeset/base/344106 Log: Implement transparent 2MB superpage promotion for RISC-V. This includes support for pmap_enter(..., psind=1) as described in the commit log message for r321378.

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

2019-02-13 Thread Mark Johnston
Author: markj Date: Wed Feb 13 17:38:47 2019 New Revision: 344107 URL: https://svnweb.freebsd.org/changeset/base/344107 Log: Implement pmap_clear_modify() for RISC-V. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D18875

svn commit: r344108 - in head/sys/riscv: include riscv

2019-02-13 Thread Mark Johnston
Author: markj Date: Wed Feb 13 17:50:01 2019 New Revision: 344108 URL: https://svnweb.freebsd.org/changeset/base/344108 Log: Implement per-CPU pmap activation tracking for RISC-V. This reduces the overhead of TLB invalidations by ensuring that we only interrupt CPUs which are using the gi

Re: svn commit: r343030 - in head/sys: cam conf dev/md dev/nvme fs/fuse fs/nfsclient fs/smbfs kern sys ufs/ffs vm

2019-02-14 Thread Mark Johnston
On Thu, Feb 14, 2019 at 06:56:42PM +1100, Bruce Evans wrote: > On Wed, 13 Feb 2019, Justin Hibbits wrote: > > > On Tue, 15 Jan 2019 01:02:17 + (UTC) > > Gleb Smirnoff wrote: > > > >> Author: glebius > >> Date: Tue Jan 15 01:02:16 2019 > >> New Revision: 343030 > >> URL: https://svnweb.freebsd

Re: svn commit: r344129 - head

2019-02-14 Thread Mark Johnston
On Thu, Feb 14, 2019 at 12:00:22PM -0700, Warner Losh wrote: > On Thu, Feb 14, 2019 at 11:29 AM Rodney W. Grimes < > > > Differential Review: https://reviews.freebsd.org/D19193 > > > > You sited a differential, but not give any attribution > > to the external source :-( > > > > The differential

svn commit: r344231 - head/sys/vm

2019-02-17 Thread Mark Johnston
Author: markj Date: Sun Feb 17 16:35:19 2019 New Revision: 344231 URL: https://svnweb.freebsd.org/changeset/base/344231 Log: Remove a redundant flag variable. Use the object pointer itself to determine whether the object is locked. No functional change intended. Reviewed by: kib M

svn commit: r344232 - head/sys/amd64/sgx

2019-02-17 Thread Mark Johnston
Author: markj Date: Sun Feb 17 16:43:44 2019 New Revision: 344232 URL: https://svnweb.freebsd.org/changeset/base/344232 Log: Fix refcount leaks in the SGX Linux compat ioctl handler. Some argument validation error paths would return without releasing the file reference obtained at the beg

svn commit: r344233 - head/sys/kern

2019-02-17 Thread Mark Johnston
Author: markj Date: Sun Feb 17 16:56:41 2019 New Revision: 344233 URL: https://svnweb.freebsd.org/changeset/base/344233 Log: Remove a write-only variable orphaned by r340677. Modified: head/sys/kern/sys_pipe.c Modified: head/sys/kern/sys_pipe.c ===

svn commit: r344278 - head/sys/kern

2019-02-19 Thread Mark Johnston
Author: markj Date: Tue Feb 19 15:46:43 2019 New Revision: 344278 URL: https://svnweb.freebsd.org/changeset/base/344278 Log: Move a racy assertion in filt_pipewrite(). EVFILT_WRITE knotes for pipes live on the knlist for the other end of the pipe. Since they do not hold a reference on th

svn commit: r344305 - head/sys/geom

2019-02-19 Thread Mark Johnston
Author: markj Date: Tue Feb 19 21:22:22 2019 New Revision: 344305 URL: https://svnweb.freebsd.org/changeset/base/344305 Log: Impose a limit on the number of GEOM_CTL arguments. Otherwise a privileged user can trigger a memory allocation of unbounded size, or an integer overflow in the sub

svn commit: r344307 - head/sys/geom

2019-02-19 Thread Mark Johnston
Author: markj Date: Tue Feb 19 21:33:02 2019 New Revision: 344307 URL: https://svnweb.freebsd.org/changeset/base/344307 Log: Limit the number of entries allocated for a REPORT_ZONES command. The DIOCGETZONE ioctl can be used to fetch the zone list of an SMR drive, and the caller specifies

Re: svn commit: r344305 - head/sys/geom

2019-02-20 Thread Mark Johnston
On Wed, Feb 20, 2019 at 09:40:45PM +0700, Eugene Grosbein wrote: > 20.02.2019 4:22, Mark Johnston wrote: > > > Author: markj > > Date: Tue Feb 19 21:22:22 2019 > > New Revision: 344305 > > URL: https://svnweb.freebsd.org/changeset/base/344305 > > > >

svn commit: r344364 - vendor/illumos/dist/lib/libdtrace/common

2019-02-20 Thread Mark Johnston
Author: markj Date: Wed Feb 20 17:05:13 2019 New Revision: 344364 URL: https://svnweb.freebsd.org/changeset/base/344364 Log: 9058 postmortem DTrace frequently broken under vmware illumos/illumos-gate@793bd7e3617ae7d3d24e8c6b7d6befe35f07ec1f Reviewed by: Tim Kordas Reviewed by: Patri

svn commit: r344365 - head/sys/geom

2019-02-20 Thread Mark Johnston
Author: markj Date: Wed Feb 20 17:07:08 2019 New Revision: 344365 URL: https://svnweb.freebsd.org/changeset/base/344365 Log: Define a constant for the maximum number of GEOM_CTL arguments. Reviewed by: eugen MFC with: r344305 Sponsored by: The FreeBSD Foundation Differential Revi

svn commit: r344366 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2019-02-20 Thread Mark Johnston
Author: markj Date: Wed Feb 20 17:10:30 2019 New Revision: 344366 URL: https://svnweb.freebsd.org/changeset/base/344366 Log: MFV r344364: 9058 postmortem DTrace frequently broken under vmware illumos/illumos-gate@793bd7e3617ae7d3d24e8c6b7d6befe35f07ec1f MFC after:1 week Modified

svn commit: r344369 - head/sys/kern

2019-02-20 Thread Mark Johnston
Author: markj Date: Wed Feb 20 18:29:52 2019 New Revision: 344369 URL: https://svnweb.freebsd.org/changeset/base/344369 Log: Remove an obsolete comment. MFC after:3 days Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ===

svn commit: r344439 - svnadmin/conf

2019-02-21 Thread Mark Johnston
Author: markj Date: Thu Feb 21 15:31:01 2019 New Revision: 344439 URL: https://svnweb.freebsd.org/changeset/base/344439 Log: Release lwhsu from mentorship. Discussed with: emaste Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors ==

svn commit: r344440 - head/sys/vm

2019-02-21 Thread Mark Johnston
Author: markj Date: Thu Feb 21 15:44:32 2019 New Revision: 30 URL: https://svnweb.freebsd.org/changeset/base/30 Log: Clear pointers to indicate that the respective locks are released. This fixes a problem in r344231: vm_pageout_launder() may scan two queues when swap is disabled.

svn commit: r344450 - head/sys/modules/dtrace

2019-02-21 Thread Mark Johnston
Author: markj Date: Thu Feb 21 22:49:21 2019 New Revision: 344450 URL: https://svnweb.freebsd.org/changeset/base/344450 Log: Disconnect fasttrap from the 32-bit powerpc build. An upcoming bug fix requires 64-bit atomics, which aren't implemented on powerpc. The powerpc port of fasttrap i

svn commit: r344452 - in head/sys/cddl: contrib/opensolaris/uts/common/dtrace contrib/opensolaris/uts/intel/dtrace dev/dtrace

2019-02-21 Thread Mark Johnston
Author: markj Date: Thu Feb 21 22:54:17 2019 New Revision: 344452 URL: https://svnweb.freebsd.org/changeset/base/344452 Log: Fix a tracepoint lookup race in fasttrap_pid_probe(). fasttrap hooks the userspace breakpoint handler; the hook looks up the breakpoint address in a hash table of t

svn commit: r344453 - head/sys/cddl/contrib/opensolaris/uts/intel/dtrace

2019-02-21 Thread Mark Johnston
Author: markj Date: Thu Feb 21 22:56:54 2019 New Revision: 344453 URL: https://svnweb.freebsd.org/changeset/base/344453 Log: Commit a missing piece of r344452. MFC with: r344452 Modified: head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c Modified: head/sys/cddl/contr

svn commit: r344520 - stable/12/sys/vm

2019-02-25 Thread Mark Johnston
Author: markj Date: Mon Feb 25 15:50:28 2019 New Revision: 344520 URL: https://svnweb.freebsd.org/changeset/base/344520 Log: MFC r344231, r30: Remove a redundant flag variable. Modified: stable/12/sys/vm/vm_pageout.c Directory Properties: stable/12/ (props changed) Modified: stable

svn commit: r344521 - stable/12/sys/amd64/sgx

2019-02-25 Thread Mark Johnston
Author: markj Date: Mon Feb 25 15:50:59 2019 New Revision: 344521 URL: https://svnweb.freebsd.org/changeset/base/344521 Log: MFC r344232: Fix refcount leaks in the SGX Linux compat ioctl handler. Modified: stable/12/sys/amd64/sgx/sgx_linux.c Directory Properties: stable/12/ (props chang

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

2019-02-25 Thread Mark Johnston
Author: markj Date: Mon Feb 25 15:51:31 2019 New Revision: 344522 URL: https://svnweb.freebsd.org/changeset/base/344522 Log: MFC r344369: Remove an obsolete comment. Modified: stable/12/sys/kern/kern_descrip.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/ker

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

2019-02-25 Thread Mark Johnston
Author: markj Date: Mon Feb 25 19:22:13 2019 New Revision: 344550 URL: https://svnweb.freebsd.org/changeset/base/344550 Log: Improve vmem tuning for platforms without a direct map. On platforms without a direct map (i.e., platforms without UMA_MD_SMALL_ALLOC defined), the boundary tag all

svn commit: r344551 - in head/usr.bin/cmp: . tests

2019-02-25 Thread Mark Johnston
Author: markj Date: Mon Feb 25 19:47:27 2019 New Revision: 344551 URL: https://svnweb.freebsd.org/changeset/base/344551 Log: Fix handling of rights on stdio streams, take two. Split the rights-limiting code into two cases: if one of the input files isn't a regular file, use caph_limit_str

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

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 14:56:01 2019 New Revision: 344581 URL: https://svnweb.freebsd.org/changeset/base/344581 Log: MFC r344307: Limit the number of entries allocated for a REPORT_ZONES command. Modified: stable/12/sys/geom/geom_dev.c Directory Properties: stable/12/ (props cha

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

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 14:59:41 2019 New Revision: 344582 URL: https://svnweb.freebsd.org/changeset/base/344582 Log: MFC r344307: Limit the number of entries allocated for a REPORT_ZONES command. admbug: 807 Modified: stable/11/sys/geom/geom_dev.c Directory Properties:

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

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 15:03:59 2019 New Revision: 344583 URL: https://svnweb.freebsd.org/changeset/base/344583 Log: MFC r344305, r344365: Impose a limit on the number of GEOM_CTL arguments. admbug: 854 Modified: stable/12/sys/geom/geom_ctl.c stable/12/sys/geom/geom_ctl

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

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 15:06:44 2019 New Revision: 344584 URL: https://svnweb.freebsd.org/changeset/base/344584 Log: MFC r344305, r344365: Impose a limit on the number of GEOM_CTL arguments. admbug: 854 Modified: stable/11/sys/geom/geom_ctl.c stable/11/sys/geom/geom_ctl

svn commit: r344587 - in head/sys/cddl/contrib/opensolaris/uts: aarch64 arm mips riscv

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 16:31:47 2019 New Revision: 344587 URL: https://svnweb.freebsd.org/changeset/base/344587 Log: Remove stub fasttrap implementations. No platforms except i386, amd64 and powerpc implement fasttrap; the fasttrap files for other arches do not contain any code an

svn commit: r344588 - head/sys/cddl/contrib/opensolaris/uts/intel/dtrace

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 16:34:43 2019 New Revision: 344588 URL: https://svnweb.freebsd.org/changeset/base/344588 Log: Remove illumos-specific code from the x86 fasttrap_isa.c. The file has not been touched upstream in over a decade, and the nature of the code means that a lot of Fr

svn commit: r344591 - in head/sys/cddl/contrib/opensolaris/uts: aarch64 arm mips riscv

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 17:33:56 2019 New Revision: 344591 URL: https://svnweb.freebsd.org/changeset/base/344591 Log: Revert r344587. The fasttrap_isa.h header is needed by libdtrace, not just the kernel. Added: head/sys/cddl/contrib/opensolaris/uts/aarch64/ - copied from r34

svn commit: r344599 - in head/sys/cddl/contrib/opensolaris/uts: common/dtrace intel/dtrace

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 18:20:41 2019 New Revision: 344599 URL: https://svnweb.freebsd.org/changeset/base/344599 Log: Fix fasttrap_sig{trap,segv}(). - Don't leak the ksiginfo structure. - Hold the proc lock when sending a signal in fasttrap_sigsegv(). MFC after:1 week Sp

svn commit: r344600 - head/sys/geom/concat

2019-02-26 Thread Mark Johnston
Author: markj Date: Tue Feb 26 18:30:51 2019 New Revision: 344600 URL: https://svnweb.freebsd.org/changeset/base/344600 Log: Add a missing return statement to g_concat_kernel_dump(). The error occurs when upper layers attempt an out-of-bounds write. Submitted by: Noah Bergbauer MFC

svn commit: r344629 - head/usr.sbin/rtsold

2019-02-27 Thread Mark Johnston
Author: markj Date: Wed Feb 27 18:13:41 2019 New Revision: 344629 URL: https://svnweb.freebsd.org/changeset/base/344629 Log: rtsol: Use vwarnx(3) to log messages to standard error. This ensures that the program name is included in the output, which makes it easy to identify the source of

svn commit: r344670 - head/sys/kern

2019-02-28 Thread Mark Johnston
Author: markj Date: Thu Feb 28 22:00:36 2019 New Revision: 344670 URL: https://svnweb.freebsd.org/changeset/base/344670 Log: Allow FIONBIO and FIOASYNC ioctls on POSIX shm descriptors. They have no effect, as with filesystem file descriptors. This improves compatibility with some existing

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

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 19:37:06 2019 New Revision: 344819 URL: https://svnweb.freebsd.org/changeset/base/344819 Log: MFC r344278: Move a racy assertion in filt_pipewrite(). PR: 235640 Modified: stable/12/sys/kern/sys_pipe.c Directory Properties: stable/12/ (props changed)

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

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 19:39:13 2019 New Revision: 344820 URL: https://svnweb.freebsd.org/changeset/base/344820 Log: MFC r344278: Move a racy assertion in filt_pipewrite(). PR: 235640 Modified: stable/11/sys/kern/sys_pipe.c Directory Properties: stable/11/ (props changed)

svn commit: r344821 - stable/12/sys/geom/concat

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 19:41:08 2019 New Revision: 344821 URL: https://svnweb.freebsd.org/changeset/base/344821 Log: MFC r344600: Add a missing return statement to g_concat_kernel_dump(). Modified: stable/12/sys/geom/concat/g_concat.c Directory Properties: stable/12/ (props chan

svn commit: r344822 - stable/11/sys/geom/concat

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 19:41:32 2019 New Revision: 344822 URL: https://svnweb.freebsd.org/changeset/base/344822 Log: MFC r344600: Add a missing return statement to g_concat_kernel_dump(). Modified: stable/11/sys/geom/concat/g_concat.c Directory Properties: stable/11/ (props chan

svn commit: r344823 - in head: sys/kern sys/sys usr.bin/procstat

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 19:45:37 2019 New Revision: 344823 URL: https://svnweb.freebsd.org/changeset/base/344823 Log: Show wiring state of map entries in procstat -v. Note that only entries wired by userspace are shown as such. In particular, entries transiently wired by sysctl_wi

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

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 23:56:40 2019 New Revision: 344827 URL: https://svnweb.freebsd.org/changeset/base/344827 Log: Add pmap_get_tables() for riscv. This mirrors the arm64 implementation and is for use in the minidump code. Submitted by: Mitchell Horne Differential Revisi

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

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 23:58:16 2019 New Revision: 344828 URL: https://svnweb.freebsd.org/changeset/base/344828 Log: Initialize dump_avail[] on riscv. Submitted by: Mitchell Horne Differential Revision:https://reviews.freebsd.org/D19170 Modified: head/sys/riscv/riscv/p

svn commit: r344829 - head/lib/libkvm

2019-03-05 Thread Mark Johnston
Author: markj Date: Tue Mar 5 23:59:55 2019 New Revision: 344829 URL: https://svnweb.freebsd.org/changeset/base/344829 Log: Add riscv minidump support to libkvm. Submitted by: Mitchell Horne Differential Revision:https://reviews.freebsd.org/D19171 Added: head/lib/libkvm/kvm_m

svn commit: r344830 - in head/sys: riscv/riscv vm

2019-03-05 Thread Mark Johnston
Author: markj Date: Wed Mar 6 00:01:06 2019 New Revision: 344830 URL: https://svnweb.freebsd.org/changeset/base/344830 Log: Implement minidump support for RISC-V. Submitted by: Mitchell Horne Differential Revision:https://reviews.freebsd.org/D18320 Modified: head/sys/riscv/ri

svn commit: r344845 - in head: lib/libkvm sys/riscv/riscv

2019-03-06 Thread Mark Johnston
Author: markj Date: Wed Mar 6 16:50:14 2019 New Revision: 344845 URL: https://svnweb.freebsd.org/changeset/base/344845 Log: Reorder copyright lines to preserve the source of "All rights reserved." Reported by: rgrimes MFC with: r344829, r344830 Modified: head/lib/libkvm/kvm_riscv

svn commit: r344935 - in head: contrib/netbsd-tests/lib/libpthread lib/libthr/thread

2019-03-08 Thread Mark Johnston
Author: markj Date: Fri Mar 8 21:07:08 2019 New Revision: 344935 URL: https://svnweb.freebsd.org/changeset/base/344935 Log: Have pthread_cond_destroy() return EBUSY if the condvar has waiters. This is not required of a compliant implementation, but it's easy to check for and helps improv

svn commit: r344973 - stable/12/usr.bin/write

2019-03-09 Thread Mark Johnston
Author: markj Date: Sat Mar 9 21:09:44 2019 New Revision: 344973 URL: https://svnweb.freebsd.org/changeset/base/344973 Log: MFC r343354: Remove extraneous setutxent() calls in write(1). PR: 235096 Modified: stable/12/usr.bin/write/write.c Directory Properties: stable/12/ (props

svn commit: r344988 - in stable/12/sys: kern vm

2019-03-10 Thread Mark Johnston
Author: markj Date: Mon Mar 11 00:52:55 2019 New Revision: 344988 URL: https://svnweb.freebsd.org/changeset/base/344988 Log: MFC r344550: Improve vmem tuning for platforms without a direct map. Modified: stable/12/sys/kern/subr_vmem.c stable/12/sys/vm/vm_kern.c Directory Properties: sta

svn commit: r345186 - in stable/11/sys: conf dev/fxp modules/fxp

2019-03-15 Thread Mark Johnston
Author: markj Date: Fri Mar 15 15:16:31 2019 New Revision: 345186 URL: https://svnweb.freebsd.org/changeset/base/345186 Log: MFC r342214: Remove a use of a negative array index from fxp(4). Modified: stable/11/sys/conf/files stable/11/sys/conf/kern.mk stable/11/sys/dev/fxp/if_fxp.c st

svn commit: r345244 - head/sys/ufs/ufs

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 17:34:06 2019 New Revision: 345244 URL: https://svnweb.freebsd.org/changeset/base/345244 Log: Optimize lseek(SEEK_DATA) on UFS. The old implementation, at the VFS layer, would map the entire range of logical blocks between the starting offset and the first d

Re: svn commit: r345244 - head/sys/ufs/ufs

2019-03-17 Thread Mark Johnston
On Sun, Mar 17, 2019 at 05:34:06PM +, Mark Johnston wrote: > Author: markj > Date: Sun Mar 17 17:34:06 2019 > New Revision: 345244 > URL: https://svnweb.freebsd.org/changeset/base/345244 > > Log: > Optimize lseek(SEEK_DATA) on UFS. > > The old implementati

svn commit: r345245 - head/sys/ufs/ufs

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 18:06:13 2019 New Revision: 345245 URL: https://svnweb.freebsd.org/changeset/base/345245 Log: Fix the gcc build (-Wstrict-prototypes) after r345244. Reported by: jenkins MFC with: r345244 Modified: head/sys/ufs/ufs/ufs_bmap.c Modified: head/sys/ufs/

svn commit: r345247 - in stable/12/sys: cddl/contrib/opensolaris/uts/common/dtrace cddl/contrib/opensolaris/uts/intel/dtrace cddl/dev/dtrace modules/dtrace

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 20:30:27 2019 New Revision: 345247 URL: https://svnweb.freebsd.org/changeset/base/345247 Log: MFC r344450, r344452, r344453: Fix a tracepoint lookup race in fasttrap_pid_probe(). Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c s

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

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 20:41:06 2019 New Revision: 345248 URL: https://svnweb.freebsd.org/changeset/base/345248 Log: MFC r344670: Allow FIONBIO and FIOASYNC ioctls on POSIX shm descriptors. Modified: stable/12/sys/kern/uipc_shm.c Modified: stable/12/sys/kern/uipc_shm.c

svn commit: r345249 - stable/12/sys/cddl/contrib/opensolaris/uts/intel/dtrace

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 20:43:01 2019 New Revision: 345249 URL: https://svnweb.freebsd.org/changeset/base/345249 Log: MFC r344588: Remove illumos-specific code from the x86 fasttrap_isa.c. Modified: stable/12/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c Directory Prop

svn commit: r345250 - in stable/12/sys/cddl/contrib/opensolaris/uts: common/dtrace intel/dtrace

2019-03-17 Thread Mark Johnston
Author: markj Date: Sun Mar 17 20:43:31 2019 New Revision: 345250 URL: https://svnweb.freebsd.org/changeset/base/345250 Log: MFC r344599: Fix fasttrap_sig{trap,segv}(). Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c stable/12/sys/cddl/contrib/opensolaris/uts

svn commit: r345255 - head/sys/ufs/ufs

2019-03-17 Thread Mark Johnston
Author: markj Date: Mon Mar 18 05:03:55 2019 New Revision: 345255 URL: https://svnweb.freebsd.org/changeset/base/345255 Log: Revert r345244 for now. The code which advances the block number is simplistic and is not correct when the starting offset is non-zero. Revert the change until t

svn commit: r345348 - head/sys/conf

2019-03-20 Thread Mark Johnston
Author: markj Date: Wed Mar 20 20:42:44 2019 New Revision: 345348 URL: https://svnweb.freebsd.org/changeset/base/345348 Log: Use -fdebug-prefix-map to map auto-generated kernel build paths. The kernel build uses symlinks to make MD #includes like work. Debug info ends up referencing the

svn commit: r345355 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall

2019-03-20 Thread Mark Johnston
Author: markj Date: Wed Mar 20 23:35:15 2019 New Revision: 345355 URL: https://svnweb.freebsd.org/changeset/base/345355 Log: Ensure that we use a 64-bit value for the last mmap() argument. When using __syscall(2), the offset argument is passed on the stack on amd64. Previously only 32 bi

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

2019-03-20 Thread Mark Johnston
Author: markj Date: Thu Mar 21 02:52:22 2019 New Revision: 345359 URL: https://svnweb.freebsd.org/changeset/base/345359 Log: Don't attempt to measure TSC skew when running as a VM guest. It simply doesn't work in general since VCPUs may migrate between physical cores. The approach used t

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

2019-03-20 Thread Mark Johnston
On Wed, Mar 20, 2019 at 08:20:18PM -0700, Rodney W. Grimes wrote: > > Author: markj > > Date: Thu Mar 21 02:52:22 2019 > > New Revision: 345359 > > URL: https://svnweb.freebsd.org/changeset/base/345359 > > > > Log: > > Don't attempt to measure TSC skew when running as a VM guest. > > > > It

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

2019-03-21 Thread Mark Johnston
On Thu, Mar 21, 2019 at 10:44:49PM +1100, Bruce Evans wrote: > On Wed, 20 Mar 2019, Mark Johnston wrote: > > > On Wed, Mar 20, 2019 at 08:20:18PM -0700, Rodney W. Grimes wrote: > >>> Author: markj > >>> Date: Thu Mar 21 02:52:22 2019 > &g

svn commit: r345382 - in head/sys: amd64/amd64 i386/i386 vm

2019-03-21 Thread Mark Johnston
Author: markj Date: Thu Mar 21 19:52:50 2019 New Revision: 345382 URL: https://svnweb.freebsd.org/changeset/base/345382 Log: Disallow preemptive creation of wired superpage mappings. There are some unusual cases where a process may cause an mlock()ed range of memory to be unmapped. If th

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

2019-03-21 Thread Mark Johnston
Author: markj Date: Thu Mar 21 20:07:50 2019 New Revision: 345384 URL: https://svnweb.freebsd.org/changeset/base/345384 Log: Use an explicit comparison with VM_GUEST_NO. Reported by: jhb MFC with: r345359 Sponsored by: The FreeBSD Foundation Modified: head/sys/cddl/dev/dtrace/am

svn commit: r345396 - svnadmin/conf

2019-03-21 Thread Mark Johnston
Author: markj Date: Thu Mar 21 22:30:44 2019 New Revision: 345396 URL: https://svnweb.freebsd.org/changeset/base/345396 Log: Welcome Mitchell Horne (mhorne@) to the ranks of src committers. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf

svn commit: r345501 - in stable/12: contrib/netbsd-tests/lib/libpthread lib/libthr/thread

2019-03-25 Thread Mark Johnston
Author: markj Date: Mon Mar 25 14:05:35 2019 New Revision: 345501 URL: https://svnweb.freebsd.org/changeset/base/345501 Log: MFC r344935: Have pthread_cond_destroy() return EBUSY if the condvar has waiters. PR: 234805 Modified: stable/12/contrib/netbsd-tests/lib/libpthread/t_cond.c

svn commit: r345500 - stable/12/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall

2019-03-25 Thread Mark Johnston
Author: markj Date: Mon Mar 25 14:04:23 2019 New Revision: 345500 URL: https://svnweb.freebsd.org/changeset/base/345500 Log: MFC r345355: Ensure that we use a 64-bit value for the last mmap() argument. Modified: stable/12/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args

svn commit: r345502 - in stable/12: sys/kern sys/sys usr.bin/procstat

2019-03-25 Thread Mark Johnston
Author: markj Date: Mon Mar 25 14:08:49 2019 New Revision: 345502 URL: https://svnweb.freebsd.org/changeset/base/345502 Log: MFC r344823: Show wiring state of map entries in procstat -v. Modified: stable/12/sys/kern/kern_proc.c stable/12/sys/sys/user.h stable/12/usr.bin/procstat/procsta

svn commit: r345513 - head/sys/kern

2019-03-25 Thread Mark Johnston
Author: markj Date: Mon Mar 25 21:38:58 2019 New Revision: 345513 URL: https://svnweb.freebsd.org/changeset/base/345513 Log: Reject F_SETLK_REMOTE commands when sysid == 0. A sysid of 0 denotes the local system, and some handlers for remote locking commands do not attempt to deal with loc

svn commit: r345560 - head/sys/netinet

2019-03-26 Thread Mark Johnston
Author: markj Date: Tue Mar 26 22:14:50 2019 New Revision: 345560 URL: https://svnweb.freebsd.org/changeset/base/345560 Log: Add CTLFLAG_VNET to the net.inet.icmp.tstamprepl definition. Reported by: Hans Fiedler MFC after:3 days Modified: head/sys/netinet/ip_icmp.c Modified: hea

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

2019-03-27 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-03-27 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: r345596 - in head/lib/libutil: . tests

2019-03-27 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: r346437 - stable/11/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:03:46 2019 New Revision: 346437 URL: https://svnweb.freebsd.org/changeset/base/346437 Log: MFC r346010: Fix indentation. Modified: stable/11/usr.sbin/bhyve/uart_emul.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/bhyve/

svn commit: r346439 - stable/12/sys/conf

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:05:56 2019 New Revision: 346439 URL: https://svnweb.freebsd.org/changeset/base/346439 Log: MFC r345348, r345594: Use -fdebug-prefix-map to map auto-generated kernel build paths. Modified: stable/12/sys/conf/kern.post.mk stable/12/sys/conf/kmod.mk Director

svn commit: r346438 - stable/12/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:04:13 2019 New Revision: 346438 URL: https://svnweb.freebsd.org/changeset/base/346438 Log: MFC r346010: Fix indentation. Modified: stable/12/usr.sbin/bhyve/uart_emul.c Directory Properties: stable/12/ (props changed) Modified: stable/12/usr.sbin/bhyve/

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: r346433 - stable/12/contrib/elftoolchain/libdwarf

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 10:58:33 2019 New Revision: 346433 URL: https://svnweb.freebsd.org/changeset/base/346433 Log: MFC r345593: Prepend DW_AT_comp_dir to relative line number directory table entries. Modified: stable/12/contrib/elftoolchain/libdwarf/libdwarf_lineno.c Directory Pro

svn commit: r346434 - in stable/12/sys: net netinet6

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:01:47 2019 New Revision: 346434 URL: https://svnweb.freebsd.org/changeset/base/346434 Log: MFC r345739: Do not perform DAD on stf(4) interfaces. Modified: stable/12/sys/net/if_stf.c stable/12/sys/netinet6/in6.c stable/12/sys/netinet6/in6_ifattach.c st

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: 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: r346432 - stable/12/sys/kern

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 10:56:56 2019 New Revision: 346432 URL: https://svnweb.freebsd.org/changeset/base/346432 Log: MFC r345513: Reject F_SETLK_REMOTE commands when sysid == 0. Modified: stable/12/sys/kern/kern_descrip.c Directory Properties: stable/12/ (props changed) Modifie

svn commit: r346435 - stable/12/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:02:40 2019 New Revision: 346435 URL: https://svnweb.freebsd.org/changeset/base/346435 Log: MFC r346011: Stop compiling bhyve(8) with -O0. Modified: stable/12/usr.sbin/bhyve/Makefile Directory Properties: stable/12/ (props changed) Modified: stable/12/u

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: r346436 - stable/11/usr.sbin/bhyve

2019-09-03 Thread Mark Johnston
Author: markj Date: Sat Apr 20 11:03:16 2019 New Revision: 346436 URL: https://svnweb.freebsd.org/changeset/base/346436 Log: MFC r346011: Stop compiling bhyve(8) with -O0. Modified: stable/11/usr.sbin/bhyve/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/u

svn commit: r346541 - in stable/11: sys/kern tests/sys/kern

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:17:37 2019 New Revision: 346541 URL: https://svnweb.freebsd.org/changeset/base/346541 Log: MFC r346009: Set the p_oppid field of orphans when exiting. Modified: stable/11/sys/kern/kern_exit.c stable/11/tests/sys/kern/ptrace_test.c Directory Properties:

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: r346540 - in stable/12: sys/kern tests/sys/kern

2019-09-03 Thread Mark Johnston
Author: markj Date: Mon Apr 22 11:13:53 2019 New Revision: 346540 URL: https://svnweb.freebsd.org/changeset/base/346540 Log: MFC r346009: Set the p_oppid field of orphans when exiting. Modified: stable/12/sys/kern/kern_exit.c stable/12/tests/sys/kern/ptrace_test.c Directory Properties:

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

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

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

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

2019-09-08 Thread Mark Johnston
Author: markj Date: Sun Sep 8 20:28:06 2019 New Revision: 352038 URL: https://svnweb.freebsd.org/changeset/base/352038 Log: MFC r351547, r351549: Fix several logic issues in domainset_empty_vm(). Modified: stable/12/sys/kern/kern_cpuset.c Directory Properties: stable/12/ (props changed

<    8   9   10   11   12   13   14   15   16   17   >