svn commit: r354677 - stable/12/sys/x86/x86

2019-11-12 Thread Andriy Gapon
Author: avg Date: Wed Nov 13 07:43:11 2019 New Revision: 354677 URL: https://svnweb.freebsd.org/changeset/base/354677 Log: MFC r353748: remove wmb() call from x86 cpu_reset() The rationale is pretty much the same as in r353747. There is no subsequent dependent store. The store is to

svn commit: r354676 - stable/12/sys/amd64/vmm

2019-11-12 Thread Andriy Gapon
Author: avg Date: Wed Nov 13 07:41:19 2019 New Revision: 354676 URL: https://svnweb.freebsd.org/changeset/base/354676 Log: MFC r353747: vmm: remove a wmb() call After removing wmb(), vm_set_rendezvous_func() became super trivial, so there was no point in keeping it. The wmb (sfence

svn commit: r354675 - in stable/12/sys/cddl/contrib/opensolaris/uts/common: fs/zfs sys

2019-11-12 Thread Andriy Gapon
Author: avg Date: Wed Nov 13 07:39:20 2019 New Revision: 354675 URL: https://svnweb.freebsd.org/changeset/base/354675 Log: MFC r353636: MFV r353630: 10809 Performance optimization of AVL tree comparator functions Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ddt.c

svn commit: r354674 - stable/12/stand/efi/libefi

2019-11-12 Thread Toomas Soome
Author: tsoome Date: Wed Nov 13 07:04:11 2019 New Revision: 354674 URL: https://svnweb.freebsd.org/changeset/base/354674 Log: MFC: r354415 loader.efi: HARDDRIVE_DEVICE_PATH may have subpaths The macos does create Vendor Media devices on top of APFS container (like partition table

Re: svn commit: r354672 - head/lib/libc/secure

2019-11-12 Thread Warner Losh
On Tue, Nov 12, 2019 at 9:20 PM Kyle Evans wrote: > > > On Tue, Nov 12, 2019, 22:04 Pedro Giffuni wrote: > >> >> On 12/11/2019 22:00, Kyle Evans wrote: >> >> Author: kevans >> Date: Wed Nov 13 03:00:32 2019 >> New Revision: 354672 >> URL: https://svnweb.freebsd.org/changeset/base/354672 >> >>

Re: svn commit: r354672 - head/lib/libc/secure

2019-11-12 Thread Kyle Evans
On Tue, Nov 12, 2019, 22:04 Pedro Giffuni wrote: > > On 12/11/2019 22:00, Kyle Evans wrote: > > Author: kevans > Date: Wed Nov 13 03:00:32 2019 > New Revision: 354672 > URL: https://svnweb.freebsd.org/changeset/base/354672 > > Log: > ssp: rework the logic to use priority=200 on clang builds >

Re: svn commit: r354672 - head/lib/libc/secure

2019-11-12 Thread Pedro Giffuni
On 12/11/2019 22:00, Kyle Evans wrote: Author: kevans Date: Wed Nov 13 03:00:32 2019 New Revision: 354672 URL: https://svnweb.freebsd.org/changeset/base/354672 Log: ssp: rework the logic to use priority=200 on clang builds The preproc logic was added at the last minute to appease

svn commit: r354673 - head/stand/libsa

2019-11-12 Thread Ravi Pokala
Author: rpokala Date: Wed Nov 13 03:56:51 2019 New Revision: 354673 URL: https://svnweb.freebsd.org/changeset/base/354673 Log: Logging improvements to loader::nfs Include the server IP address when logging nfs_open(), add a few missing "\n"s, and correct a typo. Reviewed by: kevans

svn commit: r354672 - head/lib/libc/secure

2019-11-12 Thread Kyle Evans
Author: kevans Date: Wed Nov 13 03:00:32 2019 New Revision: 354672 URL: https://svnweb.freebsd.org/changeset/base/354672 Log: ssp: rework the logic to use priority=200 on clang builds The preproc logic was added at the last minute to appease GCC 4.2, and kevans@ did clearly not go back

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

2019-11-12 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 13 02:22:00 2019 New Revision: 354671 URL: https://svnweb.freebsd.org/changeset/base/354671 Log: powerpc64: Don't guard ISA 3.0 partition table setup with hw_direct_map PowerISA 3.0 eliminated the 64-bit bridge mode which allowed 32-bit kernels to run on

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

2019-11-12 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 13 02:16:24 2019 New Revision: 354670 URL: https://svnweb.freebsd.org/changeset/base/354670 Log: powerpc: Don't savectx() twice in IPI_STOP handler We already save context in stoppcbs[] array, so there's no need to also save it in the PCB, it won't be

svn commit: r354669 - head/lib/libc/secure

2019-11-12 Thread Kyle Evans
Author: kevans Date: Wed Nov 13 02:14:17 2019 New Revision: 354669 URL: https://svnweb.freebsd.org/changeset/base/354669 Log: ssp: add a priority to the __stack_chk_guard constructor First, this commit is a NOP on GCC <= 4.x; this decidedly doesn't work cleanly on GCC 4.2, and it will be

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

2019-11-12 Thread Warner Losh
Author: imp Date: Wed Nov 13 01:58:43 2019 New Revision: 354668 URL: https://svnweb.freebsd.org/changeset/base/354668 Log: Fix a race between daopen and damediapoll When we do a daopen, we call dareprobe and wait for the results. The repoll runs the da state machine up through the

svn commit: r354667 - in head/sys: dev/cxgbe dev/cxgbe/crypto dev/cxgbe/tom modules/cxgbe/if_cxgbe

2019-11-12 Thread John Baldwin
Author: jhb Date: Wed Nov 13 00:53:45 2019 New Revision: 354667 URL: https://svnweb.freebsd.org/changeset/base/354667 Log: Create a file to hold shared routines for dealing with T6 key contexts. ccr(4) and TLS support in cxgbe(4) construct key contexts used by the crypto engine in the

svn commit: r354666 - head/usr.sbin/sesutil

2019-11-12 Thread Alan Somers
Author: asomers Date: Tue Nov 12 23:57:57 2019 New Revision: 354666 URL: https://svnweb.freebsd.org/changeset/base/354666 Log: sesutil: fix another memory leak Instead of calloc()ing (and forgetting to free) in a tight loop, just put this small array on the stack. Reported by:

svn commit: r354665 - head/usr.sbin/sesutil

2019-11-12 Thread Alan Somers
Author: asomers Date: Tue Nov 12 23:09:55 2019 New Revision: 354665 URL: https://svnweb.freebsd.org/changeset/base/354665 Log: sesutil: fix some memory leaks Reported by: Coverity Coverity CID: 1331665 MFC after:2 weeks Sponsored by: Axcient Modified:

svn commit: r354664 - head/usr.sbin/sesutil

2019-11-12 Thread Alan Somers
Author: asomers Date: Tue Nov 12 23:03:52 2019 New Revision: 354664 URL: https://svnweb.freebsd.org/changeset/base/354664 Log: sesutil: fix an out-of-bounds array access sesutil would allow the user to toggle an LED that was one past the maximum element. If he tried, ENCIOC_GETELMSTAT

Re: svn commit: r354491 - in head: . lib/msun/src libexec libexec/rtld-elf libexec/rtld-elf32 share/mk usr.bin usr.bin/ldd32

2019-11-12 Thread Guido Falsi
On 12/11/19 23:33, Brooks Davis wrote: > On Tue, Nov 12, 2019 at 10:14:28PM +0100, Guido Falsi wrote: >> On 07/11/19 23:58, Brooks Davis wrote: >>> Author: brooks >>> Date: Thu Nov 7 22:58:10 2019 >>> New Revision: 354491 >>> URL: https://svnweb.freebsd.org/changeset/base/354491 >>> >>> Log: >>>

Re: svn commit: r354491 - in head: . lib/msun/src libexec libexec/rtld-elf libexec/rtld-elf32 share/mk usr.bin usr.bin/ldd32

2019-11-12 Thread Brooks Davis
On Tue, Nov 12, 2019 at 10:14:28PM +0100, Guido Falsi wrote: > On 07/11/19 23:58, Brooks Davis wrote: > > Author: brooks > > Date: Thu Nov 7 22:58:10 2019 > > New Revision: 354491 > > URL: https://svnweb.freebsd.org/changeset/base/354491 > > > > Log: > > libcompat: build 32-bit rtld and ldd as

svn commit: r354663 - in head: libexec/rtld-elf libexec/rtld-elf32 usr.bin/ldd32

2019-11-12 Thread Brooks Davis
Author: brooks Date: Tue Nov 12 22:31:59 2019 New Revision: 354663 URL: https://svnweb.freebsd.org/changeset/base/354663 Log: libcompat: Correct rtld MLINKS Don't install duplicate ld-elf.so.1.1 and ld.so.1 links in rtld-elf32. Do install lib-elf32.so.1.1 and ldd32.1 links. Reported

svn commit: r354662 - head/lib/clang

2019-11-12 Thread John Baldwin
Author: jhb Date: Tue Nov 12 21:35:05 2019 New Revision: 354662 URL: https://svnweb.freebsd.org/changeset/base/354662 Log: Sync target triple generation with the version in Makefile.inc1. Reviewed by: dim Sponsored by: DARPA Differential Revision:

svn commit: r354661 - head

2019-11-12 Thread John Baldwin
Author: jhb Date: Tue Nov 12 21:29:52 2019 New Revision: 354661 URL: https://svnweb.freebsd.org/changeset/base/354661 Log: Force MK_CLANG_IS_CC on in XMAKE. This ensures that a bootstrap clang compiler is always installed as cc in WORLDTMP. If it is only installed as 'clang' then

svn commit: r354660 - head/share/mk

2019-11-12 Thread John Baldwin
Author: jhb Date: Tue Nov 12 21:26:50 2019 New Revision: 354660 URL: https://svnweb.freebsd.org/changeset/base/354660 Log: Enable the RISC-V LLVM backend by default. Reviewed by: dim, mhorne, emaste MFC after:1 month Sponsored by: DARPA Differential Revision:

Re: svn commit: r354491 - in head: . lib/msun/src libexec libexec/rtld-elf libexec/rtld-elf32 share/mk usr.bin usr.bin/ldd32

2019-11-12 Thread Guido Falsi
On 07/11/19 23:58, Brooks Davis wrote: > Author: brooks > Date: Thu Nov 7 22:58:10 2019 > New Revision: 354491 > URL: https://svnweb.freebsd.org/changeset/base/354491 > > Log: > libcompat: build 32-bit rtld and ldd as part of "everything" > > Alter bsd.compat.mk to set MACHINE and

svn commit: r354659 - head/usr.sbin/bhyve

2019-11-12 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Nov 12 21:07:51 2019 New Revision: 354659 URL: https://svnweb.freebsd.org/changeset/base/354659 Log: bhyve: rework mevent processing to fix a race condition At the end of both mevent_add() and mevent_update(), mevent_notify() is called to wakeup the I/O

svn commit: r354658 - in stable/11/sys/x86: include x86

2019-11-12 Thread Scott Long
Author: scottl Date: Tue Nov 12 19:35:46 2019 New Revision: 354658 URL: https://svnweb.freebsd.org/changeset/base/354658 Log: MFC: Add new bit definitions for TSX, related to the TAA issue. The actual mitigation will follow in a future commit. Obtained from:Intel Modified:

svn commit: r354657 - in stable/12/sys/x86: include x86

2019-11-12 Thread Scott Long
Author: scottl Date: Tue Nov 12 19:29:32 2019 New Revision: 354657 URL: https://svnweb.freebsd.org/changeset/base/354657 Log: MFC: Add new bit definitions for TSX, related to the TAA issue. The actual mitigation will follow in a future commit. Sponsored by: Intel Modified:

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

2019-11-12 Thread Glen Barber
Author: gjb Date: Tue Nov 12 19:19:27 2019 New Revision: 354656 URL: https://svnweb.freebsd.org/changeset/base/354656 Log: Document EN-19:18, EN-19:19, SA-19:25, SA-19:26. Sponsored by: Rubicon Communications, LLC (netgate.com) Modified: stable/11/release/doc/share/xml/errata.xml

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

2019-11-12 Thread Scott Long
Author: scottl Date: Tue Nov 12 19:15:16 2019 New Revision: 354655 URL: https://svnweb.freebsd.org/changeset/base/354655 Log: Add new bit definitions for TSX, related to the TAA issue. The actual mitigation will follow in a future commit. Sponsored by: Intel Modified:

svn commit: r354654 - in releng: 11.3 11.3/sys/conf 12.0 12.0/sys/conf 12.1 12.1/sys/conf

2019-11-12 Thread Gordon Tetlow
Tue Nov 12 18:13:51 2019(r354654) @@ -16,6 +16,10 @@ from 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. +20191112 p5

svn commit: r354653 - in releng: 11.3/sys/amd64/amd64 11.3/sys/amd64/include 11.3/sys/dev/cpuctl 11.3/sys/x86/include 12.0/sys/amd64/amd64 12.0/sys/amd64/include 12.0/sys/dev/cpuctl 12.0/sys/x86/in...

2019-11-12 Thread Gordon Tetlow
Author: gordon Date: Tue Nov 12 18:13:04 2019 New Revision: 354653 URL: https://svnweb.freebsd.org/changeset/base/354653 Log: Fix Machine Check Exception on Page Size Change. Approved by: so Security: FreeBSD-SA-19:25.mcepsc Security: CVE-2018-12207 Modified:

svn commit: r354652 - in releng: 12.0/stand/efi/loader 12.1/stand/efi/loader

2019-11-12 Thread Gordon Tetlow
Author: gordon Date: Tue Nov 12 18:10:26 2019 New Revision: 354652 URL: https://svnweb.freebsd.org/changeset/base/354652 Log: Fix UEFI Loader Memory Fragmentation. Approved by: so Security: FreeBSD-EN-19:19.loader Modified: releng/12.0/stand/efi/loader/bootinfo.c

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

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 18:04:28 2019 New Revision: 354651 URL: https://svnweb.freebsd.org/changeset/base/354651 Log: MFC r354649: Workaround for Intel SKL002/SKL012S errata. Security: CVE-2018-12207 Modified: stable/11/sys/amd64/amd64/pmap.c stable/11/sys/amd64/include/pmap.h

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

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 18:03:26 2019 New Revision: 354650 URL: https://svnweb.freebsd.org/changeset/base/354650 Log: MFC r354649: Workaround for Intel SKL002/SKL012S errata. Security: CVE-2018-12207 Modified: stable/12/sys/amd64/amd64/pmap.c stable/12/sys/amd64/include/pmap.h

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

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 18:01:33 2019 New Revision: 354649 URL: https://svnweb.freebsd.org/changeset/base/354649 Log: Workaround for Intel SKL002/SKL012S errata. Disable the use of executable 2M page mappings in EPT-format page tables on affected CPUs. For bhyve virtual machines,

Re: svn commit: r354458 - head/libexec/rc/rc.d

2019-11-12 Thread N.J. Mann
Hi, On Monday, November 11, 2019 22:12:26 + Edward Tomasz Napierala wrote: > On T1349, Ian Lepore wrote: >> On Sun, 2019-11-10 at 16:08 +, Edward Tomasz Napierala wrote: >> > On 1109T2049, Alexander Leidinger wrote: >> > > Quoting Edward Tomasz Napierala (from Thu, 7 >> > > Nov

svn commit: r354648 - head/sys/dev/nvdimm

2019-11-12 Thread D Scott Phillips
Author: scottph Date: Tue Nov 12 16:24:37 2019 New Revision: 354648 URL: https://svnweb.freebsd.org/changeset/base/354648 Log: nvdimm(4): Fix various problems when the using the second label index block struct nvdimm_label_index is dynamically sized, with the `free` bitfield expanding to

svn commit: r354647 - in head/sys/i386: i386 include

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 15:56:27 2019 New Revision: 354647 URL: https://svnweb.freebsd.org/changeset/base/354647 Log: i386: stop guessing the address of the trap frame in ddb backtrace. Save the address of the trap frame in %ebp on kernel entry. This automatically provides it in

svn commit: r354646 - in head/sys: amd64/amd64 amd64/include amd64/vmm cddl/contrib/opensolaris/uts/intel/dtrace

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 15:51:47 2019 New Revision: 354646 URL: https://svnweb.freebsd.org/changeset/base/354646 Log: amd64: move GDT into PCPU area. Reviewed by: jhb, markj Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r354645 - head/sys/dev/nvdimm

2019-11-12 Thread D Scott Phillips
Author: scottph Date: Tue Nov 12 15:50:30 2019 New Revision: 354645 URL: https://svnweb.freebsd.org/changeset/base/354645 Log: nvdimm(4): Only expose namespaces for accessible data SPAs Apply the same user accessible filter to namespaces as is applied to full-SPA devices. Also,

svn commit: r354644 - head/sys/amd64/amd64

2019-11-12 Thread Konstantin Belousov
Author: kib Date: Tue Nov 12 15:47:46 2019 New Revision: 354644 URL: https://svnweb.freebsd.org/changeset/base/354644 Log: amd64: assert that size of the software prototype table for gdt is equal to the size of hardware gdt. Reviewed by: jhb, markj Tested by:pho Sponsored by:

svn commit: r354643 - in head/sys: netinet netinet6

2019-11-12 Thread Bjoern A. Zeeb
Author: bz Date: Tue Nov 12 15:46:28 2019 New Revision: 354643 URL: https://svnweb.freebsd.org/changeset/base/354643 Log: netinet*: update *mp to pass the proper value back In ip6_[direct_]input() we are looping over the extension headers to deal with the next header. We pass a pointer

svn commit: r354642 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-11-12 Thread Alexander Motin
Author: mav Date: Tue Nov 12 15:34:19 2019 New Revision: 354642 URL: https://svnweb.freebsd.org/changeset/base/354642 Log: MFC r354360: Add vfs.zfs.zio.taskq_batch_pct tunable. Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Directory Properties: stable/11/

svn commit: r354641 - stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-11-12 Thread Alexander Motin
Author: mav Date: Tue Nov 12 15:32:16 2019 New Revision: 354641 URL: https://svnweb.freebsd.org/changeset/base/354641 Log: MFC r354360: Add vfs.zfs.zio.taskq_batch_pct tunable. Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Directory Properties: stable/12/

svn commit: r354640 - stable/12/cddl/contrib/opensolaris/cmd/zpool

2019-11-12 Thread Andriy Gapon
Author: avg Date: Tue Nov 12 14:08:21 2019 New Revision: 354640 URL: https://svnweb.freebsd.org/changeset/base/354640 Log: MFC r354437: fix zpool list property names Modified: stable/12/cddl/contrib/opensolaris/cmd/zpool/zpool.8 Directory Properties: stable/12/ (props changed) Modified:

svn commit: r354639 - head/usr.bin/netstat

2019-11-12 Thread Bjoern A. Zeeb
Author: bz Date: Tue Nov 12 13:57:17 2019 New Revision: 354639 URL: https://svnweb.freebsd.org/changeset/base/354639 Log: netstat: igmp stats, error on unexpected information, not only warn The igmp stats tend to print two lines of warning for an unexpected version and length. Despite

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

2019-11-12 Thread Andriy Gapon
Author: avg Date: Tue Nov 12 11:00:01 2019 New Revision: 354638 URL: https://svnweb.freebsd.org/changeset/base/354638 Log: teach db_nextframe/x86 about [X]xen_intr_upcall interrupt handler Discussed with: kib, royger MFC after:3 weeks Sponsored by: Panzura Modified:

svn commit: r354637 - head/sys/x86/xen

2019-11-12 Thread Roger Pau Monné
Author: royger Date: Tue Nov 12 10:31:28 2019 New Revision: 354637 URL: https://svnweb.freebsd.org/changeset/base/354637 Log: xen: fix dispatching of NMIs Currently NMIs are sent over event channels, but that defeats the purpose of NMIs since event channels can be masked. Fix this by

svn commit: r354636 - stable/12

2019-11-12 Thread Andriy Gapon
fstatat fstatfs getdirentries getfsstat statfs # 20180404 r332048 sigreturn # 20180405 r332080 shmat @@ -970,6 +970,17 @@ _cleanobj_fast_depend_hack: .PHONY echo "Removing stale wpa dependencies"; \ rm -f ${OBJTOP}/usr.sbin/wpa/*/.depend*; \ fi +

svn commit: r354635 - head/stand/libsa/zfs

2019-11-12 Thread Toomas Soome
Author: tsoome Date: Tue Nov 12 10:02:39 2019 New Revision: 354635 URL: https://svnweb.freebsd.org/changeset/base/354635 Log: reverting r354594 In our case the structure is more complex and simple static initializer will upset compiler diagnostics - using memset is still better than

svn commit: r354634 - in stable/12/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/common/atomic/aarch64 cddl/contrib/opensolaris/common/atomic/amd64 cddl/con...

2019-11-12 Thread Andriy Gapon
Author: avg Date: Tue Nov 12 09:54:48 2019 New Revision: 354634 URL: https://svnweb.freebsd.org/changeset/base/354634 Log: MFC r353381: emulate illumos membar_producer with atomic_thread_fence_rel Deleted: stable/12/sys/cddl/contrib/opensolaris/common/atomic/aarch64/opensolaris_atomic.S