svn commit: r352737 - head/sys/contrib/ipfilter/netinet

2019-09-25 Thread Cy Schubert
Author: cy Date: Thu Sep 26 03:09:42 2019 New Revision: 352737 URL: https://svnweb.freebsd.org/changeset/base/352737 Log: ipf mistakenly regards UDP packets with a checksum of 0x as bad. Obtained from:NetBSD fil.c r1.30, NetBSD PR/54443 MFC after:3 days Modified:

svn commit: r352738 - head/contrib/ipfilter/tools

2019-09-25 Thread Cy Schubert
Author: cy Date: Thu Sep 26 03:09:45 2019 New Revision: 352738 URL: https://svnweb.freebsd.org/changeset/base/352738 Log: Teach the ippool parser about address families. This is a precursor to implementing IPv6 support within ippool which requires reworking radix_ipf.c. MFC after:1

svn commit: r352736 - in head/sys/fs: nfs nfsclient

2019-09-25 Thread Rick Macklem
Author: rmacklem Date: Thu Sep 26 02:54:45 2019 New Revision: 352736 URL: https://svnweb.freebsd.org/changeset/base/352736 Log: Replace all mtx_assert() calls for n_mtx and ncl_iod_mutex with macros. To be consistent with replacing the mtx_lock()/mtx_unlock() calls on the NFS node mutex

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

2019-09-25 Thread Warner Losh
Author: imp Date: Thu Sep 26 01:54:24 2019 New Revision: 352735 URL: https://svnweb.freebsd.org/changeset/base/352735 Log: Catch up with stability fixes to mpr/mps in -current since 12 was branched. MFC r341755,r342354,r342355,r342386,r342387,r342388,r342526,r342528,

svn commit: r352734 - head/sys/amd64/amd64

2019-09-25 Thread Conrad Meyer
Author: cem Date: Thu Sep 26 01:51:55 2019 New Revision: 352734 URL: https://svnweb.freebsd.org/changeset/base/352734 Log: amd64 pmap: Clarify largemap bootverbose message units A PML4 covers 512 gigabytes, not gigabits. Use the typical B suffix for bytes. No functional change.

svn commit: r352732 - in head/contrib/libarchive: cat cpio libarchive libarchive/test tar tar/test test_utils

2019-09-25 Thread Martin Matuska
Author: mm Date: Thu Sep 26 01:50:20 2019 New Revision: 352732 URL: https://svnweb.freebsd.org/changeset/base/352732 Log: MFV r352731: Sync libarchive with vendor. Relevant vendor changes: Issue #1237: Fix integer overflow in archive_read_support_filter_lz4.c PR #1249: Correct

svn commit: r352733 - head/sys/amd64/amd64

2019-09-25 Thread Conrad Meyer
Author: cem Date: Thu Sep 26 01:50:26 2019 New Revision: 352733 URL: https://svnweb.freebsd.org/changeset/base/352733 Log: amd64: Expose vm.pmap.large_map_pml4_entries as a sysctl node It's nice to have sysctl nodes for tunables. Sponsored by: Dell EMC Isilon Modified:

svn commit: r352731 - in vendor/libarchive/dist: . .github .github/workflows cat contrib/shar cpio libarchive libarchive/test tar tar/test test_utils

2019-09-25 Thread Martin Matuska
Author: mm Date: Thu Sep 26 01:42:09 2019 New Revision: 352731 URL: https://svnweb.freebsd.org/changeset/base/352731 Log: Update vendor/libarchive/dist to git 2f3033ca23f8c21160506c3c7ac8a0df0d3fde42 Relevant vendor changes: Issue #1237: Fix integer overflow in

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

2019-09-25 Thread Mitchell Horne
Author: mhorne Date: Thu Sep 26 00:58:47 2019 New Revision: 352730 URL: https://svnweb.freebsd.org/changeset/base/352730 Log: Fix some broken relocation handling In a few cases, the symbol lookup is missing before attempting to perform the relocation. While the relocation types affected

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

2019-09-25 Thread Mitchell Horne
Author: mhorne Date: Thu Sep 26 00:54:07 2019 New Revision: 352729 URL: https://svnweb.freebsd.org/changeset/base/352729 Log: Cleanup of elf_machdep.c Fix some style(9) violations. This also changes the name of the machine-dependent sysctl kern.debug_kld to debug.kld_reloc, and

svn commit: r352728 - head/sys/kern

2019-09-25 Thread Alexander Motin
Author: mav Date: Thu Sep 26 00:35:06 2019 New Revision: 352728 URL: https://svnweb.freebsd.org/changeset/base/352728 Log: Microoptimize sched_pickcpu() CPU affinity on SMT. Use of CPU_FFS() to implement CPUSET_FOREACH() allows to save up to ~0.5% of CPU time on 72-thread SMT system

Re: svn commit: r352661 - head/sys/netinet/tcp_stacks

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 17:13, Dimitry Andric wrote: > > > Interesting, it seems Clang doesn't even warn in the case of casting a > > uint64_t to a 32-bit pointer. Looks like there are some useful > > warnings that ought to be implemented. > > There is -Wconversion for this, or the more specific

svn commit: r352727 - in head: lib/libc/sys tests/sys/kern

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 22:53:30 2019 New Revision: 352727 URL: https://svnweb.freebsd.org/changeset/base/352727 Log: Add SPDX tags to recently added files Reported by: Pawel Biernacki Modified: head/lib/libc/sys/shm_open.c head/tests/sys/kern/memfd_test.c Modified:

svn commit: r352726 - head/usr.sbin/efibootmgr

2019-09-25 Thread Yuri Pankov
Author: yuripv Date: Wed Sep 25 21:23:30 2019 New Revision: 352726 URL: https://svnweb.freebsd.org/changeset/base/352726 Log: efibootmgr(8): fix markup and style issues - split synopsis into separate options that can't be used together - sort options - fix (style) issues reported by

Re: svn commit: r352661 - head/sys/netinet/tcp_stacks

2019-09-25 Thread Dimitry Andric
On 25 Sep 2019, at 15:36, Ed Maste wrote: > > On Tue, 24 Sep 2019 at 17:39, Bruce Evans wrote: >> >> On i386, these types have different sizes, so >> gcc detects the type mismatch. clang is too broken to report this type >> mismatch. > > Interesting, it seems Clang doesn't even warn in the

svn commit: r352725 - in head/sys: dev/firewire net

2019-09-25 Thread Gleb Smirnoff
Author: glebius Date: Wed Sep 25 20:46:09 2019 New Revision: 352725 URL: https://svnweb.freebsd.org/changeset/base/352725 Log: style(9): remove extraneous empty lines Modified: head/sys/dev/firewire/if_fwip.c head/sys/net/if_ethersubr.c head/sys/net/if_vlan.c Modified:

svn commit: r352724 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 20:01:49 2019 New Revision: 352724 URL: https://svnweb.freebsd.org/changeset/base/352724 Log: MFC r352506: fix dsl_scan_ds_clone_swapped logic PR: 239566 Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c Directory

svn commit: r352723 - stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 20:00:59 2019 New Revision: 352723 URL: https://svnweb.freebsd.org/changeset/base/352723 Log: MFC r352506: fix dsl_scan_ds_clone_swapped logic PR: 239566 Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c Directory

svn commit: r352722 - stable/11/cddl/contrib/opensolaris/lib/libzfs/common

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:56:23 2019 New Revision: 352722 URL: https://svnweb.freebsd.org/changeset/base/352722 Log: MFC r352590: print summary line for space estimate of zfs send from bookmark Modified: stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c Directory

svn commit: r352721 - stable/12/cddl/contrib/opensolaris/lib/libzfs/common

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:55:52 2019 New Revision: 352721 URL: https://svnweb.freebsd.org/changeset/base/352721 Log: MFC r352590: print summary line for space estimate of zfs send from bookmark Modified: stable/12/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c Directory

svn commit: r352720 - stable/12/usr.sbin/bhyve

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 19:52:34 2019 New Revision: 352720 URL: https://svnweb.freebsd.org/changeset/base/352720 Log: MFC r346550: Use separate descriptors in bhyve's stdio uart backend. Modified: stable/12/usr.sbin/bhyve/uart_emul.c Directory Properties: stable/12/ (props

svn commit: r352719 - stable/11/sys/kern

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:51:58 2019 New Revision: 352719 URL: https://svnweb.freebsd.org/changeset/base/352719 Log: MFC r351810: shutdown_halt: make sure that watchdog timer is stopped Modified: stable/11/sys/kern/kern_shutdown.c Directory Properties: stable/11/ (props changed)

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

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:51:22 2019 New Revision: 352718 URL: https://svnweb.freebsd.org/changeset/base/352718 Log: MFC r351810: shutdown_halt: make sure that watchdog timer is stopped Modified: stable/12/sys/kern/kern_shutdown.c Directory Properties: stable/12/ (props changed)

svn commit: r352717 - stable/11/sys/cam/scsi

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:49:48 2019 New Revision: 352717 URL: https://svnweb.freebsd.org/changeset/base/352717 Log: MFC r351601: scsi_cd: whitespace cleanup Modified: stable/11/sys/cam/scsi/scsi_cd.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r352716 - stable/12/sys/cam/scsi

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:48:07 2019 New Revision: 352716 URL: https://svnweb.freebsd.org/changeset/base/352716 Log: MFC r351601: scsi_cd: whitespace cleanup Modified: stable/12/sys/cam/scsi/scsi_cd.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r352715 - stable/11/sys/cam/scsi

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:46:52 2019 New Revision: 352715 URL: https://svnweb.freebsd.org/changeset/base/352715 Log: MFC r351599,r351600: scsi_cd: make the media check asynchronous PR: 219857 Modified: stable/11/sys/cam/scsi/scsi_cd.c stable/11/sys/cam/scsi/scsi_cd.h

svn commit: r352714 - stable/12/sys/cam/scsi

2019-09-25 Thread Andriy Gapon
Author: avg Date: Wed Sep 25 19:46:17 2019 New Revision: 352714 URL: https://svnweb.freebsd.org/changeset/base/352714 Log: MFC r351599,r351600: scsi_cd: make the media check asynchronous PR: 219857 Modified: stable/12/sys/cam/scsi/scsi_cd.c stable/12/sys/cam/scsi/scsi_cd.h

svn commit: r352713 - head/sys/kern

2019-09-25 Thread Alexander Motin
Author: mav Date: Wed Sep 25 19:29:09 2019 New Revision: 352713 URL: https://svnweb.freebsd.org/changeset/base/352713 Log: Microoptimize sched_pickcpu() after r352658. I've noticed that I missed intr check at one more SCHED_AFFINITY(), so instead of adding one more branching I prefer to

svn commit: r352712 - in head/lib/libc: gen sys

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 19:22:03 2019 New Revision: 352712 URL: https://svnweb.freebsd.org/changeset/base/352712 Log: posix_spawn(3): handle potential signal issues with vfork Described in [1], signal handlers running in a vfork child have opportunities to corrupt the parent's

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 19:20:41 2019 New Revision: 352711 URL: https://svnweb.freebsd.org/changeset/base/352711 Log: rfork(2): add RFSPAWN flag When RFSPAWN is passed, rfork exhibits vfork(2) semantics but also resets signal handlers in the child during creation to avoid a point

Re: svn commit: r351319 - in head/usr.sbin/makefs: ffs msdos

2019-09-25 Thread Ed Maste
On Fri, 30 Aug 2019 at 00:29, Bruce Evans wrote: > > On Wed, 21 Aug 2019, Ed Maste wrote: > > > Author: emaste > > Date: Wed Aug 21 01:45:29 2019 > > New Revision: 351319 > > URL: https://svnweb.freebsd.org/changeset/base/351319 > > > > Log: > > makefs: use `char *` not `void *` for buf b_data,

svn commit: r352710 - head/lib/msun/src

2019-09-25 Thread Dimitry Andric
Author: dim Date: Wed Sep 25 18:50:57 2019 New Revision: 352710 URL: https://svnweb.freebsd.org/changeset/base/352710 Log: Do not left-shift a negative number (inducing undefined behavior in C/C++) in exp(3), expf(3), expm1(3) and expm1f(3) during intermediate computations that compute the

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 18:48:05 2019 New Revision: 352709 URL: https://svnweb.freebsd.org/changeset/base/352709 Log: compat/freebsd32: restore style after r352705 (no functional change) The escaped newlines haven't been necessary since r339624, but this file has not been

svn commit: r352708 - releng/12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-09-25 Thread Alexander Motin
Author: mav Date: Wed Sep 25 18:47:05 2019 New Revision: 352708 URL: https://svnweb.freebsd.org/changeset/base/352708 Log: MFC r352493: Fix typo, setting hidden flag instead of reparse. Approved by: re (gjb) Modified:

svn commit: r352707 - in head/sys: conf kern net sys

2019-09-25 Thread Gleb Smirnoff
Author: glebius Date: Wed Sep 25 18:26:31 2019 New Revision: 352707 URL: https://svnweb.freebsd.org/changeset/base/352707 Log: Add debugging facility EPOCH_TRACE that checks that epochs entered are properly nested and warns about recursive entrances. Unlike with locks, there is nothing

svn commit: r352706 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys usr.bin/kdump

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 18:09:19 2019 New Revision: 352706 URL: https://svnweb.freebsd.org/changeset/base/352706 Log: sysent: regenerate after r352705 This also implements it, fixes kdump, and removes no longer needed bits from lib/libc/sys/shm_open.c for the interim. Modified:

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 18:06:48 2019 New Revision: 352705 URL: https://svnweb.freebsd.org/changeset/base/352705 Log: Mark shm_open(2) as COMPAT12, succeeded by shm_open2 Implementation and regenerated files will follow. Modified: head/sys/compat/freebsd32/syscalls.master

svn commit: r352704 - head

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 18:04:09 2019 New Revision: 352704 URL: https://svnweb.freebsd.org/changeset/base/352704 Log: Adjust Makefile.inc1 syscall sub commit Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

svn commit: r352703 - in head: . lib/libc/include lib/libc/sys sys/sys tests/sys/kern

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 18:03:18 2019 New Revision: 352703 URL: https://svnweb.freebsd.org/changeset/base/352703 Log: Add linux-compatible memfd_create memfd_create is effectively a SHM_ANON shm_open(2) mapping with optional CLOEXEC and file sealing support. This is used by some

svn commit: r352702 - head/tools/debugscripts

2019-09-25 Thread Gleb Smirnoff
Author: glebius Date: Wed Sep 25 18:03:15 2019 New Revision: 352702 URL: https://svnweb.freebsd.org/changeset/base/352702 Log: Enhance the 'ps' command so that it prints a line per proc and a line per thread, so that instead of repeating the same info for all threads in proc, it would print

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:59:58 2019 New Revision: 352701 URL: https://svnweb.freebsd.org/changeset/base/352701 Log: sysent: regenerate after r352700 Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:59:15 2019 New Revision: 352700 URL: https://svnweb.freebsd.org/changeset/base/352700 Log: Add a shm_open2 syscall to support upcoming memfd_create shm_open2 allows a little more flexibility than the original shm_open. shm_open2 doesn't enforce CLOEXEC

svn commit: r352699 - head/share/mk

2019-09-25 Thread Dimitry Andric
Author: dim Date: Wed Sep 25 17:52:59 2019 New Revision: 352699 URL: https://svnweb.freebsd.org/changeset/base/352699 Log: In suite.test.mk, test if ${DESTDIR} exists before attempting to run chflags -R on it, otherwise the command will error out. (Note that adding -f to the chflags

svn commit: r352697 - in head/sys: compat/cloudabi kern sys

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:35:03 2019 New Revision: 352697 URL: https://svnweb.freebsd.org/changeset/base/352697 Log: [2/3] Add an initial seal argument to kern_shm_open() Now that flags may be set on posixshm, add an argument to kern_shm_open() for the initial seals. To maintain

svn commit: r352698 - head

2019-09-25 Thread Dimitry Andric
Author: dim Date: Wed Sep 25 17:35:34 2019 New Revision: 352698 URL: https://svnweb.freebsd.org/changeset/base/352698 Log: In r340411, libufs.so's major number was bumped to 7, but an entry in ObsoleteFiles.inc was not added. Retroactively fix that. Modified: head/ObsoleteFiles.inc

svn commit: r352696 - head/lib/libc/sys

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:33:12 2019 New Revision: 352696 URL: https://svnweb.freebsd.org/changeset/base/352696 Log: Update fcntl(2) after r352695 Modified: head/lib/libc/sys/fcntl.2 Modified: head/lib/libc/sys/fcntl.2

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:32:43 2019 New Revision: 352695 URL: https://svnweb.freebsd.org/changeset/base/352695 Log: [1/3] Add mostly Linux-compatible file sealing support File sealing applies protections against certain actions (currently: write, growth, shrink) at the inode

svn commit: r352694 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/freebsd32 i386/linux sys

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:30:28 2019 New Revision: 352694 URL: https://svnweb.freebsd.org/changeset/base/352694 Log: sysent: regenerate after r352693 Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux32/linux32_proto.h head/sys/arm64/linux/linux_proto.h

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

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:29:45 2019 New Revision: 352693 URL: https://svnweb.freebsd.org/changeset/base/352693 Log: Add COMPAT12 support to makesyscalls.sh Reviewed by: kib, imp, brooks (all without syscalls.master edits) Differential Revision:

svn commit: r352692 - releng/12.1/sys/fs/msdosfs

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:16:21 2019 New Revision: 352692 URL: https://svnweb.freebsd.org/changeset/base/352692 Log: MFS r352678: msdosfs: do not deget unlinked denodes When a file is unlinked, the denode is not reclaimed until the last reference is dropped, but the directory

svn commit: r352691 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 17:14:43 2019 New Revision: 352691 URL: https://svnweb.freebsd.org/changeset/base/352691 Log: bsdgrep(1): various fixes of empty pattern/exit code/-c behavior When an empty pattern is encountered in the pattern list, I had previously broken bsdgrep to

svn commit: r352690 - head/sys/vm

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 17:08:35 2019 New Revision: 352690 URL: https://svnweb.freebsd.org/changeset/base/352690 Log: Add some counters for per-VM page events. For now, just count batched page queue state operations. vm.stats.page.queue_ops counts the number of batch entries that

svn commit: r352689 - head/lib/libc/i386/string

2019-09-25 Thread Ed Maste
Author: emaste Date: Wed Sep 25 16:49:22 2019 New Revision: 352689 URL: https://svnweb.freebsd.org/changeset/base/352689 Log: remove obsolete i386 MD memchr implementation bde reports (in a reply to r351700 commit mail): This uses scasb, which was last optimal on the 8086, or perhaps

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 11:46, Bruce Evans wrote: > > On Wed, 25 Sep 2019, Ed Maste wrote: > > > On Fri, 20 Sep 2019 at 08:14, Bruce Evans wrote: > >> > >> Optimizing this function [memchr] is especially unimportant, > > > > Why? > > Because it is almost never used, and most of its uses are

svn commit: r352688 - in head/sys: amd64/amd64 arm/arm arm64/arm64 dev/agp i386/i386 mips/mips powerpc/booke riscv/riscv vm x86/iommu

2019-09-25 Thread Mark Johnston
Author: markj Date: Wed Sep 25 16:11:35 2019 New Revision: 352688 URL: https://svnweb.freebsd.org/changeset/base/352688 Log: Complete the removal of the "wire_count" field from struct vm_page. Convert all remaining references to that field to "ref_count" and update comments accordingly.

svn commit: r352687 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-09-25 Thread Alexander Motin
Author: mav Date: Wed Sep 25 15:51:07 2019 New Revision: 352687 URL: https://svnweb.freebsd.org/changeset/base/352687 Log: MFC r352493: Fix typo, setting hidden flag instead of reparse. Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Directory Properties:

svn commit: r352686 - stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-09-25 Thread Alexander Motin
Author: mav Date: Wed Sep 25 15:50:36 2019 New Revision: 352686 URL: https://svnweb.freebsd.org/changeset/base/352686 Log: MFC r352493: Fix typo, setting hidden flag instead of reparse. Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Directory Properties:

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Bruce Evans
On Wed, 25 Sep 2019, Ed Maste wrote: On Fri, 20 Sep 2019 at 08:14, Bruce Evans wrote: Optimizing this function [memchr] is especially unimportant, Why? Because it is almost never used, and most of its uses are unimportant. It is used a whole 26 times in all of /usr/src/*bin: -

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 10:11, Ed Maste wrote: > > Functionally equivalent, although I compared the compiled output of > both cases and what's currently there is somewhat smaller. Note that > it's not an #else case, the equivalent loop is used in both cases - > handling the non-word-size residue

svn commit: r352685 - stable/12/lib/msun/src

2019-09-25 Thread Justin Hibbits
Author: jhibbits Date: Wed Sep 25 14:33:08 2019 New Revision: 352685 URL: https://svnweb.freebsd.org/changeset/base/352685 Log: MFC r342563: libm: Include float.h to get LDBL_MANT_DIG The long double aliases of double functions are only exposed as aliases if LDBL_MANT_DIG is 53

Re: svn commit: r351659 - in head: contrib/libc++/include contrib/netbsd-tests/lib/libc/ssp gnu/lib/libssp include lib/libc/stdio

2019-09-25 Thread Ed Maste
On Fri, 13 Sep 2019 at 08:00, Bruce Evans wrote: > > C11 removed gets(), but POSIX.1-2017 (Issue 7) still has it (marked as > obsolescent). Thus this change breaks support for all versions of POSIX. Yes, and intentionally so. If there is a compelling reason to restore it I'll add the #ifdef-ery

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Fri, 20 Sep 2019 at 08:14, Bruce Evans wrote: > > Optimizing this function [memchr] is especially unimportant, Why? Really, we should provide optimized assembly implementations of string functions deemed important, but it will take time for that to happen on all architectures. > and this

svn commit: r352684 - head/sys/x86/x86

2019-09-25 Thread Konstantin Belousov
Author: kib Date: Wed Sep 25 13:36:56 2019 New Revision: 352684 URL: https://svnweb.freebsd.org/changeset/base/352684 Log: x86: Fall back to leaf 0x16 if TSC frequency is obtained by CPUID and leaf 0x15 is not functional. This should improve automatic TSC frequency determination on

Re: svn commit: r352661 - head/sys/netinet/tcp_stacks

2019-09-25 Thread Ed Maste
On Tue, 24 Sep 2019 at 17:39, Bruce Evans wrote: > > On i386, these types have different sizes, so > gcc detects the type mismatch. clang is too broken to report this type > mismatch. Interesting, it seems Clang doesn't even warn in the case of casting a uint64_t to a 32-bit pointer. Looks like

svn commit: r352683 - stable/12/usr.bin/truss

2019-09-25 Thread Konstantin Belousov
Author: kib Date: Wed Sep 25 13:29:56 2019 New Revision: 352683 URL: https://svnweb.freebsd.org/changeset/base/352683 Log: MFC r352488: truss: decode sysctl names. Modified: stable/12/usr.bin/truss/syscall.h stable/12/usr.bin/truss/syscalls.c Directory Properties: stable/12/ (props

svn commit: r352682 - in stable/12: lib/libc/gen sys/kern sys/sys

2019-09-25 Thread Konstantin Belousov
Author: kib Date: Wed Sep 25 13:28:06 2019 New Revision: 352682 URL: https://svnweb.freebsd.org/changeset/base/352682 Log: MFC r352486: sysctl: use names instead of magic numbers. Modified: stable/12/lib/libc/gen/sysctlnametomib.c stable/12/sys/kern/kern_sysctl.c

svn commit: r352681 - in head/sys/dev/vt: . hw/fb

2019-09-25 Thread Toomas Soome
Author: tsoome Date: Wed Sep 25 13:24:31 2019 New Revision: 352681 URL: https://svnweb.freebsd.org/changeset/base/352681 Log: vt: use colors from terminal emulator Instead of hardcoded colors, use terminal state. This also means, we need to record the pointer to terminal state with

svn commit: r352680 - head/sys/kern

2019-09-25 Thread Toomas Soome
Author: tsoome Date: Wed Sep 25 13:21:07 2019 New Revision: 352680 URL: https://svnweb.freebsd.org/changeset/base/352680 Log: kernel: terminal_init() should check for teken colors from kenv Check for teken.fg_color and teken.bg_color and prepare the color attributes accordingly.

svn commit: r352679 - head

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 13:04:34 2019 New Revision: 352679 URL: https://svnweb.freebsd.org/changeset/base/352679 Log: RELNOTES: Document r352668 (crontab -n and -q options) Suggested by: bapt Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r352678 - in stable: 11/sys/fs/msdosfs 12/sys/fs/msdosfs

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 12:58:49 2019 New Revision: 352678 URL: https://svnweb.freebsd.org/changeset/base/352678 Log: MFC r352564: msdosfs: do not deget unlinked denodes When a file is unlinked, the denode is not reclaimed until the last reference is dropped, but the directory

svn commit: r352678 - in stable: 11/sys/fs/msdosfs 12/sys/fs/msdosfs

2019-09-25 Thread Kyle Evans
Author: kevans Date: Wed Sep 25 12:58:49 2019 New Revision: 352678 URL: https://svnweb.freebsd.org/changeset/base/352678 Log: MFC r352564: msdosfs: do not deget unlinked denodes When a file is unlinked, the denode is not reclaimed until the last reference is dropped, but the directory

Re: svn commit: r352668 - in head/usr.sbin/cron: cron crontab lib

2019-09-25 Thread Kyle Evans
On Wed, Sep 25, 2019 at 1:58 AM Baptiste Daroussin wrote: > > On Wed, Sep 25, 2019 at 02:37:41AM +, Kyle Evans wrote: > > Author: kevans > > Date: Wed Sep 25 02:37:40 2019 > > New Revision: 352668 > > URL: https://svnweb.freebsd.org/changeset/base/352668 > > > > Log: > > cron: add log

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

2019-09-25 Thread Alexander Motin
On 25.09.2019 01:13, Peter Holm wrote: > On Tue, Sep 24, 2019 at 08:01:20PM +, Alexander Motin wrote: >> Author: mav >> Date: Tue Sep 24 20:01:20 2019 >> New Revision: 352658 >> URL: https://svnweb.freebsd.org/changeset/base/352658 >> >> Log: >> Fix/improve interrupt threads scheduling. >>

svn commit: r352677 - head/sys/kern

2019-09-25 Thread Alexander Motin
Author: mav Date: Wed Sep 25 11:58:54 2019 New Revision: 352677 URL: https://svnweb.freebsd.org/changeset/base/352677 Log: Fix wrong assertion in r352658. MFC after:1 month Modified: head/sys/kern/sched_ule.c Modified: head/sys/kern/sched_ule.c

svn commit: r352676 - stable/12/sys/netinet

2019-09-25 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 25 10:46:05 2019 New Revision: 352676 URL: https://svnweb.freebsd.org/changeset/base/352676 Log: MFC r352594: Don't hold the info lock when calling sctp_select_a_tag(). This avoids a double lock bug in the NAT colliding state processing of SCTP. Thanks

svn commit: r352675 - stable/12/sys/netinet

2019-09-25 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 25 10:44:10 2019 New Revision: 352675 URL: https://svnweb.freebsd.org/changeset/base/352675 Log: MFC r352592: Cleanup the RTO calculation and perform some consistency checks before computing the RTO. This should fix an overflow issue reported by Felix

svn commit: r352674 - stable/12/sys/netinet

2019-09-25 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 25 10:42:34 2019 New Revision: 352674 URL: https://svnweb.freebsd.org/changeset/base/352674 Log: MFC r352550: Fix the handling of invalid parameters in ASCONF chunks. Thanks to Mark Wodrich from Google for reproting the issue in

svn commit: r352673 - stable/12/sys/netinet/tcp_stacks

2019-09-25 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 25 10:40:49 2019 New Revision: 352673 URL: https://svnweb.freebsd.org/changeset/base/352673 Log: MFC r352512: When the RACK stack computes the space for user data in a TCP segment, it wasn't taking the IP level options into account. This patch fixes this.

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

2019-09-25 Thread Michael Tuexen
Author: tuexen Date: Wed Sep 25 10:38:44 2019 New Revision: 352672 URL: https://svnweb.freebsd.org/changeset/base/352672 Log: MFC r352511: When processing an incoming IPv6 packet over the loopback interface which contains Hop-by-Hop options, the mbuf chain is potentially changed in

svn commit: r352671 - head/sbin/nvmecontrol

2019-09-25 Thread Warner Losh
Author: imp Date: Wed Sep 25 07:51:30 2019 New Revision: 352671 URL: https://svnweb.freebsd.org/changeset/base/352671 Log: Size is unsigned, so remove the test entirely. The kernel won't crash if you have a bad value and I'd rather not have nvmecontrol know the internal details about how

svn commit: r352670 - in head/stand: efi/libefi i386/libi386

2019-09-25 Thread Toomas Soome
Author: tsoome Date: Wed Sep 25 07:36:35 2019 New Revision: 352670 URL: https://svnweb.freebsd.org/changeset/base/352670 Log: loader: fix indentation in efi_console and vidconsole Remove extra tab. Reported by: yuripv Modified: head/stand/efi/libefi/efi_console.c

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

2019-09-25 Thread Michael Tuexen
> On 25. Sep 2019, at 07:13, Peter Holm wrote: > > On Tue, Sep 24, 2019 at 08:01:20PM +, Alexander Motin wrote: >> Author: mav >> Date: Tue Sep 24 20:01:20 2019 >> New Revision: 352658 >> URL: https://svnweb.freebsd.org/changeset/base/352658 >> >> Log: >> Fix/improve interrupt threads

svn commit: r352669 - in head/stand: efi/libefi i386/libi386

2019-09-25 Thread Toomas Soome
Author: tsoome Date: Wed Sep 25 07:09:25 2019 New Revision: 352669 URL: https://svnweb.freebsd.org/changeset/base/352669 Log: loader: add teken.fg_color and teken.bg_color variables Add settable variables to control teken default color attributes. The supported colors are 0-7 or basic

Re: svn commit: r352668 - in head/usr.sbin/cron: cron crontab lib

2019-09-25 Thread Baptiste Daroussin
On Wed, Sep 25, 2019 at 02:37:41AM +, Kyle Evans wrote: > Author: kevans > Date: Wed Sep 25 02:37:40 2019 > New Revision: 352668 > URL: https://svnweb.freebsd.org/changeset/base/352668 > > Log: > cron: add log suppression and mail suppression for successful runs > > This commit adds