svn commit: r349148 - head/share/man/man3

2019-06-17 Thread Mark Johnston
Author: markj Date: Mon Jun 17 16:57:44 2019 New Revision: 349148 URL: https://svnweb.freebsd.org/changeset/base/349148 Log: Add some missing MLINKs for tree(3). MFC after:3 days Modified: head/share/man/man3/Makefile Modified: head/share/man/man3/Makefile ==

svn commit: r349196 - head/usr.sbin/bhyve

2019-06-19 Thread Mark Johnston
Author: markj Date: Wed Jun 19 16:09:20 2019 New Revision: 349196 URL: https://svnweb.freebsd.org/changeset/base/349196 Log: Make zlib encoding messages idempotent. Otherwise duplicate messages can trigger a reinitialization of the compression stream while the update thread is running. A

svn commit: r349218 - head/sys/vm

2019-06-19 Thread Mark Johnston
Author: markj Date: Wed Jun 19 21:36:00 2019 New Revision: 349218 URL: https://svnweb.freebsd.org/changeset/base/349218 Log: Group vm_page_activate()'s definition with other related functions. No functional change intended. MFC after:3 days Modified: head/sys/vm/vm_page.c Modif

svn commit: r349334 - head/sys/fs/smbfs

2019-06-24 Thread Mark Johnston
Author: markj Date: Mon Jun 24 19:19:37 2019 New Revision: 349334 URL: https://svnweb.freebsd.org/changeset/base/349334 Log: Remove a lingering use of splbio(). The buffer must be locked by the caller. No functional change intended. Reviewed by: kib MFC after:1 week Sponsor

svn commit: r349419 - head/sys/ufs/ffs

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:28:42 2019 New Revision: 349419 URL: https://svnweb.freebsd.org/changeset/base/349419 Log: Remove references to splbio in ffs_softdep.c. Assert that the per-mountpoint softdep mutex is held in modified functions that do not already have this assertion. N

svn commit: r349420 - head/contrib/elftoolchain/libelftc

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:30:14 2019 New Revision: 349420 URL: https://svnweb.freebsd.org/changeset/base/349420 Log: libelftc: Micro-optimize string table insertion. The string's length is already known, so use memcpy() instead of strcpy() to add it to the string table image.

svn commit: r349421 - head/contrib/elftoolchain/libelftc

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:31:50 2019 New Revision: 349421 URL: https://svnweb.freebsd.org/changeset/base/349421 Log: libelftc: Consistently use size_t for string table offsets and sizes. Reviewed by: emaste MFC after:1 week Sponsored by: The FreeBSD Foundation Differentia

svn commit: r349422 - head/contrib/elftoolchain/libelftc

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:32:41 2019 New Revision: 349422 URL: https://svnweb.freebsd.org/changeset/base/349422 Log: libelftc: Fix the documented prototype for elftc_string_table_destroy(). MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/contrib/elftool

svn commit: r349423 - head/contrib/elftoolchain/elfcopy

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:35:37 2019 New Revision: 349423 URL: https://svnweb.freebsd.org/changeset/base/349423 Log: elfcopy: Provide a size hint when creating the section string table. Use the input file's .shstrtab size as the hint if it exists. This gives a small performance i

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

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 16:38:30 2019 New Revision: 349424 URL: https://svnweb.freebsd.org/changeset/base/349424 Log: libdwarf: Use the cached strtab pointer when reading string attributes. Previously we would perform a linear search of the DWARF section list for ".debug_str". How

svn commit: r349432 - in head/sys: amd64/sgx dev/drm2/ttm vm

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 17:37:51 2019 New Revision: 349432 URL: https://svnweb.freebsd.org/changeset/base/349432 Log: Add a return value to vm_page_remove(). Use it to indicate whether the page may be safely freed following its removal from the object. Also change vm_page_remove()

svn commit: r349438 - head/sbin/dhclient

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 20:11:52 2019 New Revision: 349438 URL: https://svnweb.freebsd.org/changeset/base/349438 Log: Avoid a divide-by-zero when bad checksum counters overflow. A mixture of IP or UDP packets with valid and invalid checksum could cause {ip,udp}_packets_bad_checksum

svn commit: r349439 - head/sbin/dhclient

2019-06-26 Thread Mark Johnston
Author: markj Date: Wed Jun 26 20:19:48 2019 New Revision: 349439 URL: https://svnweb.freebsd.org/changeset/base/349439 Log: Free DHCP options with length zero. Otherwise they are leaked, allowing an attacker to trigger memory exhaustion. This is options.c rev. 1.70 from OpenBSD.

svn commit: r349546 - head/sys/kern

2019-06-29 Thread Mark Johnston
Author: markj Date: Sat Jun 29 16:05:52 2019 New Revision: 349546 URL: https://svnweb.freebsd.org/changeset/base/349546 Log: Fix mutual exclusion in pipe_direct_write(). We use PIPE_DIRECTW as a semaphore for direct writes to a pipe, where the reader copies data directly from pages mapped

svn commit: r349547 - head/sys/kern

2019-06-29 Thread Mark Johnston
Author: markj Date: Sat Jun 29 16:11:09 2019 New Revision: 349547 URL: https://svnweb.freebsd.org/changeset/base/349547 Log: Use a consistent snapshot of the fd's rights in fget_mmap(). fget_mmap() translates rights on the descriptor to a VM protection mask. It was doing so without holdi

svn commit: r349599 - head/sys/kern

2019-07-02 Thread Mark Johnston
Author: markj Date: Tue Jul 2 14:24:42 2019 New Revision: 349599 URL: https://svnweb.freebsd.org/changeset/base/349599 Log: Fix handling of errors from sblock() in soreceive_stream(). Previously we would attempt to unlock the socket buffer despite having failed to lock it. Simply return

svn commit: r349612 - head/sys/vm

2019-07-02 Thread Mark Johnston
Author: markj Date: Tue Jul 2 19:51:40 2019 New Revision: 349612 URL: https://svnweb.freebsd.org/changeset/base/349612 Log: Mark pages allocated from the per-CPU cache. Only free pages to the cache when they were allocated from that cache. This mitigates rapid fragmentation of physical m

svn commit: r349627 - in head/sys: cam/scsi compat/linux sys

2019-07-02 Thread Mark Johnston
Author: markj Date: Wed Jul 3 00:10:01 2019 New Revision: 349627 URL: https://svnweb.freebsd.org/changeset/base/349627 Log: Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl. This was added for emulation of Linux's CDROMSUBCHNL, but allows users with read access to a cd(4) device to overwrit

svn commit: r349671 - head/sys/vm

2019-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 18:46:39 2019 New Revision: 349671 URL: https://svnweb.freebsd.org/changeset/base/349671 Log: Cache the next queue element when traversing a page queue. When QUEUE_MACRO_DEBUG_TRASH is configured, removing a queue element invalidates its queue linkage pointe

svn commit: r349711 - head/sys/dev/iwm

2019-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 21:05:40 2019 New Revision: 349711 URL: https://svnweb.freebsd.org/changeset/base/349711 Log: iwm: Drain callouts after stopping the device during detach. Otherwise there is a window where they may be rescheduled. This typically manifested as a page fault s

Re: svn commit: r349423 - head/contrib/elftoolchain/elfcopy

2019-07-04 Thread Mark Johnston
On Thu, Jul 04, 2019 at 03:56:49PM +0200, Roger Pau Monné wrote: > On Wed, Jun 26, 2019 at 04:35:37PM +0000, Mark Johnston wrote: > > Author: markj > > Date: Wed Jun 26 16:35:37 2019 > > New Revision: 349423 > > URL: https://svnweb.freebsd.org/changeset/base/349423

svn commit: r349730 - head/contrib/elftoolchain/elfcopy

2019-07-04 Thread Mark Johnston
Author: markj Date: Thu Jul 4 15:07:19 2019 New Revision: 349730 URL: https://svnweb.freebsd.org/changeset/base/349730 Log: elfcopy: Clear errors after fetching the shstrtab index. Otherwise a future call to elf_errno() will return a non-zero value. update_shdr(), for example, treats any

svn commit: r349733 - head/sys/kern

2019-07-04 Thread Mark Johnston
Author: markj Date: Thu Jul 4 15:42:02 2019 New Revision: 349733 URL: https://svnweb.freebsd.org/changeset/base/349733 Log: Defer funsetown() calls for a TTY to tty_rel_free(). We were otherwise failing to call funsetown() for some descriptors associated with a tty, such as pts descripto

svn commit: r349840 - head/sys/vm

2019-07-08 Thread Mark Johnston
Author: markj Date: Mon Jul 8 18:56:30 2019 New Revision: 349840 URL: https://svnweb.freebsd.org/changeset/base/349840 Log: Add a per-CPU page cache per VM free pool. Some workloads benefit from having a per-CPU cache for VM_FREEPOOL_DIRECT pages. Reviewed by: dougm, kib Discusse

svn commit: r349841 - head/sys/vm

2019-07-08 Thread Mark Johnston
Author: markj Date: Mon Jul 8 19:02:40 2019 New Revision: 349841 URL: https://svnweb.freebsd.org/changeset/base/349841 Log: Elide the vm_reserv_free_page() call when PG_PCPU_CACHE is set. Pages with PG_PCPU_CACHE set cannot have been allocated from a reservation, so as an optimization, s

svn commit: r349846 - in head: share/man/man9 sys/amd64/amd64 sys/amd64/vmm sys/arm/arm sys/arm64/arm64 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linuxkpi/common/src sys/contrib/vch...

2019-07-08 Thread Mark Johnston
Author: markj Date: Mon Jul 8 19:46:20 2019 New Revision: 349846 URL: https://svnweb.freebsd.org/changeset/base/349846 Log: Merge the vm_page hold and wire mechanisms. The hold_count and wire_count fields of struct vm_page are separate reference counters with similar semantics. The rema

svn commit: r349892 - head/sys/kern

2019-07-10 Thread Mark Johnston
Author: markj Date: Wed Jul 10 19:57:48 2019 New Revision: 349892 URL: https://svnweb.freebsd.org/changeset/base/349892 Log: Inherit P2_PROTMAX_{ENABLE,DISABLE} across fork(). Thus, when using proccontrol(1) to disable implicit application of PROT_MAX within a process, child processes wil

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

2019-07-10 Thread Mark Johnston
Author: markj Date: Wed Jul 10 22:52:26 2019 New Revision: 349897 URL: https://svnweb.freebsd.org/changeset/base/349897 Log: Rename pmap_page_dirty() to pmap_pte_dirty(). This is a precursor to implementing dirty bit management. Discussed with: alc MFC after:1 week Sponso

svn commit: r349904 - head

2019-07-10 Thread Mark Johnston
Author: markj Date: Thu Jul 11 02:15:50 2019 New Revision: 349904 URL: https://svnweb.freebsd.org/changeset/base/349904 Log: Add vm_page_hold.9 to ObsoleteFiles.inc. Add a missing .gz suffix to pwm.9 while here. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc =

svn commit: r349910 - head/sys/arm64/include

2019-07-11 Thread Mark Johnston
Author: markj Date: Thu Jul 11 15:36:59 2019 New Revision: 349910 URL: https://svnweb.freebsd.org/changeset/base/349910 Log: Fix some ISS bit definitions for data aborts. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/include/armreg.h Modified: head

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

2019-07-12 Thread Mark Johnston
Author: markj Date: Fri Jul 12 15:24:25 2019 New Revision: 349943 URL: https://svnweb.freebsd.org/changeset/base/349943 Log: Apply some light cleanup to uses of pmap_pte_dirty(). - Check for ATTR_SW_MANAGED before anything else. - Use pmap_pte_dirty() in pmap_remove_pages(). No funct

svn commit: r350002 - head/sys/riscv/riscv

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 15:43:15 2019 New Revision: 350002 URL: https://svnweb.freebsd.org/changeset/base/350002 Log: Fix reference counting in pmap_ts_referenced() on RISC-V. pmap_ts_referenced() does not necessarily clear the access bit from all accessed mappings of a given page.

svn commit: r350003 - head/sys/riscv/riscv

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 15:45:33 2019 New Revision: 350003 URL: https://svnweb.freebsd.org/changeset/base/350003 Log: pmap_clear_modify() needs to clear PTE_W. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/riscv/riscv/pmap.c Modified: head/sys/ris

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

2019-07-15 Thread Mark Johnston
Author: markj Date: Mon Jul 15 17:13:32 2019 New Revision: 350004 URL: https://svnweb.freebsd.org/changeset/base/350004 Log: Implement software access and dirty bit management for arm64. Previously the arm64 pmap did no reference or modification tracking; all mappings were treated as refe

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

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 14:40:49 2019 New Revision: 350029 URL: https://svnweb.freebsd.org/changeset/base/350029 Log: Propagate attribute changes during demotion. After r349117 and r349122, some mapping attribute changes do not trigger superpage demotion. However, pmap_demote_l2()

svn commit: r350037 - head/sys/arm64/include

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 15:38:01 2019 New Revision: 350037 URL: https://svnweb.freebsd.org/changeset/base/350037 Log: Fix the arm64 page table entry attribute mask. It did not include the DBM or contiguous bits. Reported by: andrew Reviewed by: andrew MFC after:3 days

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

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 15:41:09 2019 New Revision: 350038 URL: https://svnweb.freebsd.org/changeset/base/350038 Log: Always use the software DBM bit for now. r350004 added most of the machinery needed to support hardware DBM management, but it did not intend to actually enable use

svn commit: r350048 - head/lib/libkvm

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 16:02:20 2019 New Revision: 350048 URL: https://svnweb.freebsd.org/changeset/base/350048 Log: Chase r350037. Reported by: jenkins MFC with: r350037 Sponsored by: The FreeBSD Foundation Modified: head/lib/libkvm/kvm_aarch64.h Modified: head/lib/lib

svn commit: r350052 - head/lib/libnv/tests

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 16:25:27 2019 New Revision: 350052 URL: https://svnweb.freebsd.org/changeset/base/350052 Log: Convert the nvlist send/recv tests to ATF. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/lib/libnv/tests/Makefile head/lib/libnv/tes

svn commit: r350054 - head/lib/libnv

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 16:28:50 2019 New Revision: 350054 URL: https://svnweb.freebsd.org/changeset/base/350054 Log: Use a platform-independent constant for PKG_MAX_SIZE. This constant determines the number of rights libnv will attempt to transmit in a given control message. In p

svn commit: r350055 - head/lib/libnv/tests

2019-07-16 Thread Mark Johnston
Author: markj Date: Tue Jul 16 16:33:44 2019 New Revision: 350055 URL: https://svnweb.freebsd.org/changeset/base/350055 Log: Add a regression test which transfers varying number of rights. This exercises the PKG_MAX_SIZE limit mentioned in r350054. MFC after:1 week Sponsored by:

svn commit: r350082 - head/cddl/contrib/opensolaris/lib/libctf/common

2019-07-17 Thread Mark Johnston
Author: markj Date: Wed Jul 17 16:31:50 2019 New Revision: 350082 URL: https://svnweb.freebsd.org/changeset/base/350082 Log: Reference stdint.h types in ctf.5. MFC after:1 week Modified: head/cddl/contrib/opensolaris/lib/libctf/common/ctf.5 Modified: head/cddl/contrib/opensolaris/li

svn commit: r350084 - in head/sys/cddl/contrib/opensolaris/uts/common: dtrace sys

2019-07-17 Thread Mark Johnston
Author: markj Date: Wed Jul 17 16:38:29 2019 New Revision: 350084 URL: https://svnweb.freebsd.org/changeset/base/350084 Log: Fix FASTTRAPIOC_GETINSTR. This ioctl is used when a breakpoint is encountered while disassembling a symbol in the target process. Since only one DTrace consumer ca

svn commit: r350086 - head/usr.sbin/rtadvd

2019-07-17 Thread Mark Johnston
Author: markj Date: Wed Jul 17 16:50:53 2019 New Revision: 350086 URL: https://svnweb.freebsd.org/changeset/base/350086 Log: Remove obsolete compatibility code from rtadvd. MFC after:1 week Modified: head/usr.sbin/rtadvd/rtadvd.c Modified: head/usr.sbin/rtadvd/rtadvd.c =

svn commit: r350089 - head

2019-07-17 Thread Mark Johnston
Author: markj Date: Wed Jul 17 19:09:05 2019 New Revision: 350089 URL: https://svnweb.freebsd.org/changeset/base/350089 Log: Add an initial RELNOTES file. The intent is to provide a convenient location to document changes that are relevant to users of binary FreeBSD distributions, in cont

svn commit: r350090 - head

2019-07-17 Thread Mark Johnston
Author: markj Date: Wed Jul 17 19:11:24 2019 New Revision: 350090 URL: https://svnweb.freebsd.org/changeset/base/350090 Log: Remove an old warning from UPDATING. The clang switchover happened long enough ago that we can garbage-collect this note. Reviewed by: emaste, imp Different

svn commit: r350182 - head/sys/vm

2019-07-20 Thread Mark Johnston
Author: markj Date: Sat Jul 20 18:25:41 2019 New Revision: 350182 URL: https://svnweb.freebsd.org/changeset/base/350182 Log: Rename vm_page_{import,release}() to vm_page_zone_{import,release}(). I would like to use the name vm_page_release() for a different purpose, and vm_page_{import,re

svn commit: r350201 - head/lib/libcasper/services/cap_fileargs

2019-07-21 Thread Mark Johnston
Author: markj Date: Sun Jul 21 16:35:49 2019 New Revision: 350201 URL: https://svnweb.freebsd.org/changeset/base/350201 Log: Link fileargs_lstat.3. Sponsored by: The FreeBSD Foundation Modified: head/lib/libcasper/services/cap_fileargs/Makefile Modified: head/lib/libcasper/services/cap_

svn commit: r350292 - head/sys/kern

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 15:18:05 2019 New Revision: 350292 URL: https://svnweb.freebsd.org/changeset/base/350292 Log: Remove a redundant offset computation in elf_load_section(). With r344705 the offset is always zero. Submitted by: Wuyang Chung Modified: head/sys/kern/imgac

svn commit: r350307 - in head: . lib/libcasper/libcasper lib/libcasper/services lib/libcasper/services/cap_random share/mk sys/sys targets/pseudo/userland/lib

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 22:50:43 2019 New Revision: 350307 URL: https://svnweb.freebsd.org/changeset/base/350307 Log: Remove cap_random(3). Now that we have a way to obtain entropy in capability mode (getrandom(2)), libcap_random is obsolete. Remove it. Bump __FreeBSD_version

svn commit: r350308 - head

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 22:57:17 2019 New Revision: 350308 URL: https://svnweb.freebsd.org/changeset/base/350308 Log: Document r350307. Sponsored by: The FreeBSD Foundation Modified: head/RELNOTES Modified: head/RELNOTES ===

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

2019-07-24 Thread Mark Johnston
Author: markj Date: Wed Jul 24 23:04:59 2019 New Revision: 350310 URL: https://svnweb.freebsd.org/changeset/base/350310 Log: Fix the turnstile_lock() KPI. turnstile_{lock,unlock}() were added for use in epoch. turnstile_lock() returned NULL to indicate that the calling thread had lost a

svn commit: r350420 - in head: include lib/libc/stdio

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 19:02:16 2019 New Revision: 350420 URL: https://svnweb.freebsd.org/changeset/base/350420 Log: Add mkostempsat(3). This is a variant of mkostemps() which takes a directory descriptor and returns a descriptor for a tempfile relative to that directory. Unlike

svn commit: r350421 - in head/sys: compat/freebsd32 dev/bhnd/nvram dev/drm2 fs/devfs fs/ext2fs fs/fuse kern mips/broadcom rpc

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 20:26:01 2019 New Revision: 350421 URL: https://svnweb.freebsd.org/changeset/base/350421 Log: Avoid relying on header pollution from sys/refcount.h. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/freebsd32/freebsd32_ca

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

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 20:31:28 2019 New Revision: 350422 URL: https://svnweb.freebsd.org/changeset/base/350422 Log: Remove an unneeded trunc_page() in pmap_fault(). Reported by: alc MFC with: r350004 Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/pm

svn commit: r350423 - head/lib/libarchive/tests

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 20:37:04 2019 New Revision: 350423 URL: https://svnweb.freebsd.org/changeset/base/350423 Log: Remove a duplicate file listing in the libarchive tests. MFC after:3 days Modified: head/lib/libarchive/tests/Makefile Modified: head/lib/libarchive/tests/Mak

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

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 21:21:53 2019 New Revision: 350427 URL: https://svnweb.freebsd.org/changeset/base/350427 Log: Have arm64's pmap_fault() handle WnR faults on dirty PTEs. If we take a WnR permission fault on a managed, writeable and dirty PTE, simply return success without ca

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

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 22:01:28 2019 New Revision: 350431 URL: https://svnweb.freebsd.org/changeset/base/350431 Log: Centralize the logic in vfs_vmio_unwire() and sendfile_free_page(). Both of these functions atomically unwire a page, optionally attempt to free the page, and enque

svn commit: r350432 - head/contrib/elftoolchain/elfcopy

2019-07-29 Thread Mark Johnston
Author: markj Date: Mon Jul 29 22:07:43 2019 New Revision: 350432 URL: https://svnweb.freebsd.org/changeset/base/350432 Log: Merge r3778 and r3779 from ELFToolchain. Modify strip(1) to not accept multiple input files when an output file is specified. There is no good way to handle this c

Re: svn commit: r350420 - in head: include lib/libc/stdio

2019-07-29 Thread Mark Johnston
On Mon, Jul 29, 2019 at 06:38:42PM -0400, Shawn Webb wrote: > On Mon, Jul 29, 2019 at 07:02:16PM +0000, Mark Johnston wrote: > > Author: markj > > Date: Mon Jul 29 19:02:16 2019 > > New Revision: 350420 > > URL: https://svnweb.freebsd.org/changeset/base/350420 > >

svn commit: r350446 - head/sys/sys

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 15:57:31 2019 New Revision: 350446 URL: https://svnweb.freebsd.org/changeset/base/350446 Log: Handle refcount(9) wraparound. Attempt to mitigate the security risks around refcount overflows by introducing a "saturated" state for the counter. Once a counter

svn commit: r350447 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 15:59:44 2019 New Revision: 350447 URL: https://svnweb.freebsd.org/changeset/base/350447 Log: Enable copy_file_range(2) in capability mode. copy_file_range() operates on a pair of file descriptors; it requires CAP_READ for the source descriptor and CAP_WRITE

svn commit: r350448 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 16:01:16 2019 New Revision: 350448 URL: https://svnweb.freebsd.org/changeset/base/350448 Log: Regenerate after r350447. Modified: head/sys/kern/init_sysent.c Modified: head/sys/kern/init_sysent.c =

svn commit: r350450 - head/sys/kern

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 17:09:58 2019 New Revision: 350450 URL: https://svnweb.freebsd.org/changeset/base/350450 Log: Enable witness(4) blessings. witness has long had a facility to "bless" designated lock pairs. Lock order reversals between a pair of blessed locks are not reporte

svn commit: r350458 - head/sys/sys

2019-07-30 Thread Mark Johnston
Author: markj Date: Tue Jul 30 22:41:25 2019 New Revision: 350458 URL: https://svnweb.freebsd.org/changeset/base/350458 Log: Use VNASSERT() in checked VOP wrappers. Reviewed by: kib MFC after:3 days Sponsored by: The FreeBSD Foundation Differential Revision:https://review

Re: svn commit: r350505 - in head: contrib/binutils/binutils/doc gnu/usr.bin/binutils/objdump

2019-08-01 Thread Mark Johnston
On Thu, Aug 01, 2019 at 11:22:46AM -0500, Warner Losh wrote: > On Thu, Aug 1, 2019, 11:00 AM Rodney W. Grimes > wrote: > > > > Author: emaste > > > Date: Thu Aug 1 14:42:41 2019 > > > New Revision: 350505 > > > URL: https://svnweb.freebsd.org/changeset/base/350505 > > > > > > Log: > > > objdum

svn commit: r350514 - head/lib/libc/gen

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:51:18 2019 New Revision: 350514 URL: https://svnweb.freebsd.org/changeset/base/350514 Log: Add an MLINK for daemonfd(3). MFC after:3 days Modified: head/lib/libc/gen/Makefile.inc Modified: head/lib/libc/gen/Makefile.inc =

svn commit: r350513 - head/lib/libc/gen

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:51:06 2019 New Revision: 350513 URL: https://svnweb.freebsd.org/changeset/base/350513 Log: Fix formatting. MFC after:3 days Modified: head/lib/libc/gen/daemon.3 Modified: head/lib/libc/gen/daemon.3 ===

svn commit: r350515 - head/contrib/elftoolchain/addr2line

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:56:32 2019 New Revision: 350515 URL: https://svnweb.freebsd.org/changeset/base/350515 Log: Capsicumize addr2line(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21104 Modified:

svn commit: r350516 - in head: contrib/elftoolchain/readelf usr.bin/readelf

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:57:08 2019 New Revision: 350516 URL: https://svnweb.freebsd.org/changeset/base/350516 Log: Capsicumize readelf(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21108 Modified: h

svn commit: r350517 - in head: contrib/elftoolchain/size usr.bin/size

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 18:57:37 2019 New Revision: 350517 URL: https://svnweb.freebsd.org/changeset/base/350517 Log: Capsicumize size(1). Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D21105 Modified: head

svn commit: r350519 - head/tools/build

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 19:26:16 2019 New Revision: 350519 URL: https://svnweb.freebsd.org/changeset/base/350519 Log: Include caph_rights_limit() in libegacy if need be. Reported by: jenkins Sponsored by: The FreeBSD Foundation Modified: head/tools/build/Makefile Modified: hea

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

2019-08-01 Thread Mark Johnston
Author: markj Date: Thu Aug 1 22:48:06 2019 New Revision: 350525 URL: https://svnweb.freebsd.org/changeset/base/350525 Log: Use ATTR_DBM even when hardware dirty bit management is not enabled. The ARMv8 reference manual only states that the bit is reserved in this case; following Linux's

svn commit: r350538 - head/sys/dev/mlx5/mlx5_en

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 15:19:11 2019 New Revision: 350538 URL: https://svnweb.freebsd.org/changeset/base/350538 Log: Fix warnings about unused identifiers when compiling without RATELIMIT. Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_

svn commit: r350540 - head/sys/kern

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 18:01:47 2019 New Revision: 350540 URL: https://svnweb.freebsd.org/changeset/base/350540 Log: Only check the blessings table for known LORs. Previously we would check for blessings before marking a given lock pair as reversed, so each "reversed" lock acquisi

svn commit: r350544 - head/usr.bin/bzip2recover

2019-08-02 Thread Mark Johnston
Author: markj Date: Fri Aug 2 22:09:56 2019 New Revision: 350544 URL: https://svnweb.freebsd.org/changeset/base/350544 Log: Add bzip2recover.1. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/bzip2recover/Makefile Modified: head/usr.bin/bzip2recover/M

svn commit: r350671 - head/contrib/elftoolchain/readelf

2019-08-06 Thread Mark Johnston
Author: markj Date: Wed Aug 7 03:14:45 2019 New Revision: 350671 URL: https://svnweb.freebsd.org/changeset/base/350671 Log: readelf: Close input files when done with them. The low fd limit used by poudriere exposed an odd failure mode in cap_fileargs (used by readelf as of r350516). In

svn commit: r350679 - head/contrib/elftoolchain/elfcopy

2019-08-07 Thread Mark Johnston
Author: markj Date: Wed Aug 7 16:22:25 2019 New Revision: 350679 URL: https://svnweb.freebsd.org/changeset/base/350679 Log: Merge r3780 from elftoolchain. Adjust argc and argv by optind before using them. This slightly simplifies the code. No functional change intended. MFC after:

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

2019-08-07 Thread Mark Johnston
Author: markj Date: Wed Aug 7 19:45:44 2019 New Revision: 350696 URL: https://svnweb.freebsd.org/changeset/base/350696 Log: Use designated initializers for vmm_ops. MFC after:3 days Modified: head/sys/amd64/vmm/amd/svm.c head/sys/amd64/vmm/intel/vmx.c Modified: head/sys/amd64/vmm

Re: svn commit: r350512 - head/tests/sys/kern

2019-08-07 Thread Mark Johnston
On Thu, Aug 01, 2019 at 06:19:16PM +, Li-Wen Hsu wrote: > Author: lwhsu > Date: Thu Aug 1 18:19:16 2019 > New Revision: 350512 > URL: https://svnweb.freebsd.org/changeset/base/350512 > > Log: > Only skip test cases sometimes failing in CI when they are running in CI > > Suggested by:

svn commit: r350779 - head/sbin/iscontrol

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 20:56:52 2019 New Revision: 350779 URL: https://svnweb.freebsd.org/changeset/base/350779 Log: Fix formatting. PR: 239726 Submitted by: Gordon Bergling MFC after:3 days Modified: head/sbin/iscontrol/iscontrol.8 Modified: head/sbin/iscontr

svn commit: r350780 - head/usr.sbin/mountd

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:08:13 2019 New Revision: 350780 URL: https://svnweb.freebsd.org/changeset/base/350780 Log: Add a reference to the NFSv3 RFC. PR: 239721 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr.sbin/mountd/mountd.8 Modified: h

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

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:15:02 2019 New Revision: 350781 URL: https://svnweb.freebsd.org/changeset/base/350781 Log: Update RFC references in the whois(1) man page. PR: 239720 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr.bin/whois/whois.1

svn commit: r350782 - head/usr.bin/du

2019-08-08 Thread Mark Johnston
Author: markj Date: Thu Aug 8 21:16:15 2019 New Revision: 350782 URL: https://svnweb.freebsd.org/changeset/base/350782 Log: Flesh out the STANDARDS and AUTHORS sections in the du(1) man page. PR: 239722 Submitted by: Gordon Bergling MFC after:3 days Modified: head/usr

svn commit: r362338 - in head: share/man/man4 sys/conf sys/kern sys/netinet sys/netinet6 sys/netipsec sys/netpfil/pf

2020-06-18 Thread Mark Johnston
Author: markj Date: Thu Jun 18 19:32:34 2020 New Revision: 362338 URL: https://svnweb.freebsd.org/changeset/base/362338 Log: Add the SCTP_SUPPORT kernel option. This is in preparation for enabling a loadable SCTP stack. Analogous to IPSEC/IPSEC_SUPPORT, the SCTP_SUPPORT kernel option mus

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

2020-06-18 Thread Mark Johnston
Author: markj Date: Fri Jun 19 03:32:04 2020 New Revision: 362361 URL: https://svnweb.freebsd.org/changeset/base/362361 Log: Add a helper function for validating VA ranges. Functions which take untrusted user ranges must validate against the bounds of the map, and also check for wraparoun

svn commit: r362360 - head/sys/vm

2020-06-18 Thread Mark Johnston
Author: markj Date: Fri Jun 19 03:31:46 2020 New Revision: 362360 URL: https://svnweb.freebsd.org/changeset/base/362360 Log: Fix a double object unlock in vm_object_backing_collapse_wait(). Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision:https://revi

svn commit: r362363 - head/sys/vm

2020-06-18 Thread Mark Johnston
Author: markj Date: Fri Jun 19 04:18:20 2020 New Revision: 362363 URL: https://svnweb.freebsd.org/changeset/base/362363 Log: Restore a check unintentionally dropped in r362361. MFC with: r362361 Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ==

svn commit: r362371 - head/sys/vm

2020-06-19 Thread Mark Johnston
Author: markj Date: Fri Jun 19 11:04:49 2020 New Revision: 362371 URL: https://svnweb.freebsd.org/changeset/base/362371 Log: Revert r362360. This commit was simply wrong since two different objects are locked. Reported by: lwhsu, pho Pointy hat: markj Modified: head/sys/vm/vm_o

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

2020-06-19 Thread Mark Johnston
On Fri, Jun 19, 2020 at 06:02:18PM +0800, Li-Wen Hsu wrote: > On Fri, Jun 19, 2020 at 11:32 AM Mark Johnston wrote: > > > > Author: markj > > Date: Fri Jun 19 03:32:04 2020 > > New Revision: 362361 > > URL: https://svnweb.freebsd.org/changeset/base/362361 > &g

Re: svn commit: r362338 - in head: share/man/man4 sys/conf sys/kern sys/netinet sys/netinet6 sys/netipsec sys/netpfil/pf

2020-06-21 Thread Mark Johnston
On Fri, Jun 19, 2020 at 08:33:35AM -0700, John Baldwin wrote: > On 6/18/20 12:32 PM, Mark Johnston wrote: > > Author: markj > > Date: Thu Jun 18 19:32:34 2020 > > New Revision: 362338 > > URL: https://svnweb.freebsd.org/changeset/base/362338 > > > > Log: &

svn commit: r362496 - in head: share/man/man4 sys/dev/acpi_support

2020-06-22 Thread Mark Johnston
Author: markj Date: Mon Jun 22 12:36:05 2020 New Revision: 362496 URL: https://svnweb.freebsd.org/changeset/base/362496 Log: acpi_ibm(4): Add support for putting fans in disengaged mode. PR: 247306 Submitted by: Ali Abdallah MFC after:2 weeks Modified: head/share/man/m

svn commit: r362497 - head/sys/netinet

2020-06-22 Thread Mark Johnston
Author: markj Date: Mon Jun 22 14:01:31 2020 New Revision: 362497 URL: https://svnweb.freebsd.org/changeset/base/362497 Log: Move the definition of SCTP's system_base_info into sctp_crc32.c. This file is the only SCTP source file compiled into the kernel when SCTP_SUPPORT is configured.

Re: svn commit: r362338 - in head: share/man/man4 sys/conf sys/kern sys/netinet sys/netinet6 sys/netipsec sys/netpfil/pf

2020-06-22 Thread Mark Johnston
On Mon, Jun 22, 2020 at 11:35:38AM -0700, John Baldwin wrote: > On 6/21/20 6:10 PM, Mark Johnston wrote: > > On Fri, Jun 19, 2020 at 08:33:35AM -0700, John Baldwin wrote: > >> On 6/18/20 12:32 PM, Mark Johnston wrote: > >>> Author: markj > >>> Date: T

svn commit: r362582 - head/sbin/ipfw

2020-06-24 Thread Mark Johnston
Author: markj Date: Wed Jun 24 15:05:42 2020 New Revision: 362582 URL: https://svnweb.freebsd.org/changeset/base/362582 Log: ipfw(8): In fill_ip6(), use a single statement for both "me" and "me6". Submitted by: Neel Chauhan Reviewed by: rgrimes, Lutz Donnerhacke MFC after:1 week

svn commit: r362585 - head/sys/netpfil/ipfw

2020-06-24 Thread Mark Johnston
Author: markj Date: Wed Jun 24 15:46:33 2020 New Revision: 362585 URL: https://svnweb.freebsd.org/changeset/base/362585 Log: ipfw(4): make O_IPVER/ipversion match IPv4 or 6, not just IPv4. Submitted by: Neel Chauhan Reviewed by: Lutz Donnerhacke MFC after:1 week Differential Rev

svn commit: r362592 - in head: share/man/man4 sys/dev/acpi_support

2020-06-24 Thread Mark Johnston
Author: markj Date: Wed Jun 24 19:51:03 2020 New Revision: 362592 URL: https://svnweb.freebsd.org/changeset/base/362592 Log: acpi_ibm(4): Rename disengaged mode to unthrottled mode. This mode was added in r362496. Rename it to make the meaning more clear. PR: 247306 Sugg

svn commit: r362613 - in head/sys: dev/md fs/tmpfs kern vm

2020-06-25 Thread Mark Johnston
Author: markj Date: Thu Jun 25 15:21:21 2020 New Revision: 362613 URL: https://svnweb.freebsd.org/changeset/base/362613 Log: Call swap_pager_freespace() from vm_object_page_remove(). All vm_object_page_remove() callers, except linux_invalidate_mapping_pages() in the LinuxKPI, free swap sp

svn commit: r362614 - head/sys/conf

2020-06-25 Thread Mark Johnston
Author: markj Date: Thu Jun 25 15:25:00 2020 New Revision: 362614 URL: https://svnweb.freebsd.org/changeset/base/362614 Log: Add SCTP_SUPPORT handling to config.mk. Reviewed by: jhb, tuexen MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https

Re: svn commit: r362613 - in head/sys: dev/md fs/tmpfs kern vm

2020-06-25 Thread Mark Johnston
On Thu, Jun 25, 2020 at 03:21:22PM +, Mark Johnston wrote: > Author: markj > Date: Thu Jun 25 15:21:21 2020 > New Revision: 362613 > URL: https://svnweb.freebsd.org/changeset/base/362613 > > Log: > Call swap_pager_freespace() from vm_object_page_remove(). > >

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