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

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