svn commit: r333482 - head/usr.bin/expand

2018-05-10 Thread Eitan Adler
Author: eadler Date: Fri May 11 06:55:02 2018 New Revision: 333482 URL: https://svnweb.freebsd.org/changeset/base/333482 Log: [expand] add __dead2 annotation to usage Modified: head/usr.bin/expand/expand.c Modified: head/usr.bin/expand/expand.c ===

Re: svn commit: r333477 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src lib/libc/stdlib/jemalloc

2018-05-10 Thread Alexey Dokuchaev
On Fri, May 11, 2018 at 12:32:32AM +, Jason Evans wrote: > New Revision: 333477 > URL: https://svnweb.freebsd.org/changeset/base/333477 > > Log: > Update jemalloc to version 5.1.0. > > [...] > + Bug fixes (most of the issues are only relevant to jemalloc 5.0): > + - Fix a few background t

svn commit: r333481 - head/sys/net

2018-05-10 Thread Matt Macy
Author: mmacy Date: Fri May 11 05:00:40 2018 New Revision: 333481 URL: https://svnweb.freebsd.org/changeset/base/333481 Log: Allow different bridge types to coexist if_bridge has a lot of limitations that make it scale poorly to higher data rates. In my projects/VPC branch I leverage the

svn commit: r333480 - head/sys/kern

2018-05-10 Thread Matt Macy
Author: mmacy Date: Fri May 11 04:54:12 2018 New Revision: 333480 URL: https://svnweb.freebsd.org/changeset/base/333480 Log: epoch(9): fix priority handling, make callback lists pcpu, and other fixes - Lend priority to preempted threads in epoch_wait to handle the case in which we've ha

svn commit: r333479 - head/sys/tests/epoch

2018-05-10 Thread Matt Macy
Author: mmacy Date: Fri May 11 04:47:05 2018 New Revision: 333479 URL: https://svnweb.freebsd.org/changeset/base/333479 Log: Test priority handling in epoch test. - Double the number of test threads to mp_ncpu*2 - Give each thread a different scheduling priority Modified: head/sys/test

Re: svn commit: r333476 - head/sys/net

2018-05-10 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > "Rodney W. Grimes" writes: > > I do no need or want these routes created by this mechanism on my > > FreeBSD based routers, they only ever existed originally to use the > > MTU of the lo0 interface for things that wrongly open an IP address of > > an

Re: svn commit: r333461 - head/sys/amd64/amd64

2018-05-10 Thread Conrad Meyer
On Thu, May 10, 2018 at 8:01 AM, Konstantin Belousov wrote: > Author: kib > Date: Thu May 10 15:01:43 2018 > New Revision: 333461 > URL: https://svnweb.freebsd.org/changeset/base/333461 > > Log: > Make fpusave() and fpurestore() on amd64 ifuncs. > > From now on, linking amd64 kernel requires e

Re: svn commit: r333461 - head/sys/amd64/amd64

2018-05-10 Thread Ed Maste
On 10 May 2018 at 15:38, Konstantin Belousov wrote: > > Yes, I already noted and mjg noted that ifuncs are directed through PLT. > I remember that it was not the case when I did it the first time, but then > both compiler and linker were different. I'm trying to find evidence of non-PLT ifuncs, b

Re: svn commit: r333476 - head/sys/net

2018-05-10 Thread Dag-Erling Smørgrav
"Rodney W. Grimes" writes: > I do no need or want these routes created by this mechanism on my > FreeBSD based routers, they only ever existed originally to use the > MTU of the lo0 interface for things that wrongly open an IP address of > an interface rather than 127.0.0.1. I'm not sure I unders

svn commit: r333478 - head/sys/powerpc/pseries

2018-05-10 Thread Justin Hibbits
Author: jhibbits Date: Fri May 11 02:04:01 2018 New Revision: 333478 URL: https://svnweb.freebsd.org/changeset/base/333478 Log: No need to bzero splpar_vpa entries splpar_vpa is in the BSS, so is already zeroed when the kernel starts up. Tested by:Leandro Lupori Modified: head/s

Re: svn commit: r333461 - head/sys/amd64/amd64

2018-05-10 Thread Bruce Evans
On Thu, 10 May 2018, Konstantin Belousov wrote: On Fri, May 11, 2018 at 03:31:46AM +1000, Bruce Evans wrote: On Thu, 10 May 2018, Konstantin Belousov wrote: Log: Make fpusave() and fpurestore() on amd64 ifuncs. From now on, linking amd64 kernel requires either lld or newer ld.bfd. This b

Re: svn commit: r333476 - head/sys/net

2018-05-10 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > "Rodney W. Grimes" writes: > > "Dag-Erling Sm?rgrav" writes: > > > In ifa_maintain_loopback_route(), don't needlessly log an error if we > > > either failed to add a route because it already existed or failed to > > > remove one because it did not.

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Ed Maste
On 10 May 2018 at 20:38, Warner Losh wrote: > > It's a shame we can't get a link-time error if a too-old ld is used rather > than silent failure. That's what this commit does: +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" +.error amd64 kernel requires linker ifunc support +.en

Re: svn commit: r333476 - head/sys/net

2018-05-10 Thread Dag-Erling Smørgrav
"Rodney W. Grimes" writes: > "Dag-Erling Smørgrav" writes: > > In ifa_maintain_loopback_route(), don't needlessly log an error if we > > either failed to add a route because it already existed or failed to > > remove one because it did not. We still return an error code, though. > Those are the

Re: svn commit: r333476 - head/sys/net

2018-05-10 Thread Rodney W. Grimes
> Author: des > Date: Fri May 11 00:19:49 2018 > New Revision: 333476 > URL: https://svnweb.freebsd.org/changeset/base/333476 > > Log: > Slight cleanup of interface event logging. > > Make if_printf() use vlog() instead of vprintf(). This means it can no > longer return the number of cha

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Warner Losh
On Thu, May 10, 2018 at 6:13 PM, Andrew Gallatin wrote: > On 05/10/18 20:11, Ed Maste wrote: > >> On 10 May 2018 at 20:00, Andrew Gallatin wrote: >> >>> >>> Unfortunately, it looks like this method will get blown away by an >>> installworld: >>> >> >> Ah. You can set WITH_LLD_IS_LD in /etc/src.c

svn commit: r333477 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src lib/libc/stdlib/jemalloc

2018-05-10 Thread Jason Evans
Author: jasone Date: Fri May 11 00:32:31 2018 New Revision: 333477 URL: https://svnweb.freebsd.org/changeset/base/333477 Log: Update jemalloc to version 5.1.0. Added: head/contrib/jemalloc/include/jemalloc/internal/arena_stats.h (contents, props changed) head/contrib/jemalloc/include/jem

svn commit: r333476 - head/sys/net

2018-05-10 Thread Dag-Erling Smørgrav
Author: des Date: Fri May 11 00:19:49 2018 New Revision: 333476 URL: https://svnweb.freebsd.org/changeset/base/333476 Log: Slight cleanup of interface event logging. Make if_printf() use vlog() instead of vprintf(). This means it can no longer return the number of characters printed, as

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Andrew Gallatin
On 05/10/18 20:11, Ed Maste wrote: On 10 May 2018 at 20:00, Andrew Gallatin wrote: Unfortunately, it looks like this method will get blown away by an installworld: Ah. You can set WITH_LLD_IS_LD in /etc/src.conf and installworld will install ld as a symlink to ld.lld, Super! That's the an

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Ed Maste
On 10 May 2018 at 20:00, Andrew Gallatin wrote: > > Unfortunately, it looks like this method will get blown away by an > installworld: Ah. You can set WITH_LLD_IS_LD in /etc/src.conf and installworld will install ld as a symlink to ld.lld, > Would it make sense to just set LD=ld.lld in my and ro

svn commit: r333475 - in head: lib/libkvm lib/libmemstat sys/sys usr.bin/systat usr.sbin/route6d usr.sbin/rtadvd

2018-05-10 Thread Dag-Erling Smørgrav
Author: des Date: Fri May 11 00:01:43 2018 New Revision: 333475 URL: https://svnweb.freebsd.org/changeset/base/333475 Log: Reduce pollution. While includes unconditionally, it is only actually used in code which is conditional on _KERNEL. Make the #include itself conditional as well

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Andrew Gallatin
On 05/10/18 19:14, Ed Maste wrote: On 10 May 2018 at 18:24, Andrew Gallatin wrote: Rather than erroring out, we please just use the appropriate linker? That's my goal, but it's a bit of an involved change and will take some time to make sure we don't introduce new corner cases. I'm sorry that

svn commit: r333474 - in stable/11: etc/pkg sys/conf

2018-05-10 Thread Glen Barber
Author: gjb Date: Thu May 10 23:58:33 2018 New Revision: 333474 URL: https://svnweb.freebsd.org/changeset/base/333474 Log: Rename stable/11 from PRERELEASE to BETA1 as part of the 11.2-RELEASE cycle. Update the default pkg(8) repository to the 'quarterly' branch to prevent further 11.2

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Ed Maste
On 10 May 2018 at 18:24, Andrew Gallatin wrote: > Rather than erroring out, we please just use the appropriate linker? That's my goal, but it's a bit of an involved change and will take some time to make sure we don't introduce new corner cases. I'm sorry that I didn't catch this before the first

Re: svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Andrew Gallatin
On 05/10/18 16:10, Ed Maste wrote: Author: emaste Date: Thu May 10 20:10:02 2018 New Revision: 333470 URL: https://urldefense.proofpoint.com/v2/url?u=https-3A__svnweb.freebsd.org_changeset_base_333470&d=DwIDaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=Ed-falealxPeqc22ehgAUCLh8zlZbibZLSMWJe

Re: svn commit: r333464 - in head/sys/dev/vt: colors hw/vga

2018-05-10 Thread Jean-Sébastien Pédron
On 10.05.2018 19:00, Jean-Sébastien Pédron wrote: > Author: dumbbell > Date: Thu May 10 17:00:33 2018 > New Revision: 333464 > URL: https://svnweb.freebsd.org/changeset/base/333464 > > Log: > vt(4): Use default VGA palette > > ... > > Reviewed by:eadler Oops, sorry, the patch w

svn commit: r333473 - head/release

2018-05-10 Thread Glen Barber
Author: gjb Date: Thu May 10 21:46:58 2018 New Revision: 333473 URL: https://svnweb.freebsd.org/changeset/base/333473 Log: Add a special GCE_LICENSE variable to Makefile.gce, which when set, will include license metadata in the resultant GCE image. GCE_LICENSE is unset by default, as it p

svn commit: r333472 - head/sys/dev/cxgbe

2018-05-10 Thread Navdeep Parhar
Author: np Date: Thu May 10 20:39:04 2018 New Revision: 333472 URL: https://svnweb.freebsd.org/changeset/base/333472 Log: cxgbe(4): Add fields to support configuration of hardware NAT and swapmac (SMAC/DMAC switcheroo) from userspace. Sponsored by: Chelsio Communications Modified: head

svn commit: r333471 - head/stand/common

2018-05-10 Thread Warner Losh
Author: imp Date: Thu May 10 20:27:12 2018 New Revision: 333471 URL: https://svnweb.freebsd.org/changeset/base/333471 Log: Revert r65 Even though we don't use it, it appears something else requires it to be != 0 to work. This breaks tftp boot in loader.efi, so revert until that can

svn commit: r333470 - in head: share/mk sys/conf

2018-05-10 Thread Ed Maste
Author: emaste Date: Thu May 10 20:10:02 2018 New Revision: 333470 URL: https://svnweb.freebsd.org/changeset/base/333470 Log: Error out on attempt to link amd64 kernel with old binutils linker As of r333461 we require ifunc support to link a working amd64 kernel. The default in-tree boots

Re: svn commit: r333461 - head/sys/amd64/amd64

2018-05-10 Thread Konstantin Belousov
On Fri, May 11, 2018 at 03:31:46AM +1000, Bruce Evans wrote: > On Thu, 10 May 2018, Konstantin Belousov wrote: > > > Log: > > Make fpusave() and fpurestore() on amd64 ifuncs. > > > > From now on, linking amd64 kernel requires either lld or newer ld.bfd. > > This breaks building with gcc: > > X

svn commit: r333469 - in head/sys: conf net

2018-05-10 Thread Matt Macy
Author: mmacy Date: Thu May 10 19:13:00 2018 New Revision: 333469 URL: https://svnweb.freebsd.org/changeset/base/333469 Log: Allocate epoch for networking at startup Additionally add CK to include paths for modules Approved by: sbruno@ Modified: head/sys/conf/kmod.mk head/sys/net

svn commit: r333467 - head/contrib/bmake

2018-05-10 Thread Matt Macy
Author: mmacy Date: Thu May 10 17:57:46 2018 New Revision: 333467 URL: https://svnweb.freebsd.org/changeset/base/333467 Log: Revert accidentally commited local change to bmake to prevent debilitating excess system time from poor API usage. Approved by: sbruno@ Modified: head/contrib/b

svn commit: r333466 - in head: contrib/bmake sys/conf sys/kern sys/modules/epoch_test sys/sys sys/tests/epoch

2018-05-10 Thread Matt Macy
Author: mmacy Date: Thu May 10 17:55:24 2018 New Revision: 333466 URL: https://svnweb.freebsd.org/changeset/base/333466 Log: Add simple preempt safe epoch API Read locking is over used in the kernel to guarantee liveness. This API makes it easy to provide livenes guarantees without atomic

Re: svn commit: r333461 - head/sys/amd64/amd64

2018-05-10 Thread Bruce Evans
On Thu, 10 May 2018, Konstantin Belousov wrote: Log: Make fpusave() and fpurestore() on amd64 ifuncs. From now on, linking amd64 kernel requires either lld or newer ld.bfd. This breaks building with gcc: XX cc1: warnings being treated as errors XX ../../../amd64/amd64/fpu.c:195: warning: '

svn commit: r333465 - head/sys/cam/ctl

2018-05-10 Thread Li-Wen Hsu
Author: lwhsu (ports committer) Date: Thu May 10 17:22:04 2018 New Revision: 333465 URL: https://svnweb.freebsd.org/changeset/base/333465 Log: Fix build for platforms using GCC: - Remove unused or dead store variable - Remove unused function ctl_copyin_alloc - Add missing curly brackets

svn commit: r333464 - in head/sys/dev/vt: colors hw/vga

2018-05-10 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Thu May 10 17:00:33 2018 New Revision: 333464 URL: https://svnweb.freebsd.org/changeset/base/333464 Log: vt(4): Use default VGA palette Before this change, the VGA palette was configured to match the shell palette (e.g. color #1 was red). There was one glitch early

svn commit: r333463 - head/sys/dev/vt/colors

2018-05-10 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Thu May 10 16:41:47 2018 New Revision: 333463 URL: https://svnweb.freebsd.org/changeset/base/333463 Log: vt(4): Put for() loop outside switch() in vt_generate_cons_palette() This makes it more logical: 1. It checks the requested color format 2. It fills the pale

svn commit: r333462 - head/sys/netinet6

2018-05-10 Thread Andrew Gallatin
Author: gallatin Date: Thu May 10 16:19:41 2018 New Revision: 333462 URL: https://svnweb.freebsd.org/changeset/base/333462 Log: Fix a panic in the IPv6 multicast code. Use LIST_FOREACH_SAFE in in6m_disconnect() since we're deleting and freeing item from the membership list while travers

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

2018-05-10 Thread Konstantin Belousov
Author: kib Date: Thu May 10 15:01:43 2018 New Revision: 333461 URL: https://svnweb.freebsd.org/changeset/base/333461 Log: Make fpusave() and fpurestore() on amd64 ifuncs. From now on, linking amd64 kernel requires either lld or newer ld.bfd. Reviewed by: jhb (as part of the large pat

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

2018-05-10 Thread Ed Maste
On 10 May 2018 at 09:18, Andrew Gallatin wrote: > On 05/10/18 07:36, Ed Maste wrote: >> >> Author: emaste >> Date: Thu May 10 11:36:16 2018 >> New Revision: 333457 >> URL: ... >> >> Log: >>ANSIfy sys_generic.c > > This breaks the kernel build: > > /usr/src/sys/kern/sys_generic.c:522:1: error:

svn commit: r333460 - head/tools/test/popss

2018-05-10 Thread Konstantin Belousov
Author: kib Date: Thu May 10 13:52:52 2018 New Revision: 333460 URL: https://svnweb.freebsd.org/changeset/base/333460 Log: Add the test program to examine CPU behaviour for pop ss issue CVE-2018-8897. Requested by: emaste Sponsored by: The FreeBSD Foundation MFC after:3 days Adde

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

2018-05-10 Thread Andrew Gallatin
On 05/10/18 07:36, Ed Maste wrote: Author: emaste Date: Thu May 10 11:36:16 2018 New Revision: 333457 URL: https://urldefense.proofpoint.com/v2/url?u=https-3A__svnweb.freebsd.org_changeset_base_333457&d=DwIDaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=Ed-falealxPeqc22ehgAUCLh8zlZbibZLSMWJe

svn commit: r333459 - head/sys/kern

2018-05-10 Thread Andrew Gallatin
Author: gallatin Date: Thu May 10 13:19:42 2018 New Revision: 333459 URL: https://svnweb.freebsd.org/changeset/base/333459 Log: Fix the build after r333457 In r333457, the arguments to kern_pwritev() were accidentally re-ordered as part of ANSIfication, breaking the build. Modified: he

svn commit: r333458 - head/sbin/ipfw

2018-05-10 Thread Andrey V. Elsukov
Author: ae Date: Thu May 10 12:25:01 2018 New Revision: 333458 URL: https://svnweb.freebsd.org/changeset/base/333458 Log: Fix the printing of rule comments. Change uint8_t type of opcode argument to int in the print_opcode() function. Use negative value to print the rest of opcodes, becau

svn commit: r333457 - head/sys/kern

2018-05-10 Thread Ed Maste
Author: emaste Date: Thu May 10 11:36:16 2018 New Revision: 333457 URL: https://svnweb.freebsd.org/changeset/base/333457 Log: ANSIfy sys_generic.c Modified: head/sys/kern/sys_generic.c Modified: head/sys/kern/sys_generic.c =

svn commit: r333456 - head/sys/dev/ena

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:37:54 2018 New Revision: 333456 URL: https://svnweb.freebsd.org/changeset/base/333456 Log: Do not pass header length to the ENA controller Header length is optional hint for the ENA device. Because It is not guaranteed that every packet header will be in the

svn commit: r333455 - head/sys/arm64/conf

2018-05-10 Thread Emmanuel Vadot
Author: manu Date: Thu May 10 09:37:50 2018 New Revision: 333455 URL: https://svnweb.freebsd.org/changeset/base/333455 Log: arm64: Add ALT_BREAK_TO_DEBUGGER to GENERIC It is useful to enter kdb with an escape sequence. While here move the USB_DEBUG with the others debug options and define

svn commit: r333454 - head/sys/dev/ena

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:32:59 2018 New Revision: 333454 URL: https://svnweb.freebsd.org/changeset/base/333454 Log: Skip setting the MTU for ENA if it is not changing On AWS, a network interface can get reinitialized every 30 minutes due to the MTU being (re)set when a new DHCP leas

svn commit: r333453 - head/sys/contrib/ena-com

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:25:51 2018 New Revision: 333453 URL: https://svnweb.freebsd.org/changeset/base/333453 Log: Apply fixes in ena-com * Change ena-com BIT macro to work on unsigned value. To make the shifting operations safer, they should be working on unsigned values.

svn commit: r333452 - vendor-sys/ena-com/1.1.4.5

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:21:49 2018 New Revision: 333452 URL: https://svnweb.freebsd.org/changeset/base/333452 Log: Create 1.1.4.4 tag in ena-com Tag is added after applying fixes to ENA HAL code in r333451. Sponsored by: Amazon.com, Inc. Added: vendor-sys/ena-com/1.1.4.5/

svn commit: r333451 - vendor-sys/ena-com/dist

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:18:26 2018 New Revision: 333451 URL: https://svnweb.freebsd.org/changeset/base/333451 Log: Apply fixes in ena-com * Change ena-com BIT macro to work on unsigned value. To make the shifting operations safer, they should be working on unsigned values.

svn commit: r333450 - head/sys/dev/ena

2018-05-10 Thread Marcin Wojtas
Author: mw Date: Thu May 10 09:06:21 2018 New Revision: 333450 URL: https://svnweb.freebsd.org/changeset/base/333450 Log: Upgrade ENA version to v0.8.1 Submitted by: Michal Krawczyk Obtained from: Semihalf Sponsored by: Amazon, Inc. Modified: head/sys/dev/ena/ena.h Modified: head/s