svn commit: r332090 - head/stand/i386

2018-04-05 Thread Ed Maste
Author: emaste Date: Fri Apr 6 02:57:58 2018 New Revision: 332090 URL: https://svnweb.freebsd.org/changeset/base/332090 Log: stand: pass --no-rosegment for i386 bits when linking with lld btxld does not correctly handle input with other than 2 PT_LOAD segments. Passing --no-rosegment

svn commit: r332089 - stable/11/sys/sys

2018-04-05 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 02:47:43 2018 New Revision: 332089 URL: https://svnweb.freebsd.org/changeset/base/332089 Log: stable/11: Bump FreeBSD_Version for recent rc ${name}_limits bits Some ports had their own interpretation of _limits that conflicted with the new definition as of

Re: svn commit: r332070 - in head/sys/geom: . label raid

2018-04-05 Thread Conrad Meyer
Yep, exactly — md_intel was tasting the md(4) device. md_intel invokes g_raid_md_get_label() early on in its taste routine. On Thu, Apr 5, 2018 at 6:29 PM, Allan Jude wrote: > On 2018-04-05 21:20, Conrad Meyer wrote: >> On Thu, Apr 5, 2018 at 6:08 PM, Allan Jude

Re: svn commit: r332070 - in head/sys/geom: . label raid

2018-04-05 Thread Allan Jude
On 2018-04-05 21:20, Conrad Meyer wrote: > On Thu, Apr 5, 2018 at 6:08 PM, Allan Jude wrote: >> On 2018-04-05 09:56, Sean Bruno wrote: >>> Author: sbruno >>> Date: Thu Apr 5 13:56:40 2018 >>> New Revision: 332070 >>> URL: https://svnweb.freebsd.org/changeset/base/332070

Re: svn commit: r332070 - in head/sys/geom: . label raid

2018-04-05 Thread Conrad Meyer
On Thu, Apr 5, 2018 at 6:08 PM, Allan Jude wrote: > On 2018-04-05 09:56, Sean Bruno wrote: >> Author: sbruno >> Date: Thu Apr 5 13:56:40 2018 >> New Revision: 332070 >> URL: https://svnweb.freebsd.org/changeset/base/332070 >> >> Log: >> Squash error from geom by sizing

Re: svn commit: r332070 - in head/sys/geom: . label raid

2018-04-05 Thread Allan Jude
On 2018-04-05 09:56, Sean Bruno wrote: > Author: sbruno > Date: Thu Apr 5 13:56:40 2018 > New Revision: 332070 > URL: https://svnweb.freebsd.org/changeset/base/332070 > > Log: > Squash error from geom by sizing ident strings to DISK_IDENT_SIZE. > > Display attribute in future error

svn commit: r332088 - head/sys/net

2018-04-05 Thread Brooks Davis
Author: brooks Date: Thu Apr 5 22:14:55 2018 New Revision: 332088 URL: https://svnweb.freebsd.org/changeset/base/332088 Log: Add 32-bit compat for ioctls that take struct ifgroupreq. Use an accessor to access ifgr_group and ifgr_groups. Use an macro CASE_IOC_IFGROUPREQ(cmd) in place

svn commit: r332087 - head/sys/net

2018-04-05 Thread Brooks Davis
Author: brooks Date: Thu Apr 5 21:58:28 2018 New Revision: 332087 URL: https://svnweb.freebsd.org/changeset/base/332087 Log: ifconf(): Always zero the whole struct ifreq. The previous split of zeroing ifr_name and ifr_addr seperately is safe on current architectures, but would be unsafe

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

2018-04-05 Thread Brooks Davis
On Thu, Apr 05, 2018 at 08:31:45PM +, Brooks Davis wrote: > Author: brooks > Date: Thu Apr 5 20:31:45 2018 > New Revision: 332086 > URL: https://svnweb.freebsd.org/changeset/base/332086 > > Log: > Added SAL annotatations to system calls. > > Modify makesyscalls.sh to strip out SAL

svn commit: r332086 - head/sys/kern

2018-04-05 Thread Brooks Davis
Author: brooks Date: Thu Apr 5 20:31:45 2018 New Revision: 332086 URL: https://svnweb.freebsd.org/changeset/base/332086 Log: Added SAL annotatations to system calls. Modify makesyscalls.sh to strip out SAL annotations. No functional change. This is based on work I started in

svn commit: r332085 - head/stand/common

2018-04-05 Thread Benno Rice
Author: benno Date: Thu Apr 5 19:45:30 2018 New Revision: 332085 URL: https://svnweb.freebsd.org/changeset/base/332085 Log: Add an ISO9660 "partition table" type to loader. When booted via isoboot(8) loader will be handed a disk that simply contains an ISO9660 image. Currently this

svn commit: r332084 - in head: stand/i386 stand/i386/isoboot stand/libsa sys/fs/cd9660

2018-04-05 Thread Benno Rice
Author: benno Date: Thu Apr 5 19:40:46 2018 New Revision: 332084 URL: https://svnweb.freebsd.org/changeset/base/332084 Log: Add isoboot(8) for booting BIOS systems from HDDs containing ISO images. This is part of a project for adding the ability to create hybrid CD/USB boot images. In

svn commit: r332083 - head/stand/i386/gptboot

2018-04-05 Thread Benno Rice
Author: benno Date: Thu Apr 5 19:29:22 2018 New Revision: 332083 URL: https://svnweb.freebsd.org/changeset/base/332083 Log: Various style(9) fixes. Reviewed by: strip --strip-debug -o - gptboot.o | md5 Sponsored by: iXsystems, Inc. Modified: head/stand/i386/gptboot/gptboot.c

svn commit: r332082 - head/stand/i386/gptboot

2018-04-05 Thread Benno Rice
Author: benno Date: Thu Apr 5 19:27:24 2018 New Revision: 332082 URL: https://svnweb.freebsd.org/changeset/base/332082 Log: Use consistent whitespace. Reviewed by: strip --strip-debug -o - gptboot.o | md5 Sponsored by: iXsystems, Inc. Modified: head/stand/i386/gptboot/gptboot.c

svn commit: r332080 - in head/lib/libc: aarch64/sys arm/sys mips/sys riscv/sys

2018-04-05 Thread Brooks Davis
Author: brooks Date: Thu Apr 5 18:17:46 2018 New Revision: 332080 URL: https://svnweb.freebsd.org/changeset/base/332080 Log: Remove architecture specific shmat.S files. These files are identical to the generated system calls. In the case of MIPS, the file was already disconnected from

svn commit: r332081 - head

2018-04-05 Thread Brooks Davis
statfs # 20180404 r332048 sigreturn -.for f in fstat fstatat fstatfs getdirentries getfsstat sigreturn statfs +# 20180405 r332080 shmat +.for f in fstat fstatat fstatfs getdirentries getfsstat shmat sigreturn statfs .if exists(${OBJTOP}/lib/libc/.depend.${f}.o) @if egrep -qw '${f

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Bruce Evans
On Thu, 5 Apr 2018, Warner Losh wrote: On Thu, Apr 5, 2018 at 9:46 AM, Roger Pau Monn?? wrote: On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: On Thu, 2018-04-05 at 14:31 +, Roger Pau Monn?? wrote: Log: introduce GiB and MiB macros ... +/* Unit

svn commit: r332079 - head/sys/compat/linuxkpi/common/include/asm

2018-04-05 Thread Mark Johnston
Author: markj Date: Thu Apr 5 17:26:03 2018 New Revision: 332079 URL: https://svnweb.freebsd.org/changeset/base/332079 Log: Fix the definitions of get_cpu() and put_cpu(). They are supposed to disable preemption. Reported by: rstone MFC after:5 days Modified:

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
On Thu, Apr 05, 2018 at 09:58:36AM -0600, Warner Losh wrote: > On Thu, Apr 5, 2018 at 9:46 AM, Roger Pau Monné wrote: > > > On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > > > On Thu, 2018-04-05 at 14:31 +, Roger Pau Monné wrote: > > > > Author: royger > > >

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Warner Losh
On Thu, Apr 5, 2018 at 9:46 AM, Roger Pau Monné wrote: > On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > > On Thu, 2018-04-05 at 14:31 +, Roger Pau Monné wrote: > > > Author: royger > > > Date: Thu Apr 5 14:31:54 2018 > > > New Revision: 332072 > > > URL:

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

2018-04-05 Thread Mark Johnston
Author: markj Date: Thu Apr 5 15:52:20 2018 New Revision: 332078 URL: https://svnweb.freebsd.org/changeset/base/332078 Log: MFC r331245: Drop KTR_CONTENTION. Modified: stable/11/sys/kern/kern_mutex.c stable/11/sys/sys/ktr_class.h Directory Properties: stable/11/ (props changed)

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > On Thu, 2018-04-05 at 14:31 +, Roger Pau Monné wrote: > > Author: royger > > Date: Thu Apr  5 14:31:54 2018 > > New Revision: 332072 > > URL: https://svnweb.freebsd.org/changeset/base/332072 > > > > Log: > >   introduce GiB and MiB

svn commit: r332077 - in head/sys: arm64/coresight conf

2018-04-05 Thread Ruslan Bukin
Author: br Date: Thu Apr 5 15:45:54 2018 New Revision: 332077 URL: https://svnweb.freebsd.org/changeset/base/332077 Log: Add support for the Coresight technology from ARM Ltd. ARM Coresight is a solution for debug and trace of complex SoC designs. This includes a collection of

Re: svn commit: r331976 - head/sys/modules/cam

2018-04-05 Thread Warner Losh
Thanks I'll attend to that. Warner On Thu, Apr 5, 2018 at 9:22 AM, Konstantin Belousov wrote: > On Wed, Apr 04, 2018 at 02:37:05AM +, Warner Losh wrote: > > Author: imp > > Date: Wed Apr 4 02:37:05 2018 > > New Revision: 331976 > > URL:

svn commit: r332076 - stable/11/sys/sys

2018-04-05 Thread Mark Johnston
Author: markj Date: Thu Apr 5 15:37:49 2018 New Revision: 332076 URL: https://svnweb.freebsd.org/changeset/base/332076 Log: MFC r331738, r331853: Have TD_LOCKS_DEC() assert that td_locks is positive. Modified: stable/11/sys/sys/proc.h Directory Properties: stable/11/ (props changed)

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Ian Lepore
On Thu, 2018-04-05 at 14:31 +, Roger Pau Monné wrote: > Author: royger > Date: Thu Apr  5 14:31:54 2018 > New Revision: 332072 > URL: https://svnweb.freebsd.org/changeset/base/332072 > > Log: >   introduce GiB and MiB macros >    >   This macros convert from GiB or MiB into bytes. >    >  

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Bruce Evans
On Thu, 5 Apr 2018, [UTF-8] Roger Pau Monn?? wrote: Log: introduce GiB and MiB macros This macros convert from GiB or MiB into bytes. This is undocumented namspace pollution with bad names and worse types. The better names GB and MB would be more likely to conflicted with code not written

Re: svn commit: r331976 - head/sys/modules/cam

2018-04-05 Thread Konstantin Belousov
On Wed, Apr 04, 2018 at 02:37:05AM +, Warner Losh wrote: > Author: imp > Date: Wed Apr 4 02:37:05 2018 > New Revision: 331976 > URL: https://svnweb.freebsd.org/changeset/base/331976 > > Log: > Add nvme_da back. > > Now that it can co-exist in the kernel with nvd, add it back to the >

Re: svn commit: r332073 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86

2018-04-05 Thread Bruce Evans
On Thu, 5 Apr 2018, [UTF-8] Roger Pau Monn?? wrote: Log: x86: improve reservation of AP trampoline memory This has lots of style bugs. Mainly changing the KNF spelling of 'unsigned' as u_int to the verbose 'unsigned int' in code that used to be careful to use the KNF spelling.

svn commit: r332075 - head/sbin/reboot

2018-04-05 Thread Rodney W. Grimes
Author: rgrimes Date: Thu Apr 5 15:00:08 2018 New Revision: 332075 URL: https://svnweb.freebsd.org/changeset/base/332075 Log: Exit with usage when extra arguments are on command line preventing mistakes such as "halt 0p" for "halt -p". Approved by: bde (mentor), phk (mentor) MFC after:

svn commit: r332074 - stable/11/sys/i386/include

2018-04-05 Thread Rodney W. Grimes
Author: rgrimes Date: Thu Apr 5 14:55:44 2018 New Revision: 332074 URL: https://svnweb.freebsd.org/changeset/base/332074 Log: MFC: r304147(bde) Remove duplicate definition of get_pcb_td(). gcc works for detecting this error. Approved by: bde (mentor) Modified:

svn commit: r332073 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86

2018-04-05 Thread Roger Pau Monné
Author: royger Date: Thu Apr 5 14:39:51 2018 New Revision: 332073 URL: https://svnweb.freebsd.org/changeset/base/332073 Log: x86: improve reservation of AP trampoline memory So that it doesn't rely on physmap[1] containing an address below 1MiB. Instead scan the full physmap and search

svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
Author: royger Date: Thu Apr 5 14:31:54 2018 New Revision: 332072 URL: https://svnweb.freebsd.org/changeset/base/332072 Log: introduce GiB and MiB macros This macros convert from GiB or MiB into bytes. Sponsored by: Citrix Systems R Modified: head/sys/sys/param.h Modified:

svn commit: r332071 - in stable/11/sys/amd64: linux linux32

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 14:25:39 2018 New Revision: 332071 URL: https://svnweb.freebsd.org/changeset/base/332071 Log: MFC r331442: Fixup return style(9) in amd64 linux*_sysvec.c Modified: stable/11/sys/amd64/linux/linux_sysvec.c stable/11/sys/amd64/linux32/linux32_sysvec.c

svn commit: r332070 - in head/sys/geom: . label raid

2018-04-05 Thread Sean Bruno
Author: sbruno Date: Thu Apr 5 13:56:40 2018 New Revision: 332070 URL: https://svnweb.freebsd.org/changeset/base/332070 Log: Squash error from geom by sizing ident strings to DISK_IDENT_SIZE. Display attribute in future error strings and differentiate g_handleattr() error messages for

svn commit: r332069 - stable/10/sys/amd64/amd64

2018-04-05 Thread Konstantin Belousov
Author: kib Date: Thu Apr 5 13:39:53 2018 New Revision: 332069 URL: https://svnweb.freebsd.org/changeset/base/332069 Log: MFC r331374: Fixes for ptrace(PT_GETXSTATE_INFO) related to the padding in struct ptrace_xstate_info). Modified: stable/10/sys/amd64/amd64/ptrace_machdep.c Directory

svn commit: r332068 - stable/11/sys/dev/hyperv/vmbus

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:59:50 2018 New Revision: 332068 URL: https://svnweb.freebsd.org/changeset/base/332068 Log: MFC r331757: Correct comment typo in Hyper-V PR: 226665 Submitted by: Ryo ONODERA Modified: stable/11/sys/dev/hyperv/vmbus/hyperv.c Directory

svn commit: r332067 - stable/10/sys/dev/hyperv/vmbus

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:59:49 2018 New Revision: 332067 URL: https://svnweb.freebsd.org/changeset/base/332067 Log: MFC r331757: Correct comment typo in Hyper-V PR: 226665 Submitted by: Ryo ONODERA Modified: stable/10/sys/dev/hyperv/vmbus/hyperv.c Directory

svn commit: r332066 - stable/11/sys/netinet

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:56:40 2018 New Revision: 332066 URL: https://svnweb.freebsd.org/changeset/base/332066 Log: MFC r332045: Fix kernel memory disclosure in tcp_ctloutput strcpy was used to copy a string into a buffer copied to userland, which left uninitialized data after

svn commit: r332064 - stable/10/sys/compat/linux

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:54:10 2018 New Revision: 332064 URL: https://svnweb.freebsd.org/changeset/base/332064 Log: MFC r332042: Fix kernel memory disclosure in linux_ioctl_socket strlcpy is used to copy a string into a buffer to be copied to userland, previously leaving

svn commit: r332065 - stable/11/sys/compat/linux

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:54:12 2018 New Revision: 332065 URL: https://svnweb.freebsd.org/changeset/base/332065 Log: MFC r332042: Fix kernel memory disclosure in linux_ioctl_socket strlcpy is used to copy a string into a buffer to be copied to userland, previously leaving

svn commit: r332063 - stable/10/sys/compat/linux

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:50:47 2018 New Revision: 332063 URL: https://svnweb.freebsd.org/changeset/base/332063 Log: MFC r332034: linux_ioctl_hdio: fix kernel memory disclosure Stack-allocated struct linux_hd_big_geometry has undeclared padding copied to userland. admbugs:

svn commit: r332062 - stable/11/sys/compat/linux

2018-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 5 12:48:58 2018 New Revision: 332062 URL: https://svnweb.freebsd.org/changeset/base/332062 Log: MFC r332034: linux_ioctl_hdio: fix kernel memory disclosure Stack-allocated struct linux_hd_big_geometry has undeclared padding copied to userland. admbugs:

Re: svn commit: r331701 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/zpool cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzfs/common cddl/contrib/openso

2018-04-05 Thread Andriy Gapon
On 29/03/2018 01:01, Alexander Motin wrote: > MFV r331695, 331700: 9166 zfs storage pool checkpoint > > illumos/illumos-gate@8671400134a11c848244896ca51a7db4d0f69da4 > > The idea of Storage Pool Checkpoint (aka zpool checkpoint) deals with > exactly that. It can be thought of as a

svn commit: r332061 - head/sys/amd64/ia32

2018-04-05 Thread Konstantin Belousov
Author: kib Date: Thu Apr 5 11:03:21 2018 New Revision: 332061 URL: https://svnweb.freebsd.org/changeset/base/332061 Log: Fix ERESTART for lcall $7,$0 syscalls. The lcall trampoline enters kernel by int $0x80, which sets up invalid length of the instruction for %rip rewind.

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

2018-04-05 Thread Konstantin Belousov
Author: kib Date: Thu Apr 5 11:03:05 2018 New Revision: 332060 URL: https://svnweb.freebsd.org/changeset/base/332060 Log: Make the INTO instruction operational in 32bit mode. Having the IDT entry specify ring 0 DPL caused delivery of #GP instead of #OF. The instruction is not valid