svn commit: r365841 - head/sys/vm

2020-09-17 Thread Mark Johnston
Author: markj Date: Thu Sep 17 16:49:28 2020 New Revision: 365841 URL: https://svnweb.freebsd.org/changeset/base/365841 Log: Increase the default vm.max_user_wired value. Since r347532 (merged to stable/12) we only count user-wired pages towards the system limit. However, we now also tre

svn commit: r365840 - head/tests/sys/posixshm

2020-09-17 Thread Mark Johnston
Author: markj Date: Thu Sep 17 16:44:12 2020 New Revision: 365840 URL: https://svnweb.freebsd.org/changeset/base/365840 Log: Add some basic regression tests for SHM_LARGEPAGE. Discussed with: kib Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revisio

svn commit: r365796 - head/sys/conf

2020-09-16 Thread Mark Johnston
Author: markj Date: Wed Sep 16 13:51:47 2020 New Revision: 365796 URL: https://svnweb.freebsd.org/changeset/base/365796 Log: Move PLTs to the beginning of amd64 kernel modules. As with .text, the aim is to ensure that executable sections are segregated from the rest, to avoid creation of

svn commit: r365788 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 23:03:56 2020 New Revision: 365788 URL: https://svnweb.freebsd.org/changeset/base/365788 Log: Fix locking in uipc_accept(). Reported by: cy MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/uipc_usrreq.c Modified: head/

svn commit: r365771 - head/libexec/ftpd

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 20:54:18 2020 New Revision: 365771 URL: https://svnweb.freebsd.org/changeset/base/365771 Log: ftpd: Exit during authentication if an error occurs after chroot(). admbug: 969 Security: CVE-2020-7468 Modified: head/libexec/ftpd/ftpd.c Mod

svn commit: r365765 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:42 2020 New Revision: 365765 URL: https://svnweb.freebsd.org/changeset/base/365765 Log: Fix locking in uipc_accept(). This function wasn't converted to use the new locking protocol in r333744. Make it use the PCB lock for synchronizing connection stat

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

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:22 2020 New Revision: 365764 URL: https://svnweb.freebsd.org/changeset/base/365764 Log: Simplify unix socket connection peer locking. unp_pcb_owned_lock2() has some sharp edges and forces callers to deal with a bunch of cases. Simplify it: - Rena

svn commit: r365762 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:22:37 2020 New Revision: 365762 URL: https://svnweb.freebsd.org/changeset/base/365762 Log: Simplify unp_disconnect() callers. In all cases, PCBs are unlocked after unp_disconnect() returns. Since unp_disconnect() may release the last PCB reference, calle

svn commit: r365763 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:01 2020 New Revision: 365763 URL: https://svnweb.freebsd.org/changeset/base/365763 Log: Avoid an unnecessary malloc() when connecting dgram sockets. The allocated memory is only required for SOCK_STREAM and SOCK_SEQPACKET sockets. Reviewed by: ke

svn commit: r365761 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:22:16 2020 New Revision: 365761 URL: https://svnweb.freebsd.org/changeset/base/365761 Log: Rename unp_pcb_lock2(). unp_pcb_lock_pair() seems like a better name. Also make it handle the case where the two sockets are the same instead of making callers do

svn commit: r365760 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:21:58 2020 New Revision: 365760 URL: https://svnweb.freebsd.org/changeset/base/365760 Log: Improve unix socket PCB refcounting. - Use refcount_init(). - Define an INVARIANTS-only zone destructor to assert that various bits of PCB state aren't left dan

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

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:21:33 2020 New Revision: 365759 URL: https://svnweb.freebsd.org/changeset/base/365759 Log: Update unix domain socket locking comments. - Define a locking key for unpcb members. - Rewrite some of the locking protocol description to make it less verbose

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

2020-09-15 Thread Mark Johnston
On Tue, Sep 15, 2020 at 10:22:09AM -0400, Mark Johnston wrote: > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > > Author: imp > > > Date: Sat Aug 29 04:29:53 2020 > > > N

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

2020-09-15 Thread Mark Johnston
On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > Author: imp > > Date: Sat Aug 29 04:29:53 2020 > > New Revision: 364944 > > URL: https://svnweb.freebsd.org/changeset/base/364944 > > > > Log: > > devctl: move

svn commit: r365749 - head/usr.bin/posixshmcontrol

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 13:36:19 2020 New Revision: 365749 URL: https://svnweb.freebsd.org/changeset/base/365749 Log: Fix some posixshmcontrol nits. - Exit with an error if no path is specified. - Man page typo. - Error message typo. Reviewed by: kib Sponsored by: Juniper

Re: uninitialized variables [Was: svn commit: r365445 - head/sys/cam/mmc]

2020-09-09 Thread Mark Johnston
On Wed, Sep 09, 2020 at 08:49:01AM +0300, Andriy Gapon wrote: > On 08/09/2020 15:48, Mark Johnston wrote: > > I observed the same thing recently as well: the compiler catches > > uninitialized variables only in simple cases. In my case, any uses of > > goto within the funct

svn commit: r365502 - in head/sbin/ggate: ggatec ggated

2020-09-09 Thread Mark Johnston
Author: markj Date: Wed Sep 9 12:58:19 2020 New Revision: 365502 URL: https://svnweb.freebsd.org/changeset/base/365502 Log: ggate: Fix ggated/ggatec debug print of offsets. The request offset and length are always unsigned, so print them as such. Submitted by: Yoshihiro Ota MFC a

Re: svn commit: r365445 - head/sys/cam/mmc

2020-09-08 Thread Mark Johnston
On Tue, Sep 08, 2020 at 02:24:59PM +0200, Michal Meloun wrote: > On 08.09.2020 9:10, Andriy Gapon wrote: > > On 08/09/2020 08:46, Andriy Gapon wrote: > >> Author: avg > >> Date: Tue Sep 8 05:46:10 2020 > >> New Revision: 365445 > >> URL: https://svnweb.freebsd.org/changeset/base/365445 > >> > >> L

svn commit: r365437 - head/sys/vm

2020-09-07 Thread Mark Johnston
Author: markj Date: Mon Sep 7 23:28:33 2020 New Revision: 365437 URL: https://svnweb.freebsd.org/changeset/base/365437 Log: vm_object_split(): Handle orig_object type changes. orig_object->type can change from OBJT_DEFAULT to OBJT_SWAP while vm_object_split() is sleeping. In this case s

svn commit: r365336 - head/sys/modules/zfs

2020-09-04 Thread Mark Johnston
Author: markj Date: Fri Sep 4 18:55:03 2020 New Revision: 365336 URL: https://svnweb.freebsd.org/changeset/base/365336 Log: Stop setting DEBUG_FLAGS in the zfs.ko Makefile. Rely on system settings to decide whether or not to build with debug symbols and extract them to a separate file.

svn commit: r365319 - in head/sys/compat: lindebugfs linsysfs linux

2020-09-03 Thread Mark Johnston
Author: markj Date: Fri Sep 4 00:12:28 2020 New Revision: 365319 URL: https://svnweb.freebsd.org/changeset/base/365319 Log: Add emulation support for the Linux kcov(4) ioctl API. This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gat

svn commit: r365275 - head/sys/vm

2020-09-02 Thread Mark Johnston
Author: markj Date: Wed Sep 2 19:59:25 2020 New Revision: 365275 URL: https://svnweb.freebsd.org/changeset/base/365275 Log: Avoid unnecessary object locking in vm_page_grab_pages_unlocked(). We were needlessly acquiring the object lock to call vm_page_grab_pages() even when all of the re

Re: svn commit: r365268 - in head: sbin/sysctl sys/kern

2020-09-02 Thread Mark Johnston
On Wed, Sep 02, 2020 at 11:43:56AM -0700, John Baldwin wrote: > On 9/2/20 11:17 AM, Mark Johnston wrote: > > Author: markj > > Date: Wed Sep 2 18:17:08 2020 > > New Revision: 365268 > > URL: https://svnweb.freebsd.org/changeset/base/365268 > > > >

svn commit: r365268 - in head: sbin/sysctl sys/kern

2020-09-02 Thread Mark Johnston
Author: markj Date: Wed Sep 2 18:17:08 2020 New Revision: 365268 URL: https://svnweb.freebsd.org/changeset/base/365268 Log: Add sysctl(8) formatting for hw.pagesizes. - Change the type of hw.pagesizes to OPAQUE, since it returns an array. - Modify the handler to only truncate the returne

svn commit: r365267 - in head: lib/libc/sys sys/amd64/amd64 sys/arm/arm sys/arm64/arm64 sys/i386/i386 sys/powerpc/aim sys/riscv/riscv sys/sys sys/vm

2020-09-02 Thread Mark Johnston
Author: markj Date: Wed Sep 2 18:16:43 2020 New Revision: 365267 URL: https://svnweb.freebsd.org/changeset/base/365267 Log: Include the psind in data returned by mincore(2). Currently we use a single bit to indicate whether the virtual page is part of a superpage. To support a forthcomi

svn commit: r365265 - in head: share/man/man4 sys/amd64/amd64 sys/amd64/include sys/arm/arm sys/arm/include sys/arm64/arm64 sys/arm64/include sys/dev/mem sys/i386/i386 sys/i386/include sys/mips/inc...

2020-09-02 Thread Mark Johnston
Author: markj Date: Wed Sep 2 18:12:47 2020 New Revision: 365265 URL: https://svnweb.freebsd.org/changeset/base/365265 Log: Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. This allows privileged userspace processes to find information about the physical page backing a given mapping. It is

svn commit: r365060 - head/sys/dev/qlxgb

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 20:13:50 2020 New Revision: 365060 URL: https://svnweb.freebsd.org/changeset/base/365060 Log: qlxgb: Initialize if_mtu before setting max_frame_size. Previously we were relying on ether_ifattach() to set if_mtu, but max_frame_size is initialized earlier. Th

svn commit: r365047 - head/cddl/lib/libdtrace

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:15:22 2020 New Revision: 365047 URL: https://svnweb.freebsd.org/changeset/base/365047 Log: Correct the D definition for EINTEGRITY. MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Modified: head/cddl/lib/libdtrace/errno.d M

svn commit: r365046 - head/usr.sbin/pw

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:15:09 2020 New Revision: 365046 URL: https://svnweb.freebsd.org/changeset/base/365046 Log: pw: Handle errors from ftell() when removing records from /etc/opiekeys. Reported by: Coverity MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Kl

svn commit: r365048 - head/sys/cddl/dev/dtrace/amd64

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:15:44 2020 New Revision: 365048 URL: https://svnweb.freebsd.org/changeset/base/365048 Log: Tighten frame pointer checking in DTrace's amd64 stack unwinder. Avoid assuming that the kernel was compiled with -fno-omit-frame-pointer. MFC after:1 week

svn commit: r365044 - head/usr.sbin/pw

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:14:26 2020 New Revision: 365044 URL: https://svnweb.freebsd.org/changeset/base/365044 Log: pw: Remove unnecessary errp checks. The caller-supplied pointer is unconditionally dereferenced at the beginning of the function, so there is no point in comparing

svn commit: r365045 - head/usr.sbin/pw

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:14:51 2020 New Revision: 365045 URL: https://svnweb.freebsd.org/changeset/base/365045 Log: pw: Fix a resource leak. Reported by: Coverity MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Modified: head/usr.sbin/pw/rm_r.c

svn commit: r365043 - head/usr.sbin/pw

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 15:14:13 2020 New Revision: 365043 URL: https://svnweb.freebsd.org/changeset/base/365043 Log: pw: Fix terminal handling when setting a group password. Reported by: Coverity MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Modif

svn commit: r364995 - head/sbin/ggate/ggated

2020-08-31 Thread Mark Johnston
Author: markj Date: Mon Aug 31 15:59:17 2020 New Revision: 364995 URL: https://svnweb.freebsd.org/changeset/base/364995 Log: ggated(8): Avoid doubly opening the requested disk device. - Initialize the disk device fd field in connection_new(). - Close the disk device after handing the conn

svn commit: r364993 - in head/sys/dev: rtwn/usb usb

2020-08-31 Thread Mark Johnston
Author: markj Date: Mon Aug 31 15:32:45 2020 New Revision: 364993 URL: https://svnweb.freebsd.org/changeset/base/364993 Log: rtwn(4): Add support for the Belkin N300. PR: 249034 Submitted by: Salvador Martínez Mármol MFC after:1 week Modified: head/sys/dev/rtwn/usb/rtw

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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