svn commit: r334276 - head/lib/libc/string

2018-05-27 Thread Marcelo Araujo
Author: araujo Date: Mon May 28 06:01:02 2018 New Revision: 334276 URL: https://svnweb.freebsd.org/changeset/base/334276 Log: Remove unnecessary free(string) from EXAMPLES. Reported by: se Modified: head/lib/libc/string/strsep.3 Modified: head/lib/libc/string/strsep.3 =

svn commit: r334275 - head/lib/libc/string

2018-05-27 Thread Marcelo Araujo
Author: araujo Date: Mon May 28 05:01:42 2018 New Revision: 334275 URL: https://svnweb.freebsd.org/changeset/base/334275 Log: Update strsep(3) EXAMPLE section regards the usage of assert(3). As many people has pointed out, using assert(3) shall be not the best approach to verify if strdup

svn commit: r334274 - head/sys/vm

2018-05-27 Thread Alan Cox
Author: alc Date: Mon May 28 04:38:10 2018 New Revision: 334274 URL: https://svnweb.freebsd.org/changeset/base/334274 Log: Eliminate duplicate assertions. We assert at the start of vm_fault_hold() that the map entry is wired if the caller passes the flag VM_FAULT_WIRE. Eliminate the same as

Re: Deorbiting i386

2018-05-27 Thread thor
On 05/28/18 06:15, Maxim Sobolev wrote: be surprised how many software is technically compiling and all that, but has some weird runtime issues with either byte order or unaligned memory accesses. Every single processor migration allows you to get rid of: 1) The software that is technically...

svn commit: r334273 - head/sys/cam/nvme

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 03:14:36 2018 New Revision: 334273 URL: https://svnweb.freebsd.org/changeset/base/334273 Log: cam nvme: fix array overrun Fix a classic array overrun where the index could be one past the end. Reported by: Coverity CID: 1356596 MFC after:

svn commit: r334272 - head/usr.sbin/bhyve

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 03:09:09 2018 New Revision: 334272 URL: https://svnweb.freebsd.org/changeset/base/334272 Log: bhyve: guarantee NUL termination Use strlcpy to guarantee NUL termination of the path to a virtio console socket. Reported by: Coverity CID: 136

svn commit: r334271 - head/usr.sbin/bhyve

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 03:05:01 2018 New Revision: 334271 URL: https://svnweb.freebsd.org/changeset/base/334271 Log: bhyve: fix small memory leak in virtio console Reported by: Coverity CID: 1363284 Sponsored by: Dell EMC Modified: head/usr.sbin/bhyve/pci_virtio_

svn commit: r334270 - head/usr.bin/logger

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 02:40:06 2018 New Revision: 334270 URL: https://svnweb.freebsd.org/changeset/base/334270 Log: logger: fix memory leak and use-after-free This one call to getaddrinfo() did not adhere to the common idiom of storing the result into a second res0 variable, w

svn commit: r334269 - head/sys/dev/drm

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 02:34:38 2018 New Revision: 334269 URL: https://svnweb.freebsd.org/changeset/base/334269 Log: drm: fix memory leak on error path Reported by: Coverity CID: 1368753 MFC after:3 days Sponsored by: Dell EMC Modified: head/sys/dev/drm/drm

svn commit: r334268 - head/lib/libc/gen

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 02:31:49 2018 New Revision: 334268 URL: https://svnweb.freebsd.org/changeset/base/334268 Log: fts_stat: fix buffer overrun on error path Reported by: Coverity CID: 1375582 MFC after:1 week Sponsored by: Dell EMC Modified: head/lib/lib

Re: Deorbiting i386

2018-05-27 Thread Maxim Sobolev
P.S.. Another interesting thing to consider is that original Intel patents on i386 are going to expire sooner or later. Give it some time and we might see completely open source i386 IPs one day, free for anyone to grab and use. By today's standards i386 is rather trivial platform with many indepen

Re: Deorbiting i386

2018-05-27 Thread Maxim Sobolev
Well, strip extra 32 bits, use slower memory and busses (extra decoding logic etc). Voila, you suddenly have platform that can run 99% of code in wild today with just few hundred mW of power. Try that with arm32, you would be surprised how many software is technically compiling and all that, but ha

svn commit: r334267 - head/lib/libprocstat

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 02:10:35 2018 New Revision: 334267 URL: https://svnweb.freebsd.org/changeset/base/334267 Log: libprocstat: fix memory leak Free the rlimits array on the happy path in procstat_getrlimit_core(). Reported by: Coverity CID: 1373328 Sponsored

svn commit: r334266 - head/sys/powerpc/powernv

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Mon May 28 01:59:48 2018 New Revision: 334266 URL: https://svnweb.freebsd.org/changeset/base/334266 Log: Make ALT_BREAK_TO_DEBUGGER work with OPAL console Match other consoles by using the higher level cngetc() in the interrupt handler, so that kdb_alt_break() can c

svn commit: r334265 - head/usr.sbin/tcpdrop

2018-05-27 Thread Eric van Gyzen
Author: vangyzen Date: Mon May 28 01:58:49 2018 New Revision: 334265 URL: https://svnweb.freebsd.org/changeset/base/334265 Log: tcpdrop: ensure NUL termination of a string strncpy did not guarantee NUL termination of the "stack" string. Use strlcpy instead. While I'm here, avoid unnecess

svn commit: r334264 - head/sys/powerpc/booke

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Mon May 28 00:19:08 2018 New Revision: 334264 URL: https://svnweb.freebsd.org/changeset/base/334264 Log: Print the full-width pointer values in hex. PRI0ptrX is used to print a zero-padded hex value of the architecture's bitness, so on 64-bit architectures it'll pr

svn commit: r334262 - head/cddl/usr.sbin/dwatch

2018-05-27 Thread Devin Teske
Author: dteske Date: Sun May 27 22:32:45 2018 New Revision: 334262 URL: https://svnweb.freebsd.org/changeset/base/334262 Log: dwatch(1): Eliminate ANSI dimming in developer mode "Developer mode" (passing of "-dev" options), which enables debugging features on compilation error, used to di

svn commit: r334261 - head/cddl/usr.sbin/dwatch

2018-05-27 Thread Devin Teske
Author: dteske Date: Sun May 27 22:27:47 2018 New Revision: 334261 URL: https://svnweb.freebsd.org/changeset/base/334261 Log: dwatch(1): Guard against error when given -t "*..." dwatch allows you to customnize the predicate (condition) for when information is displayed. The DTrace syntax

svn commit: r334260 - head/sys/powerpc/powerpc

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Sun May 27 20:36:43 2018 New Revision: 334260 URL: https://svnweb.freebsd.org/changeset/base/334260 Log: Match style of the other prototypes, and don't name the argument. Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c

Re: svn commit: r334257 - head/share/man/man4

2018-05-27 Thread Devin Teske
> On May 27, 2018, at 12:44 PM, Cy Schubert wrote: > > In message <201805271843.w4rihfxq066...@repo.freebsd.org>, Devin Teske > writes: >> Author: dteske >> Date: Sun May 27 18:43:14 2018 >> New Revision: 334257 >> URL: https://svnweb.freebsd.org/changeset/base/334257 >> >> Log: >> Add manual

svn commit: r334259 - in head/sys/powerpc: include powerpc

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Sun May 27 20:24:24 2018 New Revision: 334259 URL: https://svnweb.freebsd.org/changeset/base/334259 Log: Stop idle threads on power9 in the idle task until an interrupt. This reduces the CPU cycle wastage on power9, which is SMT4. Any idle thread that's spinning is

Re: svn commit: r334257 - head/share/man/man4

2018-05-27 Thread Cy Schubert
In message <201805271843.w4rihfxq066...@repo.freebsd.org>, Devin Teske writes: > Author: dteske > Date: Sun May 27 18:43:14 2018 > New Revision: 334257 > URL: https://svnweb.freebsd.org/changeset/base/334257 > > Log: > Add manual page for the sctp DTrace provider. > > Sponsored by: Sm

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

2018-05-27 Thread Devin Teske
Author: dteske Date: Sun May 27 19:27:34 2018 New Revision: 334258 URL: https://svnweb.freebsd.org/changeset/base/334258 Log: Remove "All rights reserved" from dtrace_sctp(4) comments Copied from dtrace_tcp(4) Reviewed by: rgrimes Sponsored by: Smule, Inc. Modified: head/share/ma

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

2018-05-27 Thread Devin Teske
Author: dteske Date: Sun May 27 18:43:14 2018 New Revision: 334257 URL: https://svnweb.freebsd.org/changeset/base/334257 Log: Add manual page for the sctp DTrace provider. Sponsored by: Smule, Inc. Added: head/share/man/man4/dtrace_sctp.4 (contents, props changed) Modified: head/shar

svn commit: r334256 - head/usr.sbin/pmcstat

2018-05-27 Thread Matt Macy
Author: mmacy Date: Sun May 27 17:49:27 2018 New Revision: 334256 URL: https://svnweb.freebsd.org/changeset/base/334256 Log: pmcstat: suppress uninitialized warning of event Modified: head/usr.sbin/pmcstat/pmcstat.c Modified: head/usr.sbin/pmcstat/pmcstat.c ==

Re: svn commit: r334054 - in head: sys/kern sys/netipsec tools/tools/crypto usr.bin/netstat

2018-05-27 Thread Kirill Ponomarev
On 05/27, Kirill Ponomarev wrote: > > Breaks kernel build with "nooption IPSEC": > > > > ld: error: undefined symbol: vnet_entry_ipsec4stat > > >>> referenced by key.c:933 (/usr/src/sys/netipsec/key.c:933) > > >>> key.o:(key_allocsp) > > > > ld: error: undefined symbol: vnet_entry_i

Re: svn commit: r334054 - in head: sys/kern sys/netipsec tools/tools/crypto usr.bin/netstat

2018-05-27 Thread Kirill Ponomarev
On 05/25, Jan Beich wrote: > Fabien Thomas writes: > > > + IPSECSTAT_INC(ips_spdcache_hits); > > + > > + SPDCACHE_UNLOCK(hashv); > > + goto out; > > + } > > + > > + IPSECSTAT_INC(ips_spdcache_misses); > > Breaks kernel build with "nooption IPSEC": > > ld: error

svn commit: r334254 - head/etc/rc.d

2018-05-27 Thread Edward Tomasz Napierala
Author: trasz Date: Sun May 27 10:48:21 2018 New Revision: 334254 URL: https://svnweb.freebsd.org/changeset/base/334254 Log: Make the cfumass rc script support USB template 10. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/etc/rc.d/cfumass Modified: head/et