svn commit: r362618 - head/sys/conf

2020-06-25 Thread Mark Johnston
Author: markj Date: Thu Jun 25 19:12:27 2020 New Revision: 362618 URL: https://svnweb.freebsd.org/changeset/base/362618 Log: Add SCTP_SUPPORT to the default kernel options. Otherwise out-of-tree module builds will be broken for a lack of a definition of MK_SCTP_SUPPORT. Reported by:

svn commit: r362619 - head/sbin/ipfw

2020-06-25 Thread Mark Johnston
Author: markj Date: Thu Jun 25 19:27:22 2020 New Revision: 362619 URL: https://svnweb.freebsd.org/changeset/base/362619 Log: ipfw: Support the literal IPv6 address syntax in the fwd command. Discussed with: rgrimes, Lutz Donnerhacke Submitted by: Neel Chauhan MFC after:2 week

svn commit: r362631 - head/sys/compat/linux

2020-06-25 Thread Mark Johnston
Author: markj Date: Thu Jun 25 20:30:30 2020 New Revision: 362631 URL: https://svnweb.freebsd.org/changeset/base/362631 Log: Implement an approximation of Linux MADV_DONTNEED semantics. Linux MADV_DONTNEED is not advisory: it has side effects for anonymous memory, and some system software

svn commit: r362739 - in head/sys: compat/linuxkpi/common/src dev/md

2020-06-28 Thread Mark Johnston
Author: markj Date: Sun Jun 28 21:34:38 2020 New Revision: 362739 URL: https://svnweb.freebsd.org/changeset/base/362739 Log: Remove some redundant assignments and computations. Reported by: alc Reviewed by: alc, kib Sponsored by: The FreeBSD Foundation MFC after:1 week Differe

svn commit: r362740 - head/sys/vm

2020-06-28 Thread Mark Johnston
Author: markj Date: Sun Jun 28 21:35:04 2020 New Revision: 362740 URL: https://svnweb.freebsd.org/changeset/base/362740 Log: Fix UMA's first-touch policy on systems with empty domains. Suppose a thread is running on a CPU in a NUMA domain with no physical RAM. When an item is freed to a

Re: svn commit: r342699 - head/sbin/savecore

2020-06-28 Thread Mark Johnston
On Sun, Jun 28, 2020 at 06:40:59PM -0600, Alan Somers wrote: > On Wed, Jan 2, 2019 at 10:09 AM Mark Johnston wrote: > > > Author: markj > > Date: Wed Jan 2 17:09:35 2019 > > New Revision: 342699 > > URL: https://svnweb.freebsd.org/changeset/base/342699 > > &

svn commit: r362801 - head/sys/opencrypto

2020-06-30 Thread Mark Johnston
Author: markj Date: Tue Jun 30 15:56:54 2020 New Revision: 362801 URL: https://svnweb.freebsd.org/changeset/base/362801 Log: Remove CRYPTO_TIMING. It was added a very long time ago. It is single-threaded, so only really useful for basic measurements, and in the meantime we've gotten so

svn commit: r362802 - head/sys/opencrypto

2020-06-30 Thread Mark Johnston
Author: markj Date: Tue Jun 30 15:57:11 2020 New Revision: 362802 URL: https://svnweb.freebsd.org/changeset/base/362802 Log: Remove unused 32-bit compatibility structures from cryptodev. The counters are exported by a sysctl and have the same width on all platforms anyway. Reviewed b

svn commit: r362814 - head/sys/opencrypto

2020-06-30 Thread Mark Johnston
Author: markj Date: Tue Jun 30 22:01:21 2020 New Revision: 362814 URL: https://svnweb.freebsd.org/changeset/base/362814 Log: Convert cryptostats to a counter_u64 array. The global counters were not SMP-friendly. Use per-CPU counters instead. Reviewed by: jhb Sponsored by: Rubicon

svn commit: r362840 - head/sys/netinet

2020-07-01 Thread Mark Johnston
Author: markj Date: Wed Jul 1 15:42:48 2020 New Revision: 362840 URL: https://svnweb.freebsd.org/changeset/base/362840 Log: Fix a possible next-hop refcount leak when handling IPSec traffic. It may be possible to fix this by deferring the lookup, but let's keep the initial change simple

svn commit: r362962 - head/sys/net

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 14:52:09 2020 New Revision: 362962 URL: https://svnweb.freebsd.org/changeset/base/362962 Log: iflib: Fix handling of mbuf cluster allocation failures. When refilling an rx freelist, make sure we only update the hardware producer index if at least one cluster

svn commit: r362963 - head/sys/net

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 14:52:21 2020 New Revision: 362963 URL: https://svnweb.freebsd.org/changeset/base/362963 Log: iflib: Fix some nits in the rx refill code. - Get rid of the ifl_vm_addrs array. It is not used by any existing consumer, so we are just dirtying a couple of cac

svn commit: r362966 - head/sys/kern

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 16:33:21 2020 New Revision: 362966 URL: https://svnweb.freebsd.org/changeset/base/362966 Log: Lift cpuset Capsicum checks into a subroutine. Otherwise the same checks are duplicated across four different system call implementations, cpuset_(get|set)(affinity

svn commit: r362968 - head/sys/kern

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 16:34:09 2020 New Revision: 362968 URL: https://svnweb.freebsd.org/changeset/base/362968 Log: Allow accesses of the caller's CPU and domain sets in capability mode. cpuset_(get|set)(affinity|domain)(2) permit a get or set of the calling thread or process' CP

svn commit: r362971 - in head/sys: compat/freebsd32 kern

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 16:34:49 2020 New Revision: 362971 URL: https://svnweb.freebsd.org/changeset/base/362971 Log: Regenerate. Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/freebsd32/freebsd32_sysent.c head/sys/kern/init_sysent.c Modified: head/sys/compat/fr

svn commit: r362970 - head/sys/kern

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 16:34:29 2020 New Revision: 362970 URL: https://svnweb.freebsd.org/changeset/base/362970 Log: Permit cpuset_(get|set)domain() in capability mode. These system calls already perform validation of their parameters when called in capability mode, identical to c

svn commit: r362976 - head/sys/net/route

2020-07-06 Thread Mark Johnston
Author: markj Date: Mon Jul 6 21:20:57 2020 New Revision: 362976 URL: https://svnweb.freebsd.org/changeset/base/362976 Log: Split nhop_ref_object(). Now nhop_ref_object() unconditionally acquires a reference, and the new nhop_try_ref_object() uses refcount_acquire_if_not_zero() to cond

svn commit: r362993 - head/sys/conf

2020-07-07 Thread Mark Johnston
Author: markj Date: Tue Jul 7 16:35:52 2020 New Revision: 362993 URL: https://svnweb.freebsd.org/changeset/base/362993 Log: Rebuild sysent when capabilities.conf is updated. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.

svn commit: r363051 - in head: lib/libc/sys sys/kern

2020-07-09 Thread Mark Johnston
Author: markj Date: Thu Jul 9 17:26:49 2020 New Revision: 363051 URL: https://svnweb.freebsd.org/changeset/base/363051 Log: Avoid copying out kernel pointers from msgctl(IPC_STAT). While this behaviour is harmless, it is really just an artifact of the fact that the msgctl(2) implementati

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

2020-07-09 Thread Mark Johnston
Author: markj Date: Thu Jul 9 17:27:14 2020 New Revision: 363052 URL: https://svnweb.freebsd.org/changeset/base/363052 Log: whois: Handle referrals to rwhois servers. PR: 243862 Submitted by: b...@desync.com Differential Revision:https://reviews.freebsd.org/D25156 Mo

svn commit: r363055 - in head: lib/libc/sys sys/kern

2020-07-09 Thread Mark Johnston
Author: markj Date: Thu Jul 9 18:34:54 2020 New Revision: 363055 URL: https://svnweb.freebsd.org/changeset/base/363055 Log: Apply the logic from r363051 to semctl(2) and __sem_base field. Reported by: Jeffball MFC after:1 week Sponsored by: The FreeBSD Foundation Differential R

svn commit: r363079 - in head: share/man/man4 sys/modules sys/modules/sctp sys/netinet

2020-07-10 Thread Mark Johnston
(c) 2019-2020 The FreeBSD Foundation + * + * This software was developed by Mark Johnston under sponsorship from + * the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * m

svn commit: r363084 - head/contrib/netcat

2020-07-10 Thread Mark Johnston
Author: markj Date: Fri Jul 10 19:54:04 2020 New Revision: 363084 URL: https://svnweb.freebsd.org/changeset/base/363084 Log: Add a --sctp flag to nc. The change adds an SCTP mode akin to UDP mode. This is handy for doing smoke testing of SCTP. Use a long option to minimize the risk

svn commit: r363086 - head

2020-07-10 Thread Mark Johnston
Author: markj Date: Fri Jul 10 19:58:26 2020 New Revision: 363086 URL: https://svnweb.freebsd.org/changeset/base/363086 Log: Add a RELNOTES entry for r363084. Modified: head/RELNOTES Modified: head/RELNOTES == --- he

svn commit: r363085 - head/contrib/netcat

2020-07-10 Thread Mark Johnston
Author: markj Date: Fri Jul 10 19:58:07 2020 New Revision: 363085 URL: https://svnweb.freebsd.org/changeset/base/363085 Log: Adjust .Dd, missed in r363084. MFC with: r363084 Modified: head/contrib/netcat/nc.1 Modified: head/contrib/netcat/nc.1 ===

svn commit: r363102 - head/sbin/ping

2020-07-11 Thread Mark Johnston
Author: markj Date: Sat Jul 11 17:10:16 2020 New Revision: 363102 URL: https://svnweb.freebsd.org/changeset/base/363102 Log: ping(8): Check for integer truncation when handling the value for -s. PR: 239976 Submitted by: Neeraj MFC after:1 week Event:July

svn commit: r363158 - head/sys/vm

2020-07-13 Thread Mark Johnston
Author: markj Date: Mon Jul 13 16:39:27 2020 New Revision: 363158 URL: https://svnweb.freebsd.org/changeset/base/363158 Log: Add vm_map_valid_range_KBI(). This is required for standalone module builds. Reported by: hselasky Reviewed by: dougm, hselasky, kib MFC after:3 days

Re: svn commit: r362361 - in head/sys: compat/linuxkpi/common/src vm

2020-07-13 Thread Mark Johnston
On Mon, Jul 13, 2020 at 05:27:06PM +0200, Hans Petter Selasky wrote: > On 2020-06-19 05:32, Mark Johnston wrote: > > +++ head/sys/vm/vm_map.hFri Jun 19 03:32:04 2020(r362361) > > @@ -255,6 +255,17 @@ vm_map_modflags(vm_map_t map, vm_flags_t set, vm_flags > >

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

2020-07-13 Thread Mark Johnston
Author: markj Date: Mon Jul 13 17:05:44 2020 New Revision: 363162 URL: https://svnweb.freebsd.org/changeset/base/363162 Log: Print arm64 physmem info during boot. PR: 243682 Reviewed by: andrew, emaste MFC after:1 week Event:July 2020 Bugathon Differen

svn commit: r363164 - head/sbin/ipfw

2020-07-13 Thread Mark Johnston
Author: markj Date: Mon Jul 13 17:51:04 2020 New Revision: 363164 URL: https://svnweb.freebsd.org/changeset/base/363164 Log: ipfw(8): Fix most warnings with the default WARNS level. - Add missing const and static qualifiers. - Avoid shadowing the global "co" by renaming it to "g_co". -

svn commit: r363166 - head/sbin/ipfw

2020-07-13 Thread Mark Johnston
Author: markj Date: Mon Jul 13 19:10:16 2020 New Revision: 363166 URL: https://svnweb.freebsd.org/changeset/base/363166 Log: ipfw(8): Handle unaligned pointers in pr_u64. struct _ipfw_dyn_rule is defined as packed, and as a result, its uint64_t fields are misaligned on some 32-bit platfor

svn commit: r363180 - in head: share/man/man4 sys/arm64/conf sys/conf sys/dev/safexcel sys/modules sys/modules/safexcel

2020-07-14 Thread Mark Johnston
Author: markj Date: Tue Jul 14 14:09:29 2020 New Revision: 363180 URL: https://svnweb.freebsd.org/changeset/base/363180 Log: Add a driver for the SafeXcel EIP-97. The EIP-97 is a packet processing module found on the ESPRESSObin. This commit adds a crypto(9) driver for the crypto and has

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

2020-07-14 Thread Mark Johnston
Author: markj Date: Tue Jul 14 14:11:54 2020 New Revision: 363181 URL: https://svnweb.freebsd.org/changeset/base/363181 Log: Add safexcel(4) to cryptotest. MFC after:1 week Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/tests/sys/opencrypto/cryptotest.py Modifi

svn commit: r363182 - head/sys/dev/safexcel

2020-07-14 Thread Mark Johnston
Author: markj Date: Tue Jul 14 15:05:24 2020 New Revision: 363182 URL: https://svnweb.freebsd.org/changeset/base/363182 Log: safexcel(4): Fix the INVARIANTS build after a last-second change. Reported by: Jenkins MFC with: r363180 Modified: head/sys/dev/safexcel/safexcel.c Modifie

svn commit: r363183 - head

2020-07-14 Thread Mark Johnston
Author: markj Date: Tue Jul 14 15:05:38 2020 New Revision: 363183 URL: https://svnweb.freebsd.org/changeset/base/363183 Log: Add a RELNOTES entry for safexcel(4). Sponsored by: Rubicon Communications, LLC (Netgate) Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r363251 - head/sys/dev/safexcel

2020-07-16 Thread Mark Johnston
Author: markj Date: Thu Jul 16 14:21:55 2020 New Revision: 363251 URL: https://svnweb.freebsd.org/changeset/base/363251 Log: safexcel(4): Silence an integer truncation warning. In practice overflow is not possible, but we might as well use the right type for DMA ring sizes. CID:

svn commit: r363253 - in head/sys: amd64/conf arm/conf arm64/conf i386/conf mips/conf powerpc/conf riscv/conf

2020-07-16 Thread Mark Johnston
Author: markj Date: Thu Jul 16 15:09:04 2020 New Revision: 363253 URL: https://svnweb.freebsd.org/changeset/base/363253 Log: Switch from SCTP to SCTP_SUPPORT in GENERIC configs. This removes SCTP from in-tree kernel configuration files. Now, SCTP can be enabled by simply loading the modu

svn commit: r363254 - head

2020-07-16 Thread Mark Johnston
Author: markj Date: Thu Jul 16 15:12:52 2020 New Revision: 363254 URL: https://svnweb.freebsd.org/changeset/base/363254 Log: Add a RELNOTES entry for r363253. Sponsored by: The FreeBSD Foundation Modified: head/RELNOTES Modified: head/RELNOTES ===

svn commit: r363273 - head/sys/opencrypto

2020-07-17 Thread Mark Johnston
Author: markj Date: Fri Jul 17 14:45:16 2020 New Revision: 363273 URL: https://svnweb.freebsd.org/changeset/base/363273 Log: Clean up crypto_init(). The function is called from a KLD load handler, so it may sleep. - Stop checking for errors from uma_zcreate(), they don't happen. - Co

svn commit: r363367 - head/sys/fs/ext2fs

2020-07-20 Thread Mark Johnston
Author: markj Date: Mon Jul 20 14:28:26 2020 New Revision: 363367 URL: https://svnweb.freebsd.org/changeset/base/363367 Log: ext2fs: Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: fsu MFC after:1 week Differentia

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

2020-07-20 Thread Mark Johnston
Author: markj Date: Mon Jul 20 17:05:44 2020 New Revision: 363373 URL: https://svnweb.freebsd.org/changeset/base/363373 Log: Fix a memory leak in dsl_scan_visitbp(). This should be triggered only if arc_read() fails, i.e., quite rarely. The same logic is already present in OpenZFS. P

svn commit: r363374 - head/sys/opencrypto

2020-07-20 Thread Mark Johnston
Author: markj Date: Mon Jul 20 17:44:13 2020 New Revision: 363374 URL: https://svnweb.freebsd.org/changeset/base/363374 Log: crypto(9): Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: cem, delphij, jhb MFC after:1 w

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

2020-07-20 Thread Mark Johnston
Author: markj Date: Mon Jul 20 18:22:38 2020 New Revision: 363375 URL: https://svnweb.freebsd.org/changeset/base/363375 Log: libdwarf: Hide SHT_NOBITS sections. gnu_debuglink external debug files will contain an .eh_frame section of type SHT_NOBITS. libdwarf does not handle such sections

svn commit: r363395 - head/usr.sbin/traceroute6

2020-07-21 Thread Mark Johnston
Author: markj Date: Tue Jul 21 15:03:36 2020 New Revision: 363395 URL: https://svnweb.freebsd.org/changeset/base/363395 Log: traceroute6: Fix most warnings at the default WARNS level. Fix some style issues as well. Leave -Wno-cast-aligned set for now, as most of the warnings come casts o

svn commit: r363420 - in head/sys: compat/linuxkpi/common/src dev/sound/usb dev/usb dev/usb/input dev/usb/storage

2020-07-22 Thread Mark Johnston
Author: markj Date: Wed Jul 22 14:32:47 2020 New Revision: 363420 URL: https://svnweb.freebsd.org/changeset/base/363420 Log: usb(4): Stop checking for failures from malloc(M_WAITOK). Handle the fact that parts of usb(4) can be compiled into the boot loader, where M_WAITOK does not guarant

svn commit: r363445 - head/sys/dev/ntb/test

2020-07-23 Thread Mark Johnston
Author: markj Date: Thu Jul 23 14:03:24 2020 New Revision: 363445 URL: https://svnweb.freebsd.org/changeset/base/363445 Log: ntb: Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: cem, mav MFC after:1 week Different

svn commit: r363446 - head/sys/fs/cuse

2020-07-23 Thread Mark Johnston
Author: markj Date: Thu Jul 23 14:03:37 2020 New Revision: 363446 URL: https://svnweb.freebsd.org/changeset/base/363446 Log: cuse: Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: hselasky MFC after:1 week Differen

svn commit: r363447 - in head/cddl/contrib/opensolaris: cmd/zpool lib/libzfs/common

2020-07-23 Thread Mark Johnston
Author: markj Date: Thu Jul 23 14:21:45 2020 New Revision: 363447 URL: https://svnweb.freebsd.org/changeset/base/363447 Log: MFOpenZFS: Fix zpool history unbounded memory usage In original implementation, zpool history will read the whole history before printing anything, causing memory u

svn commit: r363449 - head/libexec/rc

2020-07-23 Thread Mark Johnston
Author: markj Date: Thu Jul 23 15:03:28 2020 New Revision: 363449 URL: https://svnweb.freebsd.org/changeset/base/363449 Log: rc.firewall: Merge two identical conditions into one. No functional change intended. PR: 247949 Submitted by: Jose Luis Duran MFC after:1 week

svn commit: r363607 - head/sys/vm

2020-07-27 Thread Mark Johnston
Author: markj Date: Mon Jul 27 14:25:10 2020 New Revision: 363607 URL: https://svnweb.freebsd.org/changeset/base/363607 Log: vm_page_free_invalid(): Relax the xbusy assertion. vm_page_assert_xbusied() asserts that the busying thread is the current thread. For some uses of vm_page_free_in

svn commit: r363608 - in head/sys/dev: mpr mps

2020-07-27 Thread Mark Johnston
Author: markj Date: Mon Jul 27 14:28:55 2020 New Revision: 363608 URL: https://svnweb.freebsd.org/changeset/base/363608 Log: mpr(4), mps(4): Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: imp MFC after:1 week Dif

svn commit: r363623 - head/sys/dev/cxgbe

2020-07-27 Thread Mark Johnston
Author: markj Date: Mon Jul 27 19:05:53 2020 New Revision: 363623 URL: https://svnweb.freebsd.org/changeset/base/363623 Log: cxgbe(4): Stop checking for failures from malloc(M_WAITOK). PR: 240545 Submitted by: Andrew Reiter Reviewed by: np MFC after:1 week Differenti

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

2020-07-28 Thread Mark Johnston
On Tue, Jul 28, 2020 at 08:44:11AM -0500, Eric van Gyzen wrote: > On 7/27/20 9:25 AM, Mark Johnston wrote: > > + > > + /* > > +* We may be attempting to free the page as part of the handling for an > > +* I/O error, in which case the page was xb

svn commit: r363649 - head/bin/ps

2020-07-28 Thread Mark Johnston
Author: markj Date: Tue Jul 28 15:26:19 2020 New Revision: 363649 URL: https://svnweb.freebsd.org/changeset/base/363649 Log: ps(1): Fix formatting of the "command" field for kernel threads. When -H is specified, for kernel threads the command is formatted as "/" and truncated to MAXCOMLEN

svn commit: r363654 - head/sys/vm

2020-07-28 Thread Mark Johnston
Author: markj Date: Tue Jul 28 19:50:39 2020 New Revision: 363654 URL: https://svnweb.freebsd.org/changeset/base/363654 Log: vm_page_xbusy_claim(): Use atomics to update busy lock state. vm_page_xbusy_claim() could clobber the waiter bit. For its original use, kernel memory pages, this w

svn commit: r363671 - head/sys/vm

2020-07-29 Thread Mark Johnston
Author: markj Date: Wed Jul 29 19:38:49 2020 New Revision: 363671 URL: https://svnweb.freebsd.org/changeset/base/363671 Log: Remove the volatile qualifier from busy_lock. Use atomic(9) to load the lock state. Some places were doing this already, so it was inconsistent. In initialization

svn commit: r363682 - head/sys/kern

2020-07-29 Thread Mark Johnston
Author: markj Date: Thu Jul 30 00:52:37 2020 New Revision: 363682 URL: https://svnweb.freebsd.org/changeset/base/363682 Log: Fix a logic error in uipc_ready_scan(). When processing the last record in a socket buffer, take care to avoid a NULL pointer dereference when advancing the record

svn commit: r363710 - head/sys/netinet6

2020-07-30 Thread Mark Johnston
Author: markj Date: Thu Jul 30 17:43:23 2020 New Revision: 363710 URL: https://svnweb.freebsd.org/changeset/base/363710 Log: ip6_output(): Check the return value of in6_getlinkifnet(). If the destination address has an embedded scope ID, make sure that it corresponds to a valid ifnet befo

svn commit: r363735 - head/sys/netgraph

2020-07-31 Thread Mark Johnston
Author: markj Date: Fri Jul 31 14:08:32 2020 New Revision: 363735 URL: https://svnweb.freebsd.org/changeset/base/363735 Log: ng_iface(4): Set the current VNET before calling netisr_dispatch(). This is normally handled by a netgraph thread, but netgraph messages may be dispatched directly

svn commit: r363736 - in head: share/man/man4 sys/netgraph

2020-07-31 Thread Mark Johnston
Author: markj Date: Fri Jul 31 14:08:54 2020 New Revision: 363736 URL: https://svnweb.freebsd.org/changeset/base/363736 Log: ng_iface(4): Remove unsupported protocols. Update the ng_iface documentation and hooks to reflect the fact that the node currently only supports IPv4 and v6 packets

svn commit: r363834 - in head: . share/man/man9 sys/dev/hwpmc sys/dev/ioat sys/dev/iommu sys/dev/nvme sys/kern sys/net sys/sys sys/vm sys/x86/x86

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 13:58:36 2020 New Revision: 363834 URL: https://svnweb.freebsd.org/changeset/base/363834 Log: Remove free_domain() and uma_zfree_domain(). These functions were introduced before UMA started ensuring that freed memory gets placed in domain-local caches. They

svn commit: r363840 - head/sys/vm

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 14:59:43 2020 New Revision: 363840 URL: https://svnweb.freebsd.org/changeset/base/363840 Log: Remove most lingering references to the page lock in comments. Finish updating comments to reflect new locking protocols introduced over the past year. In particul

svn commit: r363841 - head/sys/netinet6

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 15:00:02 2020 New Revision: 363841 URL: https://svnweb.freebsd.org/changeset/base/363841 Log: Remove an incorrect assertion from in6p_lookup_mcast_ifp(). The socket may be bound to an IPv4-mapped IPv6 address. However, the inp address is not relevant to the

Re: svn commit: r363875 - head/sys/ufs/ffs

2020-08-05 Thread Mark Johnston
On Tue, Aug 04, 2020 at 11:09:16PM +, Mateusz Guzik wrote: > Author: mjg > Date: Tue Aug 4 23:09:15 2020 > New Revision: 363875 > URL: https://svnweb.freebsd.org/changeset/base/363875 > > Log: > ufs: only pass LK_ADAPTIVE if LK_NODDLKTREAT is set > > This restores the pre-adaptive spin

svn commit: r363917 - head/sys/compat/freebsd32

2020-08-05 Thread Mark Johnston
Author: markj Date: Wed Aug 5 17:06:14 2020 New Revision: 363917 URL: https://svnweb.freebsd.org/changeset/base/363917 Log: Fix a TOCTOU vulnerability in freebsd32_copyin_control(). PR: 248257 Reported by: m00nbsd working with Trend Micro Zero Day Initiative Reviewed by: ki

svn commit: r363925 - head/tools/uma/smrstress

2020-08-05 Thread Mark Johnston
Author: markj Date: Wed Aug 5 17:26:20 2020 New Revision: 363925 URL: https://svnweb.freebsd.org/changeset/base/363925 Log: Fix the smrstress build after r358400. Reported by: pho Modified: head/tools/uma/smrstress/smrstress.c Modified: head/tools/uma/smrstress/smrstress.c ===

svn commit: r363959 - head/sys/kern

2020-08-06 Thread Mark Johnston
Author: markj Date: Thu Aug 6 15:42:59 2020 New Revision: 363959 URL: https://svnweb.freebsd.org/changeset/base/363959 Log: Remove the vfs.reassignbufcalls counter and sysctl. As the 20-year old comment above it suggests, the counter is of dubious value. Moreover, the (global) counter w

svn commit: r363960 - head/sys/kern

2020-08-06 Thread Mark Johnston
Author: markj Date: Thu Aug 6 15:43:15 2020 New Revision: 363960 URL: https://svnweb.freebsd.org/changeset/base/363960 Log: Clean up reassignbuf() and buf_vlist_remove() a bit. - Convert panic() calls to INVARIANTS-only assertions. The PCTRIE code provides some of the same protection

svn commit: r364039 - head/usr.bin/script

2020-08-07 Thread Mark Johnston
Author: markj Date: Fri Aug 7 18:48:56 2020 New Revision: 364039 URL: https://svnweb.freebsd.org/changeset/base/364039 Log: script: Put the terminal in raw mode when playing back a session. Otherwise recorded sessions of some interactive programs do not play back properly. PR:

svn commit: r364083 - in head/usr.bin/fortune: fortune strfile

2020-08-10 Thread Mark Johnston
Author: markj Date: Mon Aug 10 17:01:59 2020 New Revision: 364083 URL: https://svnweb.freebsd.org/changeset/base/364083 Log: fortune, strfile: Improve validation of command-line arguments. - Avoid potential overflow when parsing a percentage. - Avoid truncation when copying file paths.

svn commit: r364090 - head/sys/vm

2020-08-10 Thread Mark Johnston
Author: markj Date: Mon Aug 10 20:34:45 2020 New Revision: 364090 URL: https://svnweb.freebsd.org/changeset/base/364090 Log: Check the UMA zone's full bucket cache before short-circuiting an alloc. The global "bucketdisable" flag indicates that we are in a low memory situation and should

svn commit: r364112 - head/usr.bin/script

2020-08-11 Thread Mark Johnston
Author: markj Date: Tue Aug 11 14:19:05 2020 New Revision: 364112 URL: https://svnweb.freebsd.org/changeset/base/364112 Log: script: Minor cleanups. - Instead of using isatty() to decide whether to call tcgetattr(), just call tcgetattr() directly, since that's all that isatty() does any

svn commit: r364118 - head/sys/compat/netbsd

2020-08-11 Thread Mark Johnston
Author: markj Date: Tue Aug 11 16:40:09 2020 New Revision: 364118 URL: https://svnweb.freebsd.org/changeset/base/364118 Log: Remove sys/compat/netbsd. It contained only a header used by ncv(4), which was mainly used on pc98 systems. Both ncv(4) and pc98 support have long been removed. D

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

2020-08-11 Thread Mark Johnston
On Tue, Aug 11, 2020 at 08:37:45PM +, Conrad Meyer wrote: > Author: cem > Date: Tue Aug 11 20:37:45 2020 > New Revision: 364129 > URL: https://svnweb.freebsd.org/changeset/base/364129 > > Log: > Add support for multithreading the inactive queue pageout within a domain. > > In very high

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

2020-08-11 Thread Mark Johnston
On Tue, Aug 11, 2020 at 03:21:31PM -0700, Conrad Meyer wrote: > Hi Konstantin, Mark (raised the same question), > > On Tue, Aug 11, 2020 at 2:32 PM Konstantin Belousov > wrote: > > > > On Tue, Aug 11, 2020 at 08:37:45PM +, Conrad Meyer wrote: > > > Author: cem > > > Date: Tue Aug 11 20:37:45

svn commit: r364168 - head/sys/compat/linprocfs

2020-08-12 Thread Mark Johnston
Author: markj Date: Wed Aug 12 16:08:44 2020 New Revision: 364168 URL: https://svnweb.freebsd.org/changeset/base/364168 Log: linprocfs: Fix some inaccuracies in meminfo. - Fill out MemFree correctly. Delete an ancient comment suggesting that we don't want to advertise the true quantity

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

2020-08-14 Thread Mark Johnston
Author: markj Date: Fri Aug 14 14:50:41 2020 New Revision: 364235 URL: https://svnweb.freebsd.org/changeset/base/364235 Log: Rename the pipe_map field of struct pipe. This is to avoid conflicts with a upcoming macro. pipe_pages is a more accurate name since the field tracks pages wired i

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

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 12:47:08 2020 New Revision: 364300 URL: https://svnweb.freebsd.org/changeset/base/364300 Log: asmc(4): Add support for MacBook7,1. PR: 248693 Submitted by: gc...@interia.pl MFC after:1 week Modified: head/sys/dev/asmc/asmc.c head/sys/dev

svn commit: r364302 - head/sys/vm

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 13:02:01 2020 New Revision: 364302 URL: https://svnweb.freebsd.org/changeset/base/364302 Log: Remove the VM map zone. Today, the zone is only used to allocate a trio of kernel maps: the kernel map itself, and the exec and pipe submaps. Maps for user proce

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

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 13:08:04 2020 New Revision: 364304 URL: https://svnweb.freebsd.org/changeset/base/364304 Log: cpuset(1): Update the usage message. Parameters related to domain selection were not listed. MFC after:1 week Sponsored by: Juniper Networks, Klara Inc. M

svn commit: r364306 - head/sys/vm

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 14:06:51 2020 New Revision: 364306 URL: https://svnweb.freebsd.org/changeset/base/364306 Log: Commit a missing piece of r364302. This had failed to apply due to a merge conflict. Reported by: Jenkins MFC with: r364302 Modified: head/sys/vm/vm_ke

svn commit: r364317 - head/sys/compat/linux

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 17:14:56 2020 New Revision: 364317 URL: https://svnweb.freebsd.org/changeset/base/364317 Log: Skip Linux madvise(MADV_DONTNEED) on unmanaged objects. vm_object_madvise() is a no-op for unmanaged objects, but we should also limit the scope of mappings on whic

svn commit: r364328 - head/sys/compat/linux

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 21:30:15 2020 New Revision: 364328 URL: https://svnweb.freebsd.org/changeset/base/364328 Log: Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET). Reported by: syzkaller MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/c

svn commit: r364329 - head/sys/compat/linux

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 21:30:49 2020 New Revision: 364329 URL: https://svnweb.freebsd.org/changeset/base/364329 Log: Remove "emulation" of clone(CLONE_PARENT | CLONE_THREAD). On Linux this is supposed to result in EINVAL. Reported by: syzkaller MFC after:1 week Sponsor

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

2020-08-18 Thread Mark Johnston
Author: markj Date: Tue Aug 18 14:09:49 2020 New Revision: 364345 URL: https://svnweb.freebsd.org/changeset/base/364345 Log: Revert r364310. Some of the resulting fallout in CAM does not appear straightforward to fix, so simply revert the commit for now in the absence of a better soluti

Re: svn commit: r364310 - in head/sys: kern vm

2020-08-18 Thread Mark Johnston
On Tue, Aug 18, 2020 at 01:03:25AM +0300, Andriy Gapon wrote: > On 17/08/2020 18:37, Gleb Smirnoff wrote: > > Author: glebius > > Date: Mon Aug 17 15:37:08 2020 > > New Revision: 364310 > > URL: https://svnweb.freebsd.org/changeset/base/364310 > > > > Log: > > With INVARIANTS panic immediately i

svn commit: r364346 - head/sys/compat/linux

2020-08-18 Thread Mark Johnston
Author: markj Date: Tue Aug 18 14:17:14 2020 New Revision: 364346 URL: https://svnweb.freebsd.org/changeset/base/364346 Log: Fix handling of ancillary data on non-AF_UNIX Linux sockets. After r340674, the "continue" would restart the loop without having updated clen, resulting in an infin

svn commit: r364406 - head/share/man/man4

2020-08-19 Thread Mark Johnston
quot; +.\" This documentation was written by Mark Johnston under sponsorship from +.\" the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" ar

svn commit: r364410 - head/sys/arm64/acpica

2020-08-19 Thread Mark Johnston
Author: markj Date: Thu Aug 20 00:38:32 2020 New Revision: 364410 URL: https://svnweb.freebsd.org/changeset/base/364410 Log: Remove an unused parameter from map_table(). MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/acpica/acpi_machdep.c Modified:

svn commit: r364411 - in head/sys: amd64/acpica i386/acpica

2020-08-19 Thread Mark Johnston
Author: markj Date: Thu Aug 20 00:52:53 2020 New Revision: 364411 URL: https://svnweb.freebsd.org/changeset/base/364411 Log: Use pmap_mapbios() to map ACPI tables on amd64 and i386. The ACPI table-mapping code used pmap_kenter_temporary() to create mappings, which in turn uses the fixed-s

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

2020-08-20 Thread Mark Johnston
-2018 Mark Johnston */ -#pragma ident "%Z%%M% %I% %E% SMI" +#include +#include +#include -#defineELF_TARGET_ALL +#include #include - -#include -#ifdef illumos -#include -#else -#defineP2ROUNDUP(x, align) (-(-(x) & -(align))) -#end

svn commit: r364438 - in head/cddl: contrib/opensolaris/lib/libdtrace/common usr.sbin/dtrace/tests/tools

2020-08-20 Thread Mark Johnston
Author: markj Date: Thu Aug 20 19:28:19 2020 New Revision: 364438 URL: https://svnweb.freebsd.org/changeset/base/364438 Log: Enable creation of static userspace probes in incremental builds. To define USDT probes, dtrace -G makes use of relocations for undefined symbols: the target addres

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

2020-08-20 Thread Mark Johnston
Author: markj Date: Thu Aug 20 20:11:58 2020 New Revision: 364440 URL: https://svnweb.freebsd.org/changeset/base/364440 Log: Fix a typo in r364438. Reported by: Jenkins MFC with: r364438 Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Modified: head/cddl/co

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

2020-08-22 Thread Mark Johnston
Author: markj Date: Sat Aug 22 14:24:17 2020 New Revision: 364483 URL: https://svnweb.freebsd.org/changeset/base/364483 Log: Fix a typo in r364438 affecting 32-bit platforms. Reported by: antoine MFC with: r364438 Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lin

Re: svn commit: r364438 - in head/cddl: contrib/opensolaris/lib/libdtrace/common usr.sbin/dtrace/tests/tools

2020-08-22 Thread Mark Johnston
On Sat, Aug 22, 2020 at 12:40:49PM +0200, Antoine Brodin wrote: > On Thu, Aug 20, 2020 at 9:28 PM Mark Johnston wrote: > > > > Author: markj > > Date: Thu Aug 20 19:28:19 2020 > > New Revision: 364438 > > URL: https://svnweb.freebsd.org/changeset/base/364438 >

svn commit: r364509 - head/sys/netgraph/bluetooth/drivers/ubt

2020-08-23 Thread Mark Johnston
Author: markj Date: Sun Aug 23 19:30:06 2020 New Revision: 364509 URL: https://svnweb.freebsd.org/changeset/base/364509 Log: ng_ubt: Add a device ID. PR: 248838 Submitted by: Andrey Zholos MFC after:1 week Modified: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c Mod

svn commit: r364768 - head/sys/vm

2020-08-25 Thread Mark Johnston
Author: markj Date: Tue Aug 25 13:45:06 2020 New Revision: 364768 URL: https://svnweb.freebsd.org/changeset/base/364768 Log: Permit vm_page_wire() to be called on pages not belonging to an object. For such pages ref_count is effectively a consumer-managed field, but there is no harm in ca

svn commit: r364779 - in head: share/man/man4 sys/dev/sdhci

2020-08-25 Thread Mark Johnston
Author: markj Date: Tue Aug 25 18:32:43 2020 New Revision: 364779 URL: https://svnweb.freebsd.org/changeset/base/364779 Log: sdhci(4): Recognize the Texas Instruments PCIxx12 card reader. PR: 248650 Submitted by: Lars Herschke MFC after:1 week Modified: head/share/man/

svn commit: r364820 - head/sys/vm

2020-08-26 Thread Mark Johnston
Author: markj Date: Wed Aug 26 14:31:48 2020 New Revision: 364820 URL: https://svnweb.freebsd.org/changeset/base/364820 Log: Use a large kmem arena import size on NUMA systems. This helps minimize internal fragmentation that occurs when 2MB imports are interleaved across NUMA domains. Vi

svn commit: r364819 - head/sys/kern

2020-08-26 Thread Mark Johnston
Author: markj Date: Wed Aug 26 14:31:35 2020 New Revision: 364819 URL: https://svnweb.freebsd.org/changeset/base/364819 Log: vmem: Avoid allocating span tags when segments are never released. vmem uses span tags to delimit imported segments, so that they can be released if the segment bec

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