Illumos/gate a6d1011usr/src/cmd/fs.d/smbclnt/smbutil discon.c smbutil.c, usr/src/lib/libsmbfs/smb ctx.c findvc.c

9472 Add smbutil discon command
Reviewed by: Matt Barden <matt.barden at nexenta.com>
Reviewed by: Evan Layton <evan.layton at nexenta.com>
Reviewed by: Andy Fiddaman <andy at omniosce.org>
Reviewed by: Ken Mays <kmays2000 at gmail.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 4226f63usr/src/lib/libdemangle/common cxx.c cxx_util.c, usr/src/test/util-tests/tests/demangle llvm-stdcxxabi.c gcc-libstdc++.c

6375 Add native name demangling support
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Richard Lowe <richlowe at richlowe.net>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 83b4671usr/src/boot/sys/boot/efi/boot1 Makefile.com, usr/src/boot/sys/boot/efi/loader framebuffer.c Makefile

9664 loader: need UEFI32 support
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Andrew Stormont <andyjstormont at gmail.com>
Approved by: Gordon Ross <gwr at nexenta.com>

Illumos/gate e1bf37busr/src Makefile.master, usr/src/cmd/sgs/rtld/sparcv9 Makefile

9884 cw(1) should use -fpic rather than -Kpic
Reviewed by: Jason King <jason.brian.king at gmail.com>
Reviewed by: Andy Stormont <andyjstormont at gmail.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: John Levon <john.levon at joyent.com>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate a5d83f5usr/src/lib/libresolv2/common/nameser ns_print.c

9886 libresolv2: fix fallthrough in ns_sprintrrf()
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 3f8dd77usr/src/lib/krb5/plugins/preauth/pkinit pkinit_crypto_openssl.c

9887 pkinit_crypto_openssl.c: warnings from newer gcc
Reviewed by: Yuri Pankov <yuri.pankov at nexenta.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Jason King <jason.king at joyent.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate fdfb62cusr/src/uts/common Makefile.files, usr/src/uts/common/ktli t_koptmgmt.c

9877 Want t_koptmgmt in kTLI
Reviewed by: Evan Layton <evan.layton at nexenta.com>
Reviewed by: Matt Barden <matt.barden at nexenta.com>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 437d9dausr/src/cmd/smbsrv/smbd smbd_logon.c

9872 SMB server does not accept username at hostname
Reviewed by: Evan Layton <evan.layton at nexenta.com>
Reviewed by: Gordon Ross <gordon.ross at nexenta.com>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 5267591usr/src/cmd/zfs zfs_main.c, usr/src/man/man1m zfs.1m

9466 add JSON output support to channel programs
Reviewed by: Matt Ahrens <matt at delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro at delphix.com>
Reviewed by: Sara Hartse <sara.hartse at delphix.com>
Reviewed by: John Kennedy <john.kennedy at delphix.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate b68ddc7exception_lists wscheck, usr/src/uts/common/io/qede qede_gld.c

9724 qede needs updates for newer GCC
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Anand Khoje <Anand.Khoje at cavium.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 6b544f0usr/src Makefile.master

9420 need GCC options to disable function cloning
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 2119ebeusr/src/cmd/boot/scripts create_ramdisk.ksh

9860 cpio_cleanup: $tarchive is already fully-qualified
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andrew Stormont <andyjstormont at gmail.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 8522c52usr/src/lib/fm/topo/libtopo/common topo_subr.c hc.c, usr/src/lib/fm/topo/modules/common/smbios smbios_enum.c

9584 Extend smbios enumerator module to enumerate motherboard
9850 authority and system pgroups missing on some nodes
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 54b146cusr/src/uts/common/io/vioif vioif.c

7096 vioif should not log to the console on boot, or ever
Reviewed by: Alexander Pyhalov <apyhalov at gmail.com>
Reviewed by: Andy Stormont <astormont at racktopsystems.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate fb23c57usr/src Makefile.master, usr/src/cmd/ldapcachemgr Makefile

9868 unused cw translations should be removed
Reviewed by: Andy Stormont <astormont at racktopsystems.com>
Reviewed by: John Levon <john.levon at joyent.com>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate b86e7e3usr/src/uts/common/fs/zfs metaslab.c

9738 9112 broke third block copy allocations within one metaslab group
Reviewed by: Paul Dagnelie <pcd at delphix.com>
Reviewed by: George Wilson <george.wilson at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 4e75ba6usr/src/uts/common/fs/zfs vdev.c

9690 metaslab of vdev with no space maps was flushed during removal
Reviewed by: Matt Ahrens <matt at delphix.com>
Reviewed by: Brad Lewis <brad.lewis at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 29bf2d6usr/src/uts/common/fs/zfs arc.c aggsum.c

9688 aggsum_fini leaks memory
Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro at delphix.com>
Reviewed by: Matt Ahrens <matt at delphix.com>
Reviewed by: Prashanth Sreenivasa <pks at delphix.com>
Reviewed by: Jorgen Lundman <lundman at lundman.net>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 6aee0adusr/src/cmd/ztest ztest.c, usr/src/uts/common/fs/zfs spa_misc.c

9681 ztest failure in spa_history_log_internal due to spa_rename()
Reviewed by: Prakash Surya <prakash.surya at delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate ade2c82usr/src/cmd/zdb zdb.c, usr/src/uts/common/fs/zfs spa.c

9682 page fault in dsl_async_clone_destroy() while opening pool
Reviewed by: Brad Lewis <brad.lewis at delphix.com>
Reviewed by: Matt Ahrens <matt at delphix.com>
Reviewed by: Sara Hartse <sara.hartse at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 84927f5usr/src/uts/common/fs/zfs/sys vdev_impl.h

9862 fix typo in comment in vdev_impl.h
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Brian Behlendorf <behlendorf1 at llnl.gov>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate aa9ef48usr/src Makefile.master Makefile, usr/src/cmd/dtrace/test/tst/common/pid tst.gcc.c tst.gcc.d

9128 cw(1onbld) should be able to run multiple shadows
9129 file-locking tests shouldn't build multiple source files in one compiler invocation
9130 DTrace tst.gcc.d isn't useful
9132 cw(1onbld) shouldn't shadow pure preprocessing
Portions contributed by: Richard Lowe <richlowe at richlowe.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate bdc560ausr/src/lib/libipsecutil Makefile.com, usr/src/lib/libipsecutil/common ipsec_libssl_setup.c ipsec_util.c

5159 ipsec_libssl_setup.c loads libcrypto
Reviewed by: Andy Fiddaman <andy at omniosce.org>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 15aeb4dusr/src/boot/sys/boot/i386/libi386 pxe.h

9848 libi386: pxe.h cstyle cleanup
Reviewed by: Andrew Stormont <andyjstormont at gmail.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 42e00f0usr/src/lib/pkcs11/pkcs11_tpm/common apiutil.c

9856 pkcs11_tpm.so.1 changes syslog facility
Reviewed by: Jason King <jason.brian.king at gmail.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 6272273usr/src/uts/i86pc/io/apix apix.c, usr/src/uts/i86pc/os trap.c

9797 dump_ttrace() chokes on softints
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: John Levon <levon at movementarian.org>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate d48defcusr/src/uts/common/io/vioblk vioblk.c

9793 vioblk attach doesn't always fail when it should
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate 9f16e2dusr/src/uts/common/io/virtio virtio.c

9790 buffer freed to wrong cache in virtio_register_intx
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate 58b4950usr/src/uts/common/sys pci.h, usr/src/uts/i86pc/io/apix apix.c

9827 clean up some space-tab sequences
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate fbd54cbusr/src/uts/i86pc/io/pcplusmp apic_common.c, usr/src/uts/i86pc/os cpuid.c

9792 support bhyve as a platform
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate 35b5a2eusr/src/uts/common/os main.c

9798 exec_init() should be able to handle a 64bit init process
Reviewed by: John Levon <john.levon at joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate b5cf5bcusr/src/uts/common/sys pci.h pci_impl.h, usr/src/uts/intel/io/pci pci_boot.c pci_pci.c

9796 want support for PCI BAR size >= 4G
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Robert Mustacchi <rm at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.net>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate ea01a15usr/src/tools/scripts bldenv.sh

9831 bldenv should adapt to nightly debug settings
Reviewed by: Hans Rosenfeld <hans.rosenfeld at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Richard Lowe <richlowe at richlowe.net>

Illumos/gate eabe844usr/src/tools/scripts git-pbchk.1onbld git-pbchk.py

9803 pbchk could use a -c option
9825 pbchk -b option should be -p
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Richard Lowe <richlowe at richlowe.net>

Illumos/gate 856f620usr/src/cmd/file file.c Makefile, usr/src/cmd/sgs/libconv/common elf.c elf.msg

9819 update sys/elf.h for recent processors like aarch64/risc-v
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Richard Lowe <richlowe at richlowe.net>
Reviewed by: Jake Saferstein <jake.saferstein at joyent.com>
Reviewed by: Brad Walker <bwalker at musings.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 1f15402usr/src/lib/libdisasm/common dis_riscv.c, usr/src/pkg/manifests system-test-utiltest.mf

9820 Want risc-v disassembler
Reviewed by: Dan McDonald <danmcd at joyent.com>
Reviewed by: Richard Lowe <richlowe at richlowe.net>
Approved by: Garrett D'Amore <garrett at damore.org>

Illumos/gate 91b658dusr/src/lib/libsldap/common ns_writes.c ns_crypt.c

9169 libsldap: comparison between pointer and zero character constant
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Reviewed by: Ken Mays <kmays2000 at gmail.com>
Approved by: Joshua M. Clulow <josh at sysmgr.org>

Illumos/gate 48d370fusr/src/cmd/nvmeadm Makefile, usr/src/man/man7d nvme.7d

9809 nvme driver should attach to all NVMe 1.x devices
9810 Update parts of NVMe headers for newer specs
9811 nvmeadm(1M) should have ctf
Reviewed by: Hans Rosenfeld <hans.rosenfeld at joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Richard Lowe <richlowe at richlowe.net>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate fd6d41cusr/src/cmd/ahciem ahciem.c Makefile, usr/src/uts/common/io/sata/adapters/ahci ahci.c

9815 Want basic AHCI enclosure services
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Rob Johnston <rob.johnston at joyent.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 9a48f6cusr/src/uts/common/io/usb/hcd/ehci ehci_util.c, usr/src/uts/common/sys/usb/hcd/ehci ehci.h

9806 ehci_take_control() can infinite loop due to PCI invalid reads
Reviewed by: Dan McDonald <danmcd at joyent.com>
Reviewed by: Jason King <jason.king at joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney at joyent.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Approved by: Richard Lowe <richlowe at richlowe.net>

Illumos/gate b346eedusr/src/cmd/cmd-inet/usr.sbin/ipqosconf ipqosconf.c, usr/src/man/man3head queue.h.3head Makefile

backout: 9731 uts: update sys/queue.h (needs work)

This reverts commit 8c5d29ab25ca6e74ebaba57fba6b4794fab41f3c.

Illumos/gate 921f410usr/src/boot/lib/libstand tftp.c

9799 libstand: tftp.c cstyle cleanup
Reviewed by: Jason King <jason.king at joyent.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Gergő Mihály Doma <domag02 at gmail.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 4667a9busr/src/boot/lib/libstand tftp.c

9802 libstand: memory leak in tftp_open()
Reviewed by: Sebastian Wiedenroth <wiedi at frubar.net>
Reviewed by: C Fraire <cfraire at me.com>
Reviewed by: Gergő Mihály Doma <domag02 at gmail.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 1bb0ebcusr/src/boot/lib/libstand tftp.c

9795 libstand: re-send ACK for older data packets
Reviewed by: Garrett D'Amore <garrett at damore.org>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 2017dcbusr/src/boot/lib/libstand tftp.c

9789 loader: tftp should not read past file end
Reviewed by: Garrett D'Amore <garrett at damore.org>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 63e2133usr/src/boot/lib/libstand tftp.c

9788 loader: validate tftp_makereq() after we did reset the read
Reviewed by: Jason King <jason.king at joyent.com>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate 75383e3usr/src/cmd/boot/bootadm bootadm.c, usr/src/cmd/boot/scripts create_ramdisk.ksh boot-archive-update.ksh

9627 No longer need 32-bit boot_archive
9628 UFS boot archives are too large
9721 cmd/boot: support cpio boot archive
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Peter Tribble <peter.tribble at gmail.com>
Approved by: Robert Mustacchi <rm at joyent.com>

Illumos/gate c057d31usr/src/uts/intel Makefile

9845 make clobber in uts/intel does attempt to remove debug64/
Reviewed by: Robert Mustacchi <rm at joyent.com>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 047c81dusr/src/uts/common/fs/zfs zvol.c, usr/src/uts/common/io/comstar/lu/stmf_sbd sbd_scsi.c

1700 Add SCSI UNMAP support
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Approved by: Dan McDonald <danmcd at joyent.com>

Illumos/gate 008b34busr/src/common/elfcap elfcap.h elfcap.c, usr/src/uts/common/sys auxv_386.h

9813 isainfo should learn about SHA Instrs
Reviewed by: Dan McDonald <danmcd at joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek at joyent.com>
Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Garrett D'Amore <garrett at damore.org>
Reviewed by: Andy Fiddaman <omnios at citrus-it.co.uk>
Approved by: Richard Lowe <richlowe at richlowe.net>