Re: svn commit: r324941 - in head: lib/libc/sys sys/kern

2017-10-25 Thread Conrad Meyer
Hi Alan, Coverity reports a mismatch between the loop quoted in the context below and the dynamic array size nent. (The mismatch predates your change, due to the invariant nent <= aio_listio_max and aiol_zone sized in terms of aio_listio_max.) CID is 1382114. On Mon, Oct 23, 2017 at 4:12 PM,

svn commit: r325004 - head/share/man/man4

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 23:24:30 2017 New Revision: 325004 URL: https://svnweb.freebsd.org/changeset/base/325004 Log: Fix typo and bump .Dd date. Noticed by: Richard Tector Sponsored by: Netflix Modified: head/share/man/man4/ipmi.4 Modified: head/share/man/man4/ipmi.4

svn commit: r325001 - head

2017-10-25 Thread Bryan Drewery
Author: bdrewery Date: Wed Oct 25 21:46:36 2017 New Revision: 325001 URL: https://svnweb.freebsd.org/changeset/base/325001 Log: Fix native-xtools build to use a proper sysroot. This takes longer but should reliably produce working binaries. The old version linked against system libraries

svn commit: r324999 - head

2017-10-25 Thread Bryan Drewery
Author: bdrewery Date: Wed Oct 25 21:46:30 2017 New Revision: 324999 URL: https://svnweb.freebsd.org/changeset/base/324999 Log: META_MODE: Follow-up r319593: Don't use host headers in a fresh new build. Sponsored by: Dell EMC Isilon Modified: head/Makefile.inc1 Modified:

svn commit: r325000 - head/tools/tools/nanobsd

2017-10-25 Thread Bryan Drewery
Author: bdrewery Date: Wed Oct 25 21:46:33 2017 New Revision: 325000 URL: https://svnweb.freebsd.org/changeset/base/325000 Log: native-xtools: Override proper NXBDESTDIR. The new native-xtools uses 'make toolchain' so overriding DESTDIR as a make argument may interfere with WORLDTMP

svn commit: r325002 - head

2017-10-25 Thread Bryan Drewery
Author: bdrewery Date: Wed Oct 25 21:46:39 2017 New Revision: 325002 URL: https://svnweb.freebsd.org/changeset/base/325002 Log: Cleanup pieces missed in r315057 which made mandoc mandatory Sponsored by: Dell EMC Isilon Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

svn commit: r324998 - head/lib/clang

2017-10-25 Thread Bryan Drewery
Author: bdrewery Date: Wed Oct 25 21:45:55 2017 New Revision: 324998 URL: https://svnweb.freebsd.org/changeset/base/324998 Log: Prefix {TARGET,BUILD}_TRIPLE with LLVM_ to avoid Makefile.inc1 collision. The Makefile.inc1 TARGET_TRIPLE is for specifying which -target is used during the

Re: svn commit: r322951 - head

2017-10-25 Thread Bryan Drewery
On 8/27/17 9:15 AM, Ngie Cooper wrote: > Author: ngie > Date: Sun Aug 27 16:15:37 2017 > New Revision: 322951 > URL: https://svnweb.freebsd.org/changeset/base/322951 > > Log: > Respect MK_TCSH with build-tools and native-xtools > > This helps reduce the WORLDTMP footprint slightly. > >

svn commit: r324996 - head/sys/netinet6

2017-10-25 Thread Kristof Provost
Author: kp Date: Wed Oct 25 19:21:48 2017 New Revision: 324996 URL: https://svnweb.freebsd.org/changeset/base/324996 Log: Evaluate packet size after the firewall had its chance in the ip6 fast path Defer the packet size check until after the firewall has had a look at it. This means

svn commit: r324995 - in head/sys: arm64/include boot/efi/loader boot/efi/loader/arch/amd64

2017-10-25 Thread Emmanuel Vadot
Author: manu Date: Wed Oct 25 18:55:04 2017 New Revision: 324995 URL: https://svnweb.freebsd.org/changeset/base/324995 Log: loader.efi: Make framebuffer commands available for arm64 Move framebuffer.{c,h} to sys/boot/efi/loader and add the efifb related metadata and pass it to the kernel

svn commit: r324994 - in head/sys: dev/liquidio dev/liquidio/base modules

2017-10-25 Thread Sean Bruno
Author: sbruno Date: Wed Oct 25 17:49:17 2017 New Revision: 324994 URL: https://svnweb.freebsd.org/changeset/base/324994 Log: Enable i386 build of the Cavium LiquidIO driver (lio) module. Submitted by: pkannega...@cavium.com (Prasad V Kanneganti) MFC after:1 week Sponsored by:

svn commit: r324993 - head/tests/sys/kern

2017-10-25 Thread John Baldwin
Author: jhb Date: Wed Oct 25 17:23:33 2017 New Revision: 324993 URL: https://svnweb.freebsd.org/changeset/base/324993 Log: Add a test for sending a signal while stepping a thread via PT_STEP. MFC after:1 week Modified: head/tests/sys/kern/ptrace_test.c Modified:

Re: svn commit: r324971 - head/sys/netinet

2017-10-25 Thread Rodney W. Grimes
> On Wed, Oct 25, 2017 at 07:57:14AM -0700, Rodney W. Grimes wrote: > > > New Revision: 324971 > > > URL: https://svnweb.freebsd.org/changeset/base/324971 > > > > > > Log: > > > Fix a bug reported by Felix Weinrank using the libfuzzer on the > > > userland stack. > > > > Please try to say

svn commit: r324992 - head/sys/ufs/ffs

2017-10-25 Thread Mark Johnston
Author: markj Date: Wed Oct 25 17:20:18 2017 New Revision: 324992 URL: https://svnweb.freebsd.org/changeset/base/324992 Log: Make drain_output() use bufobj_wwait(). No functional change intended. Reviewed by: kib MFC after:1 week Differential Revision:

Re: svn commit: r324971 - head/sys/netinet

2017-10-25 Thread Michael Tuexen
> On 25. Oct 2017, at 16:57, Rodney W. Grimes > wrote: > > [ Charset UTF-8 unsupported, converting... ] >> Author: tuexen >> Date: Wed Oct 25 09:12:22 2017 >> New Revision: 324971 >> URL: https://svnweb.freebsd.org/changeset/base/324971 >> >> Log: >> Fix a bug

Re: svn commit: r324971 - head/sys/netinet

2017-10-25 Thread Alexey Dokuchaev
On Wed, Oct 25, 2017 at 07:57:14AM -0700, Rodney W. Grimes wrote: > > New Revision: 324971 > > URL: https://svnweb.freebsd.org/changeset/base/324971 > > > > Log: > > Fix a bug reported by Felix Weinrank using the libfuzzer on the > > userland stack. > > Please try to say what the bug was,

svn commit: r324991 - head/cddl/contrib/opensolaris/lib/libzfs/common

2017-10-25 Thread Alan Somers
Author: asomers Date: Wed Oct 25 16:01:19 2017 New Revision: 324991 URL: https://svnweb.freebsd.org/changeset/base/324991 Log: Fix zpool_read_all_labels when vfs.aio.enable_unsafe=0 Previously, zpool_read_all_labels was trying to do 256KB reads, which are greater than the default MAXPHYS

Re: svn commit: r324983 - in head: lib/libc/sys sys/sys

2017-10-25 Thread Steven Hartland
Personally I would expect the fallback to be reboot as without the ability to power back on remotely e.g. IPMI this could render the machine inaccessible, which is not ideal, thoughts? On 25/10/2017 16:30, Warner Losh wrote: Author: imp Date: Wed Oct 25 15:30:20 2017 New Revision: 324983 URL:

svn commit: r324984 - head/lib/libsysdecode

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:25 2017 New Revision: 324984 URL: https://svnweb.freebsd.org/changeset/base/324984 Log: RB_POWERCYCLE needs to be handled like RB_POWEROFF for decoding. Sponsored by: Netflix Modified: head/lib/libsysdecode/flags.c Modified:

svn commit: r324987 - head/sbin/init

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:40 2017 New Revision: 324987 URL: https://svnweb.freebsd.org/changeset/base/324987 Log: Implement power cycle in init. If SIGWINCH is received, then halt with power cycle. Sponsored by: Netflix Modified: head/sbin/init/init.8

svn commit: r324985 - head/sbin/shutdown

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:30 2017 New Revision: 324985 URL: https://svnweb.freebsd.org/changeset/base/324985 Log: Add power cycle support (-c) to shutdown. Sponsored by: Netflix Modified: head/sbin/shutdown/shutdown.8 head/sbin/shutdown/shutdown.c Modified:

svn commit: r324990 - in head: share/man/man4 sys/dev/ipmi sys/sys

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:53 2017 New Revision: 324990 URL: https://svnweb.freebsd.org/changeset/base/324990 Log: Implement IPMI support for RB_POWRECYCLE Some BMCs support power cycling the chassis via the chassis control command 2 subcommand 2 (ipmitool called it 'chassis

svn commit: r324989 - head/sys/cam/ata

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:48 2017 New Revision: 324989 URL: https://svnweb.freebsd.org/changeset/base/324989 Log: Handle RB_POWERCYCLE in ada driver Allow the disks to be spun down when doing a POWERCYCLE as well as POWEROFF. Sponsored by: Netflix Modified:

svn commit: r324982 - in head/sys/boot/arm: at91 at91/boot0 at91/boot0iic at91/boot0spi at91/boot2 at91/bootiic at91/bootspi at91/libat91 ixp425 ixp425/boot2

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:28:05 2017 New Revision: 324982 URL: https://svnweb.freebsd.org/changeset/base/324982 Log: Remove sys/boot/arm/at91 and ixp425 Remove at91 bootloader. It only worked on AT91RM9200, and only specific boards that were all EOLd 10 years ago. Remove

svn commit: r324981 - in head/sys/boot: . arm/uboot efi i386 mips/beri mips/beri/boot2 mips/uboot powerpc/boot1.chrp powerpc/kboot powerpc/ofw powerpc/ps3 powerpc/uboot sparc64

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:27:58 2017 New Revision: 324981 URL: https://svnweb.freebsd.org/changeset/base/324981 Log: Move BINDIR definition to defs.mk, and override where it isn't /boot (those files already do that so weren't changed). Sponsored by: Netflix Modified:

svn commit: r324988 - head/sys/kern

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:44 2017 New Revision: 324988 URL: https://svnweb.freebsd.org/changeset/base/324988 Log: Handle RB_POWERCYCLE in the MI part of the kernel Signal init with SIGWINCH in shutdown_nice for RB_POWERCYCLE. Sponsored by: Netflix Modified:

svn commit: r324986 - head/sbin/reboot

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:35 2017 New Revision: 324986 URL: https://svnweb.freebsd.org/changeset/base/324986 Log: Add power cycle support to reboot/halt as -c. When -c is specified, the system will be power cycled if the underlying hardware supports it. Otherwise the system will

svn commit: r324983 - in head: lib/libc/sys sys/sys

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:30:20 2017 New Revision: 324983 URL: https://svnweb.freebsd.org/changeset/base/324983 Log: Define RB_POWERCYCLE RB_POWERCYCLE instructs the platform to power off and then power back on a short time later, if that's possible. Otherwise, degrade to the

svn commit: r324977 - head/sbin/nvmecontrol

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:25:55 2017 New Revision: 324977 URL: https://svnweb.freebsd.org/changeset/base/324977 Log: Add nvme_controller_data argument to all print functions. It's desirable to access controler data to inform printing log pages (such as limiting the printing to

svn commit: r324979 - head/tools/boot

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:27:48 2017 New Revision: 324979 URL: https://svnweb.freebsd.org/changeset/base/324979 Log: Do a chdir to SRCTOP/sys/boot before starting the run. This lets one run this script from anywhere, but makes it only work on sys/boot. Sponsored by: Netflix

svn commit: r324980 - head/sys/boot/arm/uboot

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:27:53 2017 New Revision: 324980 URL: https://svnweb.freebsd.org/changeset/base/324980 Log: Use BOOTDIR consistently. We need to include bsd.init.mk early to make this happen. This will cause src.opts.mk to be included, so remove that. This needs to propigate

svn commit: r324978 - head/sbin/nvmecontrol

2017-10-25 Thread Warner Losh
Author: imp Date: Wed Oct 25 15:26:03 2017 New Revision: 324978 URL: https://svnweb.freebsd.org/changeset/base/324978 Log: Report only the valid slots in the firmware log page. Printing the entire log page is causing confusion over available slots. Report only those slots that are valid.

Re: svn commit: r324971 - head/sys/netinet

2017-10-25 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: tuexen > Date: Wed Oct 25 09:12:22 2017 > New Revision: 324971 > URL: https://svnweb.freebsd.org/changeset/base/324971 > > Log: > Fix a bug reported by Felix Weinrank using the libfuzzer on the > userland stack. Please try to say what

svn commit: r324972 - head/usr.bin/top

2017-10-25 Thread Konstantin Belousov
Author: kib Date: Wed Oct 25 11:44:46 2017 New Revision: 324972 URL: https://svnweb.freebsd.org/changeset/base/324972 Log: Limit top display of total swap size by the max swap size system can handle. Keep both pagesize and the new swap_maxpages in the static variables to save sysctl

svn commit: r324971 - head/sys/netinet

2017-10-25 Thread Michael Tuexen
Author: tuexen Date: Wed Oct 25 09:12:22 2017 New Revision: 324971 URL: https://svnweb.freebsd.org/changeset/base/324971 Log: Fix a bug reported by Felix Weinrank using the libfuzzer on the userland stack. MFC after:3 days Modified: head/sys/netinet/sctp_auth.c Modified: