svn commit: r304809 - head/usr.bin/getconf

2016-08-25 Thread Garrett Cooper
Author: ngie Date: Thu Aug 25 17:07:43 2016 New Revision: 304809 URL: https://svnweb.freebsd.org/changeset/base/304809 Log: Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT knobs It's not necessarily intuitive that the variables to query contain TRUSTEDBSD in

svn commit: r304698 - head/usr.bin/getconf

2016-08-23 Thread Garrett Cooper
Author: ngie Date: Tue Aug 23 19:41:49 2016 New Revision: 304698 URL: https://svnweb.freebsd.org/changeset/base/304698 Log: Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4 The TRUSTEDBSD prefix was chosen for consistency with the other related `_PC_ACL*` prefixed variables. MFC

svn commit: r304694 - head/usr.bin/getconf

2016-08-23 Thread Garrett Cooper
Author: ngie Date: Tue Aug 23 19:28:01 2016 New Revision: 304694 URL: https://svnweb.freebsd.org/changeset/base/304694 Log: Add `MIN_HOLE_SIZE` pathconf(2) support to getconf This allows shell programs to programmatically determine whether or not a filesystem supports sparse files

svn commit: r304693 - head/usr.bin/getconf

2016-08-23 Thread Garrett Cooper
Author: ngie Date: Tue Aug 23 19:15:01 2016 New Revision: 304693 URL: https://svnweb.freebsd.org/changeset/base/304693 Log: Clean up trailing whitespace MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/getconf/getconf.c Modified:

svn commit: r304238 - head/tests/sys/kern/acct

2016-08-16 Thread Garrett Cooper
Author: ngie Date: Tue Aug 16 20:35:36 2016 New Revision: 304238 URL: https://svnweb.freebsd.org/changeset/base/304238 Log: Only expect :encode_tv_random_million to fail on 64-bit platforms It passes on i386 MFC after:1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r304040 - head/tests/sys/acl

2016-08-13 Thread Garrett Cooper
Author: ngie Date: Sat Aug 13 06:26:33 2016 New Revision: 304040 URL: https://svnweb.freebsd.org/changeset/base/304040 Log: Redirect the output of the testcases to stderr instead of redirecting it to /dev/null This will aid in debugging failures MFC after:1 week Sponsored by:

svn commit: r304034 - head/lib/libc/net

2016-08-12 Thread Garrett Cooper
Author: ngie Date: Sat Aug 13 02:05:06 2016 New Revision: 304034 URL: https://svnweb.freebsd.org/changeset/base/304034 Log: Initialize `ai` to NULL and test for `ai` with type-appropriate values Depending on the address family and ai_flags containing AI_V4MAPPED, it might not do a proper

svn commit: r304033 - head/lib/libc/tests/resolv

2016-08-12 Thread Garrett Cooper
Author: ngie Date: Sat Aug 13 01:49:11 2016 New Revision: 304033 URL: https://svnweb.freebsd.org/changeset/base/304033 Log: Increase timeout from 10 minutes to 20 minutes for all tests On particular slow networks, it can (on average) take longer to resolve hosts to IP* addresses. 20

svn commit: r303900 - in head/cddl/usr.sbin/dtrace/tests: common/raise common/safety tools

2016-08-09 Thread Garrett Cooper
Author: ngie Date: Wed Aug 10 03:10:34 2016 New Revision: 303900 URL: https://svnweb.freebsd.org/changeset/base/303900 Log: Highball memory requirement (4GB) with common/{raise,safety} Both test suites require more memory than my amd64 VM using GENERIC-NODEBUG can provide and reliably

svn commit: r303830 - head/usr.bin/getconf

2016-08-08 Thread Garrett Cooper
Author: ngie Date: Mon Aug 8 07:19:30 2016 New Revision: 303830 URL: https://svnweb.freebsd.org/changeset/base/303830 Log: Remove vestigal references to __alpha__ Replace alpha reference in getconf(1) with amd64 [*] MFC after:1 week PR: 211300 [*] Submitted by:

svn commit: r303804 - head/usr.bin/tar/tests

2016-08-06 Thread Garrett Cooper
Author: ngie Date: Sat Aug 6 19:05:01 2016 New Revision: 303804 URL: https://svnweb.freebsd.org/changeset/base/303804 Log: Fix building usr.bin/tar/tests with PIE symbol building enabled by removing CFLAGS+= -static `CFLAGS+= -static` was a carryover from pre-r289195 with

svn commit: r303576 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:34:49 2016 New Revision: 303576 URL: https://svnweb.freebsd.org/changeset/base/303576 Log: Conditionalize code which defines sysctls per _KERNEL #ifdef guard This resolves several issues when compiling libzpool (userspace library), i.e.

svn commit: r303575 - in head/tools/regression/zfs/zpool: add create

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:28:40 2016 New Revision: 303575 URL: https://svnweb.freebsd.org/changeset/base/303575 Log: Remove calls to `die` added for associated bugs Panics are no longer hit with ^/head@r303573 on amd64 PR: 194586, 194587, 194589 Sponsored by: EMC /

svn commit: r303573 - head/cddl/contrib/opensolaris/lib/libzpool/common

2016-07-31 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 06:03:27 2016 New Revision: 303573 URL: https://svnweb.freebsd.org/changeset/base/303573 Log: Cast result from third parameter to int instead of promoting it to size_t This resolves a -Wformat issue when the value is used as a format width precision

svn commit: r303572 - head/usr.bin/sed

2016-07-30 Thread Garrett Cooper
Author: ngie Date: Sun Jul 31 05:31:09 2016 New Revision: 303572 URL: https://svnweb.freebsd.org/changeset/base/303572 Log: Fix regression with /i caused by r303047 '\n' was specifically added to -e arguments prior to r303047. Restore historical behavior which in turn fixes

svn commit: r303367 - head/usr.bin/sed/tests

2016-07-27 Thread Garrett Cooper
Author: ngie Date: Wed Jul 27 06:49:16 2016 New Revision: 303367 URL: https://svnweb.freebsd.org/changeset/base/303367 Log: Testcase 7.8 no longer needs to be marked TODO It passes out of the box today MFC after: 2 months Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r302842 - head

2016-07-14 Thread Garrett Cooper
Author: ngie Date: Thu Jul 14 14:16:20 2016 New Revision: 302842 URL: https://svnweb.freebsd.org/changeset/base/302842 Log: Don't delete usr/share/local/kk_KZ.UTF-8 with "make delete-old" after r302329 kk_KZ.UTF-8 was originally removed in r290494, but restored as an alias to en_US.UTF-8

svn commit: r302841 - head/sys/dev/drm2

2016-07-14 Thread Garrett Cooper
Author: ngie Date: Thu Jul 14 13:55:38 2016 New Revision: 302841 URL: https://svnweb.freebsd.org/changeset/base/302841 Log: Always panic if an invalid capability is passed to `capable(..)` instead of just with INVARIANTS rwatson's point was valid in the sense that if the data passed at

svn commit: r302807 - head/contrib/ldns-host

2016-07-14 Thread Garrett Cooper
Author: ngie Date: Thu Jul 14 06:10:16 2016 New Revision: 302807 URL: https://svnweb.freebsd.org/changeset/base/302807 Log: Initialize first_serial to 0 in dozonetransfer(..) to fix -Wuninitialized warning MFC after: 3 days X-MFC with: r302779 Pointyhat to: des PR: 209177

svn commit: r302581 - head/sys/dev/cxgbe/tom

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 17:11:18 2016 New Revision: 302581 URL: https://svnweb.freebsd.org/changeset/base/302581 Log: Remove redundant declaration for tcp_dooptions, similar to r302576 netinet/tcp_var.h already defines this function Differential Revision:

svn commit: r302577 - head/sys/dev/drm2

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 17:01:07 2016 New Revision: 302577 URL: https://svnweb.freebsd.org/changeset/base/302577 Log: Add missing default case to capable(..) function definition By definition (enum __drm_capabilities), cases other than CAP_SYS_ADMIN aren't possible. Add in a

svn commit: r302576 - head/sys/dev/cxgb/ulp/tom

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 16:56:51 2016 New Revision: 302576 URL: https://svnweb.freebsd.org/changeset/base/302576 Log: (Re-do r302574 with corrected commit message..) Remove redundant declaration for tcp_dooptions netinet/tcp_var.h already defines this function Differential

svn commit: r302575 - head/sys/dev/cxgb/ulp/tom

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 16:54:19 2016 New Revision: 302575 URL: https://svnweb.freebsd.org/changeset/base/302575 Log: Revert r302574. I botched the commit message in more way than 1 Modified: head/sys/dev/cxgb/ulp/tom/cxgb_listen.c Modified: head/sys/dev/cxgb/ulp/tom/cxgb_listen.c

svn commit: r302574 - head/sys/dev/cxgb/ulp/tom

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 16:52:04 2016 New Revision: 302574 URL: https://svnweb.freebsd.org/changeset/base/302574 Log: Remove redundant declaration for tcp_dooptions netinet/tcp_var.h already defines this function PR: 209924 Reported by: Mark Millard

svn commit: r302572 - head/sys/dev/drm2/i915

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 15:50:06 2016 New Revision: 302572 URL: https://svnweb.freebsd.org/changeset/base/302572 Log: Remove redundant declarations for intel_fbc_enabled(..) and i915_gem_dump_object(..) to fix -Wredundant-decls warning MFC after:1 week PR: 209924

svn commit: r302571 - head/sys/dev/drm2/radeon

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 15:47:43 2016 New Revision: 302571 URL: https://svnweb.freebsd.org/changeset/base/302571 Log: Remove redundant declaration for radeon_pm_acpi_event_handler(..) to fix -Wredundant-decls warning MFC after:1 week PR: 209924 Reported by: Mark

svn commit: r302553 - head/sys/rpc

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 07:24:56 2016 New Revision: 302553 URL: https://svnweb.freebsd.org/changeset/base/302553 Log: Don't test for xpt not being NULL before calling svc_xprt_free(..) svc_xprt_alloc(..) will always return initialized memory as it uses mem_alloc(..) under the

svn commit: r302552 - head/sys/rpc

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 07:17:52 2016 New Revision: 302552 URL: https://svnweb.freebsd.org/changeset/base/302552 Log: Convert `svc_xprt_alloc(..)` and `svc_xprt_free(..)`'s prototypes to ANSI C style prototypes MFC after: 1 week Sponsored by: EMC / Isilon Storage Division

svn commit: r302551 - head/sys/rpc

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 07:07:15 2016 New Revision: 302551 URL: https://svnweb.freebsd.org/changeset/base/302551 Log: Deobfuscate cleanup path in clnt_vc_create(..) Similar to r300836, r301800, and r302550, cl and ct will always be non-NULL as they're allocated using the mem_alloc

svn commit: r302550 - head/sys/rpc

2016-07-11 Thread Garrett Cooper
Author: ngie Date: Mon Jul 11 06:58:24 2016 New Revision: 302550 URL: https://svnweb.freebsd.org/changeset/base/302550 Log: Deobfuscate cleanup path in clnt_dg_create(..) Similar to r300836 and r301800, cl and cu will always be non-NULL as they're allocated using the mem_alloc routines,

svn commit: r302532 - head

2016-07-10 Thread Garrett Cooper
Author: ngie Date: Sun Jul 10 20:42:18 2016 New Revision: 302532 URL: https://svnweb.freebsd.org/changeset/base/302532 Log: Correct OLD_LIBS change done in r298840 libkvm.so lives in /lib, not /usr/lib MFC after: 3 days X-MFC note: ^/stable/11 only X-MFC with: r298840 Submitted

svn commit: r302438 - head/sys/conf

2016-07-08 Thread Garrett Cooper
Author: ngie Date: Fri Jul 8 16:29:45 2016 New Revision: 302438 URL: https://svnweb.freebsd.org/changeset/base/302438 Log: Revert r302403 lang/gcc{48,49,5} lacks -fformat-extensions support (causing build errors, which is what prompted r302403 to be committed). devel/amd64-gcc on the

svn commit: r302403 - head/sys/conf

2016-07-07 Thread Garrett Cooper
Author: ngie Date: Thu Jul 7 22:44:23 2016 New Revision: 302403 URL: https://svnweb.freebsd.org/changeset/base/302403 Log: Do not use -fformat-extensions with non-base versions of gcc Ports versions of gcc do not have -fformat-extensions support. This unbreaks compiling the

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

2016-07-06 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 16:02:15 2016 New Revision: 302373 URL: https://svnweb.freebsd.org/changeset/base/302373 Log: Fix CTASSERT issue in a more clean way - Replace all CTASSERT macro instances with static_assert's. - Remove the WRAPPED_CTASSERT macro; it's now an unnecessary

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:17:56 2016 New Revision: 302369 URL: https://svnweb.freebsd.org/changeset/base/302369 Log: Fix gcc warning Remove -Wunused-but-set-variable (`mopt`). Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:17:07 2016 New Revision: 302368 URL: https://svnweb.freebsd.org/changeset/base/302368 Log: Fix gcc build errors with SSE 4.2 detection and gcc warnings - Remove -Wunused-but-set-variable's (`len`, etc). - Replace clang-specific tests in

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:11:39 2016 New Revision: 302367 URL: https://svnweb.freebsd.org/changeset/base/302367 Log: Fix gcc warnings Remove unused function (`fifo_available`) Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:09:13 2016 New Revision: 302366 URL: https://svnweb.freebsd.org/changeset/base/302366 Log: Fix gcc warnings - Put parentheses around bitwise OR'ed values in the `FIELD_COPY(..)` and `FIELD_REPLACE(..)` macros to mute warning from gcc 4.2.1. - Remove

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:05:03 2016 New Revision: 302365 URL: https://svnweb.freebsd.org/changeset/base/302365 Log: Fix gcc warnings Remove -Wunused-but-set-variable (`error`). Cast calls with `(void)` to note that the return value is explicitly ignored. Approved by: re

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 05:02:59 2016 New Revision: 302364 URL: https://svnweb.freebsd.org/changeset/base/302364 Log: Fix gcc warnings Add `WRAPPED_CTASSERT` macro by annotating CTASSERTs with __unused to deal with -Wunused-local-typedefs warnings from gcc 4.8+. All other

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 04:58:42 2016 New Revision: 302363 URL: https://svnweb.freebsd.org/changeset/base/302363 Log: Fix gcc warnings Put cfl/prdt under AHCI_DEBUG #defines as they are only used in those cases. Approved by: re (gjb) Differential Revision:

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

2016-07-05 Thread Garrett Cooper
Author: ngie Date: Wed Jul 6 04:56:45 2016 New Revision: 302362 URL: https://svnweb.freebsd.org/changeset/base/302362 Log: Fix gcc warnings - Remove -Wunused-but-set-variable (newcpu) - Always return VMEXIT_CONTINUE as the code always set retval to that value. Approved by: re (gjb)

svn commit: r302330 - head/tools/build/mk

2016-07-03 Thread Garrett Cooper
Author: ngie Date: Sun Jul 3 18:27:00 2016 New Revision: 302330 URL: https://svnweb.freebsd.org/changeset/base/302330 Log: Remove ftp(1) related files when MK_FTP == no Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D6969 MFC after: 1 week Reviewed by: ngie

svn commit: r302327 - head/usr.bin/lastcomm/tests

2016-07-03 Thread Garrett Cooper
Author: ngie Date: Sun Jul 3 17:52:21 2016 New Revision: 302327 URL: https://svnweb.freebsd.org/changeset/base/302327 Log: Fix .../usr.bin/lastcomm/legacy_test:main on i386 The time in the output files was ahead by 3 hours on i386. Fix the incorrect offset. Differential Revision:

svn commit: r302326 - head/usr.bin/lastcomm/tests

2016-07-03 Thread Garrett Cooper
Author: ngie Date: Sun Jul 3 17:51:24 2016 New Revision: 302326 URL: https://svnweb.freebsd.org/changeset/base/302326 Log: Output the diffs to standard error when comparing the expected vs the obtained output from lastcomm instead of just printing out a summary, e.g. "they differed".

svn commit: r302321 - in head/contrib/libxo: . tests/core

2016-07-02 Thread Garrett Cooper
Author: ngie Date: Sun Jul 3 01:35:27 2016 New Revision: 302321 URL: https://svnweb.freebsd.org/changeset/base/302321 Log: Update libxo to 0.6.3 This fixes the 02 testcases on i386 (at least), and may fix the testcases in general on 32-bit platforms Differential Revision:

svn commit: r301871 - head/usr.sbin/rpc.lockd

2016-06-13 Thread Garrett Cooper
Author: ngie Date: Mon Jun 13 11:19:06 2016 New Revision: 301871 URL: https://svnweb.freebsd.org/changeset/base/301871 Log: Add missing break in lock_partialfilelock(..) with NFS_RESERR This will help ensure that the right error is trickled up when the function is called if the lock

svn commit: r301869 - in head: share/misc usr.bin/calendar/calendars usr.sbin/sysrc

2016-06-13 Thread Garrett Cooper
;Michael Reifenberger\n...@freebsd.org\n2001/09/30"] neel [label="Neel Natu\nn...@freebsd.org\n2009/09/20"] netchild [label="Alexander Leidinger\nnetch...@freebsd.org\n2005/03/31"] -ngie [label="Garrett Cooper\nn...@freebsd.org\n2014/07/27"] +ngie [la

svn commit: r301800 - head/sys/rpc

2016-06-10 Thread Garrett Cooper
Author: ngie Date: Fri Jun 10 17:53:28 2016 New Revision: 301800 URL: https://svnweb.freebsd.org/changeset/base/301800 Log: Deobfuscate cleanup path in clnt_bck_create(..) Similar to r300836, cl and ct will always be non-NULL as they're allocated using the mem_alloc routines, which

svn commit: r301753 - head/contrib/netbsd-tests/lib/libc/db

2016-06-09 Thread Garrett Cooper
Author: ngie Date: Thu Jun 9 19:12:51 2016 New Revision: 301753 URL: https://svnweb.freebsd.org/changeset/base/301753 Log: Fix up r274061 Detect /usr/share/dict/words the "right way" by using require.files instead of the hacked up attempt in the dict(..) function, which didn't work

svn commit: r301752 - head/contrib/netbsd-tests/lib/libc/string

2016-06-09 Thread Garrett Cooper
Author: ngie Date: Thu Jun 9 18:35:37 2016 New Revision: 301752 URL: https://svnweb.freebsd.org/changeset/base/301752 Log: Update `goodResult` after recent changes made to the PRNG in libc The PRNG was changed in r300953/r300956, and subsequently, the numbers generated have changed.

svn commit: r301749 - head/contrib/netbsd-tests/lib/libc/string

2016-06-09 Thread Garrett Cooper
Author: ngie Date: Thu Jun 9 18:11:42 2016 New Revision: 301749 URL: https://svnweb.freebsd.org/changeset/base/301749 Log: Add debug output to aid in determining why `goodResult` != `result` MFC after: 1 week PR: 210619 (for diagnosis) Sponsored by: EMC / Isilon Storage Division

svn commit: r301708 - head/lib/libc/net

2016-06-08 Thread Garrett Cooper
Author: ngie Date: Wed Jun 8 23:30:13 2016 New Revision: 301708 URL: https://svnweb.freebsd.org/changeset/base/301708 Log: Revert r301707 getnetent_p doesn't return NULL like getnetent does. coccinelle got confused and I didn't verify that it worked before committing the change

svn commit: r301707 - head/lib/libc/net

2016-06-08 Thread Garrett Cooper
Author: ngie Date: Wed Jun 8 23:23:19 2016 New Revision: 301707 URL: https://svnweb.freebsd.org/changeset/base/301707 Log: Use NULL instead of `0` in _ht_getnetbyname(..) - getnetent returns NULL on completion/error. - .h_aliases is NULL terminated. MFC after: 1 week Sponsored

svn commit: r301704 - head/lib/libc/rpc

2016-06-08 Thread Garrett Cooper
Author: ngie Date: Wed Jun 8 23:17:30 2016 New Revision: 301704 URL: https://svnweb.freebsd.org/changeset/base/301704 Log: Test for strchr(3) returning NULL, not 0 MFC after: 3 days Reported by: coccinelle Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r301683 - head/etc/defaults

2016-06-08 Thread Garrett Cooper
Author: ngie Date: Wed Jun 8 18:38:48 2016 New Revision: 301683 URL: https://svnweb.freebsd.org/changeset/base/301683 Log: Fix typo with description for $ipv6_cpe_wanif (upstram -> upstream) MFC after: 3 days PR: 210146 Reported by: Sean M. Collins Sponsored by:

svn commit: r301605 - head/usr.sbin/rpcbind

2016-06-08 Thread Garrett Cooper
Author: ngie Date: Wed Jun 8 12:45:22 2016 New Revision: 301605 URL: https://svnweb.freebsd.org/changeset/base/301605 Log: Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT Not returning if rtype == RPCBVERS_STAT will cause us to overrun the inf array, as it's

svn commit: r301023 - head/sys/boot/geli

2016-05-31 Thread Garrett Cooper
Author: ngie Date: Tue May 31 06:24:09 2016 New Revision: 301023 URL: https://svnweb.freebsd.org/changeset/base/301023 Log: Add missing libc includes to fix -Wimplicit-function-declaration warnings MFC after: 2 weeks Reported by: clang Sponsored by: EMC / Isilon Storage Division

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

2016-05-30 Thread Garrett Cooper
Author: ngie Date: Mon May 30 19:59:51 2016 New Revision: 301004 URL: https://svnweb.freebsd.org/changeset/base/301004 Log: Fix circular dependency created after r287197 between ldconfig and mountcritremote ldconfig is already required by mountcritremote indirectly, as noted by rcorder:

svn commit: r300973 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 20:28:01 2016 New Revision: 300973 URL: https://svnweb.freebsd.org/changeset/base/300973 Log: Follow up to r300932 In the event MK_INET6 != no in userspace, but is disabled in the kernel, or if there aren't any IPv6 addresses configured in userspace (for

svn commit: r300937 - head/tools/build/mk

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:43:24 2016 New Revision: 300937 URL: https://svnweb.freebsd.org/changeset/base/300937 Log: Remove the etcupdate tests if MK_RCS == no when "make delete-old" is run etcupdate is conditionally installed based on MK_RCS != no today MFC after: 1 week

svn commit: r300932 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 03:42:50 2016 New Revision: 300932 URL: https://svnweb.freebsd.org/changeset/base/300932 Log: Catch malloc(3) errors and socket(2) errors - malloc failing will result in a delayed segfault - socket failing will result in delayed failures with setsockopt

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

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 02:59:03 2016 New Revision: 300931 URL: https://svnweb.freebsd.org/changeset/base/300931 Log: Make netif REQUIRE hostid As noted in the PR, if etc/rc.d/zvol is removed, netif will be run before hostid, and the MAC address generated for any bridge devices

svn commit: r300922 - head/etc/mtree

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 01:38:12 2016 New Revision: 300922 URL: https://svnweb.freebsd.org/changeset/base/300922 Log: Fix "make installworld" with MK_CDDL == no after r300906 by adding a missing entry for ${TESTSBASE}/cddl/sbin X-MFC with: r300906 Pointyhat to: asomers Reported

svn commit: r300945 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 06:29:22 2016 New Revision: 300945 URL: https://svnweb.freebsd.org/changeset/base/300945 Log: Remove unnecessary caller_uaddr != NULL test before calling free on it MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r300940 - head/tools/build/mk

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:56:48 2016 New Revision: 300940 URL: https://svnweb.freebsd.org/changeset/base/300940 Log: Remove yacc and the yacc tests if MK_TOOLCHAIN == no yacc's install is conditional based on MK_TOOLCHAIN != no MFC after: 1 week Sponsored by: EMC / Isilon

svn commit: r300942 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 06:01:18 2016 New Revision: 300942 URL: https://svnweb.freebsd.org/changeset/base/300942 Log: Remove a useless if (x != NULL) check before calling free on allocated_uaddr MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r300939 - head/bin/ls/tests

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:50:49 2016 New Revision: 300939 URL: https://svnweb.freebsd.org/changeset/base/300939 Log: Use require.progs with bc instead of require.files with /usr/bin/bc This will make things more flexible if the program path changes in the future, and the test in

svn commit: r300941 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 05:55:21 2016 New Revision: 300941 URL: https://svnweb.freebsd.org/changeset/base/300941 Log: Don't leak res in network_init(..) Call freeaddrinfo on it after it's been used MFC after: 1 week Reported by: Coverity CID: 1225050 Sponsored by: EMC /

svn commit: r300935 - head/usr.sbin/rpc.statd

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:18:47 2016 New Revision: 300935 URL: https://svnweb.freebsd.org/changeset/base/300935 Log: Mark out_of_mem(..) and usage(..) with __dead2 as they both directly call exit as a hint to static analysis tools MFC after: 1 week Sponsored by: EMC / Isilon

svn commit: r300934 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:02:02 2016 New Revision: 300934 URL: https://svnweb.freebsd.org/changeset/base/300934 Log: Plug leak with ifp by calling freeifaddrs after calling getifaddrs MFC after: 1 week Obtained from: NetBSD v1.18 Sponsored by: EMC / Isilon Storage Division

svn commit: r300947 - head/usr.sbin/rpcbind

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 07:01:12 2016 New Revision: 300947 URL: https://svnweb.freebsd.org/changeset/base/300947 Log: Staticize variables only used in rpcbind.c This is some low hanging fruit necessary for making this WARNS?= 6 clean MFC after: 3 days Sponsored by: EMC /

svn commit: r300938 - head/tools/build/mk

2016-05-29 Thread Garrett Cooper
Author: ngie Date: Sun May 29 04:47:10 2016 New Revision: 300938 URL: https://svnweb.freebsd.org/changeset/base/300938 Log: Remove the sa(8) tests if MK_ACCT == no when "make delete-old" is run sa(8) is conditionally installed based on MK_ACCT != no today MFC after: 1 week Sponsored

svn commit: r300927 - head/sys/dev/ixl

2016-05-28 Thread Garrett Cooper
Author: ngie Date: Sun May 29 01:52:05 2016 New Revision: 300927 URL: https://svnweb.freebsd.org/changeset/base/300927 Log: Delete duplicate declaration for i40e_blink_phy_link_led(..) It was already declared on line 90 Differential Revision: https://reviews.freebsd.org/D6570

svn commit: r300884 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 22:56:00 2016 New Revision: 300884 URL: https://svnweb.freebsd.org/changeset/base/300884 Log: Fix up r300870 The sys/types.h fix I proposed was only tested with zfs(4), not with libzpool, which is where the build failure actually existed Remove

svn commit: r300874 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 21:12:25 2016 New Revision: 300874 URL: https://svnweb.freebsd.org/changeset/base/300874 Log: Update usage(..) - Document missing options - Sync options with ioatcontrol(8). - Make it clear that the first 2 parameters are always required. MFC after: 1

svn commit: r300870 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 20:33:38 2016 New Revision: 300870 URL: https://svnweb.freebsd.org/changeset/base/300870 Log: Unbreak the zfs(4) build vm/vm_pageout.h grew a dependency on the bool typedef in r300865 arc.c didn't include sys/types.h, which included the definition for the

svn commit: r300868 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 20:12:32 2016 New Revision: 300868 URL: https://svnweb.freebsd.org/changeset/base/300868 Log: Remove note about bogus chain-len maximum There's no current limit on chain-len with Broadwell DE chips; it isn't enforced in software, and there doesn't appear to

svn commit: r300867 - head/usr.sbin/rpcbind

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 19:30:13 2016 New Revision: 300867 URL: https://svnweb.freebsd.org/changeset/base/300867 Log: Only expose `hint_uaddr` in the ND_DEBUG case This fixes a -Wunused-but-set-variable warning with gcc MFC after: 1 week Reported by: gcc 5 Sponsored by: EMC

svn commit: r300861 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 18:39:47 2016 New Revision: 300861 URL: https://svnweb.freebsd.org/changeset/base/300861 Log: - Sort make variables - Use SRCTOP instead of ad hoc definition for it MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r300858 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 17:57:30 2016 New Revision: 300858 URL: https://svnweb.freebsd.org/changeset/base/300858 Log: Fix description for -V in the -r case t.verify_test = true is always set when -V is specified, regardless of whether or not the tool is being run in raw mode

svn commit: r300857 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 17:44:30 2016 New Revision: 300857 URL: https://svnweb.freebsd.org/changeset/base/300857 Log: Document the default behavior for -c (0) Bump .Dd for the change MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r300856 - head/tools/tools/ioat

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 17:42:59 2016 New Revision: 300856 URL: https://svnweb.freebsd.org/changeset/base/300856 Log: Initialize `t` with memset(.., 0, ..) This will help ensure that we're not using random garbage on the stack by accident with respect to the variable MFC

svn commit: r300836 - head/sys/rpc

2016-05-27 Thread Garrett Cooper
Author: ngie Date: Fri May 27 08:48:33 2016 New Revision: 300836 URL: https://svnweb.freebsd.org/changeset/base/300836 Log: Quell false positives in svc_vc_create and svc_vc_create_conn with cd and xprt Both cd and xprt will be non-NULL after their respective malloc(9) wrappers are

svn commit: r300714 - head/contrib/top

2016-05-26 Thread Garrett Cooper
Author: ngie Date: Thu May 26 07:09:42 2016 New Revision: 300714 URL: https://svnweb.freebsd.org/changeset/base/300714 Log: The readme provides a high-level overview of how to upgrade top(1). Differential Revision: https://reviews.freebsd.org/D6493 MFC after: 1 week Reviewed By: ngie

svn commit: r300625 - head/sys/rpc

2016-05-24 Thread Garrett Cooper
Author: ngie Date: Tue May 24 20:06:41 2016 New Revision: 300625 URL: https://svnweb.freebsd.org/changeset/base/300625 Log: Remove unnecessary memset(.., 0, ..)'s The mem_alloc macro calls calloc (userspace) / malloc(.., M_WAITOK|M_ZERO) under the covers, so zeroing out memory is already

svn commit: r300624 - head/lib/libc/rpc

2016-05-24 Thread Garrett Cooper
Author: ngie Date: Tue May 24 19:52:05 2016 New Revision: 300624 URL: https://svnweb.freebsd.org/changeset/base/300624 Log: Fix up r300385 I accidentally glossed over the fact that tmp is manipulated via strchr, so if we tried to free `tmp` after r300385, it would have crashed.

svn commit: r300621 - head/lib/libc/rpc

2016-05-24 Thread Garrett Cooper
Author: ngie Date: Tue May 24 18:53:06 2016 New Revision: 300621 URL: https://svnweb.freebsd.org/changeset/base/300621 Log: Remove redundant NULLing of outbuf_pmap If reallocf ever failed, outbuf_pmap would already be NULL MFC after: 1 week X-MFC with: r300620 Reported by: cem

svn commit: r300620 - head/lib/libc/rpc

2016-05-24 Thread Garrett Cooper
Author: ngie Date: Tue May 24 18:44:50 2016 New Revision: 300620 URL: https://svnweb.freebsd.org/changeset/base/300620 Log: Use reallocf instead of malloc to fix leak with outbuf_pmap The previous code overwrote outbuf_pmap's memory with malloc once per loop iteration, which leaked its

svn commit: r300428 - head/usr.bin/kdump

2016-05-22 Thread Garrett Cooper
Author: ngie Date: Sun May 22 18:20:45 2016 New Revision: 300428 URL: https://svnweb.freebsd.org/changeset/base/300428 Log: Fix humanized decoding of struct stat with respect to .st_mtim st_mtim was being incorrectly described as "stime=", not "mtime=". This was introduced with the

svn commit: r300395 - head/contrib/top

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 04:17:00 2016 New Revision: 300395 URL: https://svnweb.freebsd.org/changeset/base/300395 Log: Silence top(1) compiler warnings The contrib/top code is no longer maintained upstream (last pulled 16 years ago). The K followed by the code spews -Wimplicit-int

svn commit: r300389 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 03:05:27 2016 New Revision: 300389 URL: https://svnweb.freebsd.org/changeset/base/300389 Log: nis_rpcent: don't leak resultbuf from yp_first(..)/yp_next(..) If the buffer couldn't be adequately resized to accomodate an additional "\n", it would leak

svn commit: r300388 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 02:53:11 2016 New Revision: 300388 URL: https://svnweb.freebsd.org/changeset/base/300388 Log: Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf was NULL This would theoretically happen if the netconfig protocol family and protocol

svn commit: r300386 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 02:02:18 2016 New Revision: 300386 URL: https://svnweb.freebsd.org/changeset/base/300386 Log: Don't leak `handle` if svc_tp_create(..) succeeds and allocating a new struct xlist object fails MFC after: 1 week Reported by: Coverity CID: 978277 Sponsored

svn commit: r300385 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 01:45:15 2016 New Revision: 300385 URL: https://svnweb.freebsd.org/changeset/base/300385 Log: Don't leak `tmp` if `p->nc_lookups` can't be malloced MFC after: 1 week Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division Modified:

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

2016-05-15 Thread Garrett Cooper
Author: ngie Date: Sun May 15 06:00:13 2016 New Revision: 299844 URL: https://svnweb.freebsd.org/changeset/base/299844 Log: Make hostid_save depend on hostid MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/etc/rc.d/hostid_save Modified:

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

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:45:54 2016 New Revision: 299843 URL: https://svnweb.freebsd.org/changeset/base/299843 Log: Fix broken dependency with routed when MK_ROUTED != no Remove routed as a requirement in NETWORKING, and put it in routed as a BEFORE requirement instead MFC

svn commit: r299842 - in head: etc/rc.d tools/build/mk

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:38:47 2016 New Revision: 299842 URL: https://svnweb.freebsd.org/changeset/base/299842 Log: Conditionalize installing etc/rc.d/atm{1,2,3} `BEFORE: netif` was already in etc/rc.d/atm1, so no additional changes are needed in that script MFC after: 2

svn commit: r299841 - head/tools/build/mk

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:22:15 2016 New Revision: 299841 URL: https://svnweb.freebsd.org/changeset/base/299841 Log: Remove etc/rc.d/{zfs,zvol} if MK_ZFS != no MFC after: 2 weeks X-MFC with: r299840 Sponsored by: EMC / Isilon Storage Division Modified:

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

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 04:39:36 2016 New Revision: 299840 URL: https://svnweb.freebsd.org/changeset/base/299840 Log: Conditionalize etc/rc.d/{zfs,zvol} install on MK_ZFS != no MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/etc/rc.d/Makefile

  1   2   3   4   5   6   7   8   9   10   >