svn commit: r362145 - in head/contrib/sqlite3: . tea

2020-06-12 Thread Cy Schubert
Author: cy Date: Sat Jun 13 04:47:59 2020 New Revision: 362145 URL: https://svnweb.freebsd.org/changeset/base/362145 Log: MFV r362143: Update sqlite3 to 3.32.2 (3320200). CVE-2020-11655: SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault) via a ma

svn commit: r362142 - head/sys/net80211

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 03:16:09 2020 New Revision: 362142 URL: https://svnweb.freebsd.org/changeset/base/362142 Log: Fix !DEBUGNET build after r362138 X-MFC-With: r362138 Modified: head/sys/net80211/ieee80211_freebsd.c head/sys/net80211/ieee80211_freebsd.h Modified: head/sys/n

svn commit: r362141 - head/sys/kern

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 03:04:40 2020 New Revision: 362141 URL: https://svnweb.freebsd.org/changeset/base/362141 Log: Flip kern.tty_info_kstacks on by default It's a useful debug aid for anyone using Ctrl-T today, and doesn't seem to be widely known. So, enable it out of the box to

svn commit: r362139 - in head/sys: compat/linuxkpi/common/include/linux sys

2020-06-12 Thread Doug Moore
Author: dougm Date: Sat Jun 13 01:54:09 2020 New Revision: 362139 URL: https://svnweb.freebsd.org/changeset/base/362139 Log: Linuxkpi uses the rb-tree structures without using their interfaces, making them break when the representation changes. Revert changes that eliminated the color field

svn commit: r362138 - head/sys/net80211

2020-06-12 Thread Conrad Meyer
Author: cem Date: Sat Jun 13 00:59:36 2020 New Revision: 362138 URL: https://svnweb.freebsd.org/changeset/base/362138 Log: net80211: Add framework for debugnet(4) support Allow net80211 drivers to register a small vtable of debugnet-related methods. This is not a functional change.

svn commit: r362137 - head/sys/sys

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 23:43:44 2020 New Revision: 362137 URL: https://svnweb.freebsd.org/changeset/base/362137 Log: Allow to be used in assembly. Hide C-only declarations under #ifndef LOCORE. This will be used by future changes to define ELF notes in assembly. Reviewed by:

svn commit: r362136 - head/sys/sys

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 23:42:36 2020 New Revision: 362136 URL: https://svnweb.freebsd.org/changeset/base/362136 Log: Allow to be included from userland assembly files. This will be used by future changes to define ELF notes in assembly. Reviewed by: kib Sponsored by: DARPA

svn commit: r362135 - head/sys/opencrypto

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 23:10:30 2020 New Revision: 362135 URL: https://svnweb.freebsd.org/changeset/base/362135 Log: Various optimizations to software AES-CCM and AES-GCM. - Make use of cursors to avoid data copies for AES-CCM and AES-GCM. Pass pointers into the request's input

Re: svn commit: r362126 - head/sys/vm

2020-06-12 Thread Conrad Meyer
On Fri, Jun 12, 2020 at 2:53 PM Eric van Gyzen wrote: > Honor db_pager_quit in some vm_object ddb commands > > These can be rather verbose. We also have this (?)hack in OneFS, which eliminates the need for every debug function to check the db_pager globals: https://people.freebsd.org/~cem/db

svn commit: r362131 - head/sys/opencrypto

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 22:27:26 2020 New Revision: 362131 URL: https://svnweb.freebsd.org/changeset/base/362131 Log: Fix a regression in r361804 for TLS 1.3. I was not including the record type stored in the first byte of the trailer as part of the payload to be encrypted and hashed

svn commit: r362130 - in head: share/man/man7 sys/amd64/amd64 sys/dev/cpuctl sys/x86/include sys/x86/x86

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:14:45 2020 New Revision: 362130 URL: https://svnweb.freebsd.org/changeset/base/362130 Log: Control for Special Register Buffer Data Sampling mitigation. New microcode update for Intel enables mitigation for SRBDS, which slows down RDSEED and related instruc

svn commit: r362129 - in head/sys/x86: include x86

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:12:57 2020 New Revision: 362129 URL: https://svnweb.freebsd.org/changeset/base/362129 Log: x86: add bits definitions for SRBDS mitigation control. See https://software.intel.com/security-software-guidance/insights/deep-dive-special-register-buffer-data-sampl

svn commit: r362128 - in head/libexec/rtld-elf: . rtld-libc

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:10:03 2020 New Revision: 362128 URL: https://svnweb.freebsd.org/changeset/base/362128 Log: rtld: set osrel when in the direct exec mode. Rtld itself is a shared object which does not have vendor note, so after the direct exec of ld-elf.so.1 process has p_os

svn commit: r362127 - head/lib/libsecureboot

2020-06-12 Thread Simon J. Gerraty
Author: sjg Date: Fri Jun 12 21:55:30 2020 New Revision: 362127 URL: https://svnweb.freebsd.org/changeset/base/362127 Log: verify_pcr_export: bump kenv_mvallen if needed The loader.ve.hashed list can easily exceed KENV_MVALLEN. If so, bump kenv_mvallen to a multiple of KENV_MVALLEN to a

svn commit: r362126 - head/sys/vm

2020-06-12 Thread Eric van Gyzen
Author: vangyzen Date: Fri Jun 12 21:53:08 2020 New Revision: 362126 URL: https://svnweb.freebsd.org/changeset/base/362126 Log: Honor db_pager_quit in some vm_object ddb commands These can be rather verbose. MFC after:2 weeks Sponsored by: Dell EMC Isilon Modified: head/sys/vm

svn commit: r362125 - head/sys/security/mac_veriexec

2020-06-12 Thread Simon J. Gerraty
Author: sjg Date: Fri Jun 12 21:51:20 2020 New Revision: 362125 URL: https://svnweb.freebsd.org/changeset/base/362125 Log: mac_veriexec_fingerprint_check_vnode: v_writecount > 0 means active writers v_writecount can actually be < 0 for text, so check for v_writecount > 0 Reviewed by:

svn commit: r362124 - head/stand/common

2020-06-12 Thread Simon J. Gerraty
Author: sjg Date: Fri Jun 12 21:48:46 2020 New Revision: 362124 URL: https://svnweb.freebsd.org/changeset/base/362124 Log: Minor cleanup of initialized variables Sort the list and cleanup trailing white-space Reviewed by: stevek MFC after:1 week Modified: head/stand/common/in

svn commit: r362123 - head/sys/crypto/aesni

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 21:33:02 2020 New Revision: 362123 URL: https://svnweb.freebsd.org/changeset/base/362123 Log: Fix AES-CCM requests with an AAD size smaller than a single block. The amount to copy for the first block is the minimum of the size of the AAD region or the remainin

svn commit: r362122 - in head/sys/mips: include mips

2020-06-12 Thread John Baldwin
Author: jhb Date: Fri Jun 12 21:21:18 2020 New Revision: 362122 URL: https://svnweb.freebsd.org/changeset/base/362122 Log: Various fixes to TLS for MIPS. - Clear the current thread's TLS pointer on exec. Previously the TLS pointer (and register) remain unchanged. - Explicitly clear

svn commit: r362121 - in head/sys: amd64/amd64 i386/i386

2020-06-12 Thread Eric van Gyzen
Author: vangyzen Date: Fri Jun 12 21:17:56 2020 New Revision: 362121 URL: https://svnweb.freebsd.org/changeset/base/362121 Log: FPU init: allocate initial state from UMA to ensure alignment The Intel Instruction Set Reference says this about the XSAVE instruction: Use of a destinat

svn commit: r362120 - in head/sys: amd64/amd64 i386/i386

2020-06-12 Thread Eric van Gyzen
Author: vangyzen Date: Fri Jun 12 21:12:26 2020 New Revision: 362120 URL: https://svnweb.freebsd.org/changeset/base/362120 Log: FPU: make xsave_area_desc static ...because it can be. Reviewed by: cem kib MFC after:2 weeks Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r362119 - in head/sys: amd64/amd64 i386/i386

2020-06-12 Thread Eric van Gyzen
Author: vangyzen Date: Fri Jun 12 21:10:45 2020 New Revision: 362119 URL: https://svnweb.freebsd.org/changeset/base/362119 Log: FPU init: Do potentially blocking operations before disabling interrupts In particular, uma_zcreate creates sysctl oids, which locks an sx lock, which uses IPIs

svn commit: r362113 - in head/sys/netinet: . tcp_stacks

2020-06-12 Thread Randall Stewart
Author: rrs Date: Fri Jun 12 19:56:19 2020 New Revision: 362113 URL: https://svnweb.freebsd.org/changeset/base/362113 Log: So it turns out with the right window scaling you can get the code in all stacks to always want to do a window update, even when no data can be sent. Now in cases where

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

2020-06-12 Thread Andrew Gallatin
Author: gallatin Date: Fri Jun 12 18:41:12 2020 New Revision: 362112 URL: https://svnweb.freebsd.org/changeset/base/362112 Log: x86: Bump default msi/msix vector limit to 2048 Given that 64c/128t CPUs are currently available, and that many devices (nvme, many NICs) desire to map 1 MSI-X v

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

2020-06-12 Thread Kyle Evans
Author: kevans Date: Fri Jun 12 18:13:32 2020 New Revision: 362111 URL: https://svnweb.freebsd.org/changeset/base/362111 Log: posix_spawn: fix for some custom allocator setups libc cannot assume that aligned_alloc and free come from jemalloc, or that any application providing its own mall

Re: svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Doug Moore
As far as I know, by undoing the change that introduced the compilation error, I have fixed the compilation error.  If you mean to ask whether I intend to fix the underlying linuxkpi error, which motivated the earlier unfortunate change, then yes, I do.  I intend to make things better as soon as I

Re: svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Hans Petter Selasky
On 2020-06-12 19:51, Hans Petter Selasky wrote: On 2020-06-12 19:48, Doug Moore wrote: Author: dougm Date: Fri Jun 12 17:48:12 2020 New Revision: 362110 URL: https://svnweb.freebsd.org/changeset/base/362110 Log:    Revert r362108, as it breaks compilation. Modified:    head/sys/compat/linuxkpi

Re: svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Hans Petter Selasky
On 2020-06-12 19:48, Doug Moore wrote: Author: dougm Date: Fri Jun 12 17:48:12 2020 New Revision: 362110 URL: https://svnweb.freebsd.org/changeset/base/362110 Log: Revert r362108, as it breaks compilation. Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h Modified: head/sy

svn commit: r362110 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Doug Moore
Author: dougm Date: Fri Jun 12 17:48:12 2020 New Revision: 362110 URL: https://svnweb.freebsd.org/changeset/base/362110 Log: Revert r362108, as it breaks compilation. Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h Modified: head/sys/compat/linuxkpi/common/include/linux/rbtr

svn commit: r362109 - in head/sys: arm64/coresight conf

2020-06-12 Thread Ruslan Bukin
Author: br Date: Fri Jun 12 17:31:38 2020 New Revision: 362109 URL: https://svnweb.freebsd.org/changeset/base/362109 Log: Coresight replicator: o Add a header file; o Split-out FDT attachment to a separate file; o Add ACPI attachment. Sponsored by: DARPA, AFRL Added: head/sys/arm64

svn commit: r362108 - head/sys/compat/linuxkpi/common/include/linux

2020-06-12 Thread Doug Moore
Author: dougm Date: Fri Jun 12 16:51:55 2020 New Revision: 362108 URL: https://svnweb.freebsd.org/changeset/base/362108 Log: The linuxkpi code accesses left/right rb tree pointers without using RB_LEFT or RB_RIGHT, so they aren't stripping off the color bit encoded there. Strip off that bit

svn commit: r362107 - head/sys/netinet

2020-06-12 Thread Michael Tuexen
Author: tuexen Date: Fri Jun 12 16:40:10 2020 New Revision: 362107 URL: https://svnweb.freebsd.org/changeset/base/362107 Log: Whitespace change due to upstream cleanup. MFC after:1 week Modified: head/sys/netinet/sctp_constants.h Modified: head/sys/netinet/sctp_constants.h =

svn commit: r362106 - head/sys/netinet

2020-06-12 Thread Michael Tuexen
Author: tuexen Date: Fri Jun 12 16:31:13 2020 New Revision: 362106 URL: https://svnweb.freebsd.org/changeset/base/362106 Log: More cleanups due to ifdef cleanup done upstream MFC after:1 week Modified: head/sys/netinet/sctp_constants.h head/sys/netinet/sctp_input.c head/s

svn commit: r362104 - in head: share/man/man4 sys/compat/linux

2020-06-12 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jun 12 14:37:50 2020 New Revision: 362104 URL: https://svnweb.freebsd.org/changeset/base/362104 Log: Add compat.linux.debug sysctl, to make it possible to silence down the debug messages. While here, clean up some variable naming. Reviewed by: bcr (manpages), emas

svn commit: r362103 - head/sys/compat/linux

2020-06-12 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jun 12 14:31:19 2020 New Revision: 362103 URL: https://svnweb.freebsd.org/changeset/base/362103 Log: Fix naming clash. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linu

svn commit: r362102 - head/sys/compat/linux

2020-06-12 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jun 12 14:25:32 2020 New Revision: 362102 URL: https://svnweb.freebsd.org/changeset/base/362102 Log: Make linux(4) warn about unsupported fcntls. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/

svn commit: r362101 - head/sys/compat/linux

2020-06-12 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Jun 12 14:23:10 2020 New Revision: 362101 URL: https://svnweb.freebsd.org/changeset/base/362101 Log: Minor code cleanup; no functional changes. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D2

svn commit: r362100 - head/sys/dev/nvme

2020-06-12 Thread Alexander Motin
Author: mav Date: Fri Jun 12 14:14:01 2020 New Revision: 362100 URL: https://svnweb.freebsd.org/changeset/base/362100 Log: Fix config_intrhook leak on initial reset failure. MFC after:1 week Sponsored by: iXsystems, Inc. Modified: head/sys/dev/nvme/nvme_ctrlr.c Modified: head/sys/

svn commit: r362099 - in head/sys: arm64/coresight conf

2020-06-12 Thread Ruslan Bukin
Author: br Date: Fri Jun 12 13:59:58 2020 New Revision: 362099 URL: https://svnweb.freebsd.org/changeset/base/362099 Log: ARM Coresight Trace Memory Controller (TMC): o Split-out FDT attachment to a separate file; o Add ACPI attachment. Sponsored by: DARPA, AFRL Added: head/sys/arm64

svn commit: r362095 - in head/contrib/sqlite3: . tea tea/generic

2020-06-12 Thread Cy Schubert
Author: cy Date: Fri Jun 12 13:02:44 2020 New Revision: 362095 URL: https://svnweb.freebsd.org/changeset/base/362095 Log: MFV r362082: Update sqlite3 3.31.1 --> 3.32.0. PR: 247149 Reported by: spam...@bitbert.com Reminded by: emaste MFC after:3 days Security:

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

2020-06-12 Thread Andrew Turner
Author: andrew Date: Fri Jun 12 10:43:21 2020 New Revision: 362091 URL: https://svnweb.freebsd.org/changeset/base/362091 Log: Teach the arm64 vfp.h about struct thread. Ensure struct thread is defined in vfp.h. In some cases it is not and stops the kernel from building. Sponsored by:

svn commit: r362090 - head/sys/netinet

2020-06-12 Thread Michael Tuexen
Author: tuexen Date: Fri Jun 12 10:13:23 2020 New Revision: 362090 URL: https://svnweb.freebsd.org/changeset/base/362090 Log: Small cleanup due to upstream ifdef cleanups. MFC after:1 week Modified: head/sys/netinet/sctputil.h Modified: head/sys/netinet/sctputil.h ==

svn commit: r362089 - in head: share/misc usr.bin/calendar/calendars

2020-06-12 Thread Gordon Bergling
Author: gbe (doc committer) Date: Fri Jun 12 09:34:10 2020 New Revision: 362089 URL: https://svnweb.freebsd.org/changeset/base/362089 Log: Add myself (gbe) to committers-doc.dot and calendar.freebsd Reviewed by: bcr (mentor) Approved by: bcr (mentor) Differential Revision:http