svn commit: r364871 - head/sys/dev/asmc

2020-08-27 Thread Mark Johnston
Author: markj Date: Thu Aug 27 16:34:20 2020 New Revision: 364871 URL: https://svnweb.freebsd.org/changeset/base/364871 Log: asmc(4): Handle errors from asmc_key_read() properly. asmc_key_read() returns only 0 and 1, some callers were checking incorrectly for failure. PR: 2

svn commit: r364872 - head/sys/dev/fdc

2020-08-27 Thread Mark Johnston
Author: markj Date: Thu Aug 27 16:34:33 2020 New Revision: 364872 URL: https://svnweb.freebsd.org/changeset/base/364872 Log: fdc(4): Handle errors from fdc_in() properly. fdc_in() returns only 0 and 1, some callers were checking incorrectly for failure. PR: 248940 Submitt

svn commit: r364873 - head/sys/dev/sound/pci

2020-08-27 Thread Mark Johnston
Author: markj Date: Thu Aug 27 16:36:07 2020 New Revision: 364873 URL: https://svnweb.freebsd.org/changeset/base/364873 Log: snd_ich(4): Handle errors from ich_init() properly during resume. ich_init() returns an errno value or 0, but ich_pci_resume() was comparing the return value with -

svn commit: r364876 - head/sys/kern

2020-08-27 Thread Mark Johnston
Author: markj Date: Thu Aug 27 17:36:06 2020 New Revision: 364876 URL: https://svnweb.freebsd.org/changeset/base/364876 Log: Fix writing of the final block of encrypted, compressed kernel dumps. Previously any residual data in the final block of a compressed kernel dump would be written u

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

svn commit: r355399 - head/sys/vm

2019-12-04 Thread Mark Johnston
Author: markj Date: Wed Dec 4 19:46:48 2019 New Revision: 355399 URL: https://svnweb.freebsd.org/changeset/base/355399 Log: Fix an off-by-one error in vm_map_pmap_enter(). If the starting pindex is equal to object->size, there is nothing to do. This was harmless since the rest of vm_map_

svn commit: r355469 - head/sys/vm

2019-12-06 Thread Mark Johnston
Author: markj Date: Fri Dec 6 23:39:08 2019 New Revision: 355469 URL: https://svnweb.freebsd.org/changeset/base/355469 Log: Fix fault_type handling in vm_map_lookup(). Suppose that the map entry is wired, so that we later assign fault_type = entry->protection. Suppose further that we ju

svn commit: r355470 - head/usr.bin/tail

2019-12-06 Thread Mark Johnston
Author: markj Date: Fri Dec 6 23:39:38 2019 New Revision: 355470 URL: https://svnweb.freebsd.org/changeset/base/355470 Log: Fix tail -f in capability mode. We were not adding CAP_EVENT to input file capabilities, so kevent() always failed with ENOTCAPABLE. tail implements a fallback mod

svn commit: r355471 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-12-06 Thread Mark Johnston
Author: markj Date: Fri Dec 6 23:49:37 2019 New Revision: 355471 URL: https://svnweb.freebsd.org/changeset/base/355471 Log: Fix an inverted condition introduced in r353539. This would have most likely resulted in read errors causing page leaks. Submitted by: jeff Modified: head/sys

svn commit: r355505 - head/sys/vm

2019-12-07 Thread Mark Johnston
Author: markj Date: Sat Dec 7 19:36:40 2019 New Revision: 355505 URL: https://svnweb.freebsd.org/changeset/base/355505 Log: Provide vm_map_entry traversal routines to userspace. This is required for now to allow libprocstat to compile. Discussed with: dougm Modified: head/sys

svn commit: r355506 - head/usr.bin/gcore

2019-12-07 Thread Mark Johnston
Author: markj Date: Sat Dec 7 20:01:55 2019 New Revision: 355506 URL: https://svnweb.freebsd.org/changeset/base/355506 Log: gcore: Avoid using vm_map_entry_t. Use an internally defined structure instead, to avoid relying on kernel structure details. No functional change intended. M

svn commit: r355508 - head/sys/vm

2019-12-07 Thread Mark Johnston
Author: markj Date: Sun Dec 8 00:02:36 2019 New Revision: 355508 URL: https://svnweb.freebsd.org/changeset/base/355508 Log: Add casts required by the 32-bit build after r355491. Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ===

svn commit: r355570 - head/sys/dev/sound/pci/hda

2019-12-09 Thread Mark Johnston
Author: markj Date: Mon Dec 9 19:25:15 2019 New Revision: 355570 URL: https://svnweb.freebsd.org/changeset/base/355570 Log: Configure headphone redirection for the Dell L780 and X1 Carbon 7th gen. As we do for many other laptops, put the headphone jack and speakers in the same associatio

svn commit: r355586 - in head/sys: amd64/amd64 amd64/include arm/include arm64/arm64 arm64/include dev/virtio/balloon i386/i386 i386/include mips/include mips/mips powerpc/aim powerpc/include riscv...

2019-12-10 Thread Mark Johnston
Author: markj Date: Tue Dec 10 18:14:50 2019 New Revision: 355586 URL: https://svnweb.freebsd.org/changeset/base/355586 Log: Introduce vm_page_astate. This is a 32-bit structure embedded in each vm_page, consisting mostly of page queue state. The use of a structure makes it easy to store

svn commit: r355587 - head/sys/vm

2019-12-10 Thread Mark Johnston
Author: markj Date: Tue Dec 10 18:15:20 2019 New Revision: 355587 URL: https://svnweb.freebsd.org/changeset/base/355587 Log: Add a helper function to the swapout daemon's deactivation code. vm_swapout_object_deactivate_pages() is renamed to vm_swapout_object_deactivate(), and the loop bod

svn commit: r355644 - head/sys/kern

2019-12-11 Thread Mark Johnston
Author: markj Date: Thu Dec 12 02:43:24 2019 New Revision: 355644 URL: https://svnweb.freebsd.org/changeset/base/355644 Log: Rename tdq_ipipending and clear it in sched_switch(). This fixes a regression after r355311. Specifically, sched_preempt() may trigger a context switch by calling

svn commit: r355672 - head/sys/vm

2019-12-12 Thread Mark Johnston
Author: markj Date: Thu Dec 12 21:13:20 2019 New Revision: 355672 URL: https://svnweb.freebsd.org/changeset/base/355672 Log: Implement atomic state updates using the new vm_page_astate_t structure. Introduce primitives vm_page_astate_load() and vm_page_astate_fcmpset() to operate on the 3

svn commit: r355680 - head/sys/vm

2019-12-12 Thread Mark Johnston
Author: markj Date: Thu Dec 12 23:55:34 2019 New Revision: 355680 URL: https://svnweb.freebsd.org/changeset/base/355680 Log: Avoid relying on silent type casting in the native atomic_load_32. Reported by: np Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h ==

svn commit: r355720 - head/sys/vm

2019-12-13 Thread Mark Johnston
Author: markj Date: Fri Dec 13 18:28:01 2019 New Revision: 355720 URL: https://svnweb.freebsd.org/changeset/base/355720 Log: Restore the reservation of boot pages for bucket zones after r355707. uma_startup2() sets booted = BOOT_BUCKETS after calling bucket_init(), but before that assignm

svn commit: r355792 - head/sys/sys

2019-12-15 Thread Mark Johnston
Author: markj Date: Mon Dec 16 01:27:14 2019 New Revision: 355792 URL: https://svnweb.freebsd.org/changeset/base/355792 Log: Remove a declaration of sched_clock() redundant after r355779. Modified: head/sys/sys/sched.h Modified: head/sys/sys/sched.h ==

svn commit: r355864 - head/sys/dev/an

2019-12-17 Thread Mark Johnston
Author: markj Date: Tue Dec 17 21:34:38 2019 New Revision: 355864 URL: https://svnweb.freebsd.org/changeset/base/355864 Log: an(4): Require privileges for all SIOCGAIRONET requests. SIOCGAIRONET allows userspace to query an(4) for various device properties and configuration, which appears

svn commit: r355874 - head/sys/vm

2019-12-17 Thread Mark Johnston
Author: markj Date: Wed Dec 18 01:56:38 2019 New Revision: 355874 URL: https://svnweb.freebsd.org/changeset/base/355874 Log: Fix the aflag shift on big-endian platforms after r355672. The structure offset is zero regardless of endianness. Reported by: brooks Pointy hat: markj Mod

svn commit: r355885 - head/sys/dev/oce

2019-12-18 Thread Mark Johnston
Author: markj Date: Wed Dec 18 18:44:16 2019 New Revision: 355885 URL: https://svnweb.freebsd.org/changeset/base/355885 Log: oce: Tighten input validation in the SIOCGI2C handler. Missing validation meant that it was possible to read 8 bytes beyond the end of sfp_vpd_dump_buffer. Rep

svn commit: r355887 - head/sys/dev/vnic

2019-12-18 Thread Mark Johnston
Author: markj Date: Wed Dec 18 21:41:53 2019 New Revision: 355887 URL: https://svnweb.freebsd.org/changeset/base/355887 Log: vnic: Relax PHY node matching after r336281. The phy name may apparently be followed by a number in some systems. Allow that. PR: 242654 Reported a

svn commit: r355916 - head/sys/kern

2019-12-19 Thread Mark Johnston
Author: markj Date: Thu Dec 19 19:34:25 2019 New Revision: 355916 URL: https://svnweb.freebsd.org/changeset/base/355916 Log: Fix SIGINFO stack collection to ignore threads with swapped-out stacks. We by definition cannot trace the stack of such a thread. Also remove a redundant stack_zer

svn commit: r355938 - head/sys/net

2019-12-20 Thread Mark Johnston
Author: markj Date: Fri Dec 20 17:21:57 2019 New Revision: 355938 URL: https://svnweb.freebsd.org/changeset/base/355938 Log: Fix a memory leak in if_delgroups() introduced in r334118. PR: 242712 Submitted by: ghuckri...@blackberry.com MFC after:3 days Modified: head/sys

svn commit: r355941 - head/sys/dev/mii

2019-12-20 Thread Mark Johnston
Author: markj Date: Fri Dec 20 20:10:26 2019 New Revision: 355941 URL: https://svnweb.freebsd.org/changeset/base/355941 Log: mii(4): Fix ivars leak when the bus device or bus children detach. PR: 242727 Submitted by: ghuckri...@blackberry.com MFC after:1 week Modified:

svn commit: r355942 - head/sys/net

2019-12-20 Thread Mark Johnston
Author: markj Date: Fri Dec 20 20:15:34 2019 New Revision: 355942 URL: https://svnweb.freebsd.org/changeset/base/355942 Log: Deduplicate code between if_delgroup() and if_delgroups(). Fix some style in if_addgroup(). No functional change intended. Reviewed by: hselasky MFC after:

svn commit: r355985 - head/sys/vm

2019-12-21 Thread Mark Johnston
Author: markj Date: Sat Dec 21 19:04:05 2019 New Revision: 355985 URL: https://svnweb.freebsd.org/changeset/base/355985 Log: Fix VPO_UNMANAGED handling in vm_page_reclaim_run() after r353540. When allocating a replacement page we must clear VPO_UNMANAGED since we only ever reclaim pages f

svn commit: r356029 - in head: sbin/ifconfig share/man/man4 sys/net

2019-12-22 Thread Mark Johnston
Author: markj Date: Sun Dec 22 21:56:47 2019 New Revision: 356029 URL: https://svnweb.freebsd.org/changeset/base/356029 Log: lagg: Clean up handling of the rr_limit option. - Don't allow an unprivileged user to set the stride. [1] - Only set the stride under the softc lock. - Rename the

svn commit: r356030 - head/sys/modules/uart

2019-12-22 Thread Mark Johnston
Author: markj Date: Sun Dec 22 22:10:20 2019 New Revision: 356030 URL: https://svnweb.freebsd.org/changeset/base/356030 Log: Compile uart_cpu_acpi.c, added in r348195, into uart.ko. PR: 242771 MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/sys/modu

svn commit: r356047 - head/sys/dev/oce

2019-12-23 Thread Mark Johnston
Author: markj Date: Mon Dec 23 23:43:50 2019 New Revision: 356047 URL: https://svnweb.freebsd.org/changeset/base/356047 Log: oce: Disallow the passthrough ioctl for unprivileged users. A missing check meant that unprivileged users could send passthrough commands to the device firmware.

svn commit: r356107 - head/sys/net

2019-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 27 01:12:54 2019 New Revision: 356107 URL: https://svnweb.freebsd.org/changeset/base/356107 Log: Plug some ifaddr refcount leaks. - Only take an ifaddr ref in in rt_exportinfo() if the caller explicitly requests it. Take care to release it in this case. -

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