Re: svn commit: r362333 - in head: contrib/flex contrib/flex/src usr.bin/lex usr.bin/lex/lib

2021-02-13 Thread Mark Johnston
On Sat, Feb 13, 2021 at 02:39:56AM -0500, Jung-uk Kim wrote: > On 21. 2. 13., Jung-uk Kim wrote: > > On 21. 2. 12., Mark Johnston wrote: > >> On Thu, Jun 18, 2020 at 06:09:16PM +, Jung-uk Kim wrote: > >>> Author: jkim > >>> Date: Thu Jun 18 18:09:16

Re: svn commit: r362333 - in head: contrib/flex contrib/flex/src usr.bin/lex usr.bin/lex/lib

2021-02-12 Thread Mark Johnston
On Thu, Jun 18, 2020 at 06:09:16PM +, Jung-uk Kim wrote: > Author: jkim > Date: Thu Jun 18 18:09:16 2020 > New Revision: 362333 > URL: https://svnweb.freebsd.org/changeset/base/362333 > > Log: > MFV:r362286 > > Merge flex 2.6.4. This seems to have introduced a regression: input

svn commit: r368763 - head/sys/dev/acpica

2020-12-18 Thread Mark Johnston
Author: markj Date: Fri Dec 18 16:04:48 2020 New Revision: 368763 URL: https://svnweb.freebsd.org/changeset/base/368763 Log: acpi: Ensure that adjacent memory affinity table entries are coalesced The SRAT may contain multiple distinct entries that together describe a contiguous region of

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

2020-12-18 Thread Mark Johnston
Author: markj Date: Fri Dec 18 16:02:28 2020 New Revision: 368762 URL: https://svnweb.freebsd.org/changeset/base/368762 Log: Fix the ipfw service status output when ipfw.ko isn't loaded Reported by: lme Reviewed by: lme MFC after:1 week Differential Revision:https://revi

Re: svn commit: r368523 - head/sys/vm

2020-12-15 Thread Mark Johnston
On Tue, Dec 15, 2020 at 03:33:09PM +0100, Hans Petter Selasky wrote: > On 12/15/20 3:27 PM, Mark Johnston wrote: > >> I'm seeing the following panic: > >> > >> panic("vm_wait in early boot") > >> vm_wait_domain() > >

Re: svn commit: r368523 - head/sys/vm

2020-12-15 Thread Mark Johnston
On Tue, Dec 15, 2020 at 01:59:22PM +0100, Hans Petter Selasky wrote: > On 12/10/20 9:44 PM, Bryan Drewery wrote: > > Author: bdrewery > > Date: Thu Dec 10 20:44:29 2020 > > New Revision: 368523 > > URL: https://svnweb.freebsd.org/changeset/base/368523 > > > > Log: > >contig allocs: Don't retry

svn commit: r368486 - head/sys/kern

2020-12-09 Thread Mark Johnston
Author: markj Date: Wed Dec 9 14:05:08 2020 New Revision: 368486 URL: https://svnweb.freebsd.org/changeset/base/368486 Log: Plug a race between fd table teardown and several loops To export information from fd tables we have several loops which do this: FILDESC_SLOCK(fdp); for (i

svn commit: r368485 - head/sys/kern

2020-12-09 Thread Mark Johnston
Author: markj Date: Wed Dec 9 14:04:54 2020 New Revision: 368485 URL: https://svnweb.freebsd.org/changeset/base/368485 Log: Use refcount_load(9) to load fd table reference counts No functional change intended. Reviewed by: kib, mjg Sponsored by: The FreeBSD Foundation Differentia

svn commit: r368414 - in head/sys/arm: arm include

2020-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 7 15:09:28 2020 New Revision: 368414 URL: https://svnweb.freebsd.org/changeset/base/368414 Log: arm: Let the GDB stub write to SP, LR and GP registers This can be handy if gdb's stack unwinder fails, for example because of a bug in kgdb's trap frame unwinder.

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

2020-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 7 14:53:34 2020 New Revision: 368413 URL: https://svnweb.freebsd.org/changeset/base/368413 Log: Add missing refcount.9 MLINKS Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile ===

svn commit: r368412 - head/sys/net

2020-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 7 14:53:14 2020 New Revision: 368412 URL: https://svnweb.freebsd.org/changeset/base/368412 Log: iflib: Avoid leaking the freelist bitmaps upon driver detach Submitted by: Sai Rajesh Tallamraju MFC after:2 weeks Sponsored by: NetApp, Inc. Differential

svn commit: r368411 - head/sys/net

2020-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 7 14:52:57 2020 New Revision: 368411 URL: https://svnweb.freebsd.org/changeset/base/368411 Log: iflib: Detach tasks upon device registration failure In some error paths we would fail to detach from the iflib taskqueue groups. Also move the detach code into it

svn commit: r368400 - head/sys/vm

2020-12-06 Thread Mark Johnston
Author: markj Date: Sun Dec 6 22:45:50 2020 New Revision: 368400 URL: https://svnweb.freebsd.org/changeset/base/368400 Log: uma: Make uma_zone_set_maxcache() work better with small limits The old implementation chose the largest bucket zone such that if the per-CPU caches are fully popul

svn commit: r368399 - head/sys/vm

2020-12-06 Thread Mark Johnston
Author: markj Date: Sun Dec 6 22:45:39 2020 New Revision: 368399 URL: https://svnweb.freebsd.org/changeset/base/368399 Log: uma: Enforce the use of uz_bucket_size_max in the free path uz_bucket_size_max is the maximum permitted bucket size. When filling a new bucket to satisfy uma_zallo

svn commit: r368398 - head/sys/vm

2020-12-06 Thread Mark Johnston
Author: markj Date: Sun Dec 6 22:45:22 2020 New Revision: 368398 URL: https://svnweb.freebsd.org/changeset/base/368398 Log: uma: Use atomic load for uz_sleepers This field is updated locklessly. Sponsored by: The FreeBSD Foundation Modified: head/sys/vm/uma_core.c Modified: head/s

svn commit: r368307 - in head: lib/libkvm sys/arm/arm sys/kern sys/mips/mips

2020-12-03 Thread Mark Johnston
Author: markj Date: Thu Dec 3 17:12:31 2020 New Revision: 368307 URL: https://svnweb.freebsd.org/changeset/base/368307 Log: Always use 64-bit physical addresses for dump_avail[] in minidumps As of r365978, minidumps include a copy of dump_avail[]. This is an array of vm_paddr_t ranges.

svn commit: r368306 - head/sys/cddl/dev/sdt

2020-12-03 Thread Mark Johnston
Author: markj Date: Thu Dec 3 17:10:00 2020 New Revision: 368306 URL: https://svnweb.freebsd.org/changeset/base/368306 Log: sdt: Create providers and probes in separate passes when loading sdt.ko The sdt module's load handler iterates over SDT linker sets for the kernel and all loaded mo

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

2020-12-02 Thread Mark Johnston
Author: markj Date: Wed Dec 2 16:46:45 2020 New Revision: 368278 URL: https://svnweb.freebsd.org/changeset/base/368278 Log: rtsold: Fix bugs reported by Coverity - Avoid leaking a socket if llflags_get() fails. - Avoid leaking a file handle if rtsold_init_dumpfile() fails. - Tighten th

svn commit: r368276 - head/sys/netpfil/pf

2020-12-02 Thread Mark Johnston
Author: markj Date: Wed Dec 2 16:01:43 2020 New Revision: 368276 URL: https://svnweb.freebsd.org/changeset/base/368276 Log: pf: Fix table entry counter toggling When updating a table, pf will keep existing table entry structures corresponding to addresses that are in both of the old and

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

2020-12-01 Thread Mark Johnston
Author: markj Date: Tue Dec 1 19:34:44 2020 New Revision: 368248 URL: https://svnweb.freebsd.org/changeset/base/368248 Log: rtsold: Fix multiple buffer overflows Approved by: so Security: CVE-2020-25577 MFC after:now Modified: head/usr.sbin/rtsold/rtsol.c Modified: head/us

svn commit: r368236 - head/sys/kern

2020-12-01 Thread Mark Johnston
Author: markj Date: Tue Dec 1 16:06:31 2020 New Revision: 368236 URL: https://svnweb.freebsd.org/changeset/base/368236 Log: vmem: Revert r364744 A pair of bugs are believed to have caused the hangs described in the commit log message for r364744: 1. uma_reclaim() could trigger recla

svn commit: r368194 - head/sys/dev/qat

2020-11-30 Thread Mark Johnston
Author: markj Date: Mon Nov 30 20:53:45 2020 New Revision: 368194 URL: https://svnweb.freebsd.org/changeset/base/368194 Log: qat: Initialize the crypto device ID to -1 instead of 0 Otherwise qat_detach() may attempt to deregister an unrelated crypto driver if an error occurs in qat_attach

svn commit: r368193 - in head/sys: dev/qat modules/qatfw/qat_c2xxx modules/qatfw/qat_c3xxx modules/qatfw/qat_c62x modules/qatfw/qat_d15xx modules/qatfw/qat_dh895xcc

2020-11-30 Thread Mark Johnston
Author: markj Date: Mon Nov 30 20:53:25 2020 New Revision: 368193 URL: https://svnweb.freebsd.org/changeset/base/368193 Log: qat: Fix firmware module autoloading If firmware_get() fails to find a loaded firmware image, it searches for candidate KLDs to load. It will search for a KLD cont

svn commit: r368189 - head/sys/vm

2020-11-30 Thread Mark Johnston
Author: markj Date: Mon Nov 30 16:18:33 2020 New Revision: 368189 URL: https://svnweb.freebsd.org/changeset/base/368189 Log: uma: Avoid allocating buckets with the cross-domain lock held Allocation of a bucket can trigger a cross-domain free in the bucket zone, e.g., if the per-CPU alloc

svn commit: r368112 - in head/sys: kern sys

2020-11-27 Thread Mark Johnston
Author: markj Date: Fri Nov 27 20:46:02 2020 New Revision: 368112 URL: https://svnweb.freebsd.org/changeset/base/368112 Log: callout(9): Remove some leftover APM BIOS support This code is obsolete since r366546. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Re

svn commit: r368108 - head/sys/arm/include

2020-11-27 Thread Mark Johnston
Author: markj Date: Fri Nov 27 16:35:43 2020 New Revision: 368108 URL: https://svnweb.freebsd.org/changeset/base/368108 Log: arm: Correctly report the size of FPA registers to GDB Modern ARM systems do not have an FPA unit but GDB reserves register indices for FPA registers and expects th

svn commit: r367989 - head/sys/dev/ata

2020-11-24 Thread Mark Johnston
Author: markj Date: Tue Nov 24 17:13:08 2020 New Revision: 367989 URL: https://svnweb.freebsd.org/changeset/base/367989 Log: ata(4): Release the ioport resource if device initialization fails PR: 251346 Submitted by: j...@transactionware.com MFC after:1 week Modified: h

svn commit: r367988 - head/sbin/ping

2020-11-24 Thread Mark Johnston
Author: markj Date: Tue Nov 24 17:12:40 2020 New Revision: 367988 URL: https://svnweb.freebsd.org/changeset/base/367988 Log: ping(8): Improve parameter validation - Use strtonum(3) to simplify bounds checking of numeric parameters. - Fix bounds checking when filling out packet data in "sw

svn commit: r367987 - head/sys/netpfil/pf

2020-11-24 Thread Mark Johnston
Author: markj Date: Tue Nov 24 16:18:47 2020 New Revision: 367987 URL: https://svnweb.freebsd.org/changeset/base/367987 Log: pf: Make tag hashing more robust tagname2tag() hashes the tag name before truncating it to 63 characters. tag_unref() removes the tag from the name hash by computin

svn commit: r367849 - head/sys/kern

2020-11-19 Thread Mark Johnston
Author: markj Date: Thu Nov 19 18:37:28 2020 New Revision: 367849 URL: https://svnweb.freebsd.org/changeset/base/367849 Log: callout(9): Fix a race between CPU migration and callout_drain() Suppose a running callout re-arms itself, and before the callout finishes running another CPU calls

svn commit: r367845 - head/sys/vm

2020-11-19 Thread Mark Johnston
Author: markj Date: Thu Nov 19 15:41:42 2020 New Revision: 367845 URL: https://svnweb.freebsd.org/changeset/base/367845 Log: Wrap a long line in vm_pqbatch_process_page() Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c =

svn commit: r367844 - head/sys/vm

2020-11-19 Thread Mark Johnston
Author: markj Date: Thu Nov 19 15:40:58 2020 New Revision: 367844 URL: https://svnweb.freebsd.org/changeset/base/367844 Log: Micro-optimize vm_page_pqbatch_submit() Avoid calling vm_page_domain() twice. Discussed with: alc (in D27207) Modified: head/sys/vm/vm_page.c Modified:

Re: svn commit: r367695 - in head/sys: kern sys

2020-11-18 Thread Mark Johnston
On Wed, Nov 18, 2020 at 03:37:36PM -0800, John Baldwin wrote: > On 11/18/20 2:16 PM, Mateusz Guzik wrote: > > On 11/17/20, John Baldwin wrote: > >> On 11/14/20 11:22 AM, Mateusz Guzik wrote: > > Interested parties can check the consumer (also seen in the diff) to > > see this is for consistency. I

svn commit: r367828 - in head/sys: amd64/amd64 dev/mem powerpc/aim vm

2020-11-18 Thread Mark Johnston
Author: markj Date: Thu Nov 19 03:59:21 2020 New Revision: 367828 URL: https://svnweb.freebsd.org/changeset/base/367828 Log: vm_phys: Try to clean up NUMA KPIs It can useful for code outside the VM system to look up the NUMA domain of a page backing a virtual or physical address, specific

svn commit: r367827 - head/sys/conf

2020-11-18 Thread Mark Johnston
Author: markj Date: Thu Nov 19 02:53:29 2020 New Revision: 367827 URL: https://svnweb.freebsd.org/changeset/base/367827 Log: Move kern_clocksource.c to sys/conf/files Sponsored by: The FreeBSD Foundation Modified: head/sys/conf/files head/sys/conf/files.amd64 head/sys/conf/files.arm

svn commit: r367826 - in head/sys: arm/arm arm/include conf kern

2020-11-18 Thread Mark Johnston
Author: markj Date: Thu Nov 19 02:50:48 2020 New Revision: 367826 URL: https://svnweb.freebsd.org/changeset/base/367826 Log: Remove NO_EVENTTIMERS support The arm configs that required it have been removed from the tree. Removing this option makes the callout code easier to read and dis

svn commit: r367642 - head/bin/df

2020-11-13 Thread Mark Johnston
Author: markj Date: Fri Nov 13 16:47:42 2020 New Revision: 367642 URL: https://svnweb.freebsd.org/changeset/base/367642 Log: df: Remove support for mounting devices This was marked deprecated in r329092, over two and a half years ago. This functionality is also buggy per PR 237368. P

svn commit: r367617 - head/sys/dev/qat

2020-11-12 Thread Mark Johnston
Author: markj Date: Thu Nov 12 15:00:48 2020 New Revision: 367617 URL: https://svnweb.freebsd.org/changeset/base/367617 Log: qat: Fix nits reported by Coverity MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/sys/dev/qat/qat.c head/sys/dev/qat/q

svn commit: r367596 - head/sys/net

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 18:00:06 2020 New Revision: 367596 URL: https://svnweb.freebsd.org/changeset/base/367596 Log: iflib: Free full mbuf chains when draining transmit queues Submitted by: Sai Rajesh Tallamraju Reviewed by: gallatin, hselasky MFC after:1 week Sponsored

svn commit: r367595 - head/sys/vm

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 17:16:39 2020 New Revision: 367595 URL: https://svnweb.freebsd.org/changeset/base/367595 Log: vm_map: Handle kernel map entry allocator recursion On platforms without a direct map[*], vm_map_insert() may in rare situations need to allocate a kernel map entry

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

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 15:01:17 2020 New Revision: 367593 URL: https://svnweb.freebsd.org/changeset/base/367593 Log: vmm: Make pmap_invalidate_ept() wait synchronously for guest exits Currently EPT TLB invalidation is done by incrementing a generation counter and issuing an IPI to

svn commit: r367590 - head/sys/sys

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 14:03:49 2020 New Revision: 367590 URL: https://svnweb.freebsd.org/changeset/base/367590 Log: Remove an extraneous parameter from SIGIO_ASSERT_LOCKED() Reported by: hselasky MFC with: r367588 Modified: head/sys/sys/signalvar.h Modified: head/sys/sys

Re: svn commit: r367588 - in head/sys: kern sys

2020-11-11 Thread Mark Johnston
On Wed, Nov 11, 2020 at 02:58:32PM +0100, Hans Petter Selasky wrote: > On 11/11/20 2:44 PM, Mark Johnston wrote: > > +#defineSIGIO_ASSERT_LOCKED(type) mtx_assert(&sigio_lock, MA_OWNED) > > > > Minor nit: "type" argument can be

svn commit: r367589 - in head/sys: geom ufs/ffs

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 13:48:07 2020 New Revision: 367589 URL: https://svnweb.freebsd.org/changeset/base/367589 Log: ffs: Clamp BIO_SPEEDUP length On 32-bit platforms, the computed size of the BIO_SPEEDUP requested by softdep_request_cleanup() may be negative when assigned to bp->

svn commit: r367588 - in head/sys: kern sys

2020-11-11 Thread Mark Johnston
Author: markj Date: Wed Nov 11 13:44:27 2020 New Revision: 367588 URL: https://svnweb.freebsd.org/changeset/base/367588 Log: Fix a pair of races in SIGIO registration First, funsetownlst() list looks at the first element of the list to see whether it's processing a process or a process gr

svn commit: r367422 - head/sys/contrib/dev/qat

2020-11-06 Thread Mark Johnston
Author: markj Date: Fri Nov 6 16:12:06 2020 New Revision: 367422 URL: https://svnweb.freebsd.org/changeset/base/367422 Log: Add firmware modules for qat(4), take two My script to convert git commits to svn patch does not handle binary files correctly, and r367387 committed a set of empty

svn commit: r367388 - head/tests/sys/opencrypto

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:57 2020 New Revision: 367388 URL: https://svnweb.freebsd.org/changeset/base/367388 Log: cryptotest: Add qat(4) coverage MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/tests/sys/opencrypto/cryptotest.py Modif

svn commit: r367387 - in head/sys: contrib/dev/qat modules modules/qatfw modules/qatfw/qat_c2xxx modules/qatfw/qat_c3xxx modules/qatfw/qat_c62x modules/qatfw/qat_d15xx modules/qatfw/qat_dh895xcc

2020-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 5 16:00:30 2020 New Revision: 367387 URL: https://svnweb.freebsd.org/changeset/base/367387 Log: Add firmware modules for qat(4) MFC after:3 days Sponsored by: Rubicon Communications, LLC (Netgate) Added: head/sys/contrib/dev/qat/ head/sys/contrib/dev/

svn commit: r367386 - in head: share/man/man4 sys/amd64/conf sys/conf sys/dev/qat sys/modules sys/modules/qat

2020-11-05 Thread Mark Johnston
+.Xr pci 4 , +.Xr random 4 , +.Xr crypto 7 , +.Xr crypto 9 +.Sh HISTORY +The +.Nm +driver first appeared in +.Fx 13.0 . +.Sh AUTHORS +The +.Nm +driver was written for +.Nx +by +.An Hikaru Abe Aq Mt hik...@iij.ad.jp +and ported to +.Fx +by +.An Mark Johnston Aq Mt ma...@freebsd.org . +.Sh BUGS +

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

2020-11-04 Thread Mark Johnston
Author: markj Date: Wed Nov 4 16:42:20 2020 New Revision: 367335 URL: https://svnweb.freebsd.org/changeset/base/367335 Log: amd64: Make it easier to configure exception stack sizes The amd64 kernel handles certain types of exceptions on a dedicated stack. Currently the sizes of these st

svn commit: r367334 - in head/sys: dev/cxgbe/tom kern vm

2020-11-04 Thread Mark Johnston
Author: markj Date: Wed Nov 4 16:30:56 2020 New Revision: 367334 URL: https://svnweb.freebsd.org/changeset/base/367334 Log: vmspace: Convert to refcount(9) This is mostly mechanical except for vmspace_exit(). There, use the new refcount_release_if_last() to avoid switching to vmspace0 u

svn commit: r367333 - in head: share/man/man9 sys/sys

2020-11-04 Thread Mark Johnston
Author: markj Date: Wed Nov 4 16:30:30 2020 New Revision: 367333 URL: https://svnweb.freebsd.org/changeset/base/367333 Log: refcount(9): Add refcount_release_if_last() and refcount_load() The former is intended for use in vmspace_exit(). The latter is to encourage use of explicit loads

svn commit: r367174 - head/sys/opencrypto

2020-10-30 Thread Mark Johnston
Author: markj Date: Fri Oct 30 17:05:36 2020 New Revision: 367174 URL: https://svnweb.freebsd.org/changeset/base/367174 Log: opencrypto: Annotate hmac_init_(i|o)pad() to make auth_hash const This makes them friendlier to drivers that try to use const pointers whenever possible in their in

Re: svn commit: r367165 - head/sys/fs/tmpfs

2020-10-30 Thread Mark Johnston
On Fri, Oct 30, 2020 at 03:08:32PM +0100, Mateusz Guzik wrote: > On 10/30/20, Mateusz Guzik wrote: > > Author: mjg > > Date: Fri Oct 30 14:07:25 2020 > > New Revision: 367165 > > URL: https://svnweb.freebsd.org/changeset/base/367165 > > > > Log: > > tmpfs: change tmpfs dirent zone into a malloc

Re: svn commit: r367165 - head/sys/fs/tmpfs

2020-10-30 Thread Mark Johnston
On Fri, Oct 30, 2020 at 02:07:25PM +, Mateusz Guzik wrote: > Author: mjg > Date: Fri Oct 30 14:07:25 2020 > New Revision: 367165 > URL: https://svnweb.freebsd.org/changeset/base/367165 > > Log: > tmpfs: change tmpfs dirent zone into a malloc type > > It is 64 bytes. That could change t

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

2020-10-27 Thread Mark Johnston
Author: markj Date: Tue Oct 27 13:27:47 2020 New Revision: 367081 URL: https://svnweb.freebsd.org/changeset/base/367081 Log: arm64: Remove a racy KASSERT from pmap_remove_pages() PCPU_GET(curpmap) expands to multiple instructions on arm64, and if the current thread is migrated in between

svn commit: r366973 - head/sys/dev/ntb/ntb_hw

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 15:12:06 2020 New Revision: 366973 URL: https://svnweb.freebsd.org/changeset/base/366973 Log: ntb: Fix the 32-bit build after r366969 Reported by: Jenkins MFC with: r366969 Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Modified: head/sys/dev/ntb/

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

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:56:17 2020 New Revision: 366972 URL: https://svnweb.freebsd.org/changeset/base/366972 Log: rtsold: Remove an incorrect __unused annotation MFC after:1 week Modified: head/usr.sbin/rtsold/cap_script.c Modified: head/usr.sbin/rtsold/cap_script.c =

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

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:25:48 2020 New Revision: 366970 URL: https://svnweb.freebsd.org/changeset/base/366970 Log: Add some missing nv(9) MLINKS MFC after:1 week Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile =

svn commit: r366969 - in head: share/man/man4 sys/dev/ntb/ntb_hw

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:16:52 2020 New Revision: 366969 URL: https://svnweb.freebsd.org/changeset/base/366969 Log: ntb: Add Intel Xeon Gen3 support The NTB hardware starting with Skylake has some changes to the register map and the doorbell interface. Add a new NTB_XEON_GEN3 de

svn commit: r366968 - head/sys/dev/ntb

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:15:58 2020 New Revision: 366968 URL: https://svnweb.freebsd.org/changeset/base/366968 Log: ntb: Fix an assertion to permit >= 32 doorbells MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Modified: head/sys/dev/ntb/ntb_transp

svn commit: r366842 - in head: sys/netinet sys/netinet6 usr.bin/netstat

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 17:07:19 2020 New Revision: 366842 URL: https://svnweb.freebsd.org/changeset/base/366842 Log: icmp6: Count packets dropped due to an invalid hop limit Pad the icmp6stat structure so that we can add more counters in the future without breaking compatibility a

svn commit: r366840 - head/sys/vm

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:57:40 2020 New Revision: 366840 URL: https://svnweb.freebsd.org/changeset/base/366840 Log: uma: Respect uk_reserve in keg_drain() When a reserve of free items is configured for a zone, the reserve must not be reclaimed under memory pressure. Modify keg_d

svn commit: r366841 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:57:59 2020 New Revision: 366841 URL: https://svnweb.freebsd.org/changeset/base/366841 Log: link_elf_obj: Colour VM objects This will cause the VM to back sufficiently large .text sections, such as those in zfs.ko or amdgpu.ko on amd64, with superpage mapp

svn commit: r366839 - head/sys/vm

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:55:03 2020 New Revision: 366839 URL: https://svnweb.freebsd.org/changeset/base/366839 Log: uma: Avoid depleting keg reserves when filling a bucket zone_import() fetches a free or partially free slab from the keg and then uses its items to populate an arra

svn commit: r366838 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:54:06 2020 New Revision: 366838 URL: https://svnweb.freebsd.org/changeset/base/366838 Log: vmem: Allocate btags before looping in vmem_xalloc() BT_MAXALLOC (4) is the number of boundary tags required to complete an allocation in the worst case: two to cli

svn commit: r366837 - head/sys/kern

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 16:52:27 2020 New Revision: 366837 URL: https://svnweb.freebsd.org/changeset/base/366837 Log: vmem: Simplify bt_fill() callers a bit No functional change intended. Reviewed by: alc, kib, rlibby MFC after:2 weeks Sponsored by: The FreeBSD Foundati

svn commit: r366834 - head/sys/amd64/vmm/intel

2020-10-19 Thread Mark Johnston
Author: markj Date: Mon Oct 19 15:24:35 2020 New Revision: 366834 URL: https://svnweb.freebsd.org/changeset/base/366834 Log: vmx: Implement pmap (de)activation in C Rewrite the code that maintains pm_active and invalidates EPTP-tagged TLB entries in C. Previously this work was done in vm

svn commit: r366577 - in head/usr.bin/col: . tests

2020-10-09 Thread Mark Johnston
Author: markj Date: Fri Oct 9 15:27:37 2020 New Revision: 366577 URL: https://svnweb.freebsd.org/changeset/base/366577 Log: col(1): Fix a couple of bugs - When flushing extra lines after all input has been processed, make sure that local state is reinitialized correctly. - When -f is

svn commit: r366576 - head/usr.sbin/syslogd

2020-10-09 Thread Mark Johnston
Author: markj Date: Fri Oct 9 15:19:29 2020 New Revision: 366576 URL: https://svnweb.freebsd.org/changeset/base/366576 Log: syslogd: Avoid trimming host names in RFC 5424 mode RFC 5424 says that implementations should log hostnames in FQDN format. Only trim host names in RFC 3164 mode.

svn commit: r366464 - in head/sys/dev: re rl

2020-10-05 Thread Mark Johnston
Author: markj Date: Mon Oct 5 19:58:55 2020 New Revision: 366464 URL: https://svnweb.freebsd.org/changeset/base/366464 Log: re(4): Add a 8168-compatible device ID This is described in RealTek's driver as a "RTL8168 Series add-on card." PR: 250037 Submitted by: Hiroshi HASE

svn commit: r366450 - head/sys/kern

2020-10-05 Thread Mark Johnston
Author: markj Date: Mon Oct 5 15:54:19 2020 New Revision: 366450 URL: https://svnweb.freebsd.org/changeset/base/366450 Log: Remove sysctl_kern_consmute() It is a trivial wrapper for sysctl_handle_int() since r184521. Also remove the NEEDGIANT flag, cn_mute is accessed locklessly. M

svn commit: r366380 - head/sys/vm

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 19:16:06 2020 New Revision: 366380 URL: https://svnweb.freebsd.org/changeset/base/366380 Log: vm_pageout: Avoid rounding down the inactive scan target With helper page daemon threads, enabled by default in r364786, we divide the inactive target by the number

svn commit: r366378 - head/sys/vm

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 19:04:09 2020 New Revision: 366378 URL: https://svnweb.freebsd.org/changeset/base/366378 Log: uma: Use LIFO for non-SMR bucket caches When SMR was introduced, zone_put_bucket() was changed to always place full buckets at the end of the queue. However, it is

svn commit: r366379 - head/sys/vm

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 19:04:29 2020 New Revision: 366379 URL: https://svnweb.freebsd.org/changeset/base/366379 Log: uma: Use the bucket cache for cross-domain allocations uma_zalloc_domain() allocates from the requested domain instead of following a first-touch policy (the defaul

svn commit: r366377 - head/sys/vm

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 19:03:42 2020 New Revision: 366377 URL: https://svnweb.freebsd.org/changeset/base/366377 Log: uma: Remove newlines from panic messages Sponsored by: The FreeBSD Foundation Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c ==

svn commit: r366376 - head/sys/kern

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 18:54:37 2020 New Revision: 366376 URL: https://svnweb.freebsd.org/changeset/base/366376 Log: Fix the INVARIANTS build for 32-bit platforms Reported by: Jenkins MFC with: r366368 Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_el

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

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 18:35:55 2020 New Revision: 366375 URL: https://svnweb.freebsd.org/changeset/base/366375 Log: newlocale(3): Fix a memory leak. newlocale() optionally takes a "base" locale, from which components not specified in the mask are inherited. POSIX says that newlo

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

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 17:50:22 2020 New Revision: 366368 URL: https://svnweb.freebsd.org/changeset/base/366368 Log: Implement sparse core dumps Currently we allocate and map zero-filled anonymous pages when dumping core. This can result in lots of needless disk I/O and page al

svn commit: r366367 - head/sys/kern

2020-10-02 Thread Mark Johnston
Author: markj Date: Fri Oct 2 17:49:13 2020 New Revision: 366367 URL: https://svnweb.freebsd.org/changeset/base/366367 Log: Simplify the check for non-dumpable VM object types OBJT_DEFAULT, _SWAP, _VNODE and _PHYS is exactly the set of non-fictitious object types, so just check for OBJ_F

svn commit: r366347 - head/sys/amd64/vmm/amd

2020-10-01 Thread Mark Johnston
Author: markj Date: Thu Oct 1 22:20:29 2020 New Revision: 366347 URL: https://svnweb.freebsd.org/changeset/base/366347 Log: Remove svn:executable from a couple of vmm(4) source files. MFC after:3 days Modified: Directory Properties: head/sys/amd64/vmm/amd/amdvi_priv.h (props chang

Re: svn commit: r366252 - head/sys/contrib/openzfs/module/os/freebsd/zfs

2020-09-29 Thread Mark Johnston
On Tue, Sep 29, 2020 at 08:47:37AM -0500, Kyle Evans wrote: > On Tue, Sep 29, 2020 at 8:42 AM Mark Johnston wrote: > > > > Author: markj > > Date: Tue Sep 29 13:41:47 2020 > > New Revision: 366252 > > URL: https://svnweb.freebsd.org/changeset/base/366252 > >

svn commit: r366254 - head/sys/contrib/openzfs

2020-09-29 Thread Mark Johnston
Author: markj Date: Tue Sep 29 14:02:42 2020 New Revision: 366254 URL: https://svnweb.freebsd.org/changeset/base/366254 Log: MFV r366253 This modifies only the openzfs svn:mergeinfo property, since r366253 has already been committed to head. Modified: Directory Properties: head/sys/con

svn commit: r366252 - head/sys/contrib/openzfs/module/os/freebsd/zfs

2020-09-29 Thread Mark Johnston
Author: markj Date: Tue Sep 29 13:41:47 2020 New Revision: 366252 URL: https://svnweb.freebsd.org/changeset/base/366252 Log: ZFS: Fix a logic bug in the FreeBSD getpages VOP This was introduced when I merged r361287 to OpenZFS and has been fixed there already, commit 3f6bb6e43fd68e.

svn commit: r366167 - head/sys/netgraph

2020-09-25 Thread Mark Johnston
Author: markj Date: Fri Sep 25 18:55:50 2020 New Revision: 366167 URL: https://svnweb.freebsd.org/changeset/base/366167 Log: ng_l2tp: Fix callout synchronization in the rexmit timeout handler A received control packet may cause the transmit queue to be flushed, in which case ng_l2tp_seq_r

svn commit: r366091 - head/sys/vm

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:36:07 2020 New Revision: 366091 URL: https://svnweb.freebsd.org/changeset/base/366091 Log: Flag vm_reserv and vm_phys sysctls as MPSAFE. Nothing in these subsystems relies on Giant. MFC after:1 week Modified: head/sys/vm/vm_phys.c head/sys/vm/

svn commit: r366090 - in head/sys: amd64/include arm/include arm64/include i386/include kern mips/include powerpc/include riscv/include vm

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:34:21 2020 New Revision: 366090 URL: https://svnweb.freebsd.org/changeset/base/366090 Log: Add a vmparam.h constant indicating pmap support for large pages. Enable SHM_LARGEPAGE support on arm64. Reviewed by: alc, kib Sponsored by: Juniper Networks,

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

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:33:47 2020 New Revision: 366089 URL: https://svnweb.freebsd.org/changeset/base/366089 Log: Add largepage support to the arm64 pmap. Reviewed by: alc, kib Sponsored by: Juniper Networks, Inc., Klara, Inc. Differential Revision:https://reviews.fr

svn commit: r366005 - head/sys/fs/udf

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 17:05:01 2020 New Revision: 366005 URL: https://svnweb.freebsd.org/changeset/base/366005 Log: udf: Validate the full file entry length Otherwise a corrupted file entry containing invalid extended attribute lengths or allocation descriptor lengths can trigger

svn commit: r366002 - head/libexec/tftpd

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 15:54:05 2020 New Revision: 366002 URL: https://svnweb.freebsd.org/changeset/base/366002 Log: tftpd: Check for errors from chdir() MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/libexec/tftpd/tftpd.c Modified: head/libexec/tftpd

svn commit: r366003 - head/libexec/ftpd

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 15:54:18 2020 New Revision: 366003 URL: https://svnweb.freebsd.org/changeset/base/366003 Log: ftpd: Add missing braces around a statfd check This was harmless but looked incorrect. No functional change intended. MFC after:1 week Sponsored by: The F

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

2020-09-21 Thread Mark Johnston
Author: markj Date: Mon Sep 21 22:19:21 2020 New Revision: 365976 URL: https://svnweb.freebsd.org/changeset/base/365976 Log: Weaken assertions in pmap_l1_to_l2() and pmap_l2_to_l3(). pmap_update_entry() will temporarily clear the valid bit of page table entries in order to satisfy the arm

svn commit: r365907 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst: amd64/arrays common/io common/java_api common/json common/pid common/proc common/profile-n common/raise common/sdt common...

2020-09-19 Thread Mark Johnston
Author: markj Date: Sat Sep 19 16:15:22 2020 New Revision: 365907 URL: https://svnweb.freebsd.org/changeset/base/365907 Log: Address compiler warnings in C code used by the DTrace test suite. Reported by: Jenkins MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/

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

2020-09-19 Thread Mark Johnston
Author: markj Date: Sat Sep 19 15:22:04 2020 New Revision: 365906 URL: https://svnweb.freebsd.org/changeset/base/365906 Log: Fix some nits in 1G page support in the amd64 pmap. - Move assertions out of the main loop to avoid duplicate conditional expressions, and improve assertion messa

Re: svn commit: r365889 - head/share/mk

2020-09-18 Thread Mark Johnston
On Fri, Sep 18, 2020 at 02:10:13PM -0600, Ian Lepore wrote: > On Fri, 2020-09-18 at 15:44 -0400, Mark Johnston wrote: > > On Fri, Sep 18, 2020 at 01:27:23PM -0600, Ian Lepore wrote: > > > On Fri, 2020-09-18 at 19:03 +0000, Mark Johnston wrote: > > > > Author: markj

Re: svn commit: r365889 - head/share/mk

2020-09-18 Thread Mark Johnston
On Fri, Sep 18, 2020 at 01:27:23PM -0600, Ian Lepore wrote: > On Fri, 2020-09-18 at 19:03 +0000, Mark Johnston wrote: > > Author: markj > > Date: Fri Sep 18 19:03:34 2020 > > New Revision: 365889 > > URL: https://svnweb.freebsd.org/changeset/base/365889 > > > &

svn commit: r365889 - head/share/mk

2020-09-18 Thread Mark Johnston
Author: markj Date: Fri Sep 18 19:03:34 2020 New Revision: 365889 URL: https://svnweb.freebsd.org/changeset/base/365889 Log: Install library symlinks atomically. As we do for shared library binaries, pass -S to install(1) when installing symlinks. Doing so helps avoid transient failures

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

2020-09-18 Thread Mark Johnston
Author: markj Date: Fri Sep 18 12:37:41 2020 New Revision: 365879 URL: https://svnweb.freebsd.org/changeset/base/365879 Log: Assert we are not traversing through superpages in the arm64 pmap. Reviewed by: alc, andrew MFC after:1 week Sponsored by: Juniper Networks, Inc., Klara, Inc

svn commit: r365877 - head/lib/libc/sys

2020-09-18 Thread Mark Johnston
Author: markj Date: Fri Sep 18 12:30:15 2020 New Revision: 365877 URL: https://svnweb.freebsd.org/changeset/base/365877 Log: Fix error checking in shm_create_largepage(). Reviewed by: alc, kib Reported by: Coverity MFC with: r365524 Differential Revision:https://reviews.

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

2020-09-18 Thread Mark Johnston
Author: markj Date: Fri Sep 18 12:30:39 2020 New Revision: 365878 URL: https://svnweb.freebsd.org/changeset/base/365878 Log: Ensure that a protection key is selected in pmap_enter_largepage(). Reviewed by: alc, kib Reported by: Coverity MFC with: r365518 Differential Revision:

  1   2   3   4   5   6   7   8   9   10   >