svn commit: r354015 - head/stand/userboot/test

2019-10-24 Thread Toomas Soome
Author: tsoome Date: Thu Oct 24 07:49:33 2019 New Revision: 354015 URL: https://svnweb.freebsd.org/changeset/base/354015 Log: userboot/test should use PRIx64 as one would expect from prefix 0x Test is printing decimal value after prefix 0x. Modified: head/stand/userboot/test/test.c Modi

svn commit: r354016 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 07:53:10 2019 New Revision: 354016 URL: https://svnweb.freebsd.org/changeset/base/354016 Log: frag6: remove IP6_REASS_MBUF macro The IP6_REASS_MBUF() macro did some pointer gynmastics to end up with the same type as it gets in [*(cast **)&]. Spelling it out in

svn commit: r354017 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 08:15:40 2019 New Revision: 354017 URL: https://svnweb.freebsd.org/changeset/base/354017 Log: frag6: small improvements Rather than walking the mbuf chain manually use m_last() which doing exactly that for us. Defer initializing srcifp for longer as there are

Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch

2019-10-24 Thread Alexey Dokuchaev
On Wed, Oct 23, 2019 at 04:57:12PM +, Dimitry Andric wrote: > New Revision: 353936 > URL: https://svnweb.freebsd.org/changeset/base/353936 > > Log: > Bump clang's default target CPU for the i386 architecture (aka "x86") to > i686, as per the discussion on the freebsd-arch mailing list. Ea

svn commit: r354018 - head/sys/netinet

2019-10-24 Thread Michael Tuexen
Author: tuexen Date: Thu Oct 24 09:22:23 2019 New Revision: 354018 URL: https://svnweb.freebsd.org/changeset/base/354018 Log: Store a handle for the event handler. This will be used when unloading the SCTP as a module. Obtained from:markj@ Modified: head/sys/netinet/sct

svn commit: r354019 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 11:58:24 2019 New Revision: 354019 URL: https://svnweb.freebsd.org/changeset/base/354019 Log: frag6: check global limits before hash and lock Check whether we are accepting more fragments (based on global limits) before doing expensive operations of calculating

svn commit: r354020 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 12:16:15 2019 New Revision: 354020 URL: https://svnweb.freebsd.org/changeset/base/354020 Log: frag6: leave a note about upper layer header checks TBD Per sepcification the upper layer header needs to be within the first fragment. The check was not done so far

Re: svn commit: r353937 - in head/share: man/man5 mk

2019-10-24 Thread Shawn Webb
On Wed, Oct 23, 2019 at 05:02:45PM +, Dimitry Andric wrote: > Author: dim > Date: Wed Oct 23 17:02:45 2019 > New Revision: 353937 > URL: https://svnweb.freebsd.org/changeset/base/353937 > > Log: > Build toolchain components as dynamically linked executables by default > > Summary: > H

Re: svn commit: r353937 - in head/share: man/man5 mk

2019-10-24 Thread Alexey Dokuchaev
On Wed, Oct 23, 2019 at 11:31:41AM -0700, Enji Cooper wrote: > > On Oct 23, 2019, at 10:02, Dimitry Andric wrote: > > New Revision: 353937 > > URL: https://svnweb.freebsd.org/changeset/base/353937 > > > > Log: > > Build toolchain components as dynamically linked executables by default What are

Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch

2019-10-24 Thread Ed Maste
On Thu, 24 Oct 2019 at 04:26, Alexey Dokuchaev wrote: > > Why i686, not i586? i486 lacking 64-bit atomics is a sound and valid > reason, but I don't understand why i586 wasn't chosen, and quick review > of that -arch thread did not help. Could you shed some more light here? i686 as a minimum al

Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch

2019-10-24 Thread Warner Losh
On Thu, Oct 24, 2019 at 2:26 AM Alexey Dokuchaev wrote: > On Wed, Oct 23, 2019 at 04:57:12PM +, Dimitry Andric wrote: > > New Revision: 353936 > > URL: https://svnweb.freebsd.org/changeset/base/353936 > > > > Log: > > Bump clang's default target CPU for the i386 architecture (aka "x86") > t

Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch

2019-10-24 Thread Alexey Dokuchaev
On Thu, Oct 24, 2019 at 09:14:07AM -0600, Warner Losh wrote: > On Thu, Oct 24, 2019 at 2:26 AM Alexey Dokuchaev wrote: > > On Wed, Oct 23, 2019 at 04:57:12PM +, Dimitry Andric wrote: > > > New Revision: 353936 > > > URL: https://svnweb.freebsd.org/changeset/base/353936 > > > > > > Log: > > >

Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch

2019-10-24 Thread Warner Losh
On Thu, Oct 24, 2019 at 9:34 AM Alexey Dokuchaev wrote: > On Thu, Oct 24, 2019 at 09:14:07AM -0600, Warner Losh wrote: > > On Thu, Oct 24, 2019 at 2:26 AM Alexey Dokuchaev > wrote: > > > On Wed, Oct 23, 2019 at 04:57:12PM +, Dimitry Andric wrote: > > > > New Revision: 353936 > > > > URL: htt

svn commit: r354028 - head/sys/kern

2019-10-24 Thread John Baldwin
Author: jhb Date: Thu Oct 24 18:13:26 2019 New Revision: 354028 URL: https://svnweb.freebsd.org/changeset/base/354028 Log: Use a counter with a random base for explicit IVs in GCM. This permits constructing the entire TLS header in ktls_frame() rather than ktls_seq(). This also matches t

svn commit: r354029 - head/sys/vm

2019-10-24 Thread Andrew Gallatin
Author: gallatin Date: Thu Oct 24 18:39:05 2019 New Revision: 354029 URL: https://svnweb.freebsd.org/changeset/base/354029 Log: Add a tunable to set the pgcache zone's maxcache When it is set to 0 (the default), a heavy Netflix-style web workload suffers from heavy lock contention on the

svn commit: r354037 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 19:47:32 2019 New Revision: 354037 URL: https://svnweb.freebsd.org/changeset/base/354037 Log: frag6.c: do not leak packet queue entry in error case When we are checking for the maximum reassembled packet size of the fragmentable part and run into the error case

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

2019-10-24 Thread Kirk McKusick
Author: mckusick Date: Thu Oct 24 19:47:18 2019 New Revision: 354036 URL: https://svnweb.freebsd.org/changeset/base/354036 Log: Soft updates needs to keep an on-disk linked list of inodes that have been unlinked, but are still referenced by open file descriptors. These inodes cannot be freed

svn commit: r354038 - head/lib/libsecureboot

2019-10-24 Thread Simon J. Gerraty
Author: sjg Date: Thu Oct 24 19:50:18 2019 New Revision: 354038 URL: https://svnweb.freebsd.org/changeset/base/354038 Log: Initialize verbosity and debug level from env For EFI at least, we can seed the environment with VE_VERBOSE etc. Reviewed by: stevek imp Sponsored by: Juniper

svn commit: r354039 - head/stand/efi/loader

2019-10-24 Thread Simon J. Gerraty
Author: sjg Date: Thu Oct 24 19:52:41 2019 New Revision: 354039 URL: https://svnweb.freebsd.org/changeset/base/354039 Log: Allow loader.efi to identify non-standard boot setup PATH_BOOTABLE_TOKEN can be set to a non-standard path that identifies a device as bootable. Reviewed by: kev

svn commit: r354040 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 19:57:18 2019 New Revision: 354040 URL: https://svnweb.freebsd.org/changeset/base/354040 Log: frag6: fix counter leak in error case and optimise code In case the first fragmented part (off=0) arrives we check for the maximum packet size for each fragmented part

svn commit: r354042 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 20:00:37 2019 New Revision: 354042 URL: https://svnweb.freebsd.org/changeset/base/354042 Log: frag6: export another counter read-only by sysctl Similar to the system global counter also export the per-VNET counter "frag6_nfragpackets" detailing the current numb

svn commit: r354043 - in head/stand: . ficl ficl/amd64 ficl/i386 ficl/x86 i386/loader libsa libsa/x86

2019-10-24 Thread Simon J. Gerraty
Author: sjg Date: Thu Oct 24 20:02:48 2019 New Revision: 354043 URL: https://svnweb.freebsd.org/changeset/base/354043 Log: Add support for hypervisor check on x86 Add ficl words for isvirtualized and move ficl inb and outb words to ficl/x86/sysdep.c so can be shared by i386 and amd64

svn commit: r354044 - in head/sys: netinet netinet6

2019-10-24 Thread Michael Tuexen
Author: tuexen Date: Thu Oct 24 20:05:10 2019 New Revision: 354044 URL: https://svnweb.freebsd.org/changeset/base/354044 Log: Ensure that the flags indicating IPv4/IPv6 are not changed by failing bind() calls. This would lead to inconsistent state resulting in a panic. A fix for stable/11 wa

svn commit: r354045 - head/tests/sys/netinet6/frag6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 20:08:33 2019 New Revision: 354045 URL: https://svnweb.freebsd.org/changeset/base/354045 Log: frag6 test cases: check more counters, wait for expiry When done with tests check that both the per-VNET and the global-fragmented- packets-in-system counters are zer

svn commit: r354046 - head/sys/netinet6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 20:22:52 2019 New Revision: 354046 URL: https://svnweb.freebsd.org/changeset/base/354046 Log: frag6: handling of overlapping fragments to conform to RFC 8200 While the comment was updated in r350746, the code was not. RFC8200 says that unless fragment overlaps

Re: svn commit: r354039 - head/stand/efi/loader

2019-10-24 Thread Oliver Pinter
On Thursday, October 24, 2019, Simon J. Gerraty wrote: > Author: sjg > Date: Thu Oct 24 19:52:41 2019 > New Revision: 354039 > URL: https://svnweb.freebsd.org/changeset/base/354039 > > Log: > Allow loader.efi to identify non-standard boot setup > > PATH_BOOTABLE_TOKEN can be set to a non-stan

svn commit: r354050 - head/sys/ufs/ufs

2019-10-24 Thread Kirk McKusick
Author: mckusick Date: Thu Oct 24 21:28:37 2019 New Revision: 354050 URL: https://svnweb.freebsd.org/changeset/base/354050 Log: After the unlink() of one name of a file with multiple links, a stat() of one of the remaining names of the file does not show an updated ctime (inode modification

svn commit: r354052 - head/sys/kern

2019-10-24 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 24 21:55:19 2019 New Revision: 354052 URL: https://svnweb.freebsd.org/changeset/base/354052 Log: Use THREAD_CAN_SLEEP() macro to check if thread can sleep. There is no functional change. Discussed with: kib Modified: head/sys/kern/subr_sleepqueue.c

svn commit: r354053 - in head: sys/netinet6 tests/sys/netinet6/frag6

2019-10-24 Thread Bjoern A. Zeeb
Author: bz Date: Thu Oct 24 22:07:45 2019 New Revision: 354053 URL: https://svnweb.freebsd.org/changeset/base/354053 Log: frag6: prevent overwriting initial fragoff=0 packet meta-data. When we receive the packet with the first fragmented part (fragoff=0) we remember the length of the unfr

svn commit: r354054 - head/sys/cam/nvme

2019-10-24 Thread Brooks Davis
Author: brooks Date: Thu Oct 24 22:23:53 2019 New Revision: 354054 URL: https://svnweb.freebsd.org/changeset/base/354054 Log: nda(4): Remove unnecessary union and avoid Clang -Wsizeof-array-divwarning Clang trunk recently gained this new warning, and complains about the sizeof(trim->data)

svn commit: r354055 - head/stand/efi/loader

2019-10-24 Thread Simon J. Gerraty
Author: sjg Date: Thu Oct 24 22:26:06 2019 New Revision: 354055 URL: https://svnweb.freebsd.org/changeset/base/354055 Log: Guard reference to x86_hypervisor Obviously we only want x86_hypervisor on x86 Guard reference to x86_hypervisor Obviously we only want x86_hypervisor on x86 Mo

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

2019-10-24 Thread Jung-uk Kim
Author: jkim Date: Thu Oct 24 22:33:46 2019 New Revision: 354056 URL: https://svnweb.freebsd.org/changeset/base/354056 Log: Catch up with ACPICA 20191018. PR: 241467 XMFC with:r353764 Modified: head/usr.sbin/bhyve/acpi.c head/usr.sbin/bhyve/pci_emul.c Modified: head/us

svn commit: r354057 - in head/contrib/binutils: bfd binutils

2019-10-24 Thread Brooks Davis
Author: brooks Date: Thu Oct 24 22:34:48 2019 New Revision: 354057 URL: https://svnweb.freebsd.org/changeset/base/354057 Log: binutils: Fix bugs found by -Wpointer-compare The MIPS bug was introduced by upstream commit 7403cb630, which failed to account for the additional indirection intr