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: Juniper

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 M

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

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 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: https:/

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: https://svnweb.fr

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 A

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 a

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 b

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: 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 (ear

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 issue

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 verbose

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 dan

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: 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: ke

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, calle

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: - Rena

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 stat

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 t

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: head/sys

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 ta

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 Mod

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: 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: head/sys/amd64/vmm/amd/

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 i

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 DTY

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:ht

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 activati

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 destr

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 vnode

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: head/

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 sleep

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

2020-09-15 Thread Warner Losh
Author: imp Date: Wed Sep 16 06:02:30 2020 New Revision: 365790 URL: https://svnweb.freebsd.org/changeset/base/365790 Log: Use standard bool type, instead of non-standard boolean_t Modified: head/sys/kern/subr_bus.c head/sys/sys/devctl.h Modified: head/sys/kern/subr_bus.c =