]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
6 years agoMFC r320242, r320256:
cy [Mon, 26 Jun 2017 05:43:44 +0000 (05:43 +0000)]
MFC r320242, r320256:

Update leap-seconds to leap-seconds.3676924800.

As per https://datacenter.iers.org/eop/-/somos/5Rgv/latest/16:

     INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)

SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE

SERVICE DE LA ROTATION TERRESTRE
OBSERVATOIRE DE PARIS
61, Av. de l'Observatoire 75014 PARIS (France)
Tel.      : 33 (0) 1 40 51 23 35
FAX       : 33 (0) 1 40 51 22 91
Internet  : services.iers@obspm.fr

                                             Paris, 9 January 2017

                                             Bulletin C 53

                                             To authorities responsible
                                             for the measurement and
                                             distribution of time

                          INFORMATION ON UTC - TAI

 NO leap second will be introduced at the end of June 2017.
 The difference between Coordinated Universal Time UTC and the
 International Atomic Time TAI is :

     from 2017 January 1, 0h UTC, until further notice : UTC-TAI = -37 s

 Leap seconds can be introduced in UTC at the end of the months of December
 or June,  depending on the evolution of UT1-TAI. Bulletin C is mailed every
 six months, either to announce a time step in UTC, or to confirm that there
 will be no time step at the next possible date.

                                            Christian BIZOUARD
                                            Director
                                            Earth Orientation Center of IERS
                                            Observatoire de Paris, France

Obtained from:  ftp://time.nist.gov/pub/leap-seconds.3676924800

git-svn-id: svn://svn.freebsd.org/base/stable/10@320350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC 320184
sephe [Mon, 26 Jun 2017 02:33:59 +0000 (02:33 +0000)]
MFC 320184

    hyperv/storvsc: Reduce log verbosity

    On some windows hosts TEST_UNIT_READY command will return
    SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
    not present - tray closed)", this occurs periodically, and
    not hurt anything else.  So, we prefer to ignore this kind
    of errors.

    PR:             219973
    Submitted by:   Hongjiang Zhang <hongzhan microsoft com>
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D11271

git-svn-id: svn://svn.freebsd.org/base/stable/10@320348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r317159: libstdc++: fix symbol version script for LLD
emaste [Mon, 26 Jun 2017 02:00:22 +0000 (02:00 +0000)]
MFC r317159: libstdc++: fix symbol version script for LLD

LLD is less tolerant of inconsistencies in the symbol version script.

- Add a ; on the last entry in a version block
- Remove duplicated symbols, retaining those in the earliest block

PR: 214796
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@320346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r320216: Fix use-after-free introduced in r300388.
delphij [Sun, 25 Jun 2017 05:46:03 +0000 (05:46 +0000)]
MFC r320216: Fix use-after-free introduced in r300388.

In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by: jemalloc via kevlo
Reviewed by: cem, ngie (earlier version)

git-svn-id: svn://svn.freebsd.org/base/stable/10@320325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r320052:
kib [Sat, 24 Jun 2017 14:44:59 +0000 (14:44 +0000)]
MFC r320052:
Do not leak syslog_mutex on cancellation.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r320183: Reduce code duplication in rpc.lockd.
delphij [Sat, 24 Jun 2017 07:44:05 +0000 (07:44 +0000)]
MFC r320183: Reduce code duplication in rpc.lockd.

Reuse create_service code instead of duplicating it in
lookup_addresses for kernel NLM.

As a (good) side effect this also fixed a few issues that were
already fixed in the former but never applied to the latter.

Reviewed by: kevlo

git-svn-id: svn://svn.freebsd.org/base/stable/10@320303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r320038:
kib [Fri, 23 Jun 2017 19:04:40 +0000 (19:04 +0000)]
MFC r320038:
Style.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoRevert r320228 as well
ngie [Thu, 22 Jun 2017 07:57:29 +0000 (07:57 +0000)]
Revert r320228 as well

See r320229 for the other related revert commit.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoRevert r320222,r320223,r320224
ngie [Thu, 22 Jun 2017 07:54:12 +0000 (07:54 +0000)]
Revert r320222,r320223,r320224

The committed changes (reverted after this commit) break POLA on
a stable branch.

Requested by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/10@320229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318545:
ngie [Thu, 22 Jun 2017 07:42:36 +0000 (07:42 +0000)]
MFC r318545:

Install {cron.d,newsyslog.conf.d,syslog.d} via `make distribution`, not `make install`

I incorrectly started this pattern in r277541 with the opensm newsyslog.conf.d file,
and continued using it in r318441 and r318443.

This will fix the files being handled improperly via installworld, preventing tools like
etcupdate, mergemaster, etc from functioning properly when comparing the installed
contents on a system vs the contents in a source tree when doing merges.

PR: 219404
MFC with: r277541, r318441, r318443

git-svn-id: svn://svn.freebsd.org/base/stable/10@320228 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r309194,r309216:
ngie [Thu, 22 Jun 2017 07:14:37 +0000 (07:14 +0000)]
MFC r309194,r309216:

r309194 (by bapt):

initialize *nextp which could be left uninitialized in case the configuration
file cannot be open/read

CID: 1365665

r309216 (by bapt):

Properly initialize nextp

git-svn-id: svn://svn.freebsd.org/base/stable/10@320224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r308158:
ngie [Thu, 22 Jun 2017 07:10:01 +0000 (07:10 +0000)]
MFC r308158:
r308158 (by bapt):

Allow symlinks to be followed in cron.d directories and fix detection of
regular files on NFS

git-svn-id: svn://svn.freebsd.org/base/stable/10@320223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r308139,r308157,r308160,r316818,r318250,r318443:
ngie [Thu, 22 Jun 2017 07:08:18 +0000 (07:08 +0000)]
MFC r308139,r308157,r308160,r316818,r318250,r318443:

r308139 (by bapt):

cron(8): add support for /etc/cron.d and /usr/local/etc/cron.d

For automation tools it is way easier to maintain files in directories rather
than modifying /etc/crontab.

The files in those directories are in the same format as /etc/crontab

Relnotes: yes

r308157 (by bapt):

Fix typo in cron(8) date

r308160 (by bapt):

syslogd(8): add an 'include' keyword

All the '.conf' files not beginning with a '.' contained int he directory
following the keyword will be included.

This keyword can only be used in the first level configuration files.

Modify the default syslogd.conf to 'include' /etc/syslog.d and
/usr/local/etc/syslog.d

It simplify a lot handling of syslog from automation tools.

Relnotes: yes

r316818:

Conditionally install /etc/pam.d/ftp* and /etc/pam.d/telnetd

/etc/pam.d/ftp* should be installed with MK_FTP != no and
/etc/pam.d/telnetd should be installed when MK_TELNET != no.

r318250:

Handle the logfiles in newsyslog and syslogd conditionally, based on
src.conf(5) knobs

This will allow consumers of FreeBSD to use the unmodified configuration
files out of the box more than previously.

Both newsyslog.conf and syslog.conf:
- /var/log/lpd-errs (MK_LPR != no)
- /var/log/ppp.log (MK_PPP != no)
- /var/log/xferlog (MK_FTP != no)

newsyslog.conf:
- /var/log/amd.log (MK_AMD != no)
- /var/log/pflog (MK_PF != no)
- /var/log/sendmail.st (MK_SENDMAIL != no)

r318443:

Conditionally handle the crontab entry for atrun(8)

The default crontab prior to this commit assumes atrun(8) is always
present, which isn't true if MK_AT == no. Move atrun(8) execution
from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation
on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration
is loaded and run atrun every 5 minutes like it would prior to this commit.

SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at
because atrun(8) executes programs, which may rely on environment
set in the current default /etc/crontab.

Noted by: bdrewery (in an internal review)
Relnotes: yes (may need to add environmental modifications to
     /etc/cron.d/at)

git-svn-id: svn://svn.freebsd.org/base/stable/10@320222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC 313186, 319702: Account for overhead of page structures when sizing page array.
jhb [Wed, 21 Jun 2017 14:39:31 +0000 (14:39 +0000)]
MFC 313186, 319702: Account for overhead of page structures when sizing page array.

313186:

Over the years, the code and comments in vm_page_startup() have diverged in
one respect.  When determining how many page structures to allocate,
contrary to what the comments say, the code does not account for the
overhead of a page structure per page of physical memory.  This revision
changes the code to match the comments.

319702:

Fix an off-by-one error in the VM page array on some systems.

r313186 changed how the size of the VM page array was calculated to be
less wasteful.  For most systems, the amount of memory is divided by
the overhead required by each page (a page of data plus a struct vm_page)
to determine the maximum number of available pages.  However, if the
remainder for the first non-available page was at least a page of data
(so that the only memory missing was a struct vm_page), this last page
was left in phys_avail[] but was not allocated an entry in the VM page
array.  Handle this case by explicitly excluding the page from
phys_avail[].

Requested by: alc

git-svn-id: svn://svn.freebsd.org/base/stable/10@320190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoThe GEOM KPI in stable/10 requires Giant to be unacquired (a requirement
marius [Tue, 20 Jun 2017 19:59:57 +0000 (19:59 +0000)]
The GEOM KPI in stable/10 requires Giant to be unacquired (a requirement
dropped in r300287). So wrap calling into GEOM in {DROP,PICKUP}_GIANT(),
similar to what as been done prio to r300288. This fixes a "Giant owned"
panic with r318159 in place and INVARIANTS enabled.
Reported by: Oliver Pinter

git-svn-id: svn://svn.freebsd.org/base/stable/10@320168 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319964
davidcs [Tue, 20 Jun 2017 18:52:35 +0000 (18:52 +0000)]
MFC r319964
Upgrade STORMFW to 8.30.0.0 and ecore version to 8.30.0.0
Add support for pci deviceID 0x8070 for QLE41xxx product line which
supports 10GbE/25GbE/40GbE

git-svn-id: svn://svn.freebsd.org/base/stable/10@320162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319932:
markj [Tue, 20 Jun 2017 17:03:06 +0000 (17:03 +0000)]
MFC r319932:
Fix handling of subpage BIO_WRITE and BIO_DELETE requests on swap MDs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320154 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC 319490: Remove stale cap_rights_get(2) manpage.
jhb [Tue, 20 Jun 2017 15:55:15 +0000 (15:55 +0000)]
MFC 319490: Remove stale cap_rights_get(2) manpage.

The documentation moved to section 3 several years ago, but
'man cap_rights_get' pulls up cap_rights_limit(2) (which is
MLINKed to cap_rights_get.2) instead of cap_rights_get(3).

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@320150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319916:
kib [Tue, 20 Jun 2017 15:02:59 +0000 (15:02 +0000)]
MFC r319916:
Remove stray return.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279833: Use the correct event table for Haswell Xeon events
avg [Tue, 20 Jun 2017 08:01:13 +0000 (08:01 +0000)]
MFC r279833: Use the correct event table for Haswell Xeon events

git-svn-id: svn://svn.freebsd.org/base/stable/10@320137 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDirect commit to stable/10 to correctly setting the EIAC and IMS
sbruno [Mon, 19 Jun 2017 15:56:03 +0000 (15:56 +0000)]
Direct commit to stable/10 to correctly setting the EIAC and IMS
registers to the same values when processing interrupts.

This resolves PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211219

PR: 211219
Submitted by: Franco Fitchner <franco@opnsense.org>

git-svn-id: svn://svn.freebsd.org/base/stable/10@320117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318867: fix vmxnet3 crash when LRO is enabled
avg [Mon, 19 Jun 2017 15:41:39 +0000 (15:41 +0000)]
MFC r318867: fix vmxnet3 crash when LRO is enabled

Sponsored by: Panzura

git-svn-id: svn://svn.freebsd.org/base/stable/10@320116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r311224: Fix PMC architecture check to handle later IPAs including Skylake
avg [Mon, 19 Jun 2017 15:38:22 +0000 (15:38 +0000)]
MFC r311224: Fix PMC architecture check to handle later IPAs including Skylake

git-svn-id: svn://svn.freebsd.org/base/stable/10@320115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r292070: More fixes in the various intel processors, fixing missing
avg [Mon, 19 Jun 2017 15:35:41 +0000 (15:35 +0000)]
MFC r292070: More fixes in the various intel processors, fixing missing
IAP_F_FM's...

git-svn-id: svn://svn.freebsd.org/base/stable/10@320114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r291494: Add support for Intel Skylake and Intel Broadwell PMC's.
avg [Mon, 19 Jun 2017 15:34:07 +0000 (15:34 +0000)]
MFC r291494: Add support for Intel Skylake and Intel Broadwell PMC's.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r281101: Remove whitespace [in hwpmc]
avg [Mon, 19 Jun 2017 15:24:37 +0000 (15:24 +0000)]
MFC r281101: Remove whitespace [in hwpmc]

git-svn-id: svn://svn.freebsd.org/base/stable/10@320112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279939: hwpmc: Fix event number to match enum name
avg [Mon, 19 Jun 2017 15:23:07 +0000 (15:23 +0000)]
MFC r279939: hwpmc: Fix event number to match enum name

git-svn-id: svn://svn.freebsd.org/base/stable/10@320111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279836: Add missing counter definitions
avg [Mon, 19 Jun 2017 15:22:05 +0000 (15:22 +0000)]
MFC r279836: Add missing counter definitions

git-svn-id: svn://svn.freebsd.org/base/stable/10@320110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279835: Fix Ivy Bridge+ MEM_UOPS_RETIRED counters
avg [Mon, 19 Jun 2017 15:20:30 +0000 (15:20 +0000)]
MFC r279835: Fix Ivy Bridge+ MEM_UOPS_RETIRED counters

git-svn-id: svn://svn.freebsd.org/base/stable/10@320109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279834: Support architectural events on Haswell/Ivy Bridge
avg [Mon, 19 Jun 2017 15:16:47 +0000 (15:16 +0000)]
MFC r279834: Support architectural events on Haswell/Ivy Bridge

git-svn-id: svn://svn.freebsd.org/base/stable/10@320107 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279832: Fix Sandy Bridge+ hwpmc branch counters
avg [Mon, 19 Jun 2017 15:13:20 +0000 (15:13 +0000)]
MFC r279832: Fix Sandy Bridge+ hwpmc branch counters

git-svn-id: svn://svn.freebsd.org/base/stable/10@320106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279829: Add manpage for Haswell Xeon pmc implementation
avg [Mon, 19 Jun 2017 15:09:37 +0000 (15:09 +0000)]
MFC r279829: Add manpage for Haswell Xeon pmc implementation

git-svn-id: svn://svn.freebsd.org/base/stable/10@320105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279831: Fix pmc unit restrictions to match documentation
avg [Mon, 19 Jun 2017 15:06:37 +0000 (15:06 +0000)]
MFC r279831: Fix pmc unit restrictions to match documentation

git-svn-id: svn://svn.freebsd.org/base/stable/10@320104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r279830: Fix various bugs in Haswell counter definitions
avg [Mon, 19 Jun 2017 15:04:39 +0000 (15:04 +0000)]
MFC r279830: Fix various bugs in Haswell counter definitions

git-svn-id: svn://svn.freebsd.org/base/stable/10@320103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r277524: style(9) cleanup in hwpmc
avg [Mon, 19 Jun 2017 15:00:06 +0000 (15:00 +0000)]
MFC r277524: style(9) cleanup in hwpmc

git-svn-id: svn://svn.freebsd.org/base/stable/10@320101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC 281102: hwpmc: add initial Intel Broadwell support.
avg [Mon, 19 Jun 2017 14:50:26 +0000 (14:50 +0000)]
MFC 281102: hwpmc: add initial Intel Broadwell support.

git-svn-id: svn://svn.freebsd.org/base/stable/10@320100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319962:
cy [Mon, 19 Jun 2017 05:02:27 +0000 (05:02 +0000)]
MFC r319962:

Correct example directory location.

Submitted by: olivier@

git-svn-id: svn://svn.freebsd.org/base/stable/10@320090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319676:
pfg [Sun, 18 Jun 2017 21:48:33 +0000 (21:48 +0000)]
MFC r319676:
patch: if reading fails, do not go into infinite loop asking for a filename.

This can happen if no tty is available.

Obtained from: OpenBSD (CVS rev 1.54)

git-svn-id: svn://svn.freebsd.org/base/stable/10@320086 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319972:
hselasky [Sun, 18 Jun 2017 11:48:40 +0000 (11:48 +0000)]
MFC r319972:
Use static device numbering instead of dynamic one when creating
mlx4en network interfaces. This prevents infinite unit number growth
typically when the mlx4en driver is used inside virtual machines which
support runtime PCI attach and detach.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@320067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC 319670
jpaetzel [Thu, 15 Jun 2017 23:14:04 +0000 (23:14 +0000)]
MFC 319670

Fix SMBFS when saved passwords are greater than 18 characters

PR: 132302
Submitted by: dhorn2000@gmail.com guru@unixarea.de

git-svn-id: svn://svn.freebsd.org/base/stable/10@319992 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319954:
gjb [Thu, 15 Jun 2017 15:50:49 +0000 (15:50 +0000)]
MFC r319954:
 Modernize FreeBSD version numbers in freebsd-update(8).
 While here, expand a contraction to make textproc/igor happy.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319852:
delphij [Thu, 15 Jun 2017 04:37:23 +0000 (04:37 +0000)]
MFC r319852:

Fix buffer lengths.

After r319369, the RPC code validates caller supplied buffer length in
taddr2uaddr.  When no -h is specified, the sizeof(ai_addr) is used,
which is always smaller than the required size and therefore uaddr
would be NULL, causing the kernel to copyin() from userland NULL
and fail with EFAULT.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318995
alc [Thu, 15 Jun 2017 03:58:23 +0000 (03:58 +0000)]
MFC r318995
  In r118390, the swap pager's approach to striping swap allocation over
  multiple devices was changed.  However, swapoff_one() was not fully and
  correctly converted.  In particular, with r118390's introduction of a per-
  device blist, the maximum swap block size, "dmmax", became irrelevant to
  swapoff_one()'s operation.  Moreover, swapoff_one() was performing out-of-
  range operations on the per-device blist that were silently ignored by
  blist_fill().

  This change corrects both of these problems with swapoff_one(), which will
  allow us to potentially increase MAX_PAGEOUT_CLUSTER.  Previously,
  swapoff_one() would panic inside of blist_fill() if you increased
  MAX_PAGEOUT_CLUSTER.

MFC r319001
  After r118390, the variable "dmmax" was neither the correct strip size
  nor the correct maximum block size.  Moreover, after r318995, it serves
  no purpose except to provide information to user space through a read-
  sysctl.

  This change eliminates the variable "dmmax" but retains the sysctl.  It
  also corrects the value returned by the sysctl.

MFC r319604
  Halve the memory being internally allocated by the blist allocator.  In
  short, half of the memory that is allocated to implement the radix tree is
  wasted because we did not change "u_daddr_t" to be a 64-bit unsigned int
  when we changed "daddr_t" to be a 64-bit (signed) int.  (See r96849 and
  r96851.)

MFC r319612
  When the function blist_fill() was added to the kernel in r107913, the swap
  pager used a different scheme for striping the allocation of swap space
  across multiple devices.  And, although blist_fill() was intended to support
  fill operations with large counts, the old striping scheme never performed a
  fill larger than the stripe size.  Consequently, the misplacement of a
  sanity check in blst_meta_fill() went undetected.  Now, moving forward in
  time to r118390, a new scheme for striping was introduced that maintained a
  blist allocator per device, but as noted in r318995, swapoff_one() was not
  fully and correctly converted to the new scheme.  This change completes what
  was started in r318995 by fixing the underlying bug in blst_meta_fill() that
  stops swapoff_one() from simply performing a single blist_fill() operation.

MFC r319627
  Starting in r118390, swaponsomething() began to reserve the blocks at the
  beginning of a swap area for a disk label.  However, neither r118390 nor
  r118544, which increased the reservation from one to two blocks, correctly
  accounted for these blocks when updating the variable "swap_pager_avail".
  This change corrects that error.

MFC r319655
  Originally, this file could be compiled as a user-space application for
  testing purposes.  However, over the years, various changes to the kernel
  have broken this feature.  This revision applies some fixes to get user-
  space compilation working again.  There are no changes in this revision
  to code that is used by the kernel.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC: 319690
dexuan [Wed, 14 Jun 2017 13:23:40 +0000 (13:23 +0000)]
MFC: 319690

r319690
hyperv/pcib: use the device serial number as PCI domain

Currently the PCI domain is initialized with the instance GUID in
vmbus_pcib_attach(). It turns out the GUID can change across VM reboot,
while some users want a persistent value for PCI domain. The solution is
that we can change to use the device serial number, which starts with 1
and is unique within a VM.

Obtained from: Haiyang Zhang
Sponsored by: Microsoft

git-svn-id: svn://svn.freebsd.org/base/stable/10@319941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r313021, r319621:
gjb [Thu, 8 Jun 2017 16:04:13 +0000 (16:04 +0000)]
MFC r313021, r319621:

 r313021 (brd):
  Force a few variables to be uppercase when they are evaluated.

 r319621:
  Ensure ${_CW} is uppercase when passing '-c' to mk-vmimage.sh,
  otherwise with 'CLOUDWARE=vagrant-virtualbox', the path to the
  configuration file may be incorrect.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318780:
kib [Wed, 7 Jun 2017 11:43:36 +0000 (11:43 +0000)]
MFC r318780:
Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318781:
kib [Wed, 7 Jun 2017 11:42:43 +0000 (11:42 +0000)]
MFC r318781:
Add BIT_OR2(), BIT_AND2(), BIT_NAND2(), BIT_XOR() and BIT_XOR2().

git-svn-id: svn://svn.freebsd.org/base/stable/10@319652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318998:
cy [Tue, 6 Jun 2017 19:21:35 +0000 (19:21 +0000)]
MFC r318998:

Fix return value of ip_sync_nat. Previously, regardless of error it
always returned a return code of 0.

Obtained from: NetBSD ip_sync.c r1.5

git-svn-id: svn://svn.freebsd.org/base/stable/10@319633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoWork around a gcc 4.2 bug on powerpc architectures, where using
dim [Tue, 6 Jun 2017 18:40:14 +0000 (18:40 +0000)]
Work around a gcc 4.2 bug on powerpc architectures, where using
-fdata-sections can cause bogus "section type conflict" errors.  See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33168 for more information.

Since the upstream fixes are under GPLv3 and non-trivial, just disable
using function and data sections, at the cost of a slightly larger
executable.

Direct commit to stable/10, since the version of clang in head and
stable/11 cannot be built by gcc 4.2 at all.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319631 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318943 (avg):
gjb [Tue, 6 Jun 2017 14:46:45 +0000 (14:46 +0000)]
MFC r318943 (avg):

 MFV r318942: 8166 zpool scrub thinks it repaired offline device

 https://www.illumos.org/issues/8166
  If we do a scrub while a leaf device is offline (via "zpool offline"),
  we will inadvertently clear the DTL (dirty time log) of the offline
  device, even though it is still damaged. When the device comes back
  online, we will incompletely resilver it, thinking that the scrub
  repaired blocks written before the scrub was started. The incomplete
  resilver can lead to data loss if there is a subsequent failure of a
  different leaf device.
  The fix is to never clear the DTL of offline devices. Note that if a
  device is onlined while a scrub is in progress, the scrub will be
  restarted.
  The problem can be worked around by running "zpool scrub" after
  "zpool online".
  See also https://github.com/zfsonlinux/zfs/issues/5806

PR: 219537
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319369:
delphij [Tue, 6 Jun 2017 07:22:26 +0000 (07:22 +0000)]
MFC r319369:

 * limit size of buffers to RPC_MAXDATASIZE
 * don't leak memory
 * be more picky about bad parameters

From:

https://raw.githubusercontent.com/guidovranken/rpcbomb/master/libtirpc_patch.txt
https://github.com/guidovranken/rpcbomb/blob/master/rpcbind_patch.txt

via NetBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r319390, cxgbetool(8) addition.
gjb [Mon, 5 Jun 2017 18:54:53 +0000 (18:54 +0000)]
Document r319390, cxgbetool(8) addition.
Document r298427, truss(1) '-H' flag.
Document r304017, ptrace(2) threaded process debugging improvements.
Document r306533, devctl(8) 'clear driver' added.
Document r309560, cxgbe(4) T6 support.
Document r309447, cxgbe(4) VF support for T4/T5 cards.
Document r309560, cxgbe(4) VF support for T6 cards.
Document r308154, cxgbe(4) additional virtual interface support.
Document r306520, PCI passthrough/bhyve improvements.
Document r306472, PCI passthrough/bhyve improvements.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319413:
hselasky [Sun, 4 Jun 2017 08:47:09 +0000 (08:47 +0000)]
MFC r319413:
Free hardware queue resource after port is stopped in the mlx4en(4)
driver. Else if the port is up the resource might still be busy and
the MTT free will fail.

PR: 216493
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@319567 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319414:
hselasky [Sun, 4 Jun 2017 08:29:17 +0000 (08:29 +0000)]
MFC r319414:
Allow communication between functions on the same host when using the
mlx4en(4) driver in SRIOV mode.

Place a copy of the destination MAC address in the send WQE only under
SRIOV/eSwitch configuration or when the device is in selftest. This
allows communication between functions on the same host.

PR: 216493
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@319564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r316503,r316504,r316505:
ngie [Sat, 3 Jun 2017 18:25:36 +0000 (18:25 +0000)]
MFC r316503,r316504,r316505:

r316503:

Clean up trailing whitespace

r316504:

Clean up more trailing whitespace in the licensing tort that
happened to be spaces, not tabs

r316505:

Don't assume NAME_MAX is 255

Query the filesystem limit via getconf(3) instead

git-svn-id: svn://svn.freebsd.org/base/stable/10@319550 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318974: uart: add AMT SOL PCI ID
emaste [Sat, 3 Jun 2017 02:47:30 +0000 (02:47 +0000)]
MFC r318974: uart: add AMT SOL PCI ID

I adjusted the description to be similar to existing AMT entries.

PR: 219384

git-svn-id: svn://svn.freebsd.org/base/stable/10@319511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318211:
ngie [Fri, 2 Jun 2017 00:29:23 +0000 (00:29 +0000)]
MFC r318211:

Fix up previous commit

- Apply the logic to the FreeBSD block
- Fix a typo with the getconf(1) call that I would have caught, were
  it not for the fact that I got the blocks wrong.
- Consolidate the hardcoded buffer sizes to the NetBSD block.

This would have been discovered had I run the test on a system where
PATH_MAX != 1024 (I don't have that at my disposal right at this moment).

MFC with: r318210

git-svn-id: svn://svn.freebsd.org/base/stable/10@319484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318210:
ngie [Fri, 2 Jun 2017 00:27:08 +0000 (00:27 +0000)]
MFC r318210:

ssp_test:read:: query the value of MAXPATHLEN via getconf(1)

In the event the value of PATH_MAX was changed, the assumption that
MAXPATHLEN is 1024 (and hence the buffer length required to trigger
SSP to fail for read(2)) would be invalidated. Query getconf(1) for
the actual value of MAXPATHLEN via _XOPEN_PATH_MAX instead, and
increment the value by 1 to ensure that the SSP support tests the
stack smashing support properly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318676
davidcs [Thu, 1 Jun 2017 18:37:08 +0000 (18:37 +0000)]
MFC r318676
  Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.

Submitted by:Shminderjit.Singh@cavium.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@319451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318895: Fix several problems with mapping code in mps(4).
slm [Thu, 1 Jun 2017 16:54:10 +0000 (16:54 +0000)]
MFC r318895: Fix several problems with mapping code in mps(4).
MFC r318896: Fix several problems with mapping code in mpr(4).

-Add several comments describing what the mapping code is doing.
-Added a callout timer to improve check for missing devices when discovery has
 completed so that missing counts are incremented correctly.
-Fix problems with missing counts not being saved to the HBA.
-Update man pages mps(4) and mpr(4) to include a description of the use
 use_phy_num sysctl variable.
-Remove channel field in the mapping structure because it's not used.
-Improve logging by using mps_dprint or mpr_dprint instead of printf and adding
 more logging where appropriate.
-Add check for a bad index before writing mapping entries to controller.
-The high missing count check in the mapping table was using the incorrect
 initial value, which could lead to a bad result.
-The usage of the IN_USE flag for volume mapping was changed to be more
 intuitive, and was not being used correctly.
-The check for a free DPM entry was changed, as this was completely wrong.
-Updates to the missing count for volumes were not being done correctly, so this
 function was completely rewritten.
-_mapping_add_to_removal_table() was overly complicated and incorrectly used, so
 this function was rewritten.
-Missing counts for all devices were not being incremented properly, so this
 functionality was added.
-The search for space in the mapping table for missing enclosures was not
 calculating the found space correctly due to not breaking out of a loop when
 required, and the num_found variable was not being reset when needed.
-Retries when a device fails to get added due to a full mapping table were
 removed because this is unneccessary.
-mps_mapping_is_reinit_required() and mpr_mapping_is_reinit_required() were
 removed because they were not being used.
-Some functions were renamed to avoid confusion between Target IDs and SAS IDs.
-_mapping_check_update_ir_mt_idx() was removed because it was overly
 complicating volume mapping.
-The setting of the maxtargets variable was changed to include max volumes.
-The setting of the initiator_id variable was changed to be the invalid target
 ID after all targets, including volumes. Previously, this was set to the last
 valid target ID.
-Don't exclude target IDs of RAID components or check for a reuse of a target ID
 for RAID components.
-Some endienness was added.

Approved by: ken, mav

git-svn-id: svn://svn.freebsd.org/base/stable/10@319445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r319436, mpr(4) tri-mode support.
gjb [Thu, 1 Jun 2017 15:58:21 +0000 (15:58 +0000)]
Document r319436, mpr(4) tri-mode support.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r286567, r286568, r289426, r289429, r295113, r295286, r299367, r299369,
slm [Thu, 1 Jun 2017 15:43:24 +0000 (15:43 +0000)]
MFC r286567, r286568, r289426, r289429, r295113, r295286, r299367, r299369,
    r308217, r308301, r311958, r312437, r318188, r318427, r318679

r286567:
Remove some unused code.

Obtained from: Netflix, Inx.

r286568:
Remove mps_request_polled(), it's redundant to mps_wait_command()

Obtained from: Netflix, Inc.

r289426:
Remove _FreeBSD_version check for something that was only an issue with
9-CURRENT.

Obtained from:  Netlfix, Inc
MFC after:      3 days

r289429:
Revert an extra hunk that crept into the last commit.

Submitted by: emax
Obtained from: Netflix, Inc.
MFC after: 3 days

r295113:
Clean up unused-but-set-variable spotted by gcc-4.9.

Reviewed by: mav, slm
Approved by: rodrigc (mentor)
MFC after: 2 weeks
Sponsored by: gandi.net

r295286:
Add sysctls for dumping out the device mapping tables.  I'm finding this
useful for debugging device-target translation bugs.

MFC after: 3 days
Sponsored by: Netflix

r299367:
Remove NULL checks after M_WAITOK allocations from mps(4).

Reviewed by: asomers@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6296

r299369:
Remove NULL checks after M_WAITOK allocations from mpr(4).

Reviewed by: asomers@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D6297

r308217:
Add a fallback to the device mapper logic.  We've seen systems in the field
that are apparently misconfigured by the manufacturer and cause the mapping
logic to fail.  The fallback allows drive numbers to be assigned based on the
PHY number that they're attached to.  Add sysctls and tunables to overrid
this new behavior, but they should be considered only necessary for debugging.

Reviewed by:  imp, smh
Obtained from: Netflix
MFC after: 3 days
Sponsored by: D8403

r308301:
Record the LogInfo field when reporting the IOCStatus.  Helps in
debugging errors.

Submitted by: slm
Obtained from: Netflix
MFC after: 3 days

r311958:
Print out the number of queues/MSIx vectors.

Sponsored by: Netflix

r312437:
Rework the debug print API. Event printing no longer gets special handling.
All of the printing from the tables file now has wrappers so that the
handling is cleaner and it's possible to print something out (say, during
development) without having to fight the global debug flags. This re-org
will also make it easier to have the tables be compiled out at build time
if desired.

Other than fixing some minor bugs, there are no user-visible changes from
this change

Sponsored by: Netflix, Inc.
Differential Revision: D9238

r318188:
Improve error messages during command timeout for the mpr and mps
drivers.

Sponsored by: Netflix

r318427:
Add tri-mode support (SAS/SATA/PCIe).

This includes NVMe device support and adds support for the following adapters:
    SAS 3408
    SAS 3416
    SAS 3508
    SAS 3516
    SAS 3616
    SAS 3708
    SAS 3716

Reviewed by:    ken, scottl, asomers, mav
Approved by: ken, scottl, mav
MFC after:      2 weeks
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D10095

r318679:
Fix powerpc compiler error.

Approved by: ken

git-svn-id: svn://svn.freebsd.org/base/stable/10@319436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318832: MFV r316923: 8026 retire zfs_throttle_delay and zfs_throttle_resolution
avg [Thu, 1 Jun 2017 14:07:40 +0000 (14:07 +0000)]
MFC r318832: MFV r316923: 8026 retire zfs_throttle_delay and zfs_throttle_resolution

git-svn-id: svn://svn.freebsd.org/base/stable/10@319423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318830: MFV r316921: 8027 tighten up dsl_pool_dirty_delta
avg [Thu, 1 Jun 2017 14:05:54 +0000 (14:05 +0000)]
MFC r318830: MFV r316921: 8027 tighten up dsl_pool_dirty_delta

git-svn-id: svn://svn.freebsd.org/base/stable/10@319421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318450:
kib [Thu, 1 Jun 2017 13:22:04 +0000 (13:22 +0000)]
MFC r318450:
Add tests for some cases in r318298.

PR: 219154

git-svn-id: svn://svn.freebsd.org/base/stable/10@319419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319096: zfs_lookup: fix bogus arguments to lookup of "snapshot" directory
avg [Thu, 1 Jun 2017 11:48:01 +0000 (11:48 +0000)]
MFC r319096: zfs_lookup: fix bogus arguments to lookup of "snapshot" directory

git-svn-id: svn://svn.freebsd.org/base/stable/10@319416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoRegenerate src.conf(5)
ngie [Thu, 1 Jun 2017 07:10:40 +0000 (07:10 +0000)]
Regenerate src.conf(5)

git-svn-id: svn://svn.freebsd.org/base/stable/10@319391 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r314579,r314785:
ngie [Thu, 1 Jun 2017 07:08:26 +0000 (07:08 +0000)]
MFC r314579,r314785:

r314579 (by np):

Add cxgbetool(8) to the base system.

Move cxgbetool from tools/tools to usr.sbin. Compile and install it on
platforms where cxgbe(4) is built by default.  Knobs (WITH_CXGBETOOL and
WITHOUT_CXGBETOOL) have been added so that the user can override the
default setting.

r314785:

Fix some trivial manlint warnings

Sentences should begin on new lines, per manlint.

Bump .Dd for the change

git-svn-id: svn://svn.freebsd.org/base/stable/10@319390 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318437:
ngie [Thu, 1 Jun 2017 06:42:20 +0000 (06:42 +0000)]
MFC r318437:

Revert local changes to find_progenv accidentally committed in r318436

MFC with: r318436

git-svn-id: svn://svn.freebsd.org/base/stable/10@319386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318436:
ngie [Thu, 1 Jun 2017 06:41:27 +0000 (06:41 +0000)]
MFC r318436:

usr.bin/getconf: add some initial tests

Items tested via this commit are:
- Some basic POSIX constants.
- Some valid programming environments with -v.
- Some invalid programming environments via -v.

NOTE: this test makes assumptions about ILP32/LP32 vs LP64 that are
currently not true on all architectures to avoid hardcoding some
architectures in the tests. I'm working on improving getconf(1) to be
more sane about handling ILP32/LP32 vs LP64. Future commits are coming
soon to address this.

Tested with: amd64, i386

git-svn-id: svn://svn.freebsd.org/base/stable/10@319385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318434:
ngie [Thu, 1 Jun 2017 06:39:55 +0000 (06:39 +0000)]
MFC r318434:

Make the `.gperf.c` suffix rule depend on fake-gperf.awk

Parameterize out fake-gperf.awk to avoid duplicating the path

git-svn-id: svn://svn.freebsd.org/base/stable/10@319382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318177:
ngie [Thu, 1 Jun 2017 06:37:53 +0000 (06:37 +0000)]
MFC r318177:

Unconditionally install udp(4) and udplite(4) again

I added this to the MK_USB != no block in error in r278202.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319157:
ngie [Thu, 1 Jun 2017 06:35:40 +0000 (06:35 +0000)]
MFC r319157:

fma_test: mute a warning about unreachable code on amd64 by restructuring
the #ifdef block to only handle the rest of the logic in the loop in the
#else case.

CID: 1346844

git-svn-id: svn://svn.freebsd.org/base/stable/10@319379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319158:
ngie [Thu, 1 Jun 2017 06:34:14 +0000 (06:34 +0000)]
MFC r319158:

logarithm_test: assert that feclearexcept succeeds

This helps ensure that test preconditons are fulfilled.

CID: 1346572

git-svn-id: svn://svn.freebsd.org/base/stable/10@319376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318179:
ngie [Thu, 1 Jun 2017 06:31:25 +0000 (06:31 +0000)]
MFC r318179:

procstat(1): also reference icmp(4) and sctp(4)

This was missed in the previous commit by accident.

MFC with: r318178

git-svn-id: svn://svn.freebsd.org/base/stable/10@319375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318175:
ngie [Thu, 1 Jun 2017 06:30:22 +0000 (06:30 +0000)]
MFC r318175:

procstat(1): clarify the Signal Disposition section

- Fix a typo (SIGIGN -> SIG_IGN). Use .Dv when referencing SIG_IGN.
- Use semi-colons as soft breaks when separating sentences for
  the FLAGS section.
- Tweak wording for C slightly to flow better and to be a bit
  more technically correct (signals with handlers installed will
  be caught by the target program).
- Reference signal(3) in the SEE ALSO section.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318178:
ngie [Thu, 1 Jun 2017 06:27:15 +0000 (06:27 +0000)]
MFC r318178:

procstat(1): document all possible `PRO` (network protocol) values

Reference the appropriate section 4 manpages for networking
protocols.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319156,r319159:
ngie [Thu, 1 Jun 2017 06:16:57 +0000 (06:16 +0000)]
MFC r319156,r319159:

r319156:

:nvlist_unpack__duplicate_key : check the result of nvlist_pack(3)

This fixes a potential NULL pointer dereference.

CID: 1362051

r319159:

:dnvlist_get_string__default_value: fix a bogus string comparison test

Check actual_value vs "5", not "5" vs itself.

CID: 1362021

git-svn-id: svn://svn.freebsd.org/base/stable/10@319370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoBump copyright years after previous commit.
gjb [Wed, 31 May 2017 17:42:07 +0000 (17:42 +0000)]
Bump copyright years after previous commit.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoWhitespace fixes to conform to FDP style.
gjb [Wed, 31 May 2017 17:42:06 +0000 (17:42 +0000)]
Whitespace fixes to conform to FDP style.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r318675, fix the client side krpc from doing TCP
gjb [Wed, 31 May 2017 17:42:05 +0000 (17:42 +0000)]
Document r318675, fix the client side krpc from doing TCP
reconnects for ERESTART from sosend().

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r309258, max_align_t for C11 compliance.
gjb [Wed, 31 May 2017 17:42:04 +0000 (17:42 +0000)]
Document r309258, max_align_t for C11 compliance.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r318593:
asomers [Wed, 31 May 2017 17:20:55 +0000 (17:20 +0000)]
MFC r318593:

Fix build of AIO tests with -DDEBUG

Also, redefine some constants for clarity.  No functional change.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r313558, garbage IP addresses in UDP log_in_vain messages
gjb [Wed, 31 May 2017 13:44:54 +0000 (13:44 +0000)]
Document r313558, garbage IP addresses in UDP log_in_vain messages
fix.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319335 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r316040, kvm_close(3) return error fix.
gjb [Wed, 31 May 2017 13:44:53 +0000 (13:44 +0000)]
Document r316040, kvm_close(3) return error fix.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319334 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r317375, RTT used for receive buffer auto resizing.
gjb [Wed, 31 May 2017 13:44:53 +0000 (13:44 +0000)]
Document r317375, RTT used for receive buffer auto resizing.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319333 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r319243, rpcbind(8) warmstart support knob.
gjb [Wed, 31 May 2017 13:33:15 +0000 (13:33 +0000)]
Document r319243, rpcbind(8) warmstart support knob.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319332 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r319270, cxgbe(4) firmware update.
gjb [Wed, 31 May 2017 13:33:14 +0000 (13:33 +0000)]
Document r319270, cxgbe(4) firmware update.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319331 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r317434, ipf(4) 'keep frags' no longer implicit with
gjb [Wed, 31 May 2017 13:33:13 +0000 (13:33 +0000)]
Document r317434, ipf(4) 'keep frags' no longer implicit with
'keep state'

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r308915, zfsbootcfg(8).
gjb [Wed, 31 May 2017 13:33:13 +0000 (13:33 +0000)]
Document r308915, zfsbootcfg(8).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r316046, WITHOUT_LIBTHR properly removes optional files.
gjb [Wed, 31 May 2017 13:33:12 +0000 (13:33 +0000)]
Document r316046, WITHOUT_LIBTHR properly removes optional files.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319328 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r313206, inetd(8) buildable without libwrap(3).
gjb [Wed, 31 May 2017 13:33:11 +0000 (13:33 +0000)]
Document r313206, inetd(8) buildable without libwrap(3).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r309340, GARP retransmit capability.
gjb [Wed, 31 May 2017 13:33:10 +0000 (13:33 +0000)]
Document r309340, GARP retransmit capability.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r312359, r314019: alc(4) Killer E2400/E2500 support.
gjb [Wed, 31 May 2017 13:33:09 +0000 (13:33 +0000)]
Document r312359, r314019: alc(4) Killer E2400/E2500 support.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoDocument r311507, cxgbe(4) firmware 1.16.26.0.
gjb [Wed, 31 May 2017 13:33:08 +0000 (13:33 +0000)]
Document r311507, cxgbe(4) firmware 1.16.26.0.
Document r316485, qlnx(4) addition.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@319324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r319086:
kib [Wed, 31 May 2017 09:25:47 +0000 (09:25 +0000)]
MFC r319086:
Mention that the basep argument to getdirentries(2) can be NULL.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r317632:
ngie [Wed, 31 May 2017 08:47:09 +0000 (08:47 +0000)]
MFC r317632:

Fix "make cscope-clean" when .OBJDIR already exists

The cscope generated files are always put in .CURDIR .

git-svn-id: svn://svn.freebsd.org/base/stable/10@319309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r316742:
ngie [Wed, 31 May 2017 08:43:45 +0000 (08:43 +0000)]
MFC r316742:

Clarify units for mediasize and sectorsize in DoFile(..)

They're byte quantities.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r316740:
ngie [Wed, 31 May 2017 08:42:44 +0000 (08:42 +0000)]
MFC r316740:

Clarify `minfree` warning message in check_space(..)

- State that the units are kB.
- Be more complete/concise in terms of what is required (in this case
  `minfree` must be at least `X`kB)

git-svn-id: svn://svn.freebsd.org/base/stable/10@319305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

6 years agoMFC r317311,r317312,r319019:
ngie [Wed, 31 May 2017 08:40:46 +0000 (08:40 +0000)]
MFC r317311,r317312,r319019:

r317311:

Check for failures from getpagesize(3)

Return errno on failure, similar to the open(2) call above it.

CID: 1193753

r317312:

Fix type for `pagesize` to match the return type for getpagesize(3)
to fix the build

Pointyhat to: ngie

r319019:

Remove getpagesize(3) error checking added in r317312

getpagesize(3) no longer fails as of r317436.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f