svn commit: r365789 - head/sys/fs/nfsserver

2020-09-15 Thread Rick Macklem
Author: rmacklem Date: Wed Sep 16 02:25:18 2020 New Revision: 365789 URL: https://svnweb.freebsd.org/changeset/base/365789 Log: Fix a LOR between the NFS server and server side krpc. Recent testing of the NFS-over-TLS code found a LOR between the mutex lock used for sessions and the

svn commit: r365788 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 23:03:56 2020 New Revision: 365788 URL: https://svnweb.freebsd.org/changeset/base/365788 Log: Fix locking in uipc_accept(). Reported by: cy MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/uipc_usrreq.c Modified:

svn commit: r365787 - head/sys/fs/tmpfs

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 22:19:16 2020 New Revision: 365787 URL: https://svnweb.freebsd.org/changeset/base/365787 Log: Add tmpfs page cache read support. Or it could be explained as lockless (for vnode lock) reads. Reads are performed from the node tn_obj object. Tmpfs regular

svn commit: r365786 - head/sys/fs/tmpfs

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 22:13:21 2020 New Revision: 365786 URL: https://svnweb.freebsd.org/changeset/base/365786 Log: Microoptimize tmpfs node ref/unref by using atomics. Avoid tmpfs mount and node locks when ref count is greater than zero, which is the case until node is being

svn commit: r365785 - in head/sys: kern sys ufs/ufs

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 22:06:36 2020 New Revision: 365785 URL: https://svnweb.freebsd.org/changeset/base/365785 Log: Convert page cache read to VOP. There are several negative side-effects of not calling into VOP layer at all for page cache reads. The biggest is the missed

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

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 22:00:58 2020 New Revision: 365784 URL: https://svnweb.freebsd.org/changeset/base/365784 Log: vfs_subr.c: export io_hold_cnt and vn_read_from_obj(). Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation Differential revision:

svn commit: r365783 - in head/sys: contrib/openzfs/module/os/freebsd/zfs fs/nfs kern sys ufs/ffs

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 21:55:21 2020 New Revision: 365783 URL: https://svnweb.freebsd.org/changeset/base/365783 Log: Do not copy vp into f_data for DTYPE_VNODE files. The pointer to vnode is already stored into f_vnode, so f_data can be reused. Fix all found users of f_data for

svn commit: r365782 - in releng: 11.3 11.3/sys/conf 11.4 11.4/sys/conf 12.1 12.1/sys/conf 12.2 12.2/sys/conf

2020-09-15 Thread Gordon Tetlow
version of current across the gcc/clang cutover is a bit fragile. +20200915 p14 FreeBSD-SA-20:27.ure + FreeBSD-SA-20:28.bhyve_vmcs + FreeBSD-SA-20:29.bhyve_svm + FreeBSD-SA-20:30.ftpd + +Fix ure device driver

svn commit: r365781 - in releng: 11.3/libexec/ftpd 11.4/libexec/ftpd 12.1/libexec/ftpd 12.2/libexec/ftpd

2020-09-15 Thread Gordon Tetlow
Author: gordon Date: Tue Sep 15 21:47:44 2020 New Revision: 365781 URL: https://svnweb.freebsd.org/changeset/base/365781 Log: Fix ftpd privilege escalation via ftpchroot. Approved by: so Approved by: re (implicit for releng/12.2) Security: FreeBSD-SA-20:30.ftpd Security:

svn commit: r365780 - in releng: 11.3/sys/amd64/vmm/amd 11.4/sys/amd64/vmm/amd 12.1/sys/amd64/vmm/amd 12.2/sys/amd64/vmm/amd

2020-09-15 Thread Gordon Tetlow
Author: gordon Date: Tue Sep 15 21:46:39 2020 New Revision: 365780 URL: https://svnweb.freebsd.org/changeset/base/365780 Log: Fix bhyve SVM guest escape. This actually has a patch to sys/amd64/vmm/amd/svm.c that was accidentally committed as part of r365779. Approved by: so

svn commit: r365779 - in releng: 11.3/sys/amd64/vmm/amd 11.3/sys/amd64/vmm/intel 11.4/sys/amd64/vmm/amd 11.4/sys/amd64/vmm/intel 12.1/sys/amd64/vmm/amd 12.1/sys/amd64/vmm/intel 12.2/sys/amd64/vmm/a...

2020-09-15 Thread Gordon Tetlow
Author: gordon Date: Tue Sep 15 21:43:41 2020 New Revision: 365779 URL: https://svnweb.freebsd.org/changeset/base/365779 Log: Fix bhyve privilege escalation via VMCS access. Approved by: so Approved by: re (implicit for releng/12.2) Security: FreeBSD-SA-20:28.bhyve_vmcs

svn commit: r365778 - in releng: 11.3/sys/dev/usb/net 11.4/sys/dev/usb/net 12.1/sys/dev/usb/net 12.2/sys/dev/usb/net

2020-09-15 Thread Gordon Tetlow
Author: gordon Date: Tue Sep 15 21:42:05 2020 New Revision: 365778 URL: https://svnweb.freebsd.org/changeset/base/365778 Log: Fix ure device driver susceptible to packet-in-packet attack. Approved by: so Approved by: re (implicit for releng/12.2) Security: FreeBSD-SA-20:27.ure

svn commit: r365777 - in stable: 11/sys/amd64/vmm/amd 11/sys/amd64/vmm/intel 12/sys/amd64/vmm/amd 12/sys/amd64/vmm/intel

2020-09-15 Thread Ed Maste
Author: emaste Date: Tue Sep 15 21:28:47 2020 New Revision: 365777 URL: https://svnweb.freebsd.org/changeset/base/365777 Log: MFC r365775: bhyve: do not permit write access to VMCB / VMCS Reported by: Patrick Mooney Submitted by: jhb Security: CVE-2020-24718 Modified:

svn commit: r365777 - in stable: 11/sys/amd64/vmm/amd 11/sys/amd64/vmm/intel 12/sys/amd64/vmm/amd 12/sys/amd64/vmm/intel

2020-09-15 Thread Ed Maste
Author: emaste Date: Tue Sep 15 21:28:47 2020 New Revision: 365777 URL: https://svnweb.freebsd.org/changeset/base/365777 Log: MFC r365775: bhyve: do not permit write access to VMCB / VMCS Reported by: Patrick Mooney Submitted by: jhb Security: CVE-2020-24718 Modified:

svn commit: r365776 - head/sys/dev/e1000

2020-09-15 Thread Eric Joyner
Author: erj Date: Tue Sep 15 21:07:30 2020 New Revision: 365776 URL: https://svnweb.freebsd.org/changeset/base/365776 Log: e1000: Properly retain promisc flag From Franco: The iflib rewrite forced the promisc flag but it was not reported to the system. Noticed on a stock VM that went

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

2020-09-15 Thread Ed Maste
Author: emaste Date: Tue Sep 15 21:04:27 2020 New Revision: 365775 URL: https://svnweb.freebsd.org/changeset/base/365775 Log: bhyve: do not permit write access to VMCB / VMCS Reported by: Patrick Mooney Submitted by: jhb Security: CVE-2020-24718 Modified:

svn commit: r365774 - head/sys/dev/e1000

2020-09-15 Thread Eric Joyner
Author: erj Date: Tue Sep 15 21:00:25 2020 New Revision: 365774 URL: https://svnweb.freebsd.org/changeset/base/365774 Log: igb(4): Fix define and includes with RSS option enabled This re-adds the opt_rss.h header to the driver and includes some RSS-specific headers when RSS is defined.

svn commit: r365773 - stable/11/libexec/ftpd

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 20:56:14 2020 New Revision: 365773 URL: https://svnweb.freebsd.org/changeset/base/365773 Log: MFC r365771: ftpd: Exit during authentication if an error occurs after chroot(). admbug: 969 Security: CVE-2020-7468 Modified:

svn commit: r365772 - stable/12/libexec/ftpd

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 20:55:13 2020 New Revision: 365772 URL: https://svnweb.freebsd.org/changeset/base/365772 Log: MFC r365771: ftpd: Exit during authentication if an error occurs after chroot(). admbug: 969 Security: CVE-2020-7468 Modified:

svn commit: r365771 - head/libexec/ftpd

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 20:54:18 2020 New Revision: 365771 URL: https://svnweb.freebsd.org/changeset/base/365771 Log: ftpd: Exit during authentication if an error occurs after chroot(). admbug: 969 Security: CVE-2020-7468 Modified: head/libexec/ftpd/ftpd.c

svn commit: r365770 - head/sys/powerpc/powerpc

2020-09-15 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 15 20:47:33 2020 New Revision: 365770 URL: https://svnweb.freebsd.org/changeset/base/365770 Log: [PowerPC64LE] Use correct in_masks table on LE to fix checksumming Due to a check that should have been an endian check being an #if 0, the wrong checksum mask

svn commit: r365769 - stable/11/sys/amd64/vmm/amd

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 20:26:31 2020 New Revision: 365769 URL: https://svnweb.freebsd.org/changeset/base/365769 Log: MFC r365766: bhyve: intercept AMD SVM instructions. CVE: CVE-2020-7467 Modified: stable/11/sys/amd64/vmm/amd/svm.c stable/11/sys/amd64/vmm/amd/vmcb.h Directory

svn commit: r365767 - stable/12/sys/amd64/vmm/amd

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 20:25:30 2020 New Revision: 365767 URL: https://svnweb.freebsd.org/changeset/base/365767 Log: MFC r365766: bhyve: intercept AMD SVM instructions. CVE: CVE-2020-7467 Modified: stable/12/sys/amd64/vmm/amd/svm.c stable/12/sys/amd64/vmm/amd/vmcb.h Directory

svn commit: r365768 - head/sys/powerpc/aim

2020-09-15 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 15 20:25:38 2020 New Revision: 365768 URL: https://svnweb.freebsd.org/changeset/base/365768 Log: [PowerPC64LE] Set up the powernv partition table correctly. The partition table is always big endian. Sponsored by: Tag1 Consulting, Inc. Modified:

svn commit: r365766 - head/sys/amd64/vmm/amd

2020-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 20:22:50 2020 New Revision: 365766 URL: https://svnweb.freebsd.org/changeset/base/365766 Log: bhyve: intercept AMD SVM instructions. Intercept and report #UD to VM on SVM/AMD in case VM tried to execute an SVM instruction. Otherwise, SVM allows execution of

svn commit: r365765 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:42 2020 New Revision: 365765 URL: https://svnweb.freebsd.org/changeset/base/365765 Log: Fix locking in uipc_accept(). This function wasn't converted to use the new locking protocol in r333744. Make it use the PCB lock for synchronizing connection

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

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:22 2020 New Revision: 365764 URL: https://svnweb.freebsd.org/changeset/base/365764 Log: Simplify unix socket connection peer locking. unp_pcb_owned_lock2() has some sharp edges and forces callers to deal with a bunch of cases. Simplify it: -

svn commit: r365762 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:22:37 2020 New Revision: 365762 URL: https://svnweb.freebsd.org/changeset/base/365762 Log: Simplify unp_disconnect() callers. In all cases, PCBs are unlocked after unp_disconnect() returns. Since unp_disconnect() may release the last PCB reference,

svn commit: r365763 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:23:01 2020 New Revision: 365763 URL: https://svnweb.freebsd.org/changeset/base/365763 Log: Avoid an unnecessary malloc() when connecting dgram sockets. The allocated memory is only required for SOCK_STREAM and SOCK_SEQPACKET sockets. Reviewed by:

svn commit: r365761 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:22:16 2020 New Revision: 365761 URL: https://svnweb.freebsd.org/changeset/base/365761 Log: Rename unp_pcb_lock2(). unp_pcb_lock_pair() seems like a better name. Also make it handle the case where the two sockets are the same instead of making callers do

svn commit: r365760 - head/sys/kern

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:21:58 2020 New Revision: 365760 URL: https://svnweb.freebsd.org/changeset/base/365760 Log: Improve unix socket PCB refcounting. - Use refcount_init(). - Define an INVARIANTS-only zone destructor to assert that various bits of PCB state aren't left

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

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 19:21:33 2020 New Revision: 365759 URL: https://svnweb.freebsd.org/changeset/base/365759 Log: Update unix domain socket locking comments. - Define a locking key for unpcb members. - Rewrite some of the locking protocol description to make it less

svn commit: r365758 - vendor/llvm-project/llvmorg-11.0.0-rc2-91-g6e042866c30

2020-09-15 Thread Dimitry Andric
Author: dim Date: Tue Sep 15 18:56:14 2020 New Revision: 365758 URL: https://svnweb.freebsd.org/changeset/base/365758 Log: Tag llvm-project branch release/11.x llvmorg-11.0.0-rc2-91-g6e042866c30. Added: vendor/llvm-project/llvmorg-11.0.0-rc2-91-g6e042866c30/ - copied from r365757,

svn commit: r365757 - in vendor/llvm-project/release-11.x: clang/include/clang/AST clang/include/clang/Basic clang/lib/AST clang/lib/Basic clang/lib/CodeGen clang/lib/Driver/ToolChains clang/lib/Dr...

2020-09-15 Thread Dimitry Andric
Author: dim Date: Tue Sep 15 18:55:37 2020 New Revision: 365757 URL: https://svnweb.freebsd.org/changeset/base/365757 Log: Vendor import of llvm-project branch release/11.x llvmorg-11.0.0-rc2-91-g6e042866c30. Modified: vendor/llvm-project/release-11.x/clang/include/clang/AST/ASTContext.h

svn commit: r365756 - head/usr.sbin/certctl

2020-09-15 Thread Kyle Evans
Author: kevans Date: Tue Sep 15 17:13:29 2020 New Revision: 365756 URL: https://svnweb.freebsd.org/changeset/base/365756 Log: certctl: fix unprivileged mode The first issue was lack of quoting around INSTALLFLAGS, which set it incorrectly and produced an error on -M. The second

svn commit: r365755 - in head/sys: amd64/amd64 amd64/linux amd64/linux32 arm/arm arm64/arm64 arm64/linux i386/i386 i386/linux powerpc/powerpc

2020-09-15 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Sep 15 16:41:21 2020 New Revision: 365755 URL: https://svnweb.freebsd.org/changeset/base/365755 Log: Move SV_ABI_ERRNO translation into linux-specific code, to simplify the syscall path and declutter it a bit. No functional changes intended. Reviewed by: kib

gcu-squad.org's impact on safe browsing

2020-09-15 Thread Lara Daston
___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r365754 - head/share/man/man5

2020-09-15 Thread Stefan Eßer
Author: se Date: Tue Sep 15 16:38:44 2020 New Revision: 365754 URL: https://svnweb.freebsd.org/changeset/base/365754 Log: src.conf.5: regen after r365753 Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r365753 - head/tools/build/options

2020-09-15 Thread Stefan Eßer
Author: se Date: Tue Sep 15 16:22:05 2020 New Revision: 365753 URL: https://svnweb.freebsd.org/changeset/base/365753 Log: Add descriptions of the WITH_(OUT)_GH_BC options that exist in -CURRENT (default: WITH_GH_BC) and 12-STABLE (default: WITHOUT_GH_BC). Since the new implementation of

svn commit: r365751 - head/sys/opencrypto

2020-09-15 Thread Warner Losh
Author: imp Date: Tue Sep 15 15:21:29 2020 New Revision: 365751 URL: https://svnweb.freebsd.org/changeset/base/365751 Log: Include sys/types.h here It's included by header pollution in most of the compile environments. However, in the standalone envirnment, it's not included. Go ahead

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

2020-09-15 Thread Warner Losh
On Tue, Sep 15, 2020 at 8:37 AM Mark Johnston wrote: > On Tue, Sep 15, 2020 at 10:22:09AM -0400, Mark Johnston wrote: > > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > > > Author: imp > > > > Date: Sat

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

2020-09-15 Thread Warner Losh
On Tue, Sep 15, 2020, 8:22 AM Mark Johnston wrote: > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > > Author: imp > > > Date: Sat Aug 29 04:29:53 2020 > > > New Revision: 364944 > > > URL:

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

2020-09-15 Thread Mark Johnston
On Tue, Sep 15, 2020 at 10:22:09AM -0400, Mark Johnston wrote: > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > > Author: imp > > > Date: Sat Aug 29 04:29:53 2020 > > > New Revision: 364944 > > > URL:

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

2020-09-15 Thread Mark Johnston
On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > Author: imp > > Date: Sat Aug 29 04:29:53 2020 > > New Revision: 364944 > > URL: https://svnweb.freebsd.org/changeset/base/364944 > > > > Log: > > devctl: move

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

2020-09-15 Thread Konstantin Belousov
On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > Author: imp > Date: Sat Aug 29 04:29:53 2020 > New Revision: 364944 > URL: https://svnweb.freebsd.org/changeset/base/364944 > > Log: > devctl: move to using a uma zone > > Convert the memory management of devctl. Rewrite if to

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

2020-09-15 Thread Andrew Turner
Author: andrew Date: Tue Sep 15 14:15:04 2020 New Revision: 365750 URL: https://svnweb.freebsd.org/changeset/base/365750 Log: Use ATTR_DEFAULT in the arm64 locore.S We can use ATTR_DEFAULT directly in locore.S as it fits within an orr instruction operand. Sponsored by: Innovate UK

svn commit: r365749 - head/usr.bin/posixshmcontrol

2020-09-15 Thread Mark Johnston
Author: markj Date: Tue Sep 15 13:36:19 2020 New Revision: 365749 URL: https://svnweb.freebsd.org/changeset/base/365749 Log: Fix some posixshmcontrol nits. - Exit with an error if no path is specified. - Man page typo. - Error message typo. Reviewed by: kib Sponsored by:

svn commit: r365748 - releng/12.2/sys/dev/usb/net

2020-09-15 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 15 12:34:01 2020 New Revision: 365748 URL: https://svnweb.freebsd.org/changeset/base/365748 Log: MFC r365606 and MF12 r365744: urndis(4): Add support of Inseego/Novatel Wireless MiFi 8800/8000 PR: 245152 Submitted by: rootl...@gmail.com

svn commit: r365747 - stable/12/usr.bin/sort

2020-09-15 Thread Gordon Bergling
Author: gbe (doc committer) Date: Tue Sep 15 09:27:01 2020 New Revision: 365747 URL: https://svnweb.freebsd.org/changeset/base/365747 Log: MFC r365458: sort(1): Remove duplicate option check Reviewed by: lwhsu, emaste Approved by: emaste Obtained from:DragonFlyBSD

svn commit: r365746 - stable/11/sbin/rcorder

2020-09-15 Thread Andrey V. Elsukov
Author: ae Date: Tue Sep 15 08:54:00 2020 New Revision: 365746 URL: https://svnweb.freebsd.org/changeset/base/365746 Log: MFC r365449: Add a few features to rcorder: o Enhance dependency loop logging: print full chain instead of the last link competing the loop; o Add -g

svn commit: r365745 - stable/12/sbin/rcorder

2020-09-15 Thread Andrey V. Elsukov
Author: ae Date: Tue Sep 15 08:52:36 2020 New Revision: 365745 URL: https://svnweb.freebsd.org/changeset/base/365745 Log: MFC r365449: Add a few features to rcorder: o Enhance dependency loop logging: print full chain instead of the last link competing the loop; o Add -g

svn commit: r365744 - stable/12/sys/dev/usb/net

2020-09-15 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 15 06:14:00 2020 New Revision: 365744 URL: https://svnweb.freebsd.org/changeset/base/365744 Log: MFC r365606: urndis(4): Add support of Inseego/Novatel Wireless MiFi 8800/8000 PR: 245152 Submitted by: rootl...@gmail.com Reviewed by: hselasky

svn commit: r365743 - stable/11/sys/dev/usb/net

2020-09-15 Thread Li-Wen Hsu
Author: lwhsu Date: Tue Sep 15 06:12:30 2020 New Revision: 365743 URL: https://svnweb.freebsd.org/changeset/base/365743 Log: MFC r365606: urndis(4): Add support of Inseego/Novatel Wireless MiFi 8800/8000 PR: 245152 Submitted by: rootl...@gmail.com Reviewed by: hselasky