svn commit: r332091 - stable/11/sys/vm

2018-04-06 Thread Konstantin Belousov
Author: kib Date: Fri Apr 6 09:25:08 2018 New Revision: 332091 URL: https://svnweb.freebsd.org/changeset/base/332091 Log: MFC r331760: Make vm_map_max/min/pmap KBI stable. Modified: stable/11/sys/vm/vm_map.c stable/11/sys/vm/vm_map.h Directory Properties: stable/11/ (props changed)

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

2018-04-06 Thread Roger Pau Monné
On Fri, Apr 06, 2018 at 03:12:08AM +1000, Bruce Evans wrote: > 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é wrot

Re: svn commit: r332012 - in vendor/opencsd: . dist dist/decoder dist/decoder/build dist/decoder/build/linux dist/decoder/build/linux/rctdl_c_api_lib dist/decoder/build/linux/ref_trace_decode_lib dist

2018-04-06 Thread Ruslan Bukin
On Wed, Apr 04, 2018 at 09:11:29AM -0700, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > On Wed, Apr 04, 2018 at 08:02:04AM -0700, Rodney W. Grimes wrote: > > > > Author: br > > > > Date: Wed Apr 4 12:33:46 2018 > > > > New Revision: 332012 > > > > URL: https://svnweb.f

svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-06 Thread Roger Pau Monné
Author: royger Date: Fri Apr 6 11:20:06 2018 New Revision: 332092 URL: https://svnweb.freebsd.org/changeset/base/332092 Log: remove GiB/MiB macros from param.h And instead define them in the files where they are used. Requested by: bde Modified: head/sys/amd64/amd64/mp_machdep.c

svn commit: r332093 - stable/11/cddl/contrib/opensolaris/lib/libzfs/common

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 11:42:08 2018 New Revision: 332093 URL: https://svnweb.freebsd.org/changeset/base/332093 Log: MFC r330295: ZFS: fix adding vdevs to very large pools PR: 226096 Modified: stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c Directory

svn commit: r332094 - stable/10/cddl/contrib/opensolaris/lib/libzfs/common

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 11:48:12 2018 New Revision: 332094 URL: https://svnweb.freebsd.org/changeset/base/332094 Log: MFC r330295: ZFS: fix adding vdevs to very large pools PR: 226096 Modified: stable/10/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c Directory

svn commit: r332095 - stable/11/sys/geom

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 12:13:32 2018 New Revision: 332095 URL: https://svnweb.freebsd.org/changeset/base/332095 Log: MFC r330977: g_access: deal with races created by geoms that drop the topology lock PR: 225960 Modified: stable/11/sys/geom/geom.h stable/11/sys/geom/ge

Re: svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-06 Thread Bruce Evans
On Fri, 6 Apr 2018, [UTF-8] Roger Pau Monn?? wrote: Log: remove GiB/MiB macros from param.h And instead define them in the files where they are used. Requested by: bde Thanks, but these files have a negative need for the macros. Modified: head/sys/amd64/amd64/mp_machdep.c ==

svn commit: r332096 - stable/10/sys/geom

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 12:23:59 2018 New Revision: 332096 URL: https://svnweb.freebsd.org/changeset/base/332096 Log: MFC r330977: g_access: deal with races created by geoms that drop the topology lock PR: 225960 Modified: stable/10/sys/geom/geom.h stable/10/sys/geom/ge

svn commit: r332098 - stable/10/sys/i386/i386

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 12:39:47 2018 New Revision: 332098 URL: https://svnweb.freebsd.org/changeset/base/332098 Log: MFC r331761: align i386 cpu_reset() with amd64 version Modified: stable/10/sys/i386/i386/vm_machdep.c Directory Properties: stable/10/ (props changed) Modified: stab

svn commit: r332097 - stable/11/sys/i386/i386

2018-04-06 Thread Andriy Gapon
Author: avg Date: Fri Apr 6 12:39:33 2018 New Revision: 332097 URL: https://svnweb.freebsd.org/changeset/base/332097 Log: MFC r331761: align i386 cpu_reset() with amd64 version Modified: stable/11/sys/i386/i386/vm_machdep.c Directory Properties: stable/11/ (props changed) Modified: stab

svn commit: r332099 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 12:57:01 2018 New Revision: 332099 URL: https://svnweb.freebsd.org/changeset/base/332099 Log: Add RFC 5424 syslog message parsing to syslogd. Syslogd currently uses the RFC 3164 format for its log messages.One limitation of RFC 3164 is that it cannot be used to

svn commit: r332100 - in head: . lib/libc/gen sys/sys

2018-04-06 Thread Ed Schouten
/UPDATING Fri Apr 6 12:57:01 2018(r332099) +++ head/UPDATING Fri Apr 6 13:00:45 2018(r332100) @@ -51,6 +51,45 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW: ** SPECIAL WARNING: ** +20180406: + In

Re: svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-06 Thread Conrad Meyer
I like something like this for clarity. But I don't see any reason for these function-like macros instead of the more general definition of an SI prefix constant multiple. A multiple works with numeric literals and variables alike. Something like: #define GiB ((size_t)1 << 30) my_foo = 15 * GiB

svn commit: r332101 - head/sys/netpfil/pf

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 15:01:45 2018 New Revision: 332101 URL: https://svnweb.freebsd.org/changeset/base/332101 Log: pf: Improve ioctl validation for DIOCRADDTABLES and DIOCRDELTABLES The DIOCRADDTABLES and DIOCRDELTABLES ioctls can process a number of tables at a time, and as such t

svn commit: r332102 - in head: etc/mtree tests/sys/netpfil/pf tests/sys/netpfil/pf/ioctl

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 15:03:48 2018 New Revision: 332102 URL: https://svnweb.freebsd.org/changeset/base/332102 Log: pf tests: Basic ioctl validation tests Validate the DIOCRADDTABLES and DIOCRDELTABLES ioctls with invalid size values. All of these requests should fail. MFC afte

svn commit: r332103 - stable/11/sys/compat/linuxkpi/common/src

2018-04-06 Thread Mark Johnston
Author: markj Date: Fri Apr 6 15:09:30 2018 New Revision: 332103 URL: https://svnweb.freebsd.org/changeset/base/332103 Log: MFC r331934: Wrap long lines. Modified: stable/11/sys/compat/linuxkpi/common/src/linux_schedule.c Directory Properties: stable/11/ (props changed) Modified: stab

svn commit: r332104 - head/sys/dev/ipmi

2018-04-06 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 6 15:15:21 2018 New Revision: 332104 URL: https://svnweb.freebsd.org/changeset/base/332104 Log: In cases where an application issues certain IPMI commands at a high enough rate, the IPMI code can print large numbers of messages to the console, such as: ipmi0: K

svn commit: r332105 - head/sys/arm/allwinner

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 15:17:09 2018 New Revision: 332105 URL: https://svnweb.freebsd.org/changeset/base/332105 Log: aw_sid(4): Use prctl read for all reads when it's required It was later found that some operation on the OrangePi one will cause direct accesses to the eeprom to r

svn commit: r332106 - head/stand/lua

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 15:19:48 2018 New Revision: 332106 URL: https://svnweb.freebsd.org/changeset/base/332106 Log: lualoader: Fix menu skipping with loader.conf(5) vars Earlier efforts to stop loading the menu broke the ability to skip the menu with, e.g., beastie_disable in lo

svn commit: r332107 - in head/sys: net netpfil/pf

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 15:54:30 2018 New Revision: 332107 URL: https://svnweb.freebsd.org/changeset/base/332107 Log: pf: Improve ioctl validation for DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS and DIOCRSETTFLAGS These ioctls can process a number of items at a time, which puts us a

svn commit: r332108 - head/tests/sys/netpfil/pf/ioctl

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 15:57:20 2018 New Revision: 332108 URL: https://svnweb.freebsd.org/changeset/base/332108 Log: pf tests: Basic ioctl validation for DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS and DIOCRSETTFLAGS Validate the DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS and

Re: svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-06 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: royger > Date: Fri Apr 6 11:20:06 2018 > New Revision: 332092 > URL: https://svnweb.freebsd.org/changeset/base/332092 > > Log: > remove GiB/MiB macros from param.h > > And instead define them in the files where they are used. It would

svn commit: r332109 - in head/sys: amd64/amd64 x86/x86

2018-04-06 Thread Roger Pau Monné
Author: royger Date: Fri Apr 6 16:22:14 2018 New Revision: 332109 URL: https://svnweb.freebsd.org/changeset/base/332109 Log: x86: fix trampoline memory allocation after r332073 Add the missing breaks in the for loops, in order to exit the loop when a suitable entry is found. Also sw

svn commit: r332110 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 16:24:03 2018 New Revision: 332110 URL: https://svnweb.freebsd.org/changeset/base/332110 Log: Properly respect the passed in hostname for RFC 5424 messages. Only override the hostname in case none is provided or when remote hostnames should be ignored. Modifie

svn commit: r332111 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 16:26:46 2018 New Revision: 332111 URL: https://svnweb.freebsd.org/changeset/base/332111 Log: Remove some places where error messages are prefixed with "syslogd". Due to using RFC 5424, the application name is stored in a dedicated field. It can simply be passe

svn commit: r332112 - stable/11/usr.bin/dtc

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 16:45:00 2018 New Revision: 332112 URL: https://svnweb.freebsd.org/changeset/base/332112 Log: MFC r320160: dtc: Update to upstream 917526 - Add missing "typename" in divmod's "using" of binary_operator_base::result. Modified: stable/11/usr.bin/dtc/inp

svn commit: r332113 - in stable/11/sys/modules: i2c/iicbus i2c/isl spi/at45d spi/mx25l spi/spibus

2018-04-06 Thread Ian Lepore
Author: ian Date: Fri Apr 6 16:48:07 2018 New Revision: 332113 URL: https://svnweb.freebsd.org/changeset/base/332113 Log: MFC r331868: Add opt_platform.h for several modules that have #ifdef FDT in the source. Submitted by: Andre Albsmeier PR: 227322 227323 Modified:

svn commit: r332114 - head/sys/netinet

2018-04-06 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 6 16:48:11 2018 New Revision: 332114 URL: https://svnweb.freebsd.org/changeset/base/332114 Log: Check that in_pcbfree() is only called once for each PCB. If that assumption is violated, "bad things" could follow. I believe such an assert would have detected som

svn commit: r332115 - in stable/11/stand: . arm/loader defaults forth mips/uboot

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 16:59:58 2018 New Revision: 332115 URL: https://svnweb.freebsd.org/changeset/base/332115 Log: MFC r330005-r330007, r330021, r330029, r330622, r331207: Solo loader.conf(5) r330005: Go back to one loader.conf We really only need one loader.conf. The othe

svn commit: r332116 - in stable/11: etc/mtree stand/defaults

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 17:04:21 2018 New Revision: 332116 URL: https://svnweb.freebsd.org/changeset/base/332116 Log: MFC r331212,r331213: Move /boot/overlays to /boot/dtb/overlays r331212: Move /boot/overlays to /boot/dtb/overlays The former is fairly vague; these are FDT over

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

2018-04-06 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 6 17:06:22 2018 New Revision: 332117 URL: https://svnweb.freebsd.org/changeset/base/332117 Log: Pat the watchdog less while producing a coredump. Prior to this change, we patted the watchdog approximately once per 4KB page of memory. After this change, we pat the

svn commit: r332118 - head/usr.sbin/syslogd

2018-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 17:16:50 2018 New Revision: 332118 URL: https://svnweb.freebsd.org/changeset/base/332118 Log: Push RFC 5424 message format from logmsg() into fprintlog(). Now that all of parsemsg() parses both RFC 3164 and 5424 messages and hands them to logmsg(), alter the la

svn commit: r332119 - in head/lib/libc: amd64/sys gen i386/sys powerpc/sys powerpc64/sys sparc64/sys

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 17:17:34 2018 New Revision: 332119 URL: https://svnweb.freebsd.org/changeset/base/332119 Log: Remove caching from getlogin(2). This caching has existed since the CSRG import, but serves no obvious purpose. Sure, setlogin() is called rarely, but calls to get

svn commit: r332120 - head/sys/netinet

2018-04-06 Thread Jonathan T. Looney
Author: jtl Date: Fri Apr 6 17:20:37 2018 New Revision: 332120 URL: https://svnweb.freebsd.org/changeset/base/332120 Log: If a user closes the socket before we call tcp_usr_abort(), then tcp_drop() may unlock the INP. Currently, tcp_usr_abort() does not check for this case, which results i

svn commit: r332121 - head

2018-04-06 Thread Brooks Davis
sigreturn # 20180405 r332080 shmat -.for f in fstat fstatat fstatfs getdirentries getfsstat shmat sigreturn statfs +# 20180406 r332119 setlogin +.for f in fstat fstatat fstatfs getdirentries getfsstat setlogin shmat sigreturn statfs .if exists(${OBJTOP}/lib/libc/.depend.${f}.o) @if

svn commit: r332122 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux amd64/linux32 arm/arm arm64/arm64 cam/scsi compat/freebsd32 compat/ia32 compat/linux conf dev/aac dev/aacraid dev/acpica dev/at...

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 17:35:35 2018 New Revision: 332122 URL: https://svnweb.freebsd.org/changeset/base/332122 Log: Move most of the contents of opt_compat.h to opt_global.h. opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may

New study: the best & worst states at managing debt

2018-04-06 Thread Neha Chhabdiya
Hi there, Debt is a major issue many Americans face today and we wanted to find out where people are faring the worst. I wanted to share this new analysis from Credible because you’ve touched on debt in the past. Here are a few highlights of the best and worst states at managing debt:

svn commit: r332123 - in stable/11: lib/libefivar usr.sbin/efidp usr.sbin/efivar

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:10:38 2018 New Revision: 332123 URL: https://svnweb.freebsd.org/changeset/base/332123 Log: MFC efivar changes: r321429, r323056-r323057, r323066, r323259-r323260, r323519, r325684, r326050-r326051, r326231, r326287, r326457-r326459, r326472, r326658, r32680

svn commit: r332125 - in stable/11/share: examples/etc mk

2018-04-06 Thread Jung-uk Kim
Author: jkim Date: Fri Apr 6 18:23:42 2018 New Revision: 332125 URL: https://svnweb.freebsd.org/changeset/base/332125 Log: MFC: r314875, r331963 Catch up with Clang 6.0. Modified: stable/11/share/examples/etc/make.conf stable/11/share/mk/bsd.cpu.mk Directory Properties: stable/11/

svn commit: r332126 - in stable/11/usr.sbin: . efibootmgr

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:25:03 2018 New Revision: 332126 URL: https://svnweb.freebsd.org/changeset/base/332126 Log: MFC efibootmgr: r326725-r326728, r326771, r326800-r326804, r326806, r327163 r327572-r327573, r327610-r327611, r327877, r331069 r326725: Import Netflix's efiboot

Re: svn commit: r327954 - in head/sys: amd64/conf conf dev/acpica vm x86/acpica

2018-04-06 Thread John Baldwin
On Sunday, April 01, 2018 01:35:45 PM Ian Lepore wrote: > On Sun, 2018-01-14 at 03:36 +, Jeff Roberson wrote: > > Author: jeff > > Date: Sun Jan 14 03:36:03 2018 > > New Revision: 327954 > > URL: https://svnweb.freebsd.org/changeset/base/327954 > > > > Log: > > Move VM_NUMA_ALLOC and DEVICE_

Re: svn commit: r332090 - head/stand/i386

2018-04-06 Thread John Baldwin
On Friday, April 06, 2018 02:57:58 AM Ed Maste wrote: > 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 handl

Re: svn commit: r331838 - in stable/11: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/BlocksRuntime contrib/compiler-rt/lib/asan contrib/compiler-rt/

2018-04-06 Thread John Baldwin
On Monday, April 02, 2018 12:27:47 PM Ed Maste wrote: > On 31 March 2018 at 14:41, Mark Linimon wrote: > This is the most important point of this discussion: we do need to > ensure there's good communication and coordination between teams where > dependencies like this exist. I'll take the blame h

Re: svn commit: r332090 - head/stand/i386

2018-04-06 Thread Warner Losh
On Fri, Apr 6, 2018 at 11:54 AM, John Baldwin wrote: > On Friday, April 06, 2018 02:57:58 AM Ed Maste wrote: > > 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 i

svn commit: r332127 - in stable/11/stand/efi: include libefi loader

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:38:25 2018 New Revision: 332127 URL: https://svnweb.freebsd.org/changeset/base/332127 Log: MFC r329268, r329517 r329268: efi: Only scan the BLKIO MEDIA once Scan only the BLOCK IO MEDIA once instead of each time for each type of device (fd, cd and

svn commit: r332128 - in stable/11/stand: . common efi/libefi efi/loader i386/loader sparc64/loader userboot/userboot

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:40:24 2018 New Revision: 332128 URL: https://svnweb.freebsd.org/changeset/base/332128 Log: MFC r329725, r329831 r329725: Consolidate three copies of ZFS commands into a central location. There's no reason to have multiple copies of lszfs and reloa

svn commit: r332129 - stable/11

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:48:10 2018 New Revision: 332129 URL: https://svnweb.freebsd.org/changeset/base/332129 Log: Record-only MFC of r329269 and r329418 r329269 was a style(9) cleanup that had a functional side-effect. r329418 reverted it while benno regrouped to fight the for

svn commit: r332130 - in stable/11/stand/i386: boot2 loader

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 18:55:02 2018 New Revision: 332130 URL: https://svnweb.freebsd.org/changeset/base/332130 Log: MFC r329726, r329737, r329740 r329726: Honor settings for including / excluding cd9660, ufs, ext2fs and msdos. The Makefile gives the impression that ext2fs a

svn commit: r332131 - in stable/11: share/mk stand stand/fdt stand/ficl stand/geli stand/libsa stand/mips/uboot stand/uboot/fdt stand/uboot/lib stand/zfs

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:01:08 2018 New Revision: 332131 URL: https://svnweb.freebsd.org/changeset/base/332131 Log: MFC r329345: Eliminate bsd.stand.mk and -fPIC 32-bit intel builds OK. We don't really need a bsd.stand.mk, and it was causing a -fPIC for the toolchain to be added

svn commit: r332132 - stable/11/stand/common

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:10:11 2018 New Revision: 332132 URL: https://svnweb.freebsd.org/changeset/base/332132 Log: MFC r329745: load_elf.c: Use consistent indentation As noted in D14267 load_elf.c has a variety of indentation styles. Move to standard 8 column hard tab indents,

svn commit: r332133 - head/sys/conf

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 19:11:22 2018 New Revision: 332133 URL: https://svnweb.freebsd.org/changeset/base/332133 Log: Add an unused _COMPAT_LINUX32 option to ensure opt_compat.h exists on platforms without COMPAT_LINUX32. Reported by: kib Modified: head/sys/conf/options Modif

svn commit: r332134 - stable/11/stand/sparc64/loader

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:11:58 2018 New Revision: 332134 URL: https://svnweb.freebsd.org/changeset/base/332134 Log: MFC r329758: Fix compilation with LOADER_DEBUG defined after r329725. Modified: stable/11/stand/sparc64/loader/main.c Directory Properties: stable/11/ (props chang

svn commit: r332135 - in stable/11: contrib/compiler-rt/lib/builtins include stand sys/arm/include sys/arm64/include sys/mips/include sys/powerpc/include sys/riscv/include sys/sparc64/include sys/s...

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:17:59 2018 New Revision: 332135 URL: https://svnweb.freebsd.org/changeset/base/332135 Log: MFC r329859,r329860: Float protection in stand r329859: Do not include float interfaces when using libsa. We don't support float in the boot loaders, so don't i

svn commit: r332136 - head/sys/netpfil/pf

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 19:20:45 2018 New Revision: 332136 URL: https://svnweb.freebsd.org/changeset/base/332136 Log: pf: Improve ioctl validation for DIOCIGETIFACES and DIOCXCOMMIT These ioctls can process a number of items at a time, which puts us at risk of overflow in mallocarray(

svn commit: r332137 - head/tests/sys/netpfil/pf/ioctl

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 19:21:29 2018 New Revision: 332137 URL: https://svnweb.freebsd.org/changeset/base/332137 Log: pf tests: Basic ioctl validation for DIOCIGETIFACES and DIOCXCOMMIT Validate the DIOCIGETIFACES and DIOCXCOMMIT ioctls with invalid values. MFC after:1 week Mo

svn commit: r332138 - in stable/11/stand: libsa userboot/userboot zfs

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:21:36 2018 New Revision: 332138 URL: https://svnweb.freebsd.org/changeset/base/332138 Log: MFC r329879, r329892 r329879: libsa: Const-ify buffer argument of write(2) analog r329892: libsa: Change write(2)-alike prototype to match definition B

svn commit: r332139 - head/tests/sys/netpfil/pf/ioctl

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 19:22:22 2018 New Revision: 332139 URL: https://svnweb.freebsd.org/changeset/base/332139 Log: pf tests: Try to provoke a memory leak There was a memory leak in the DIOCRADDTABLES ioctl() code which could be triggered by trying to add tables with the same name.

svn commit: r332140 - stable/11/stand/libsa

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:24:04 2018 New Revision: 332140 URL: https://svnweb.freebsd.org/changeset/base/332140 Log: MFC r330026: libsa: Move MAXWAIT from net.h to net.c It's not a setting that has any effect or use outside of the net.c context. Modified: stable/11/stand/libsa/n

Re: svn commit: r331838 - in stable/11: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/BlocksRuntime contrib/compiler-rt/lib/asan contrib/compiler-rt/

2018-04-06 Thread Oliver Pinter
On 4/6/18, John Baldwin wrote: > On Monday, April 02, 2018 12:27:47 PM Ed Maste wrote: >> On 31 March 2018 at 14:41, Mark Linimon wrote: >> This is the most important point of this discussion: we do need to >> ensure there's good communication and coordination between teams where >> dependencies

svn commit: r332141 - stable/11/stand/libsa

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:34:21 2018 New Revision: 332141 URL: https://svnweb.freebsd.org/changeset/base/332141 Log: MFC r330056: libsa: replace remaining _write callbacks by null_write There are some _write callbacks left only returning EROFS, replace them by null_write. return

svn commit: r332142 - head/sys/netpfil/pf

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 19:36:35 2018 New Revision: 332142 URL: https://svnweb.freebsd.org/changeset/base/332142 Log: pf: Improve ioctl validation Ensure that multiplications for memory allocations cannot overflow, and that we'll not try to allocate M_WAITOK for potentially overly lar

svn commit: r332143 - head/tests/sys/netpfil/pf/ioctl

2018-04-06 Thread Kristof Provost
Author: kp Date: Fri Apr 6 19:37:15 2018 New Revision: 332143 URL: https://svnweb.freebsd.org/changeset/base/332143 Log: pf tests: Basic ioctl validation Basic validation tests for DIOCRADDADDRS, DIOCRDELADDRS, DIOCRSETADDRS, DIOCRGETADDRS, DIOCRGETASTATS, DIOCRCLRASTATS, DIOCRTSTADDRS,

svn commit: r332144 - in stable/11: share/mk stand stand/efi

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:47:07 2018 New Revision: 332144 URL: https://svnweb.freebsd.org/changeset/base/332144 Log: MFC r330077, r330248 r330077: Move EFI up to common makefile. There's no need for all these .if's based on architecture. Sponsored by: Netflix r330248:

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

2018-04-06 Thread Alexander Motin
Author: mav Date: Fri Apr 6 19:47:44 2018 New Revision: 332145 URL: https://svnweb.freebsd.org/changeset/base/332145 Log: Do not fail devices just for errors in descriptor format. MFC after:1 week Sponsored by: iXsystems, Inc. Modified: head/sys/cam/scsi/scsi_cd.c head/sys/cam/s

svn commit: r332146 - head/share/mk

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:49:57 2018 New Revision: 332146 URL: https://svnweb.freebsd.org/changeset/base/332146 Log: Re-sort LOADER options These have become unsorted from everything else. This is desync'd from stable/11 due to some hand-merging that was done there, so the MFC of

svn commit: r332147 - stable/11/stand

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:52:00 2018 New Revision: 332147 URL: https://svnweb.freebsd.org/changeset/base/332147 Log: Revert lua bits that snuck in with r332144 These will get re-MFC'd differently when we import lualoader from head. This is a direct commit to stable/11 Modified:

svn commit: r332148 - in stable/11/stand: efi i386 powerpc sparc64 uboot

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:54:10 2018 New Revision: 332148 URL: https://svnweb.freebsd.org/changeset/base/332148 Log: MFC r330249-r330250 r330249: stand: Makefile SUBDIR cleanup Use SUBDIR.${MK_*} where appropriate. r330248 eliminated most of the offenders, sweep the rest u

svn commit: r332149 - in stable/11/stand/mips/beri: boot2 common loader

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 19:59:27 2018 New Revision: 332149 URL: https://svnweb.freebsd.org/changeset/base/332149 Log: MFC r330788: beri loader: Replace getc/putc with beri_ prefixed versions This matches a convention that we use, at least in ubldr, to prefix getc/putc with a loade

svn commit: r332150 - in stable/11/stand: . common mips/beri/loader powerpc/kboot powerpc/ofw sparc64/loader uboot/common uboot/lib

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 20:24:50 2018 New Revision: 332150 URL: https://svnweb.freebsd.org/changeset/base/332150 Log: MFC r329190, r329315, r330131: metadata load file unification r329190: Unify metadata load files for arm, mips, powerpc, sparc64 Summary: All metadata.c files

svn commit: r332151 - head/sys/net

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 20:26:56 2018 New Revision: 332151 URL: https://svnweb.freebsd.org/changeset/base/332151 Log: ifconf(): correct handling of sockaddrs smaller than struct sockaddr. Portable programs that use SIOCGIFCONF (e.g. traceroute) assume that each pseudo ifreq is of

svn commit: r332152 - in stable/11/stand: ofw/common ofw/libofw powerpc/ofw

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 20:27:55 2018 New Revision: 332152 URL: https://svnweb.freebsd.org/changeset/base/332152 Log: MFC r330365, r330371: OFW changes r330365: Move "common" Open Firmware parts of the loader used only on PowerPC to the powerpc/ subdirectory. These have never us

svn commit: r332153 - stable/11/share/mk

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 20:56:06 2018 New Revision: 332153 URL: https://svnweb.freebsd.org/changeset/base/332153 Log: stable/11: Mark EFI as a broken option on pc98 This is a direct commit to stable/11, due to pc98 removal in head. Modified: stable/11/share/mk/src.opts.mk Modifi

Re: svn commit: r331838 - in stable/11: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/BlocksRuntime contrib/compiler-rt/lib/asan contrib/compiler-rt/

2018-04-06 Thread Dimitry Andric
On 6 Apr 2018, at 21:00, Oliver Pinter wrote: > > On 4/6/18, John Baldwin wrote: >> On Monday, April 02, 2018 12:27:47 PM Ed Maste wrote: >>> On 31 March 2018 at 14:41, Mark Linimon wrote: >>> This is the most important point of this discussion: we do need to >>> ensure there's good communicati

svn commit: r332154 - in stable/11/stand: common efi/boot1 efi/include efi/libefi efi/loader efi/loader/arch/arm ficl/aarch64 ficl/amd64 ficl/arm ficl/i386 ficl/mips ficl/mips64 ficl/powerpc ficl/r...

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 21:37:25 2018 New Revision: 332154 URL: https://svnweb.freebsd.org/changeset/base/332154 Log: MFC r330806-r330815, r330837, r330864, r330883 pc98 changes associated with the named commits are also included in this commit, despite not having been made with t

svn commit: r332155 - stable/11/stand/common

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 21:40:23 2018 New Revision: 332155 URL: https://svnweb.freebsd.org/changeset/base/332155 Log: MFC r331331: Apply r228478 (CTASSERT => _Static_assert()) to bootstrap.h Modified: stable/11/stand/common/bootstrap.h Directory Properties: stable/11/ (props chang

svn commit: r332156 - in stable/11: stand/efi/boot1 stand/efi/include stand/efi/libefi stand/i386/libfirewire sys/dev/firewire

2018-04-06 Thread Kyle Evans
Author: kevans Date: Fri Apr 6 21:50:09 2018 New Revision: 332156 URL: https://svnweb.freebsd.org/changeset/base/332156 Log: MFC r330970, r331067, r331767, r331852, r331858 r330970: libefi: UEFI_BOOT_VAR_GUID duplicates EFI_GLOBAL_VARIABLE Drop UEFI_BOOT_VAR_GUID and use EFI_GLOBAL_

svn commit: r332157 - in head: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel

2018-04-06 Thread John Baldwin
Author: jhb Date: Fri Apr 6 22:03:43 2018 New Revision: 332157 URL: https://svnweb.freebsd.org/changeset/base/332157 Log: Add a way to temporarily suspend and resume virtual CPUs. This is used as part of implementing run control in bhyve's debug server. The hypervisor now maintains a se

Re: svn commit: r332133 - head/sys/conf

2018-04-06 Thread John Baldwin
On Friday, April 06, 2018 07:11:22 PM Brooks Davis wrote: > Author: brooks > Date: Fri Apr 6 19:11:22 2018 > New Revision: 332133 > URL: https://svnweb.freebsd.org/changeset/base/332133 > > Log: > Add an unused _COMPAT_LINUX32 option to ensure opt_compat.h exists on > platforms without COMPAT

svn commit: r332158 - head/sys/net

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 23:25:54 2018 New Revision: 332158 URL: https://svnweb.freebsd.org/changeset/base/332158 Log: Remove the thread argument from ifr_buffer_*() accessors. They are always used in a context where curthread is the correct thread. This makes them more similar to

svn commit: r332159 - in stable/11/sys: net ofed/drivers/infiniband/ulp/ipoib

2018-04-06 Thread Brooks Davis
Author: brooks Date: Fri Apr 6 23:31:47 2018 New Revision: 332159 URL: https://svnweb.freebsd.org/changeset/base/332159 Log: MFC r331648: Improve copy-and-pasted versions of SIOCGIFADDR. The original implementation used a reference to ifr_data and a cast to do the equivalent of acce

svn commit: r332160 - in stable/10/sys: net ofed/drivers/infiniband/ulp/ipoib

2018-04-06 Thread Brooks Davis
Author: brooks Date: Sat Apr 7 00:04:28 2018 New Revision: 332160 URL: https://svnweb.freebsd.org/changeset/base/332160 Log: MFC r331648: Improve copy-and-pasted versions of SIOCGIFADDR. The original implementation used a reference to ifr_data and a cast to do the equivalent of acce

svn commit: r332161 - stable/11/sys/dev/sbni

2018-04-06 Thread Brooks Davis
Author: brooks Date: Sat Apr 7 00:23:49 2018 New Revision: 332161 URL: https://svnweb.freebsd.org/changeset/base/332161 Log: MFC r331651-r331653 r331651: Copy flags over ifr_union directly rather than via casts through ifr_data. No functional change in practice. If the sbni drive

svn commit: r332163 - stable/11/share/man/man5

2018-04-06 Thread Kyle Evans
Author: kevans Date: Sat Apr 7 03:02:07 2018 New Revision: 332163 URL: https://svnweb.freebsd.org/changeset/base/332163 Log: Regenerate src.conf(5) after r332162 This is a direct commit to stable/11 Modified: stable/11/share/man/man5/src.conf.5 Modified: stable/11/share/man/man5/src.co

svn commit: r332162 - stable/11/tools/build/options

2018-04-06 Thread Kyle Evans
Author: kevans Date: Sat Apr 7 02:56:59 2018 New Revision: 332162 URL: https://svnweb.freebsd.org/changeset/base/332162 Log: MFC r330116, r330118, r330251, r330254 r330116: Some missing LOADER_EFI build option descriptions r330118: Add missing punctuation to *_LOADER_EFI descripti

svn commit: r332164 - stable/11/lib/libcapsicum

2018-04-06 Thread Kyle Evans
Author: kevans Date: Sat Apr 7 03:51:19 2018 New Revision: 332164 URL: https://svnweb.freebsd.org/changeset/base/332164 Log: MFC r322324: capsicum_helpers: Add FIODTYPE to default ioctls allowed FIODTYPE will be needed by hexdump(1) to speed up the -s flag on devices that should be able