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

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

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.

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

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

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:

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.

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: r365038 - in stable/12: share/man/man4 sys/dev/sdhci

2020-09-01 Thread Mark Johnston
Author: markj Date: Tue Sep 1 13:58:17 2020 New Revision: 365038 URL: https://svnweb.freebsd.org/changeset/base/365038 Log: MFC r364779: sdhci(4): Recognize the Texas Instruments PCIxx12 card reader. PR: 248650 Modified: stable/12/share/man/man4/sdhci.4

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

2020-08-31 Thread Mark Johnston
Author: markj Date: Mon Aug 31 19:59:05 2020 New Revision: 365007 URL: https://svnweb.freebsd.org/changeset/base/365007 Log: Revert r364987, r364988. The removal of the kernel_map symbol breaks at least one out-of-tree module, the nvidia binary driver. Revert the removal for now to

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

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:

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

2020-08-31 Thread Mark Johnston
Author: markj Date: Mon Aug 31 14:47:23 2020 New Revision: 364988 URL: https://svnweb.freebsd.org/changeset/base/364988 Log: Stop accounting for MAX_KMAP when allocating UMA boot pages. With r364987 kernel maps are allocated statically. In head, a different mechanism is used to

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

2020-08-31 Thread Mark Johnston
Author: markj Date: Mon Aug 31 14:23:41 2020 New Revision: 364987 URL: https://svnweb.freebsd.org/changeset/base/364987 Log: MFC r364302, r364306: Remove the VM map zone. Modified: stable/12/sys/vm/vm_extern.h stable/12/sys/vm/vm_init.c stable/12/sys/vm/vm_kern.c

svn commit: r364972 - stable/12/sys/netgraph/bluetooth/drivers/ubt

2020-08-29 Thread Mark Johnston
Author: markj Date: Sun Aug 30 02:26:43 2020 New Revision: 364972 URL: https://svnweb.freebsd.org/changeset/base/364972 Log: MFC r364509: ng_ubt: Add a device ID. PR: 248838 Modified: stable/12/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c Directory Properties: stable/12/ (props

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

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

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:

svn commit: r364870 - stable/12/sys/arm64/acpica

2020-08-27 Thread Mark Johnston
Author: markj Date: Thu Aug 27 14:51:44 2020 New Revision: 364870 URL: https://svnweb.freebsd.org/changeset/base/364870 Log: MFC r364410: Remove an unused parameter from map_table(). Modified: stable/12/sys/arm64/acpica/acpi_machdep.c Directory Properties: stable/12/ (props changed)

svn commit: r364869 - stable/12/cddl/contrib/opensolaris/lib/libdtrace/common

2020-08-27 Thread Mark Johnston
/12/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Thu Aug 27 14:50:48 2020(r364869) @@ -25,38 +25,23 @@ * Copyright 2017-2018 Mark Johnston */ -#pragma ident "%Z%%M% %I% %E% SMI" +#include +#include +#include -#defineELF_TARGET_ALL +#include

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.

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

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:

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

svn commit: r364743 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Tue Aug 25 00:49:57 2020 New Revision: 364743 URL: https://svnweb.freebsd.org/changeset/base/364743 Log: MFC r364346: Fix handling of ancillary data on non-AF_UNIX Linux sockets. Modified: stable/12/sys/compat/linux/linux_socket.c Directory Properties: stable/12/

svn commit: r364739 - svnadmin/conf

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 23:10:24 2020 New Revision: 364739 URL: https://svnweb.freebsd.org/changeset/base/364739 Log: Remove myself from sizelimit.conf. It was a one-off for importing some iwm(4) firmware. Modified: svnadmin/conf/sizelimit.conf Modified:

svn commit: r364729 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 20:02:36 2020 New Revision: 364729 URL: https://svnweb.freebsd.org/changeset/base/364729 Log: MFC r362631, r364317: Implement an approximation of Linux MADV_DONTNEED semantics. PR: 230160 Modified: stable/12/sys/compat/linux/linux_mmap.c Directory

svn commit: r364678 - stable/12/usr.bin/cpuset

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:54:41 2020 New Revision: 364678 URL: https://svnweb.freebsd.org/changeset/base/364678 Log: MFC r364304: cpuset(1): Update the usage message. Modified: stable/12/usr.bin/cpuset/cpuset.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364680 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:55:24 2020 New Revision: 364680 URL: https://svnweb.freebsd.org/changeset/base/364680 Log: MFC r364329: Remove "emulation" of clone(CLONE_PARENT | CLONE_THREAD). Modified: stable/12/sys/compat/linux/linux_fork.c Directory Properties: stable/12/ (props

svn commit: r364681 - stable/11/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:56:15 2020 New Revision: 364681 URL: https://svnweb.freebsd.org/changeset/base/364681 Log: MFC r364329: Remove "emulation" of clone(CLONE_PARENT | CLONE_THREAD). Modified: stable/11/sys/compat/linux/linux_fork.c Directory Properties: stable/11/ (props

svn commit: r364679 - stable/12/sys/compat/linux

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:54:58 2020 New Revision: 364679 URL: https://svnweb.freebsd.org/changeset/base/364679 Log: MFC r364328: Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET). Modified: stable/12/sys/compat/linux/linux_futex.c Directory Properties: stable/12/ (props

svn commit: r364676 - stable/12/sys/dev/asmc

2020-08-24 Thread Mark Johnston
Author: markj Date: Mon Aug 24 13:50:55 2020 New Revision: 364676 URL: https://svnweb.freebsd.org/changeset/base/364676 Log: MFC r364300: asmc(4): Add support for MacBook7,1. PR: 248693 Modified: stable/12/sys/dev/asmc/asmc.c stable/12/sys/dev/asmc/asmcvar.h Directory Properties:

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

svn commit: r364501 - in stable/12/sys: amd64/acpica i386/acpica

2020-08-23 Thread Mark Johnston
Author: markj Date: Sun Aug 23 17:34:21 2020 New Revision: 364501 URL: https://svnweb.freebsd.org/changeset/base/364501 Log: MFC r364411: Use pmap_mapbios() to map ACPI tables on amd64 and i386. PR: 248746 Modified: stable/12/sys/amd64/acpica/acpi_machdep.c

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:

svn commit: r364445 - in stable/12/sys: kern sys

2020-08-20 Thread Mark Johnston
Author: markj Date: Fri Aug 21 00:59:15 2020 New Revision: 364445 URL: https://svnweb.freebsd.org/changeset/base/364445 Log: MFC r364235: Rename the pipe_map field of struct pipe. Modified: stable/12/sys/kern/sys_pipe.c stable/12/sys/sys/pipe.h Directory Properties: stable/12/ (props

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:

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

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

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
Foundation +.\" +.\" 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: r364392 - stable/12/sys/compat/linprocfs

2020-08-19 Thread Mark Johnston
Author: markj Date: Wed Aug 19 13:44:08 2020 New Revision: 364392 URL: https://svnweb.freebsd.org/changeset/base/364392 Log: MFC r364168: linprocfs: Fix some inaccuracies in meminfo. PR: 248463 Modified: stable/12/sys/compat/linprocfs/linprocfs.c Directory Properties: stable/12/

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

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

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

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

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:

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

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:

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.

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

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

svn commit: r364298 - in stable/12/usr.bin/fortune: fortune strfile

2020-08-17 Thread Mark Johnston
Author: markj Date: Mon Aug 17 12:38:35 2020 New Revision: 364298 URL: https://svnweb.freebsd.org/changeset/base/364298 Log: MFC r364083: fortune, strfile: Improve validation of command-line arguments. PR: 246050 Modified: stable/12/usr.bin/fortune/fortune/fortune.c

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

svn commit: r364225 - stable/12/usr.bin/script

2020-08-13 Thread Mark Johnston
Author: markj Date: Fri Aug 14 00:55:48 2020 New Revision: 364225 URL: https://svnweb.freebsd.org/changeset/base/364225 Log: MFC r364112: script: Minor cleanups. PR: 248377 Modified: stable/12/usr.bin/script/script.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r364224 - stable/12/usr.bin/script

2020-08-13 Thread Mark Johnston
Author: markj Date: Fri Aug 14 00:55:23 2020 New Revision: 364224 URL: https://svnweb.freebsd.org/changeset/base/364224 Log: MFC r364039: script: Put the terminal in raw mode when playing back a session. PR: 248377 Modified: stable/12/usr.bin/script/script.c Directory Properties:

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

2020-08-13 Thread Mark Johnston
Author: markj Date: Thu Aug 13 13:59:31 2020 New Revision: 364189 URL: https://svnweb.freebsd.org/changeset/base/364189 Log: MFC r363960: Clean up reassignbuf() and buf_vlist_remove() a bit. Modified: stable/12/sys/kern/vfs_subr.c Directory Properties: stable/12/ (props changed)

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

2020-08-13 Thread Mark Johnston
Author: markj Date: Thu Aug 13 13:58:21 2020 New Revision: 364188 URL: https://svnweb.freebsd.org/changeset/base/364188 Log: MFC r363959: Remove the vfs.reassignbufcalls counter and sysctl. Modified: stable/12/sys/kern/vfs_subr.c Directory Properties: stable/12/ (props changed)

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

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

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: r364128 - stable/12/sys/dev/rtwn/pci

2020-08-11 Thread Mark Johnston
Author: markj Date: Tue Aug 11 17:54:10 2020 New Revision: 364128 URL: https://svnweb.freebsd.org/changeset/base/364128 Log: MFC r350885 (by avos): rtwn_pci: add device ID for RTL8192CE. PR: 239795 Modified: stable/12/sys/dev/rtwn/pci/rtwn_pci_attach.h Directory Properties:

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.

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

svn commit: r364111 - stable/12/sys/netinet6

2020-08-11 Thread Mark Johnston
Author: markj Date: Tue Aug 11 13:51:48 2020 New Revision: 364111 URL: https://svnweb.freebsd.org/changeset/base/364111 Log: MFC r363841: Remove an incorrect assertion from in6p_lookup_mcast_ifp(). Modified: stable/12/sys/netinet6/in6_mcast.c Directory Properties: stable/12/ (props

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: r364060 - stable/12/sys/dev/safexcel

2020-08-09 Thread Mark Johnston
Author: markj Date: Mon Aug 10 02:39:42 2020 New Revision: 364060 URL: https://svnweb.freebsd.org/changeset/base/364060 Log: MFC r363880 (by lwhsu): Appease gcc's -Wparentheses (and -Werror) Modified: stable/12/sys/dev/safexcel/safexcel.c Directory Properties: stable/12/ (props

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: r364015 - in stable/12: share/man/man4 sys/netgraph

2020-08-07 Thread Mark Johnston
Author: markj Date: Fri Aug 7 13:42:47 2020 New Revision: 364015 URL: https://svnweb.freebsd.org/changeset/base/364015 Log: MFC r363736: ng_iface(4): Remove unsupported protocols. Modified: stable/12/share/man/man4/ng_iface.4 stable/12/sys/netgraph/ng_iface.c

svn commit: r364014 - stable/12/sys/netgraph

2020-08-07 Thread Mark Johnston
Author: markj Date: Fri Aug 7 13:40:49 2020 New Revision: 364014 URL: https://svnweb.freebsd.org/changeset/base/364014 Log: MFC r363735: ng_iface(4): Set the current VNET before calling netisr_dispatch(). PR: 242406 Modified: stable/12/sys/netgraph/ng_iface.c Directory Properties:

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

svn commit: r363954 - in stable/11/cddl/contrib/opensolaris: cmd/zpool lib/libzfs/common

2020-08-06 Thread Mark Johnston
Author: markj Date: Thu Aug 6 14:16:07 2020 New Revision: 363954 URL: https://svnweb.freebsd.org/changeset/base/363954 Log: MFC r363447: MFOpenZFS: Fix zpool history unbounded memory usage PR: 247557 Modified: stable/11/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c

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

2020-08-06 Thread Mark Johnston
Author: markj Date: Thu Aug 6 14:08:23 2020 New Revision: 363953 URL: https://svnweb.freebsd.org/changeset/base/363953 Log: MFC r363682: Fix a logic error in uipc_ready_scan(). Modified: stable/12/sys/kern/uipc_usrreq.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r363952 - in stable/12/cddl/contrib/opensolaris: cmd/zpool lib/libzfs/common

2020-08-06 Thread Mark Johnston
Author: markj Date: Thu Aug 6 14:07:49 2020 New Revision: 363952 URL: https://svnweb.freebsd.org/changeset/base/363952 Log: MFC r363447: MFOpenZFS: Fix zpool history unbounded memory usage PR: 247557 Modified: stable/12/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c

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: r363919 - stable/11/sys/compat/freebsd32

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

svn commit: r363918 - stable/12/sys/compat/freebsd32

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

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:

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

svn commit: r363845 - stable/12/sys/net

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 16:06:58 2020 New Revision: 363845 URL: https://svnweb.freebsd.org/changeset/base/363845 Log: MFC r362962, r362963: iflib: Fix handling of mbuf cluster allocation failures. Modified: stable/12/sys/net/iflib.c stable/12/sys/net/iflib.h Directory Properties:

svn commit: r363844 - in stable/12/sys: dev/vmware/vmxnet3 net

2020-08-04 Thread Mark Johnston
Author: markj Date: Tue Aug 4 15:48:12 2020 New Revision: 363844 URL: https://svnweb.freebsd.org/changeset/base/363844 Log: MFC r358996 (by pkelsey): Fix iflib zero-length fragment handling MFC r358997 (by pkelsey): Remove freelist contiguous-indexes assertion from rxd_frag_to_sd()

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

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

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.

svn commit: r363816 - stable/12/bin/ps

2020-08-03 Thread Mark Johnston
Author: markj Date: Tue Aug 4 00:28:06 2020 New Revision: 363816 URL: https://svnweb.freebsd.org/changeset/base/363816 Log: MFC r363649: ps(1): Fix formatting of the "command" field for kernel threads. Modified: stable/12/bin/ps/ps.c Directory Properties: stable/12/ (props changed)

svn commit: r363815 - in stable/12/sys/dev: mpr mps

2020-08-03 Thread Mark Johnston
Author: markj Date: Mon Aug 3 23:06:33 2020 New Revision: 363815 URL: https://svnweb.freebsd.org/changeset/base/363815 Log: MFC r363608: mpr(4), mps(4): Stop checking for failures from malloc(M_WAITOK). Modified: stable/12/sys/dev/mpr/mpr.c stable/12/sys/dev/mpr/mpr_sas.c

svn commit: r363814 - stable/12/sys/dev/cxgbe

2020-08-03 Thread Mark Johnston
Author: markj Date: Mon Aug 3 23:05:47 2020 New Revision: 363814 URL: https://svnweb.freebsd.org/changeset/base/363814 Log: MFC r363623: cxgbe(4): Stop checking for failures from malloc(M_WAITOK). Modified: stable/12/sys/dev/cxgbe/t4_main.c Directory Properties: stable/12/ (props

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

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

svn commit: r363702 - stable/11/sys/fs/cuse

2020-07-30 Thread Mark Johnston
Author: markj Date: Thu Jul 30 14:50:43 2020 New Revision: 363702 URL: https://svnweb.freebsd.org/changeset/base/363702 Log: MFC r363446: cuse: Stop checking for failures from malloc(M_WAITOK). Modified: stable/11/sys/fs/cuse/cuse.c Directory Properties: stable/11/ (props changed)

svn commit: r363701 - stable/12/sys/fs/cuse

2020-07-30 Thread Mark Johnston
Author: markj Date: Thu Jul 30 14:48:48 2020 New Revision: 363701 URL: https://svnweb.freebsd.org/changeset/base/363701 Log: MFC r363446: cuse: Stop checking for failures from malloc(M_WAITOK). Modified: stable/12/sys/fs/cuse/cuse.c Directory Properties: stable/12/ (props changed)

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

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