svn commit: r360186 - stable/12/usr.bin/gzip

2020-04-21 Thread Xin LI
Author: delphij Date: Wed Apr 22 05:54:46 2020 New Revision: 360186 URL: https://svnweb.freebsd.org/changeset/base/360186 Log: MFC r358988: Remove unneeded checks for prelen. Modified: stable/12/usr.bin/gzip/gzip.c stable/12/usr.bin/gzip/unlz.c stable/12/usr.bin/gzip/unpack.c Directory

svn commit: r360185 - stable/11/sys/dev/evdev

2020-04-21 Thread Xin LI
Author: delphij Date: Wed Apr 22 05:14:52 2020 New Revision: 360185 URL: https://svnweb.freebsd.org/changeset/base/360185 Log: MFC r360104: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle. This fixes a panic when detaching USB mouse. PR:

svn commit: r360184 - stable/12/sys/dev/evdev

2020-04-21 Thread Xin LI
Author: delphij Date: Wed Apr 22 05:08:42 2020 New Revision: 360184 URL: https://svnweb.freebsd.org/changeset/base/360184 Log: MFC r360104: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle. This fixes a panic when detaching USB mouse. PR:

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

2020-04-21 Thread Kyle Evans
Author: kevans Date: Wed Apr 22 04:05:02 2020 New Revision: 360183 URL: https://svnweb.freebsd.org/changeset/base/360183 Log: kqueue(2): de-vandalize the random sentence in the middle A last minute change appears to have inadvertently vandalized unrelated parts of the manpage with the

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

2020-04-21 Thread Kyle Evans
Author: kevans Date: Wed Apr 22 03:45:52 2020 New Revision: 360182 URL: https://svnweb.freebsd.org/changeset/base/360182 Log: kqueue(2): add a note about EV_RECEIPT In the below-referenced PR, a case is attached of a simple reproducer that exhibits suboptimal behavior: EVFILT_READ and

svn commit: r360181 - in head/sys: arm64/broadcom/genet arm64/conf arm64/include conf

2020-04-21 Thread Mike Karels
Author: karels Date: Wed Apr 22 00:42:10 2020 New Revision: 360181 URL: https://svnweb.freebsd.org/changeset/base/360181 Log: Add genet driver for Raspberry Pi 4B Ethernet Add driver for Broadcom "GENET" version 5, as found in BCM-2711 on Raspberry Pi 4B. The driver is derived in part

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

2020-04-21 Thread Richard Scheffenegger
Author: rscheff Date: Wed Apr 22 00:16:42 2020 New Revision: 360180 URL: https://svnweb.freebsd.org/changeset/base/360180 Log: revert rS360143 - Correctly set up initial cwnd due to syzkaller panics found Reported by: tuexen Approved by: tuexen (mentor) Sponsored by: NetApp, Inc.

svn commit: r360179 - head/sys/cam/scsi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 23:38:54 2020 New Revision: 360179 URL: https://svnweb.freebsd.org/changeset/base/360179 Log: Don't pass a user buffer pointer as the data pointer in a CCB. Allocate a temporary buffer in the kernel to serve as the CCB data pointer for a pass-through

svn commit: r360178 - head/lib/libvmmapi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 21:48:35 2020 New Revision: 360178 URL: https://svnweb.freebsd.org/changeset/base/360178 Log: Map negative types passed to vm_capability_type2name to NULL. Submitted by: vangyzen Modified: head/lib/libvmmapi/vmmapi.c Modified: head/lib/libvmmapi/vmmapi.c

svn commit: r360177 - head/sys/amd64/vmm

2020-04-21 Thread Conrad Meyer
Author: cem Date: Tue Apr 21 21:34:24 2020 New Revision: 360177 URL: https://svnweb.freebsd.org/changeset/base/360177 Log: vmm(4): Decode and emulate BEXTR Clang 10 -march=native kernels on znver1 emit BEXTR for APIC reads, apparently. Decode and emulate the instruction. Reviewed

svn commit: r360176 - in head/sys/amd64: include vmm

2020-04-21 Thread Conrad Meyer
Author: cem Date: Tue Apr 21 21:33:06 2020 New Revision: 360176 URL: https://svnweb.freebsd.org/changeset/base/360176 Log: vmm(4): Decode 3-byte VEX-prefixed instructions Reviewed by: grehan Differential Revision:https://reviews.freebsd.org/D24462 Modified:

svn commit: r360175 - in head: crypto/openssl crypto/openssl/apps crypto/openssl/crypto/aes crypto/openssl/crypto/asn1 crypto/openssl/crypto/bio crypto/openssl/crypto/ec crypto/openssl/crypto/evp c...

2020-04-21 Thread Jung-uk Kim
Author: jkim Date: Tue Apr 21 19:38:32 2020 New Revision: 360175 URL: https://svnweb.freebsd.org/changeset/base/360175 Log: Merge OpenSSL 1.1.1g. Added: head/crypto/openssl/doc/man3/X509_check_purpose.pod - copied unchanged from r360173,

svn commit: r360174 - vendor-crypto/openssl/1.1.1g

2020-04-21 Thread Jung-uk Kim
Author: jkim Date: Tue Apr 21 19:08:22 2020 New Revision: 360174 URL: https://svnweb.freebsd.org/changeset/base/360174 Log: Tag OpenSSL 1.1.1g. Added: vendor-crypto/openssl/1.1.1g/ - copied from r360173, vendor-crypto/openssl/dist/ ___

svn commit: r360173 - in vendor-crypto/openssl/dist: . apps crypto/aes crypto/asn1 crypto/bio crypto/ec crypto/evp crypto/rand crypto/x509 crypto/x509v3 doc/man1 doc/man3 include/openssl ssl

2020-04-21 Thread Jung-uk Kim
Author: jkim Date: Tue Apr 21 19:07:46 2020 New Revision: 360173 URL: https://svnweb.freebsd.org/changeset/base/360173 Log: Import OpenSSL 1.1.1g. Added: vendor-crypto/openssl/dist/doc/man3/X509_check_purpose.pod Modified: vendor-crypto/openssl/dist/CHANGES

svn commit: r360172 - head/usr.sbin/bluetooth/hccontrol

2020-04-21 Thread Hans Petter Selasky
Author: hselasky Date: Tue Apr 21 17:51:54 2020 New Revision: 360172 URL: https://svnweb.freebsd.org/changeset/base/360172 Log: Update string tables in hccontrol(8). Submitted by: Marc Veldman PR: 245796 MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r360171 - head/sys/cam/scsi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:47:05 2020 New Revision: 360171 URL: https://svnweb.freebsd.org/changeset/base/360171 Log: Don't access a user buffer directly from the kernel. The handle_string callback for the ENCIOC_SETSTRING ioctl was passing a user pointer to memcpy(). Fix by using

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

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:42:32 2020 New Revision: 360170 URL: https://svnweb.freebsd.org/changeset/base/360170 Log: Retire two unused background fsck sysctls. These two sysctls were added to support UFS softupdates journalling with snapshots. However, the changes to fsck to use

svn commit: r360169 - head/lib/libc/riscv/gen

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:40:23 2020 New Revision: 360169 URL: https://svnweb.freebsd.org/changeset/base/360169 Log: Check the magic value in longjmp() before calling sigprocmask(). This avoids passing garbage to sigprocmask() if the jump buffer is invalid. Reviewed by:

svn commit: r360168 - in head/sys: cddl/dev/dtrace/mips mips/mips

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:38:07 2020 New Revision: 360168 URL: https://svnweb.freebsd.org/changeset/base/360168 Log: Handle non-dtrace-triggered kernel breakpoint traps in mips. If DTRACE is enabled at compile time, all kernel breakpoint traps are first given to dtrace to see if

svn commit: r360167 - head/libexec/tftpd

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:32:57 2020 New Revision: 360167 URL: https://svnweb.freebsd.org/changeset/base/360167 Log: Abort transfer if fseeko() fails. CID: 1420215 Reviewed by: asomers MFC after:1 week Sponsored by: DARPA Differential Revision:

svn commit: r360166 - head/lib/libvmmapi

2020-04-21 Thread John Baldwin
Author: jhb Date: Tue Apr 21 17:30:56 2020 New Revision: 360166 URL: https://svnweb.freebsd.org/changeset/base/360166 Log: Add description string for VM_CAP_BPT_EXIT. While here, replace the array of mapping structures with an array of string pointers where the index is the capability

svn commit: r360165 - head/share/man/man4

2020-04-21 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Apr 21 17:17:32 2020 New Revision: 360165 URL: https://svnweb.freebsd.org/changeset/base/360165 Log: Also update est(4) as r360162 and r360164 MFC after:3 days Modified: head/share/man/man4/est.4 Modified: head/share/man/man4/est.4

svn commit: r360164 - head/share/man/man4

2020-04-21 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Apr 21 17:14:08 2020 New Revision: 360164 URL: https://svnweb.freebsd.org/changeset/base/360164 Log: Update .Dd Modified: head/share/man/man4/hwpstate_intel.4 Modified: head/share/man/man4/hwpstate_intel.4

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

2020-04-21 Thread Mark Johnston
Author: markj Date: Tue Apr 21 17:13:06 2020 New Revision: 360163 URL: https://svnweb.freebsd.org/changeset/base/360163 Log: Handle PCATCH in blockcount_sleep() so it can be interrupted. blockcount_wait() still unconditionally waits for the count to reach zero before returning.

svn commit: r360162 - head/share/man/man4

2020-04-21 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Apr 21 17:07:02 2020 New Revision: 360162 URL: https://svnweb.freebsd.org/changeset/base/360162 Log: hwpstate_intel(4): small text tweaks The sysctl output looks like this: dev.hwpstate_intel.0.epp: 50 dev.hwpstate_intel.0.%parent: cpu0

svn commit: r360161 - stable/11/release/doc/share/xml

2020-04-21 Thread Glen Barber
Author: gjb Date: Tue Apr 21 17:05:21 2020 New Revision: 360161 URL: https://svnweb.freebsd.org/changeset/base/360161 Log: Document EN-20:07, SA-20:10. Sponsored by: Rubicon Communications, LLC (netgate.com) Modified: stable/11/release/doc/share/xml/errata.xml

svn commit: r360160 - svnadmin/conf

2020-04-21 Thread Cy Schubert
Author: cy Date: Tue Apr 21 17:03:09 2020 New Revision: 360160 URL: https://svnweb.freebsd.org/changeset/base/360160 Log: sqlite3 import into the vendor branch is now complete. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r360159 - vendor/sqlite3/sqlite-3310100

2020-04-21 Thread Cy Schubert
Author: cy Date: Tue Apr 21 17:01:12 2020 New Revision: 360159 URL: https://svnweb.freebsd.org/changeset/base/360159 Log: Tag import of sqlite3-3.31.1 (3310100) Added: vendor/sqlite3/sqlite-3310100/ - copied from r360158, vendor/sqlite3/dist/

svn commit: r360158 - in vendor/sqlite3/dist: . tea

2020-04-21 Thread Cy Schubert
Author: cy Date: Tue Apr 21 16:58:19 2020 New Revision: 360158 URL: https://svnweb.freebsd.org/changeset/base/360158 Log: Import sqlite3-3.31.1 (3310100) Modified: vendor/sqlite3/dist/configure vendor/sqlite3/dist/configure.ac vendor/sqlite3/dist/sqlite3.c vendor/sqlite3/dist/sqlite3.h

svn commit: r360157 - svnadmin/conf

2020-04-21 Thread Cy Schubert
Author: cy Date: Tue Apr 21 16:57:15 2020 New Revision: 360157 URL: https://svnweb.freebsd.org/changeset/base/360157 Log: Sizelimit for sqlite3-3.31.1 (3310100) import. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r360156 - stable/12/sys/dev/ipmi

2020-04-21 Thread Alexander Motin
Author: mav Date: Tue Apr 21 16:52:56 2020 New Revision: 360156 URL: https://svnweb.freebsd.org/changeset/base/360156 Log: MFC r348996 (by jtl): The current IPMI KCS code is waiting 100us for all transitions (roughly between each byte either sent or received). However, most transitions

svn commit: r360155 - head/sys/sys

2020-04-21 Thread Kyle Evans
Author: kevans Date: Tue Apr 21 16:13:22 2020 New Revision: 360155 URL: https://svnweb.freebsd.org/changeset/base/360155 Log: kevent32: fix the split of data into data1/data2 The current situation results in intermittent breakage if data gets split up with the sign bit set on the data1

svn commit: r360154 - head/sys/vm

2020-04-21 Thread Mark Johnston
Author: markj Date: Tue Apr 21 16:01:44 2020 New Revision: 360154 URL: https://svnweb.freebsd.org/changeset/base/360154 Log: Factor out the kmem contig page alloc and reclamation code. kmem_alloc_attr_domain() and kmem_alloc_contig_domain() duplicated each other's page allocation and

svn commit: r360153 - head/sys/vm

2020-04-21 Thread Mark Johnston
Author: markj Date: Tue Apr 21 15:55:28 2020 New Revision: 360153 URL: https://svnweb.freebsd.org/changeset/base/360153 Log: Minimize conditional compilation for handling of M_EXEC. This simplifies some planned changes. No functional change intended. Reviewed by: kib MFC after:

svn commit: r360152 - head/tests/sys/kqueue/libkqueue

2020-04-21 Thread Alex Richardson
Author: arichardson Date: Tue Apr 21 15:55:08 2020 New Revision: 360152 URL: https://svnweb.freebsd.org/changeset/base/360152 Log: Remove extern from function declarations in common.h Suggested by: cem Modified: head/tests/sys/kqueue/libkqueue/common.h Modified:

svn commit: r360151 - in releng: 11.3 11.3/sys/conf 12.1 12.1/sys/conf

2020-04-21 Thread Gordon Tetlow
older versions of FreeBSD, try WITHOUT_CLANG and the tip of head, and then rebuild without this option. The bootstrap process from older version of current across the gcc/clang cutover is a bit fragile. +20200421 p8 FreeBSD-EN-20:07.quotad + FreeBSD-SA-20:10

svn commit: r360150 - releng/12.1/crypto/openssl/ssl

2020-04-21 Thread Gordon Tetlow
Author: gordon Date: Tue Apr 21 15:53:08 2020 New Revision: 360150 URL: https://svnweb.freebsd.org/changeset/base/360150 Log: Fix OpenSSL remote denial of service vulnerability. Approved by: so Security: FreeBSD-SA-20:11.openssl Security: CVE-2020-1967 Modified:

svn commit: r360149 - in releng: 11.3/sys/netpfil/ipfw 12.1/sys/netpfil/ipfw

2020-04-21 Thread Gordon Tetlow
Author: gordon Date: Tue Apr 21 15:52:22 2020 New Revision: 360149 URL: https://svnweb.freebsd.org/changeset/base/360149 Log: Fix ipfw invalid mbuf handling. Approved by: so Security: FreeBSD-SA-20:10.ipfw Security: CVE-2019-5614 Security: CVE-2019-15874 Modified:

svn commit: r360148 - in releng: 11.3/usr.bin/quota 12.1/usr.bin/quota

2020-04-21 Thread Gordon Tetlow
Author: gordon Date: Tue Apr 21 15:50:57 2020 New Revision: 360148 URL: https://svnweb.freebsd.org/changeset/base/360148 Log: Fix regression in rpc.rquotad with certain NFS servers. Approved by: so Security: FreeBSD-EN-20:07.quotad Modified: releng/11.3/usr.bin/quota/quota.c

svn commit: r360147 - stable/12/crypto/openssl/ssl

2020-04-21 Thread Gordon Tetlow
Author: gordon Date: Tue Apr 21 15:47:58 2020 New Revision: 360147 URL: https://svnweb.freebsd.org/changeset/base/360147 Log: MFC: r360146 Fix OpenSSL remote denial of service. See https://www.openssl.org/news/secadv/20200421.txt for details. Approved by: so Security: FreeBSD

svn commit: r360146 - head/crypto/openssl/ssl

2020-04-21 Thread Gordon Tetlow
Author: gordon Date: Tue Apr 21 15:44:20 2020 New Revision: 360146 URL: https://svnweb.freebsd.org/changeset/base/360146 Log: Fix OpenSSL remote denial of service. See https://www.openssl.org/news/secadv/20200421.txt for details. Approved by: so Security: CVE-2020-1967

Re: svn commit: r360126 - head/sys/dev/evdev

2020-04-21 Thread Justin Hibbits
On Mon, 20 Apr 2020 22:13:51 +0300 Vladimir Kondratyev wrote: > On 20.04.2020 19:39, Justin Hibbits wrote: > > But I'm curious, why not attach to sysmouse(4) and kbdmux(4)? What > > breakage does that cause? I could maybe see not attaching to > > sysmouse(4) by default, if the protocol isn't

svn commit: r360145 - head/sys/fs/autofs

2020-04-21 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 21 13:57:51 2020 New Revision: 360145 URL: https://svnweb.freebsd.org/changeset/base/360145 Log: Silence down a warning which should really be a debug message. MFC after:2 weeks Sponsored by: DARPA Modified: head/sys/fs/autofs/autofs_vfsops.c Modified:

svn commit: r360144 - head/contrib/blacklist/bin

2020-04-21 Thread Ed Maste
Author: emaste Date: Tue Apr 21 13:30:00 2020 New Revision: 360144 URL: https://svnweb.freebsd.org/changeset/base/360144 Log: blacklistd.8: fix db file path PR: 245781 Submitted by: Jose Luis Duran MFC after:3 days Modified: head/contrib/blacklist/bin/blacklistd.8

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

2020-04-21 Thread Richard Scheffenegger
Author: rscheff Date: Tue Apr 21 13:05:44 2020 New Revision: 360143 URL: https://svnweb.freebsd.org/changeset/base/360143 Log: Correctly set up the initial TCP congestion window in all cases, by adjust snd_una right after the connection initialization, to include the one byte in sequence

Re: svn commit: r360068 - in head/sys: kern net sys

2020-04-21 Thread Kristof Provost
On 21 Apr 2020, at 4:34, Kyle Evans wrote: On Mon, Apr 20, 2020 at 9:14 PM Kyle Evans wrote: On Mon, Apr 20, 2020 at 8:15 PM Eric van Gyzen wrote: + sz = asprintf(, M_TEMP, "%s-%s-%s", uuid, if_name(ifp), + jailname); + if (sz < 0) { + /* Fall back to a random mac