svn commit: r313274 - head/sys/kern

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 06:51:45 2017 New Revision: 313274 URL: https://svnweb.freebsd.org/changeset/base/313274 Log: sx: add witness support missed in r313272 Modified: head/sys/kern/kern_sx.c Modified: head/sys/kern/kern_sx.c ===

svn commit: r313273 - head/sbin/kldload

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sun Feb 5 05:36:51 2017 New Revision: 313273 URL: https://svnweb.freebsd.org/changeset/base/313273 Log: style(9) cleanup - Delete trailing whitespace - Fix alignment/variable sorting - Delete single-line enclosing braces MFC after:1 week Sponsored by: Dell

svn commit: r313272 - in head/sys: kern sys

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 05:20:29 2017 New Revision: 313272 URL: https://svnweb.freebsd.org/changeset/base/313272 Log: sx: uninline slock/sunlock Shared locking routines explicitly read the value and test it. If the change attempt fails, they fall back to a regular function which woul

svn commit: r313271 - in head/sys: kern sys

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 04:54:20 2017 New Revision: 313271 URL: https://svnweb.freebsd.org/changeset/base/313271 Log: sx: switch to fcmpset Discussed with: jhb Tested by:pho (previous version) Modified: head/sys/kern/kern_sx.c head/sys/sys/sx.h Modified: head/sys/kern

svn commit: r313270 - in head/sys: kern sys

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 04:53:13 2017 New Revision: 313270 URL: https://svnweb.freebsd.org/changeset/base/313270 Log: rwlock: switch to fcmpset Discussed with: jhb Tested by:pho Modified: head/sys/kern/kern_rwlock.c head/sys/sys/rwlock.h Modified: head/sys/kern/kern_r

svn commit: r313269 - in head/sys: kern sys

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 03:26:34 2017 New Revision: 313269 URL: https://svnweb.freebsd.org/changeset/base/313269 Log: mtx: switch to fcmpset The found value is passed to locking routines in order to reduce cacheline accesses. mtx_unlock grows an explicit check for regular unlock

svn commit: r313268 - head/sys/kern

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 03:23:16 2017 New Revision: 313268 URL: https://svnweb.freebsd.org/changeset/base/313268 Log: vfs: use atomic_fcmpset in vfs_refcount_* Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c =

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

2017-02-04 Thread Mateusz Guzik
On Sun, Feb 05, 2017 at 02:16:12AM +, Steven Hartland wrote: > Hi Mateusz could you improve on the commit message as it currently > describes what is changed, which can be obtained from the diff, but > not why? > > I hope on one feels like I'm trying to teach them to suck eggs, as I > know eve

svn commit: r313266 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:47:34 2017 New Revision: 313266 URL: https://svnweb.freebsd.org/changeset/base/313266 Log: Ensure that the DOF string length is divisible by 2. It is an ASCII encoding of a hexadecimal representation of the DOF file used to enable anonymous tracing, so it

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

2017-02-04 Thread Ngie Cooper (yaneurabeya)
> On Feb 4, 2017, at 18:16, Steven Hartland > wrote: > > Hi Mateusz could you improve on the commit message as it currently describes > what is changed, which can be obtained from the diff, but not why? > > I hope on one feels like I'm trying to teach them to suck eggs, as I know > everyone

svn commit: r313265 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:45:35 2017 New Revision: 313265 URL: https://svnweb.freebsd.org/changeset/base/313265 Log: Search for _DTRACE_VERSION in sys/sdt.h rather than unistd.h. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.incl

svn commit: r313264 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:44:48 2017 New Revision: 313264 URL: https://svnweb.freebsd.org/changeset/base/313264 Log: Avoid using Sun compiler-specific flags. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh Modified:

svn commit: r313263 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:44:08 2017 New Revision: 313263 URL: https://svnweb.freebsd.org/changeset/base/313263 Log: Fix a double free of libelf data buffers in the USDT link code. libdtrace needs to append to the input object files' string and symbol tables. Currently it does so

svn commit: r313262 - in head: cddl/contrib/opensolaris/lib/libdtrace/common sys/cddl/contrib/opensolaris/uts/common/dtrace sys/cddl/contrib/opensolaris/uts/common/sys sys/cddl/dev/dtrace

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:39:12 2017 New Revision: 313262 URL: https://svnweb.freebsd.org/changeset/base/313262 Log: Use PC-relative relocations for USDT probe sites on i386 and amd64. When recording probe site addresses in the output DOF file, dtrace -G needs to emit relocations

svn commit: r313261 - head/sys/kern

2017-02-04 Thread Mark Johnston
Author: markj Date: Sun Feb 5 02:27:04 2017 New Revision: 313261 URL: https://svnweb.freebsd.org/changeset/base/313261 Log: Make witness_warn() always print to the console. witness_warn() either breaks into the debugger or panics the system, so its output should go to the console regardl

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

2017-02-04 Thread Steven Hartland
Hi Mateusz could you improve on the commit message as it currently describes what is changed, which can be obtained from the diff, but not why? I hope on one feels like I'm trying to teach them to suck eggs, as I know everyone here has a wealth of experience, but I strongly believe commit mess

svn commit: r313260 - head/sys/kern

2017-02-04 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 01:40:27 2017 New Revision: 313260 URL: https://svnweb.freebsd.org/changeset/base/313260 Log: fd: switch fget_unlocked to atomic_fcmpset Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

Re: svn commit: r313191 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Sorry it took so long. Warner On Sat, Feb 4, 2017 at 6:26 PM, Cy Schubert wrote: > Thanks. > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: http://www.FreeBSD.org > > The need of the many outweighs the greed of the few. > > > In message om> > , Warner Losh writes: >> Thanks!

Re: svn commit: r313191 - head/sbin/nvmecontrol

2017-02-04 Thread Cy Schubert
Thanks. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. In message , Warner Losh writes: > Thanks! Fixed in r313259. > > Warner > > On Sat, Feb 4, 2017 at 6:16 PM, Cy Schubert wrote: > > In message <20170

Re: svn commit: r313191 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Thanks! Fixed in r313259. Warner On Sat, Feb 4, 2017 at 6:16 PM, Cy Schubert wrote: > In message <201702040553.v145r1wb002...@repo.freebsd.org>, Warner Losh > writes: >> Author: imp >> Date: Sat Feb 4 05:53:00 2017 >> New Revision: 313191 >> URL: https://svnweb.freebsd.org/changeset/base/31319

svn commit: r313259 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Author: imp Date: Sun Feb 5 01:20:39 2017 New Revision: 313259 URL: https://svnweb.freebsd.org/changeset/base/313259 Log: Use ssize_t instead of uint32_t to prevent warnings about a comparison with different signs. Due to the promotion rules, this would only happen on 32-bit platforms. Mod

Re: svn commit: r313191 - head/sbin/nvmecontrol

2017-02-04 Thread Cy Schubert
In message <201702040553.v145r1wb002...@repo.freebsd.org>, Warner Losh writes: > Author: imp > Date: Sat Feb 4 05:53:00 2017 > New Revision: 313191 > URL: https://svnweb.freebsd.org/changeset/base/313191 > > Log: > Implement 5 wdc-specific nvme control options for their HGST drives: > wd

svn commit: r313258 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Author: imp Date: Sun Feb 5 00:55:07 2017 New Revision: 313258 URL: https://svnweb.freebsd.org/changeset/base/313258 Log: Add the ability to dump log pages directly in binary to stdout. Update man page to include this flag, and an example of dumping a vendor-specific page while I'm here. M

svn commit: r313257 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Author: imp Date: Sun Feb 5 00:45:02 2017 New Revision: 313257 URL: https://svnweb.freebsd.org/changeset/base/313257 Log: Add some descriptions to the man page for the supported log pages as well as the new wdc commands. Make wdc be an alias for hgst when specifying the vendor to use to int

svn commit: r313256 - in stable/10/sys: amd64/amd64 i386/i386

2017-02-04 Thread Konstantin Belousov
Author: kib Date: Sun Feb 5 00:42:15 2017 New Revision: 313256 URL: https://svnweb.freebsd.org/changeset/base/313256 Log: MFC r312954: Do not leave stale 4K TLB entries on pde (superpage) removal or protection change. Modified: stable/10/sys/amd64/amd64/pmap.c stable/10/sys/i386/i386/p

svn commit: r313255 - in stable/11/sys: amd64/amd64 i386/i386

2017-02-04 Thread Konstantin Belousov
Author: kib Date: Sun Feb 5 00:39:44 2017 New Revision: 313255 URL: https://svnweb.freebsd.org/changeset/base/313255 Log: MFC r312954: Do not leave stale 4K TLB entries on pde (superpage) removal or protection change. Modified: stable/11/sys/amd64/amd64/pmap.c stable/11/sys/i386/i386/p

svn commit: r313254 - head/sys/riscv/include

2017-02-04 Thread Ruslan Bukin
Author: br Date: Sun Feb 5 00:32:12 2017 New Revision: 313254 URL: https://svnweb.freebsd.org/changeset/base/313254 Log: Implement atomic_fcmpset_*() for RISC-V. Requested by: mjg Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D9447 Modified: hea

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Svatopluk Kraus
Probably not related. But when I took short look to the patch to see what could go wrong, I walked into the following comment in _rm_wlock(): "Assumes rm->rm_writecpus update is visible on other CPUs before rm_cleanIPI is called." There is no explicit barrier to ensure it. However, there might be s

svn commit: r313253 - head/sbin/ifconfig

2017-02-04 Thread Adrian Chadd
Author: adrian Date: Sat Feb 4 20:57:09 2017 New Revision: 313253 URL: https://svnweb.freebsd.org/changeset/base/313253 Log: [net80211] fix quiet_duration parameter to match what is provided in the manpage. Modified: head/sbin/ifconfig/ifieee80211.c Modified: head/sbin/ifconfig/ifieee80211

svn commit: r313252 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Author: imp Date: Sat Feb 4 20:43:54 2017 New Revision: 313252 URL: https://svnweb.freebsd.org/changeset/base/313252 Log: Fix off by one error that truncated the serial number for filenames. Modified: head/sbin/nvmecontrol/wdc.c Modified: head/sbin/nvmecontrol/wdc.c

svn commit: r313251 - head/sbin/nvmecontrol

2017-02-04 Thread Warner Losh
Author: imp Date: Sat Feb 4 20:43:45 2017 New Revision: 313251 URL: https://svnweb.freebsd.org/changeset/base/313251 Log: Fix a typo in usage string for unimplemented command. Modified: head/sbin/nvmecontrol/wdc.c Modified: head/sbin/nvmecontrol/wdc.c ===

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Jason Harmening
Can you post an example of such panic? Only 2 MI pieces were changed, netisr and rmlock. I haven't seen problems on my own amd64/i386/arm testing of this, so a backtrace might help to narrow down the cause. On Sat, Feb 4, 2017 at 12:22 PM, Andreas Tobler wrote: > On 04.02.17 20:54, Jason Harme

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Andreas Tobler
On 04.02.17 20:54, Jason Harmening wrote: I suspect this broke rmlocks for mips because the rmlock implementation takes the address of the per-CPU pc_rm_queue when building tracker lists. That address may be later accessed from another CPU and will then translate to the wrong physical region if

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Alexander Kabaev
On Fri, 3 Feb 2017 21:29:33 -0800 Jason Harmening wrote: > Hi, > > I'm a bit confused as to how this change breaks MIPS. The new > function, get_pcpu() is intended to be used only to access the > per-cpu data pointer locally. It returns pcpup, which is the per-cpu > pointer wired into the loca

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Jason Harmening
I suspect this broke rmlocks for mips because the rmlock implementation takes the address of the per-CPU pc_rm_queue when building tracker lists. That address may be later accessed from another CPU and will then translate to the wrong physical region if the address was taken relative to the globall

svn commit: r313250 - in head/sys/dev: mmc sdhci

2017-02-04 Thread Marius Strobl
Author: marius Date: Sat Feb 4 19:35:38 2017 New Revision: 313250 URL: https://svnweb.freebsd.org/changeset/base/313250 Log: Fix some more overly long lines, whitespace and other bugs according to style(9) as well as spelling in comments. Modified: head/sys/dev/mmc/mmc.c head/sys/dev/mmc

svn commit: r313249 - head/sys/vm

2017-02-04 Thread Konstantin Belousov
Author: kib Date: Sat Feb 4 19:16:19 2017 New Revision: 313249 URL: https://svnweb.freebsd.org/changeset/base/313249 Log: Style, use tab after #define. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/vm/vm_object.h Modified: head/sys/v

svn commit: r313248 - head/sys/net

2017-02-04 Thread Sean Bruno
Author: sbruno Date: Sat Feb 4 18:25:09 2017 New Revision: 313248 URL: https://svnweb.freebsd.org/changeset/base/313248 Log: Delete duplicate break. Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c == -

svn commit: r313246 - vendor/NetBSD/tests/02.04.2017_10.12

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 18:13:15 2017 New Revision: 313246 URL: https://svnweb.freebsd.org/changeset/base/313246 Log: Copy ^/vendor/NetBSD/tests/dist to ^/vendor/NetBSD/tests/02.04.2017_10.12 Added: vendor/NetBSD/tests/02.04.2017_10.12/ - copied from r313245, vendor/NetBSD/tests/di

svn commit: r313245 - in vendor/NetBSD/tests/dist: dev/audio fs/vfs kernel lib/libm net/bpf net/if

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 18:11:48 2017 New Revision: 313245 URL: https://svnweb.freebsd.org/changeset/base/313245 Log: Pull in some minor updates to netbsd-tests from upstream Added: vendor/NetBSD/tests/dist/fs/vfs/t_mtime_otrunc.c (contents, props changed) vendor/NetBSD/tests/dist/f

svn commit: r313243 - in stable/11: crypto/openssh secure/usr.sbin/sshd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:26:28 2017 New Revision: 313243 URL: https://svnweb.freebsd.org/changeset/base/313243 Log: MFC r311585: Conditionalize building libwrap support into sshd Only build libwrap support into sshd if MK_TCP_WRAPPERS != no This will unbreak the build if l

svn commit: r313242 - in stable/11: . usr.sbin/bsnmpd/tools usr.sbin/bsnmpd/tools/bsnmptools usr.sbin/bsnmpd/tools/libbsnmptools

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:21:17 2017 New Revision: 313242 URL: https://svnweb.freebsd.org/changeset/base/313242 Log: MFC r311174: Make /usr/lib/libbsnmptools.so.0 into an INTERRNALLIB Although it increases the size of the bsnmp{get,set,walk} binaries by four on my [amd64] syst

svn commit: r313241 - stable/11/contrib/bsnmp/snmp_usm

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:18:49 2017 New Revision: 313241 URL: https://svnweb.freebsd.org/changeset/base/313241 Log: MFC r311394: op_usm_users: don't deref uusers if it's NULL when SETting the value Add an XXX comment to note that the conditional seems suspect given how it's h

svn commit: r313240 - in stable/11/lib/libc: . arm/aeabi capability gdtoa gen iconv md posix1e regex/grot resolv stdlib/jemalloc stdtime string sys

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:17:38 2017 New Revision: 313240 URL: https://svnweb.freebsd.org/changeset/base/313240 Log: MFC r312332,r312446,r312451: r312332: Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of unnecessarily long relative path .PATH values wit

svn commit: r313239 - in stable/11: share/mk usr.sbin/bsnmpd/modules usr.sbin/bsnmpd/modules/snmp_hostres usr.sbin/bsnmpd/modules/snmp_mibII

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:10:19 2017 New Revision: 313239 URL: https://svnweb.freebsd.org/changeset/base/313239 Log: MFC r311744,r312328,r312329,r312330: r311744: Document bsd.snmpmod.mk from a high-level r312328: Add a make target (smilint) for running smilint tool ag

svn commit: r313238 - stable/11/etc

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:08:21 2017 New Revision: 313238 URL: https://svnweb.freebsd.org/changeset/base/313238 Log: MFC r310467: Provide some guidance when dealing with sections and variables contained within them For example, using variables designated for %usm requires unco

svn commit: r313237 - stable/11/lib/msun/tests

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:06:51 2017 New Revision: 313237 URL: https://svnweb.freebsd.org/changeset/base/313237 Log: MFC r303841,r312012,r312213: r303841 (by bdrewery): Revert r298434 which should be fixed by r301287, r301394, and r301403. PR: 208703, 208963 r312012:

svn commit: r313236 - stable/11/tests/sys

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:02:54 2017 New Revision: 313236 URL: https://svnweb.freebsd.org/changeset/base/313236 Log: MFC r312114: Enable WARNS?= 6 across all of tests/sys Added: stable/11/tests/sys/Makefile.inc - copied unchanged from r312114, head/tests/sys/Makefile.inc Modi

svn commit: r313235 - stable/11/tests/sys/mac/bsdextended

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:01:53 2017 New Revision: 313235 URL: https://svnweb.freebsd.org/changeset/base/313235 Log: MFC r312120: Fix warnings - Staticize test_num - Promote i to size_t to deal with -Wsign-compare issues Tested with: clang, gcc, gcc49 Modified: stable

svn commit: r313234 - in stable/10: crypto/openssh secure/usr.sbin/sshd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 17:00:47 2017 New Revision: 313234 URL: https://svnweb.freebsd.org/changeset/base/313234 Log: MFC r311585: Conditionalize building libwrap support into sshd Only build libwrap support into sshd if MK_TCP_WRAPPERS != no This will unbreak the build if l

svn commit: r313233 - stable/11/tests/sys/vm

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:58:06 2017 New Revision: 313233 URL: https://svnweb.freebsd.org/changeset/base/313233 Log: MFC r312110: Fix -Wsign-compare warnings The loop index (i) doesn't need to be size_t as its comparison is signed Modified: stable/11/tests/sys/vm/mmap_test.c

svn commit: r313232 - stable/11/tests/sys/mac/bsdextended

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:56:51 2017 New Revision: 313232 URL: https://svnweb.freebsd.org/changeset/base/313232 Log: MFC r312164: Fix -Wformat issue Use %zu for printing out results from nitems, as it's size_t based Modified: stable/11/tests/sys/mac/bsdextended/ugidfw_test.c

svn commit: r313231 - stable/11/libexec/tftpd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:55:46 2017 New Revision: 313231 URL: https://svnweb.freebsd.org/changeset/base/313231 Log: MFC r311473: Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard This will allow the code to stand by itself without libwrap Modified: stable/11/li

svn commit: r313230 - stable/11/usr.sbin/sendmail

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:54:44 2017 New Revision: 313230 URL: https://svnweb.freebsd.org/changeset/base/313230 Log: MFC r311471: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into sendmail. Modified: stable/11/usr.sbin/sendmail/Makefile

svn commit: r313229 - stable/11/usr.sbin/ypserv

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:52:48 2017 New Revision: 313229 URL: https://svnweb.freebsd.org/changeset/base/313229 Log: MFC r311469: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv. Modified: stable/11/usr.sbin/ypserv/Makefile Dire

svn commit: r313228 - stable/11/lib/libnetbsd/sys

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:49:50 2017 New Revision: 313228 URL: https://svnweb.freebsd.org/changeset/base/313228 Log: MFC r311972: Add __BIT and __BITS macros from NetBSD to help support new testcases Modified: stable/11/lib/libnetbsd/sys/cdefs.h Directory Properties: stable/11/

svn commit: r313227 - in stable/11: contrib/netbsd-tests/lib/libc contrib/netbsd-tests/lib/libc/c063 contrib/netbsd-tests/lib/libc/gen contrib/netbsd-tests/lib/libc/gen/posix_spawn contrib/netbsd-t...

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:47:56 2017 New Revision: 313227 URL: https://svnweb.freebsd.org/changeset/base/313227 Log: MFC r311925,r311968,r311969,r312102,r312108: r311925: Import testcase updates with code contributed back to NetBSD This also (inadvertently) contains an upda

svn commit: r313226 - stable/10/libexec/tftpd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:47:35 2017 New Revision: 313226 URL: https://svnweb.freebsd.org/changeset/base/313226 Log: MFC r311473: Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard This will allow the code to stand by itself without libwrap Modified: stable/10/li

svn commit: r313225 - stable/10/usr.sbin/sendmail

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:45:44 2017 New Revision: 313225 URL: https://svnweb.freebsd.org/changeset/base/313225 Log: MFC r311471: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into sendmail. Modified: stable/10/usr.sbin/sendmail/Makefile

svn commit: r313224 - stable/10/etc

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:43:35 2017 New Revision: 313224 URL: https://svnweb.freebsd.org/changeset/base/313224 Log: MFC r310467: Provide some guidance when dealing with sections and variables contained within them For example, using variables designated for %usm requires unco

svn commit: r313223 - in stable/10: share/mk usr.sbin/bsnmpd/modules usr.sbin/bsnmpd/modules/snmp_hostres usr.sbin/bsnmpd/modules/snmp_mibII

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:40:28 2017 New Revision: 313223 URL: https://svnweb.freebsd.org/changeset/base/313223 Log: MFC r311744,r312328,r312329,r312330: r311744: Document bsd.snmpmod.mk from a high-level r312328: Add a make target (smilint) for running smilint tool ag

svn commit: r313222 - stable/10/contrib/bsnmp/snmp_usm

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:37:43 2017 New Revision: 313222 URL: https://svnweb.freebsd.org/changeset/base/313222 Log: MFC r311394: op_usm_users: don't deref uusers if it's NULL when SETting the value Add an XXX comment to note that the conditional seems suspect given how it's h

svn commit: r313221 - stable/10/lib/libc/regex/grot

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:36:07 2017 New Revision: 313221 URL: https://svnweb.freebsd.org/changeset/base/313221 Log: MFC r312332: Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of unnecessarily long relative path .PATH values with make Modified: stable/10/

svn commit: r313220 - stable/10/usr.sbin/ypserv

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:34:44 2017 New Revision: 313220 URL: https://svnweb.freebsd.org/changeset/base/313220 Log: MFC r311469: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv. Modified: stable/10/usr.sbin/ypserv/Makefile Dire

svn commit: r313219 - stable/10/tests/sys/mac/bsdextended

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:31:24 2017 New Revision: 313219 URL: https://svnweb.freebsd.org/changeset/base/313219 Log: MFC r312164: Fix -Wformat issue Use %zu for printing out results from nitems, as it's size_t based Modified: stable/10/tests/sys/mac/bsdextended/ugidfw_test.c

svn commit: r313218 - stable/10/tests/sys

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:29:23 2017 New Revision: 313218 URL: https://svnweb.freebsd.org/changeset/base/313218 Log: MFC r312114,r312194: r312114: Enable WARNS?= 6 across all of tests/sys r312194: Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... The pr

svn commit: r313217 - stable/10/tests/sys/vm

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:16:41 2017 New Revision: 313217 URL: https://svnweb.freebsd.org/changeset/base/313217 Log: MFC r312110: Fix -Wsign-compare warnings The loop index (i) doesn't need to be size_t as its comparison is signed Modified: stable/10/tests/sys/vm/mmap_test.c

svn commit: r313216 - stable/10/tests/sys/mac/bsdextended

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:15:26 2017 New Revision: 313216 URL: https://svnweb.freebsd.org/changeset/base/313216 Log: MFC r312120: Fix warnings - Staticize test_num - Promote i to size_t to deal with -Wsign-compare issues Tested with: clang, gcc, gcc49 Modified: stable

svn commit: r313215 - stable/10/lib/libnetbsd/sys

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:09:07 2017 New Revision: 313215 URL: https://svnweb.freebsd.org/changeset/base/313215 Log: MFC r311972: Add __BIT and __BITS macros from NetBSD to help support new testcases Modified: stable/10/lib/libnetbsd/sys/cdefs.h Directory Properties: stable/10/

svn commit: r313214 - stable/10/tests/sys/kern/acct

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:02:49 2017 New Revision: 313214 URL: https://svnweb.freebsd.org/changeset/base/313214 Log: MFC r312119,r312216,r312226: r312119: encode_long, encode_timeval: mechanically replace `exp` with `exponent` This helps fix a -Wshadow issue with exp(3) wit

svn commit: r313213 - stable/11/tests/sys/kern/acct

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:02:48 2017 New Revision: 313213 URL: https://svnweb.freebsd.org/changeset/base/313213 Log: MFC r312119,r312216,r312226: r312119: encode_long, encode_timeval: mechanically replace `exp` with `exponent` This helps fix a -Wshadow issue with exp(3) wit

svn commit: r313212 - in stable/10/usr.sbin/amd: amd include

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:00:51 2017 New Revision: 313212 URL: https://svnweb.freebsd.org/changeset/base/313212 Log: MFC r311472: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into amd(8). Modified: stable/10/usr.sbin/amd/amd/Makefile s

svn commit: r313211 - in stable/11/usr.sbin/amd: amd include

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 16:00:19 2017 New Revision: 313211 URL: https://svnweb.freebsd.org/changeset/base/313211 Log: MFC r311472: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into amd(8). Modified: stable/11/usr.sbin/amd/amd/Makefile s

svn commit: r313210 - stable/11/usr.sbin/rpcbind

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:56:24 2017 New Revision: 313210 URL: https://svnweb.freebsd.org/changeset/base/313210 Log: MFC r311470: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into rpcbind. Modified: stable/11/usr.sbin/rpcbind/Makefile Di

svn commit: r313209 - stable/10/usr.sbin/rpcbind

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:55:31 2017 New Revision: 313209 URL: https://svnweb.freebsd.org/changeset/base/313209 Log: MFC r311470: Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into rpcbind. Modified: stable/10/usr.sbin/rpcbind/Makefile Di

svn commit: r313208 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:53:34 2017 New Revision: 313208 URL: https://svnweb.freebsd.org/changeset/base/313208 Log: FreeBSD 11.0 release date added. Modified: stable/11/share/misc/bsd-family-tree Directory Properties: stable/11/ (props changed) Modified: stable/1

svn commit: r313207 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:52:49 2017 New Revision: 313207 URL: https://svnweb.freebsd.org/changeset/base/313207 Log: Add NetBSD 5.1.4, 5.2.2 & 7.0.1 releases to the tree. Ammend the position of NetBSD 6.0.2 release in the tree as it came after OpenBSD[1] & DragonFlyBS

svn commit: r313206 - stable/10/usr.sbin/inetd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:52:08 2017 New Revision: 313206 URL: https://svnweb.freebsd.org/changeset/base/313206 Log: MFC r312105,r312162: r312105: Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS This will allow inetd to stand by itself without libwrap.

svn commit: r313205 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:51:45 2017 New Revision: 313205 URL: https://svnweb.freebsd.org/changeset/base/313205 Log: OpenBSD 6.0 added. Modified: stable/11/share/misc/bsd-family-tree Directory Properties: stable/11/ (props changed) Modified: stable/11/share/misc/b

svn commit: r313204 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:50:47 2017 New Revision: 313204 URL: https://svnweb.freebsd.org/changeset/base/313204 Log: DragonFly 4.6.0 release added. Modified: stable/11/share/misc/bsd-family-tree Directory Properties: stable/11/ (props changed) Modified: stable/11/

svn commit: r313203 - stable/11/usr.sbin/inetd

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:49:50 2017 New Revision: 313203 URL: https://svnweb.freebsd.org/changeset/base/313203 Log: MFC r312105,r312162: r312105: Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS This will allow inetd to stand by itself without libwrap.

svn commit: r313202 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:48:53 2017 New Revision: 313202 URL: https://svnweb.freebsd.org/changeset/base/313202 Log: Fix the previous commit to the family tree file. It is too early to list 11.0, and we do not list -CURRENT here. Submitted by: maxim Sponsored by

svn commit: r313201 - stable/10/contrib/bsnmp/lib

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:45:51 2017 New Revision: 313201 URL: https://svnweb.freebsd.org/changeset/base/313201 Log: MFC r311263: Use calloc instead of malloc with buffers in snmp_{recv,send}_packet This doesn't fix the issue noted in the PR, but at the very least it cleans up

svn commit: r313200 - stable/11/contrib/bsnmp/lib

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:45:39 2017 New Revision: 313200 URL: https://svnweb.freebsd.org/changeset/base/313200 Log: MFC r311263: Use calloc instead of malloc with buffers in snmp_{recv,send}_packet This doesn't fix the issue noted in the PR, but at the very least it cleans up

svn commit: r313198 - stable/11/lib

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:43:54 2017 New Revision: 313198 URL: https://svnweb.freebsd.org/changeset/base/313198 Log: MFC r312937: Fix typo in lib/Makefile The SUBDIR_DEPEND variable should be for librpcsec_gss, not liblibrpc_gss PR: 216409 Modified: stable/11

svn commit: r313199 - stable/10/lib

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:44:49 2017 New Revision: 313199 URL: https://svnweb.freebsd.org/changeset/base/313199 Log: MFC r312937: Fix typo in lib/Makefile The SUBDIR_DEPEND variable should be for librpcsec_gss, not liblibrpc_gss PR: 216409 Modified: stable/10

svn commit: r313197 - stable/11/share/misc

2017-02-04 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Sat Feb 4 15:41:59 2017 New Revision: 313197 URL: https://svnweb.freebsd.org/changeset/base/313197 Log: Belatedly add FreeBSD 11.0 and 12.0 to the family tree file. Submitted by: des (a while back) Sponsored by: The FreeBSD Foundation Modified: stab

svn commit: r313196 - stable/11/sys/modules

2017-02-04 Thread Ngie Cooper
Author: ngie Date: Sat Feb 4 15:41:44 2017 New Revision: 313196 URL: https://svnweb.freebsd.org/changeset/base/313196 Log: MFC r312935: Remove duplicate bhnd SUBDIR entry PR: 216413 Modified: stable/11/sys/modules/Makefile Directory Properties: stable/11/ (props chang

svn commit: r313195 - in head/sbin: decryptcore savecore

2017-02-04 Thread Konrad Witaszczyk
Author: def Date: Sat Feb 4 14:10:16 2017 New Revision: 313195 URL: https://svnweb.freebsd.org/changeset/base/313195 Log: Fix bugs found by Coverity in decryptcore(8) and savecore(8): - Perform final decryption and write decrypted data in case of non-block aligned input data; - Use strlc

svn commit: r313194 - in head/sys: arm/include arm64/include mips/include powerpc/include riscv/include sparc64/include sys x86/include

2017-02-04 Thread Konstantin Belousov
Author: kib Date: Sat Feb 4 12:26:38 2017 New Revision: 313194 URL: https://svnweb.freebsd.org/changeset/base/313194 Log: Define the vm_ooffset_t and vm_pindex_t types as machine-independend. The types are for the byte offset and page index in vm object. They are similar to off_t, which

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-04 Thread Andreas Tobler
On 04.02.17 07:27, Jason Harmening wrote: It's hard to argue with that:) I've backed it out until we can figure out what's going on. Sorry for the breakage. For the record, powerpc64 was also affected. Andreas On Fri, Feb 3, 2017 at 9:54 PM, Kurt Lidl mailto:l...@pix.net>> wrote: Havi