svn commit: r354765 - head/sys/riscv/riscv

2019-11-15 Thread Mitchell Horne
Author: mhorne Date: Sat Nov 16 01:25:51 2019 New Revision: 354765 URL: https://svnweb.freebsd.org/changeset/base/354765 Log: RISC-V: busdma_bounce: fix BUS_DMA_ALLOCNOW for non-paged aligned sizes RISC-V inherited this code from arm64, so implement the fix from r354712. See the revision

svn commit: r354764 - in stable/11/sys: amd64/amd64 dev/cpuctl x86/include x86/x86

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:52:04 2019 New Revision: 354764 URL: https://svnweb.freebsd.org/changeset/base/354764 Log: MFC r354759: TSX Asynchronous Abort mitigation for Intel CVE-2019-11135. This CVE has already been announced in FreeBSD SA-19:26.mcu. Mitigation for TAA

svn commit: r354763 - in stable/12/sys: amd64/amd64 dev/cpuctl x86/include x86/x86

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:36:42 2019 New Revision: 354763 URL: https://svnweb.freebsd.org/changeset/base/354763 Log: MFC r354759: TSX Asynchronous Abort mitigation for Intel CVE-2019-11135. This CVE has already been announced in FreeBSD SA-19:26.mcu. Mitigation for TAA

svn commit: r354762 - in stable/11/sys: kern sys

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:33:02 2019 New Revision: 354762 URL: https://svnweb.freebsd.org/changeset/base/354762 Log: MFC r354756: Create a new sysctl tree, machdep.mitigations Sponsored by: Intel Modified: stable/11/sys/kern/kern_mib.c stable/11/sys/sys/sysctl.h

svn commit: r354761 - in stable/12/sys: amd64/amd64 dev/cpuctl x86/include x86/x86

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:31:57 2019 New Revision: 354761 URL: https://svnweb.freebsd.org/changeset/base/354761 Log: Partially revert r354760, it included a patch that wasn't ready yet. Modified: stable/12/sys/amd64/amd64/machdep.c stable/12/sys/dev/cpuctl/cpuctl.c

svn commit: r354760 - in stable/12/sys: amd64/amd64 dev/cpuctl kern sys x86/include x86/x86

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:29:26 2019 New Revision: 354760 URL: https://svnweb.freebsd.org/changeset/base/354760 Log: MFC r354756: Create a new sysctl tree, machdep.mitigations Sponsored by: Intel Modified: stable/12/sys/amd64/amd64/machdep.c

svn commit: r354759 - in head/sys: amd64/amd64 dev/cpuctl x86/include x86/x86

2019-11-15 Thread Scott Long
Author: scottl Date: Sat Nov 16 00:26:42 2019 New Revision: 354759 URL: https://svnweb.freebsd.org/changeset/base/354759 Log: TSX Asynchronous Abort mitigation for Intel CVE-2019-11135. This CVE has already been announced in FreeBSD SA-19:26.mcu. Mitigation for TAA involves either

svn commit: r354758 - head/sys/netinet6

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Sat Nov 16 00:17:35 2019 New Revision: 354758 URL: https://svnweb.freebsd.org/changeset/base/354758 Log: nd6: retire defrouter_select(), use _fib() variant. Burn bridges and replace the last two calls of defrouter_select() with defrouter_select_fib(). That allows us to

svn commit: r354757 - head/sys/netinet6

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Sat Nov 16 00:02:36 2019 New Revision: 354757 URL: https://svnweb.freebsd.org/changeset/base/354757 Log: nd6_rtr: Pull in the TAILQ_HEAD() as it is not needed outside nd6_rtr.c. Rename the TAILQ_HEAD() struct and the nd_defrouter variable from "nd_" to "nd6_" as they

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

2019-11-15 Thread Scott Long
Author: scottl Date: Fri Nov 15 23:27:17 2019 New Revision: 354756 URL: https://svnweb.freebsd.org/changeset/base/354756 Log: Create a new sysctl subtree, machdep.mitigations. Its purpose is to organize knobs and indicators for code that mitigates functional and security issues in the

svn commit: r354755 - head/sys/net

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 23:12:19 2019 New Revision: 354755 URL: https://svnweb.freebsd.org/changeset/base/354755 Log: if_llatbl: change htable_unlink_entry() to early exist if no work to do Adjust the logic in htable_unlink_entry() to the one in htable_link_entry() saving a block

svn commit: r354754 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-11-15 Thread John Baldwin
Author: jhb Date: Fri Nov 15 23:01:43 2019 New Revision: 354754 URL: https://svnweb.freebsd.org/changeset/base/354754 Log: Use a sv_copyout_auxargs hook in the Linux ELF ABIs. Reviewed by: emaste Tested on:amd64 (linux64 only), i386 Sponsored by: DARPA Differential Revision:

svn commit: r354753 - head/sys/dev/ioat

2019-11-15 Thread Alexander Motin
Author: mav Date: Fri Nov 15 23:01:09 2019 New Revision: 354753 URL: https://svnweb.freebsd.org/changeset/base/354753 Log: Initialize *comp_update with valid value. I've noticed that sometimes with enabled DMAR initial write from device to this address is somehow getting delayed,

svn commit: r354752 - head/sys/dev/ioat

2019-11-15 Thread Alexander Motin
Author: mav Date: Fri Nov 15 22:47:59 2019 New Revision: 354752 URL: https://svnweb.freebsd.org/changeset/base/354752 Log: Cleanup address range checks in ioat(4). - Deduce allowed address range for bus_dma(9) from the hardware version. Different versions (CPU generations) have

svn commit: r354751 - in head: share/doc/IPv6 sys/netinet

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 21:55:41 2019 New Revision: 354751 URL: https://svnweb.freebsd.org/changeset/base/354751 Log: Remove now unused IPv6 macros and update docs. After r354748-354750 all uses of the IP6_EXTHDR_CHECK() and IP6_EXTHDR_GET() macros are gone from the kernel.

Re: svn commit: r354741 - in head/sys: amd64/amd64 arm/arm arm64/arm64 compat/freebsd32 compat/ia32 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64 sys

2019-11-15 Thread Konstantin Belousov
On Fri, Nov 15, 2019 at 01:47:24PM -0800, John Baldwin wrote: > On 11/15/19 12:01 PM, Konstantin Belousov wrote: > > On Fri, Nov 15, 2019 at 06:42:13PM +, John Baldwin wrote: > >> Author: jhb > >> Date: Fri Nov 15 18:42:13 2019 > >> New Revision: 354741 > >> URL:

svn commit: r354750 - head/sys/netinet

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 21:51:43 2019 New Revision: 354750 URL: https://svnweb.freebsd.org/changeset/base/354750 Log: IP6_EXTHDR_CHECK(): remove the last instances While r354748 removed almost all IP6_EXTHDR_CHECK() calls, these are not part of the PULLDOWN_TESTS. Equally convert

Re: svn commit: r354741 - in head/sys: amd64/amd64 arm/arm arm64/arm64 compat/freebsd32 compat/ia32 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64 sys

2019-11-15 Thread John Baldwin
On 11/15/19 12:01 PM, Konstantin Belousov wrote: > On Fri, Nov 15, 2019 at 06:42:13PM +, John Baldwin wrote: >> Author: jhb >> Date: Fri Nov 15 18:42:13 2019 >> New Revision: 354741 >> URL: https://svnweb.freebsd.org/changeset/base/354741 >> >> Log: >> Add a sv_copyout_auxargs() hook in

svn commit: r354749 - in head/sys: netinet netinet6 netipsec

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 21:44:17 2019 New Revision: 354749 URL: https://svnweb.freebsd.org/changeset/base/354749 Log: netinet*: replace IP6_EXTHDR_GET() In a few places we have IP6_EXTHDR_GET() left in upper layer protocols. The IP6_EXTHDR_GET() macro might perform an m_pulldown() in

svn commit: r354748 - head/sys/netinet6

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 21:40:40 2019 New Revision: 354748 URL: https://svnweb.freebsd.org/changeset/base/354748 Log: netinet6: Remove PULLDOWN_TESTs. Remove the KAME introduced PULLDOWN_TESTs which did not even have a compile-time option in sys/conf to turn them on for a custom

Re: svn commit: r354747 - head/share/mk

2019-11-15 Thread Cy Schubert
On November 15, 2019 2:19:06 PM MST, "Bjoern A. Zeeb" wrote: >Author: bz >Date: Fri Nov 15 21:19:06 2019 >New Revision: 354747 >URL: https://svnweb.freebsd.org/changeset/base/354747 > >Log: > Allow per-file lex and yacc options. > > In order to allow software with multiple (different) options

svn commit: r354747 - head/share/mk

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 21:19:06 2019 New Revision: 354747 URL: https://svnweb.freebsd.org/changeset/base/354747 Log: Allow per-file lex and yacc options. In order to allow software with multiple (different) options for lex and yacc add extra per-file options to the calls. This is

svn commit: r354746 - head/stand/common

2019-11-15 Thread Toomas Soome
Author: tsoome Date: Fri Nov 15 20:43:39 2019 New Revision: 354746 URL: https://svnweb.freebsd.org/changeset/base/354746 Log: loader: add support for hybrid PMBR for GPT partition table Note hybrid table is nor really UEFI specification compliant. Sample hybrid partition table: >

Re: svn commit: r354703 - head/sys/dev/ioat

2019-11-15 Thread Konstantin Belousov
On Fri, Nov 15, 2019 at 11:09:12AM -0700, Scott Long wrote: > > > > On Nov 15, 2019, at 2:18 AM, Konstantin Belousov > > wrote: > > > > On Thu, Nov 14, 2019 at 09:41:36AM -0500, Alexander Motin wrote: > >> On 14.11.2019 05:11, Konstantin Belousov wrote: > >>> On Thu, Nov 14, 2019 at

Re: svn commit: r354741 - in head/sys: amd64/amd64 arm/arm arm64/arm64 compat/freebsd32 compat/ia32 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64 sys

2019-11-15 Thread Konstantin Belousov
On Fri, Nov 15, 2019 at 06:42:13PM +, John Baldwin wrote: > Author: jhb > Date: Fri Nov 15 18:42:13 2019 > New Revision: 354741 > URL: https://svnweb.freebsd.org/changeset/base/354741 > > Log: > Add a sv_copyout_auxargs() hook in sysentvec. > > Change the FreeBSD ELF ABIs to use this

svn commit: r354745 - svnadmin/conf

2019-11-15 Thread Joseph Mingrone
Author: jrm (ports committer) Date: Fri Nov 15 19:03:02 2019 New Revision: 354745 URL: https://svnweb.freebsd.org/changeset/base/354745 Log: Take in idle commit bits Approved by: core (implicit) With hat: core-secretary Modified: svnadmin/conf/access

svn commit: r354744 - head/sys/mips/mips

2019-11-15 Thread John Baldwin
Author: jhb Date: Fri Nov 15 19:00:20 2019 New Revision: 354744 URL: https://svnweb.freebsd.org/changeset/base/354744 Log: Combine ELF sysvecs for MIPS to reduce code duplication. Reviewed by: brooks, kevans Tested on:mips, mips64 Sponsored by: DARPA Differential Revision:

svn commit: r354743 - head/stand/efi/libefi

2019-11-15 Thread Toomas Soome
Author: tsoome Date: Fri Nov 15 18:57:00 2019 New Revision: 354743 URL: https://svnweb.freebsd.org/changeset/base/354743 Log: loader: r354415 did miss to sort subpaths below the partitions Tested on actual system (MBP with UEFI 1.10). Modified: head/stand/efi/libefi/efipart.c Modified:

svn commit: r354742 - head/sys/dev/cxgbe

2019-11-15 Thread Navdeep Parhar
Author: np Date: Fri Nov 15 18:48:14 2019 New Revision: 354742 URL: https://svnweb.freebsd.org/changeset/base/354742 Log: cxgbev(4): Catch up with the pciids in the PF driver. MFC after:3 days Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/t4_iov.c

svn commit: r354741 - in head/sys: amd64/amd64 arm/arm arm64/arm64 compat/freebsd32 compat/ia32 i386/i386 kern mips/mips powerpc/powerpc riscv/riscv sparc64/sparc64 sys

2019-11-15 Thread John Baldwin
Author: jhb Date: Fri Nov 15 18:42:13 2019 New Revision: 354741 URL: https://svnweb.freebsd.org/changeset/base/354741 Log: Add a sv_copyout_auxargs() hook in sysentvec. Change the FreeBSD ELF ABIs to use this new hook to copyout ELF auxv instead of doing it in the sv_fixup hook. In

svn commit: r354740 - head/share/mk

2019-11-15 Thread Alex Richardson
Author: arichardson Date: Fri Nov 15 18:34:36 2019 New Revision: 354740 URL: https://svnweb.freebsd.org/changeset/base/354740 Log: Fix build race in bsd.files.mk We need to ensure that installdirs-FOO runs before installfiles-FOO since otherwise the directory may not exist when we

svn commit: r354739 - head/usr.sbin/makefs

2019-11-15 Thread Alex Richardson
Author: arichardson Date: Fri Nov 15 18:34:30 2019 New Revision: 354739 URL: https://svnweb.freebsd.org/changeset/base/354739 Log: makefs: Also set UFS di_birthtime when building on Linux Since st_birthtime doesn't exists on Linux (unless you use statx(2)), we instead populate it with

svn commit: r354738 - head/usr.sbin/makefs

2019-11-15 Thread Alex Richardson
Author: arichardson Date: Fri Nov 15 18:34:23 2019 New Revision: 354738 URL: https://svnweb.freebsd.org/changeset/base/354738 Log: Fix contents= being ignored in msdosfs makefs mtree I noticed this while trying to build an EFI boot image Reviewed By: emaste Differential Revision:

Re: svn commit: r354703 - head/sys/dev/ioat

2019-11-15 Thread Scott Long
> On Nov 15, 2019, at 2:18 AM, Konstantin Belousov wrote: > > On Thu, Nov 14, 2019 at 09:41:36AM -0500, Alexander Motin wrote: >> On 14.11.2019 05:11, Konstantin Belousov wrote: >>> On Thu, Nov 14, 2019 at 04:39:49AM +, Alexander Motin wrote: Author: mav Date: Thu Nov 14 04:39:48

svn commit: r354737 - head/sys/dev/cxgbe

2019-11-15 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 15 18:02:37 2019 New Revision: 354737 URL: https://svnweb.freebsd.org/changeset/base/354737 Log: Fix regression from r353841: ctx.rc needs to be initialized, otherwise driver might silently fail to initialize. Pointy hat to:glebius Modified:

svn commit: r354736 - head/share/mk

2019-11-15 Thread Alex Richardson
Author: arichardson Date: Fri Nov 15 16:43:36 2019 New Revision: 354736 URL: https://svnweb.freebsd.org/changeset/base/354736 Log: Use __ as the separator for the exported vars in bsd.compiler/linker.mk By using '__' instead of '.' as the separator we can also support systems that use

svn commit: r354735 - stable/11/sys/kern

2019-11-15 Thread Ed Maste
Author: emaste Date: Fri Nov 15 16:40:55 2019 New Revision: 354735 URL: https://svnweb.freebsd.org/changeset/base/354735 Log: MFC r354228: avoid kernel stack data leak in core dump thrmisc note bzero the entire thrmisc struct, not just the padding. Other core dump notes are already done

svn commit: r354734 - stable/12/sys/kern

2019-11-15 Thread Ed Maste
Author: emaste Date: Fri Nov 15 16:40:10 2019 New Revision: 354734 URL: https://svnweb.freebsd.org/changeset/base/354734 Log: MFC r354228: avoid kernel stack data leak in core dump thrmisc note bzero the entire thrmisc struct, not just the padding. Other core dump notes are already done

svn commit: r354733 - head/contrib/ntp/ntpd

2019-11-15 Thread Cy Schubert
Author: cy Date: Fri Nov 15 16:34:35 2019 New Revision: 354733 URL: https://svnweb.freebsd.org/changeset/base/354733 Log: Disable ntpd stack gap. When ASLR with STACK GAP != 0 ntpd suffers SIGSEGV. PR: 241421, 241960 Reported by: Vladimir Zakharov ,

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

2019-11-15 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Nov 15 16:21:46 2019 New Revision: 354732 URL: https://svnweb.freebsd.org/changeset/base/354732 Log: Support O_CLOEXEC in linux(4) open(2) and openat(2). Reviewed by: emaste MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r354731 - head/sys/netinet6

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 13:45:38 2019 New Revision: 354731 URL: https://svnweb.freebsd.org/changeset/base/354731 Log: nd6: simplify code We are taking the same actions in both cases of the branch inside the block. Simplify that code as the extra branch is not needed. MFC after:

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

2019-11-15 Thread Scott Long
Author: scottl Date: Fri Nov 15 11:54:51 2019 New Revision: 354730 URL: https://svnweb.freebsd.org/changeset/base/354730 Log: Revert a patch that accidentally was committed with r354729 Modified: head/sys/x86/x86/busdma_machdep.c Modified: head/sys/x86/x86/busdma_machdep.c

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

2019-11-15 Thread Scott Long
Author: scottl Date: Fri Nov 15 11:53:06 2019 New Revision: 354729 URL: https://svnweb.freebsd.org/changeset/base/354729 Log: Fix a typo in how the AVX512DQ feature bit is checked. Reviewed by: kib Sponsored by: Intel Modified: head/sys/x86/x86/busdma_machdep.c

svn commit: r354728 - head/sys/ofed/include/rdma

2019-11-15 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 15 11:46:53 2019 New Revision: 354728 URL: https://svnweb.freebsd.org/changeset/base/354728 Log: Prevent potential underflow in ibcore. Linux commit: a9018adfde809d44e71189b984fa61cc89682b5e MFC after:1 week Sponsored by: Mellanox Technologies

svn commit: r354727 - in head/sys: contrib/rdma/krping ofed/include/rdma

2019-11-15 Thread Hans Petter Selasky
Author: hselasky Date: Fri Nov 15 11:45:14 2019 New Revision: 354727 URL: https://svnweb.freebsd.org/changeset/base/354727 Log: Correct MR length field to be 64-bit in ibcore. Linux commit: edd31551148c09608feee6b8756ad148d550ee3b MFC after:1 week Sponsored by: Mellanox

svn commit: r354726 - head/sys/net

2019-11-15 Thread Bjoern A. Zeeb
Author: bz Date: Fri Nov 15 11:00:03 2019 New Revision: 354726 URL: https://svnweb.freebsd.org/changeset/base/354726 Log: if_llatbl: cleanup Remove function prototypes which are not needed (no use before function definition for these file static functions). MFC after:3 weeks

Re: svn commit: r354703 - head/sys/dev/ioat

2019-11-15 Thread Konstantin Belousov
On Thu, Nov 14, 2019 at 09:41:36AM -0500, Alexander Motin wrote: > On 14.11.2019 05:11, Konstantin Belousov wrote: > > On Thu, Nov 14, 2019 at 04:39:49AM +, Alexander Motin wrote: > >> Author: mav > >> Date: Thu Nov 14 04:39:48 2019 > >> New Revision: 354703 > >> URL: