]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
7 years agoMFC: r314694
rgrimes [Sat, 22 Apr 2017 22:05:23 +0000 (22:05 +0000)]
MFC: r314694

  Make vmrun.sh passthrough -u and -w to bhybe

PR: 214273
Submitted by: Martin Birgmeier <la5lb...@aon.at>
Approved by: grehan (mentor)

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

7 years agoMFC: r314691
rgrimes [Sat, 22 Apr 2017 21:57:26 +0000 (21:57 +0000)]
MFC: r314691

Document 3 more src/ directories

Approved by: grehan (mentor)

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

7 years agoDocument EN-17:01 through EN-17:05, SA-16:39 through SA-17:03
gjb [Fri, 21 Apr 2017 19:41:33 +0000 (19:41 +0000)]
Document EN-17:01 through EN-17:05, SA-16:39 through SA-17:03

Sponsored by: The FreeBSD Foundation

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

7 years agoMFC r316852:
kib [Fri, 21 Apr 2017 10:16:34 +0000 (10:16 +0000)]
MFC r316852:
In fsck_ffs pass1, prevent the inosused variable from wrapping.

PR: 218592

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

7 years agoMFC r317139 for real.
cy [Fri, 21 Apr 2017 02:11:44 +0000 (02:11 +0000)]
MFC r317139 for real.

Restore prototype accidently removed by r316811.  Also remove $NetBSD$
accidentally added.

Reported by:    hps, lwhsu
Pointy hat to: cy

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

7 years agoMFC r316811, r317139:
cy [Fri, 21 Apr 2017 02:02:52 +0000 (02:02 +0000)]
MFC r316811, r317139:

Add missing free()'s after calls to randomize().

PR: NetBSD PR/50559
Obtained from: Netbsd radix_ipf.c r1.6

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

7 years agoMFC r316809:
cy [Fri, 21 Apr 2017 01:51:49 +0000 (01:51 +0000)]
MFC r316809:

Fix a use after free panic in ipfilter's fragment processing.
Memory is malloc'd, then a search for a match in the fragment table
is made and if the fragment matches, the wrong fragment table is
freed, causing a use after free panic. This commit fixes this.

A symptom of the problem is a kernel page fault in bcopy() called by
ipf_frag_lookup() at line 715 in ip_frag.c. Another symptom is a
kernel page fault in ipf_frag_delete() when called by ipf_frag_expire()
via ipf_slowtimer().

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

7 years agoMFC r316183
davidcs [Thu, 20 Apr 2017 04:33:47 +0000 (04:33 +0000)]
MFC r316183
Upgrade firmware and other related files to version 5.4.64

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

7 years agoMFC r316739:
kib [Wed, 19 Apr 2017 10:57:57 +0000 (10:57 +0000)]
MFC r316739:
Fix reporting of _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.

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

7 years agoMFC 316813,316815
sephe [Wed, 19 Apr 2017 05:28:21 +0000 (05:28 +0000)]
MFC 316813,316815

316813
    hyperv/storvsc: Use ULL for 64bits value shift.

    Reported by:    PVS
    Sponsored by:   Microsoft

316815
    hyperv/kvp: Remove always false condition.

    Reported by:    PVS
    Sponsored by:   Microsoft

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

7 years agoMFC 316515,316812
sephe [Wed, 19 Apr 2017 05:19:33 +0000 (05:19 +0000)]
MFC 316515,316812

316515
    hyperv/kbd: Add support for synthetic keyboard.

    Synthetic keyboard is the only supported keyboard on GEN2 Hyper-V.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10196

316812
    hyperv/kbd: Remove unnecessary assignment.

    Reported by:    PVS
    Sponsored by:   Microsoft

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

7 years agoMFC r316747
davidcs [Wed, 19 Apr 2017 03:43:24 +0000 (03:43 +0000)]
MFC r316747
  Fix rss_ind_table entry for num_funcs > 1

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

7 years agoMFC r316720
davidcs [Wed, 19 Apr 2017 03:41:19 +0000 (03:41 +0000)]
MFC r316720
  Fix defects reported by Coverity
    1. Deadcode in ecore_init_cache_line_size(), qlnx_ioctl() and
     qlnx_clean_filters()
    2. ARRAY_VS_SINGLETON issue in qlnx_remove_all_mcast_mac() and
     qlnx_update_rx_prod()

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

7 years agoMFC r316485
davidcs [Wed, 19 Apr 2017 03:37:11 +0000 (03:37 +0000)]
MFC r316485
    Add 25/40/100Gigabit Ethernet Driver version v1.3.0 for Cavium Inc's.
    Qlogic 45000 Series Adapters

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

7 years agoMFC 317107
sephe [Wed, 19 Apr 2017 03:06:27 +0000 (03:06 +0000)]
MFC 317107
    hyperv: Use kmem_malloc for hypercall memory due to NX bit change.

    Reported by:    dexuan@
    Sponsored by:   Microsoft

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

7 years agoMFC r316310
davidcs [Wed, 19 Apr 2017 02:59:26 +0000 (02:59 +0000)]
MFC r316310
Update man page for commit r316309 "Add support for optional Soft LRO".
The driver provides the ability to select either HW or Software LRO, when
LRO is enabled (default HW LRO).

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

7 years agoMFC r316309
davidcs [Wed, 19 Apr 2017 02:58:14 +0000 (02:58 +0000)]
MFC r316309
Add support for optional Soft LRO

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

7 years agoMFC r285117
asomers [Tue, 18 Apr 2017 16:17:38 +0000 (16:17 +0000)]
MFC r285117

Make cleanup routines idempotent

cleanup routines can be executed at any point during the execution of the
body, including even before the body has done any real work.  In those
cases, cleanup routines should be careful to not raise spurious errors so
as to not "override" the actual result of the test case.

This is just general good coding style but is not a problem in practice
for these specific tests.  (The way I discovered the issue, though, was
due to a regression I introduced in Kyua itself while refactoring some
internals.)

MFC after:      1 week

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

7 years agoMFC r316716:
ae [Tue, 18 Apr 2017 09:22:06 +0000 (09:22 +0000)]
MFC r316716:
  Inherit IPv6 checksum offloading flags to vlan interfaces.

  if_vlan(4) interfaces inherit IPv4 checksum offloading flags from the
  parent when VLAN_HWCSUM and VLAN_HWTAGGING flags are present on the
  parent interface. Do the same for IPv6 checksum offloading flags.

  Reported by: Harry Schmalzbauer
  Reviewed by: np, gnn
  Differential Revision: https://reviews.freebsd.org/D10356

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

7 years agoMFC r316956:
bapt [Mon, 17 Apr 2017 19:10:12 +0000 (19:10 +0000)]
MFC r316956:

Update pci_vendors to 2017.04.03

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

7 years agoMFC r316427, r316428: Add Log directory and SATA NCQ Send and Receive Log.
mav [Sun, 16 Apr 2017 06:00:14 +0000 (06:00 +0000)]
MFC r316427, r316428: Add Log directory and SATA NCQ Send and Receive Log.

Those are used at least by Linux guests to detect queued TRIM support.

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

7 years agoMFC r315948:
dchagin [Sat, 15 Apr 2017 11:16:11 +0000 (11:16 +0000)]
MFC r315948:

Update tcsh to 6.20.00

MFC r315952:

Update tcsh to vendor git b605cb561d

Vendor changes:

1. PR/471: Daiki Ueno: Delay interpreting arginp until we've processed
our startup files (which can change the NLS environment).

2. Fix type of read in prompt confirmation (eg. rmstar) (David Kaspar).

3. Fix out of bounds read (Brooks Davis)
(reproduce by starting tcsh and hitting tab at the prompt).

4. Don't play pointer tricks that are undefined in modern c
(Brooks Davis).

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

7 years agoMFC r314686: sh: Fix crash if a -T trap is taken during command substitution.
jilles [Fri, 14 Apr 2017 21:42:27 +0000 (21:42 +0000)]
MFC r314686: sh: Fix crash if a -T trap is taken during command substitution.

Code like  t=$(stat -f %m "$file")  segfaulted if -T was active and a trap
was taken while the shell was waiting for the child process to finish.

What happened was that the dotrap() call in waitforjob() was hit. This
re-entered command execution (including expand.c) at a point not expected by
expbackq(), and global state (unallocated stack string and argbackq) was
corrupted.

To fix this, change expbackq() to prepare for command execution to be
re-entered.

In stable/10, there is more global state that needs to be restored than in
stable/11 and head.

Reported by: bdrewery

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

7 years agofix mismerge in r316846, MFC of r315858
avg [Fri, 14 Apr 2017 16:40:10 +0000 (16:40 +0000)]
fix mismerge in r316846, MFC of r315858

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

7 years agoMFC r315852: zfs: add zio_buf_alloc_nowait and use it in vdev_queue_aggregate
avg [Fri, 14 Apr 2017 15:09:30 +0000 (15:09 +0000)]
MFC r315852: zfs: add zio_buf_alloc_nowait and use it in vdev_queue_aggregate

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

7 years agoMFC r315853: zfs_putpages: use TXG_WAIT
avg [Fri, 14 Apr 2017 15:07:55 +0000 (15:07 +0000)]
MFC r315853: zfs_putpages: use TXG_WAIT

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

7 years agoMFC r315858: aacraid: rework r315083 for a clean build with and without AACRAID_DEBUG
avg [Fri, 14 Apr 2017 15:06:22 +0000 (15:06 +0000)]
MFC r315858: aacraid: rework r315083 for a clean build with and without AACRAID_DEBUG

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

7 years agoMFC r315960: dtrace sched:::preempt should fire only when there is preemption
avg [Fri, 14 Apr 2017 14:45:44 +0000 (14:45 +0000)]
MFC r315960: dtrace sched:::preempt should fire only when there is preemption

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

7 years agoMFC r315851: move thread switch tracing from mi_switch to sched_switch
avg [Fri, 14 Apr 2017 14:44:06 +0000 (14:44 +0000)]
MFC r315851: move thread switch tracing from mi_switch to sched_switch

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

7 years agoMFC r315078: uma: fix pages <-> items conversions at several places
avg [Fri, 14 Apr 2017 14:41:31 +0000 (14:41 +0000)]
MFC r315078: uma: fix pages <-> items conversions at several places

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

7 years agoMFC r286583: Avoid sign extension of value passed to kva_alloc from uma_zone_reserve_kva
avg [Fri, 14 Apr 2017 14:39:58 +0000 (14:39 +0000)]
MFC r286583: Avoid sign extension of value passed to kva_alloc from uma_zone_reserve_kva

On behalf of: zbb

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

7 years agoMFC r315077: uma: eliminate uk_slabsize field
avg [Fri, 14 Apr 2017 14:11:59 +0000 (14:11 +0000)]
MFC r315077: uma: eliminate uk_slabsize field

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

7 years agoMFC r316593:
brooks [Fri, 14 Apr 2017 00:15:34 +0000 (00:15 +0000)]
MFC r316593:

Point out that -F probably does not do what the user expects.

Users attempting to create images from mtree METALOG files created by
installworld often use -F when they should be passing the METALOG file
in place of a directory. This is often produces difficult to debug
error reports.

Reviewed by: emaste
Sponsored by: DARPA, AFRL

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

7 years agoMFC r316066:
bdrewery [Thu, 13 Apr 2017 20:36:40 +0000 (20:36 +0000)]
MFC r316066:

  Release ccb if mode_buffer allocation fails.

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

7 years agoMFC r315691:
bdrewery [Thu, 13 Apr 2017 20:34:02 +0000 (20:34 +0000)]
MFC r315691:

  Rename _cc to _gcc to be more clear.

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

7 years agoMFC r315211:
bdrewery [Thu, 13 Apr 2017 20:32:34 +0000 (20:32 +0000)]
MFC r315211:

  hier(7): Fix entry location for /usr/share/vt.

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

7 years agoMFC r291310:
ian [Thu, 13 Apr 2017 19:48:45 +0000 (19:48 +0000)]
MFC r291310:

Stop building vers.c in include/ and only build the needed osreldate.h.

Because of how osreldate.h was being built with newvers.sh, which always
spat out a vers.c dependent on SVN or git, the meta mode build was
considering osreldate.h to depend on the current git or SVN index.  This
would lead to entire tree rebuilds when modifying git's index.  There's
no reason to be generating vers.c here so just skip it.

While here, in mk-osreldate.sh rename PARAM_H to proper PARAMFILE (which
newvers.sh already has a default for) and remove unneeded export.

Sponsored by: EMC / Isilon Storage Division

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

7 years agoMFC r314671 (by cem):
dim [Thu, 13 Apr 2017 17:11:50 +0000 (17:11 +0000)]
MFC r314671 (by cem):

newfs_nandfs: Fix unaligned pointer warning

PR: 217532
Submitted by: Trond Endrestol <Trond.Endrestol at ximalas.info>

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

7 years agoMFC r316617 (partial):
gjb [Thu, 13 Apr 2017 15:47:58 +0000 (15:47 +0000)]
MFC r316617 (partial):
- Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx
  file to the md(4) device for IMX6-based boards.

Sponsored by: The FreeBSD Foundation

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

7 years agoMFC r316695, MFV r316693:
pfg [Thu, 13 Apr 2017 15:40:57 +0000 (15:40 +0000)]
MFC r316695, MFV r316693:
8046 Let calloc() do the multiplication in libzfs_fru_refresh

https://github.com/illumos/illumos-gate/commit/5697e03e6e3e2697f56ae341c7c8ce79680d6a2e

https://www.illumos.org/issues/8046

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Pedro Giffuni <pfg@freebsd.org>

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

7 years agoMFC 316520
sephe [Mon, 10 Apr 2017 03:23:57 +0000 (03:23 +0000)]
MFC 316520

    hyperv/hn: Fixat RNDIS rxfilter after the successful RNDIS init.

    Under certain conditions on certain versions of Hyper-V, the RNDIS
    rxfilter is _not_ zero on the hypervisor side after the successful
    RNDIS initialization, which breaks the assumption of any following
    code (well, it breaks the RNDIS API contract actually).  Clear the
    RNDIS rxfilter explicitly, drain packets sneaking through, and drain
    the interrupt taskqueues scheduled due to the stealth packets.

    Reported by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10230

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

7 years agoMFC 316519
sephe [Mon, 10 Apr 2017 03:09:12 +0000 (03:09 +0000)]
MFC 316519

    hyperv/storvsc: Fixup SRB status.

    This unbreaks GEN2 Hyper-V cd support.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Reviewed by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10212

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

7 years agoMFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.
mav [Sun, 9 Apr 2017 06:44:31 +0000 (06:44 +0000)]
MFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.

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

7 years agoMFC r316355
kp [Sat, 8 Apr 2017 09:49:21 +0000 (09:49 +0000)]
MFC r316355

pf: Fix leak of pf_state_keys

If we hit the state limit we returned from pf_create_state() without cleaning
up.

PR: 217997
Submitted by: Max <maximos@als.nnov.ru>

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

7 years agoDirect commit of fixes to stable/10, resolving PCI passthrough and initialization
sbruno [Thu, 6 Apr 2017 19:13:40 +0000 (19:13 +0000)]
Direct commit of fixes to stable/10, resolving PCI passthrough and initialization
issues when trying to passthrough a i340 (igb) to VMware.

While here, cleanup some bits of em(4) to DTRT as well.

PR: 218113
Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>

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

7 years agoMFC r314946:
cy [Thu, 6 Apr 2017 06:11:04 +0000 (06:11 +0000)]
MFC r314946:

Configure leap-second smearing (always).

Leap-second smearing is an experimental option that may be specified in
ntp.conf(5) and the -x option on the command line to spread the effect
of a leap-second over an interval as specified by the leapsmearinterval
config file statement. Recommended values are between 7200 (2 hours) and
86400 (24 hours).

It is advised that leap-second smearing not be used for public NTP
servers (https://www.meinbergglobal.com/download/burnicki/Leap\
%20Second%20Smearing%20With%20NTP.pdf). It is also advised that NTP
clients not use a mix of NTP servers using leap-second smearing with
NTP servers not using leap-second smearing as that could cause
undefined client behaviour.

Leap-second smearing was committed to ports net/ntp and net/ntp-devel
by r426825 on 2016-11-22.

Suggested by: des

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

7 years agoMFC r316368:
ngie [Thu, 6 Apr 2017 05:04:20 +0000 (05:04 +0000)]
MFC r316368:
r316368 (by jkim):

Fix typos to stop removing new files.

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

7 years agoMFC r316497:
brooks [Wed, 5 Apr 2017 21:08:26 +0000 (21:08 +0000)]
MFC r316497:

Correct a kernel stack leak in 32-bit compat when vfc_name is short.

Don't zero unused pointer members again.

Per discussion with secteam we are not issuing an advisory for this
issue as we have no current evidence it leaks exploitable information.

Reviewed by: rwatson, glebius, delphij
Sponsored by: DARPA, AFRL

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

7 years agoMFC r315673, r315674: Make CAM SIM lock optional.
mav [Tue, 4 Apr 2017 18:01:35 +0000 (18:01 +0000)]
MFC r315673, r315674: Make CAM SIM lock optional.

For three years now CAM does not use SIM lock, but still enforces SIM to
use it.  Remove this requirement, allowing SIMs to have any locking they
prefer, if they pass no mutex to cam_sim_alloc().

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

7 years agoMFC r312404, r312519, r313277:
delphij [Mon, 3 Apr 2017 06:14:23 +0000 (06:14 +0000)]
MFC r312404, r312519, r313277:

Use S_ISREG instead of manual & (also it's better to compare the
result from & and the pattern instead of just assuming it's one bit
value).

Pointed out by Tianjie Mao <tjmao tjmao com>.

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

7 years agoMFC r315619: pet manlint.
delphij [Mon, 3 Apr 2017 06:09:12 +0000 (06:09 +0000)]
MFC r315619: pet manlint.

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

7 years agoMFC r315709: Switch from using periph_links to sim_links.
mav [Sun, 2 Apr 2017 11:00:18 +0000 (11:00 +0000)]
MFC r315709: Switch from using periph_links to sim_links.

periph_links field belongs to periph drivers and must not be used here.

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

7 years agoMFC r315682, r315683: Remove some dead code left after r246713.
mav [Sun, 2 Apr 2017 10:59:30 +0000 (10:59 +0000)]
MFC r315682, r315683: Remove some dead code left after r246713.

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

7 years agoMFC r315681: Improve command timeout handling.
mav [Sun, 2 Apr 2017 10:57:49 +0000 (10:57 +0000)]
MFC r315681: Improve command timeout handling.

Let firmware do its best first, and if it can't, try software recovery.
I would remove software timeout handler completely, but found bunch of
complains on command timeout on sparc64 mailing list few years ago, so
better be safe in case of interrupt loss.

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

7 years agoMFC r315678: Remove questionable reqp->req_time access.
mav [Sun, 2 Apr 2017 10:56:09 +0000 (10:56 +0000)]
MFC r315678: Remove questionable reqp->req_time access.

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

7 years agoMFC r315677: Clean/unify some macro usage.
mav [Sun, 2 Apr 2017 10:54:58 +0000 (10:54 +0000)]
MFC r315677: Clean/unify some macro usage.

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

7 years agoMFC r315587, r315652: Remove some dead/useless code.
mav [Sun, 2 Apr 2017 10:53:37 +0000 (10:53 +0000)]
MFC r315587, r315652: Remove some dead/useless code.

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

7 years agoMFC r315579, r315670: Add initial support for multiple MSI-X vectors.
mav [Sun, 2 Apr 2017 10:52:00 +0000 (10:52 +0000)]
MFC r315579, r315670: Add initial support for multiple MSI-X vectors.

For 24xx and above use 2 vectors (default and response queue).
For 26xx and above use 3 vectors (default, response and ATIO queues).
Due to global lock interrupt hardlers never run simultaneously now, but
at least this allows to save one regitster read per interrupt.

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

7 years agoMFC r315947:
dim [Sat, 1 Apr 2017 11:24:34 +0000 (11:24 +0000)]
MFC r315947:

Import libcxxrt master 8a853717e61d5d55cbdf74d9d0a7545da5d5ff92.

Interesting fixes which were not already merged:
0c7c611 Merge C++ demangler bug fixes from ELF Tool Chain (#40)
2b208d9 __cxa_demangle_gnu3: demangle 'z' as '...', not 'ellipsis' (#41)

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

7 years agoMFC: r313961 r316061
bapt [Sat, 1 Apr 2017 09:37:15 +0000 (09:37 +0000)]
MFC: r313961 r316061

Update pci_vendors to 2017-03-16

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

7 years agoMFC r316060:
bapt [Sat, 1 Apr 2017 09:32:05 +0000 (09:32 +0000)]
MFC r316060:

Import tzdata 2017b

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

7 years agoMFC: r315912 (by eugen@) and r315935
bapt [Sat, 1 Apr 2017 09:29:47 +0000 (09:29 +0000)]
MFC: r315912 (by eugen@) and r315935

Properly initialise with content of pw.conf(5) that was mistakenly ignored.
Also, respect "defaultgroup" if specified there.

Add a regression test

PR: 217934
Submitted by: Victor Sudakov <vas@mpeks.tomsk.su>

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

7 years agoMFC r315636,315876,316095:
mm [Fri, 31 Mar 2017 20:17:30 +0000 (20:17 +0000)]
MFC r315636,315876,316095:
Sync libarchive with vendor

Vendor changes/bugfixes (FreeBSD-related):
r315636:
  PR 867 (bsdcpio): show numeric uid/gid when names are not found
  PR 870 (seekable zip): accept files with valid ZIP64 EOCD headers
  PR 880 (pax): Fix handling of "size" pax header keyword
  PR 887 (crypto): Discard 3072 bytes instead of 1024 of first keystream
  OSS-Fuzz issue 806 (mtree): rework mtree_atol10 integer parser
  Break ACL read/write code into platform-specific source files

r315876:
  Store extended attributes with extattr_set_link() if no fd is provided
  Add extended attribute tests to libarchive and bsdtar
  Fix tar's test_option_acls
  Support the UF_HIDDEN file flag

r316095:
  Constify variables in several places
  Unify platform ACL code in a single source file
  Fix unused variable if compiling on FreeBSD without NFSv4 ACL support

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

7 years agoMFC r315516
truckman [Fri, 31 Mar 2017 06:33:20 +0000 (06:33 +0000)]
MFC r315516

Change several constants used by the PIE algorithm from unsigned to signed.

 - PIE_MAX_PROB is compared to variable of int64_t and the type promotion
   rules can cause the value of that variable to be treated as unsigned.
   If the value is actually negative, then the result of the comparsion
   is incorrect, causing the algorithm to perform poorly in some
   situations.  Changing the constant to be signed cause the comparision
   to work correctly.

 - PIE_SCALE is also compared to signed values.  Fortunately they are
   also compared to zero and negative values are discarded so this is
   more of a cosmetic fix.

 - PIE_DQ_THRESHOLD is only compared to unsigned values, but it is small
   enough that the automatic promotion to unsigned is harmless.

Submitted by: Rasool Al-Saadi <ralsaadi@swin.edu.au>

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

7 years agoMFC r316106:
ngie [Fri, 31 Mar 2017 04:51:08 +0000 (04:51 +0000)]
MFC r316106:

Don't shadow read(2) definition with `read` argument in vdev_{create,probe}

This fixes several -Wshadow warnings introduced in r192194, but now errors
with gcc 6.3.0.

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

7 years agoMFC r316107:
ngie [Fri, 31 Mar 2017 04:44:37 +0000 (04:44 +0000)]
MFC r316107:

Remove redundant declaration for `zfs_crc64_table`

zfssubr.c already defines this statically. Besides, zfsimpl.c defined it, but
didn't use it.

This fixes a -Wredundant-decls warning.

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

7 years agoMFC r316108:
ngie [Fri, 31 Mar 2017 04:43:25 +0000 (04:43 +0000)]
MFC r316108:

Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)`

This variable has been unused since its inception in r40106.

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

7 years agoMFC r316080,r316081,r316115:
ngie [Fri, 31 Mar 2017 04:42:00 +0000 (04:42 +0000)]
MFC r316080,r316081,r316115:

r316080:

Fix some localized style(9) issues and reword CAM_ERRBUF_SIZE description

The CAM_ERRBUF_SIZE description rewording fixes a typo by proxy.

r316081:

Use `sizeof(cam_errbuf)` instead of `CAM_ERRBUF_SIZE` in snprintf calls

Reindent snprintf calls' arguments to match style(9) guidelines with
respect to indentation.

r316115:

libcam: use __func__ instead of hardcoding the function name as `func_name`

Tested with: `cam_device_copy(NULL, NULL)` // ;)..

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

7 years agoMFC r315732:
ed [Thu, 30 Mar 2017 15:05:58 +0000 (15:05 +0000)]
MFC r315732:

  Add forward declaration for struct vnode.

  The coredump() function provided by this header file has struct vnode *
  as an argument.

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

7 years agoMFC: 314547, 314770, 314828, 314891, 314956, 314962, 315235
dexuan [Thu, 30 Mar 2017 12:51:44 +0000 (12:51 +0000)]
MFC: 314547, 314770, 314828, 314891, 314956, 314962, 315235

r314547
    loader.efi: reduce the size of the staging area if necessary

    The loader assumes physical memory in [2MB, 2MB + EFI_STAGING_SIZE)
    is Conventional Memory, but actually it may not, e.g. in the case
    of Hyper-V Generation-2 VM (i.e. UEFI VM) running on Windows
    Server 2012 R2 host, there is a BootServiceData memory block at
    the address 47.449MB and the memory is not writable.

    Without the patch, the loader will crash in efi_copy_finish():
    see PR 211746.

    The patch verifies the end of the staging area, and reduces its
    size if necessary. This way, the loader will not try to write into
    the BootServiceData memory any longer.

    Thank Marcel Moolenaar for helping me on this issue!

    The patch also allocates the staging area in the first 1GB memory.
    See the comment in the patch for this.

    Reviewed by: marcel, kib, sephe
    Approved by: sephe (mentor)
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D9686

r314770
    loader.efi: fix recent UEFI-boot regression on physical machines

    This patch fixes my recent patch
    "loader.efi: reduce the size of the staging area if necessary", which
    causes EFI-boot failure on physical machines since Mar 2:
    on the host there is a 1MB LoaderData memory range, which splits
    the big Conventional Memory range into a small one (15MB) and a
    big one: the small one is too small to hold the staging area.

    We can actually use the LoaderData range safely, because when
    amd64_tramp -> efi_copy_finish() starts to run, we're almost at
    the very end of the efi loader code and we're going to "return"
    to the kernel entry, so we're pretty sure we won't access any loader
    data any more.

    For people who are interested in the details: please see
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746#c22

    PS, some people also reported the regression happened to FreeBSD VM
    running on Bhyve in EFI mode. This patch should resolve it too,
    though I don't have such a setup to test.

    Reviewed by: sephe
    Approved by: sephe (mentor)
    Sponsored by: Microsoft
    Differential Revision: https://reviews.freebsd.org/D9904

r314828
    loader.efi: fix an off-by-one bug in efi_verify_staging_size()

    Also remove the warning message: it may not be unusual to see
    the memory range containing 2MB is not of EfiConventionalMemory.

    Sponsored by: Microsoft

r314891
    loader.efi: finally fix the off-by-one bug in efi_verify_staging_size()

    r314828(loader.efi: fix an off-by-one bug in efi_verify_staging_size())
    doesn't really fix the bug and this patch adds the missing part.

    It's a shame that I didn't make everything correct at the very beginning...

    Sponsored by: Microsoft

r314956
    loader.efi: only reduce the size of the staging area on Hyper-V

    Doing this on physical hosts turns out to be problematic, e.g. see comment
    24 and 28 in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746.

    To fix the real underlying issue correctly & thoroughly, IMO we need
    a relocatable kernel, but that would require a lot of complicated long
    term work:  https://reviews.freebsd.org/D9686?id=25414#inline-56969

    For now, let's only apply efi_verify_staging_size() to VMs running on
    Hyper-V, and restore the old behavior on physical machines since that
    has been working for people for a long period of time, though that's
    potentially unsafe...

    Sponsored by: Microsoft

r314962
    loader.efi: only include the machine/ header files on x86

    The 2 files may not exist on other archs like aarch64 and hence we
    can have a build failure there.

    Reported by: lwhsu
    Sponsored by: Microsoft

r315235
    loader.efi: use stricter check for Hyper-V

    Some other hypervisors like Xen can pretend to be Hyper-V but obviously
    they can't implement all Hyper-V features. Let's make sure we're genuine
    Hyper-V here.

    Also fix some minor coding style issues.

    Sponsored by: Microsoft

PR: 211746

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

7 years agoMFC r315776:
ngie [Thu, 30 Mar 2017 06:20:58 +0000 (06:20 +0000)]
MFC r315776:

Rename tests from <foo> to <foo>_test to match the FreeBSD test suite
naming scheme

usr.bin/diff/diff_test was renamed to usr.bin/diff/netbsd_diff_test
to avoid collisions with the renamed FreeBSD test.

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

7 years agoMFC r315798:
ngie [Thu, 30 Mar 2017 06:14:36 +0000 (06:14 +0000)]
MFC r315798:

DB_COMMAND(9): fix mandoc markup

Start new sentences on new lines.

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

7 years agoMFC r316050,r316051:
ngie [Thu, 30 Mar 2017 06:13:54 +0000 (06:13 +0000)]
MFC r316050,r316051:

r316050:

ctld: sort #includes per style(9)

- Only include sys/types.h or sys/param.h, not both.
- Sort alphabetically.

r316051:

ctldadm: sort #includes per style(9)

- Only include sys/types.h or sys/param.h, not both.
- Sort alphabetically.

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

7 years agoMFC r315762:
ngie [Thu, 30 Mar 2017 06:07:38 +0000 (06:07 +0000)]
MFC r315762:

rc.conf(5): fix a .Xr call for chroot(8)

Add the missing section number to the .Xr call.

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

7 years agoMFC r315795:
ngie [Thu, 30 Mar 2017 06:06:49 +0000 (06:06 +0000)]
MFC r315795:

alq(9): fix mandoc markup

Start new sentence on a new line.

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

7 years agoMFC r315803:
ngie [Thu, 30 Mar 2017 06:06:09 +0000 (06:06 +0000)]
MFC r315803:

memguard(9): fix igor/manlint warnings

- Expand a contraction [1].
- Add a missing section number when referring to uma(9) with .Xr .

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

7 years agoMFC r315788:
ngie [Thu, 30 Mar 2017 06:02:39 +0000 (06:02 +0000)]
MFC r315788:

build(7): sort SEE ALSO section

tests(7) should be grouped in the man section 7 group, not the section 8 group.

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

7 years agoMFC r315802:
ngie [Thu, 30 Mar 2017 06:00:30 +0000 (06:00 +0000)]
MFC r315802:

ifnet(9): fix some igor/manlint warnings

- Fix typos (queueing -> queuing) [1].
- Add missing section number for polling .Xr reference [2].

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

7 years agoMFC r315772:
ngie [Thu, 30 Mar 2017 05:57:44 +0000 (05:57 +0000)]
MFC r315772:

tmpfs(5): fix mdoc warnings

- Delete trailing whitespace
- Sort SEE ALSO order: mmap(2)'s Xr should come before nmount(2)'s Xr.

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

7 years agoMFC r315789:
ngie [Thu, 30 Mar 2017 05:57:01 +0000 (05:57 +0000)]
MFC r315789:

tests(7): fix mdoc warning

Continue sentence in "Configuring the tests" on a new line.

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

7 years agoMFC r316049:
ngie [Thu, 30 Mar 2017 05:54:27 +0000 (05:54 +0000)]
MFC r316049:

Allow WARNS to be overridden by the end-user

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

7 years agoMFC r315797:
ngie [Thu, 30 Mar 2017 05:50:51 +0000 (05:50 +0000)]
MFC r315797:

buf_ring(9): fix mandoc markup

Remove spurious trailing comma after `buf_ring_peek` in the NAME
section.

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

7 years agoMFstable/11 r316229:
ngie [Thu, 30 Mar 2017 05:49:46 +0000 (05:49 +0000)]
MFstable/11 r316229:

Backport mlx4{en,ib}(4) from ^/head

MFCing other pieces would be very structurally disruptive. This just
brings back the manpages so they can be used by end-users and to ease
future backports.

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

7 years agoMFC r315759,r315761:
ngie [Thu, 30 Mar 2017 05:25:33 +0000 (05:25 +0000)]
MFC r315759,r315761:

r315759 (by gjb):

Add mlx5en(4) to the hardware page. [1]
Belatedly bump copyright years after several changes.

r315761:

Add cxgbe(4), ixl(4), and mlx4en(4) to the hardware release notes

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

7 years agoMFC r315774:
ngie [Thu, 30 Mar 2017 05:17:23 +0000 (05:17 +0000)]
MFC r315774:

mount.conf(8): fix a .Xr call

Add the missing section number for devfs(5)

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

7 years agoMFC r315796:
ngie [Thu, 30 Mar 2017 05:16:37 +0000 (05:16 +0000)]
MFC r315796:

bus_alloc_resource(9): fix mandoc markup

Add missing comma after `.Nm bus_alloc_resource_any` in NAME section.

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

7 years agoMFC r314372:
ngie [Thu, 30 Mar 2017 05:15:00 +0000 (05:15 +0000)]
MFC r314372:

Use "build" instead of "all" when building ports modules

"all" in ports currently means "stage the ports", which requires root today,
and brings to light other potential issues, like ENAMETOOLONG with staged
directories (bug 161481, etc).

This fixes buildkernel for me when run as a non-root user, assuming all
of the prerequisites have been installed beforehand and are up-to-date.

Discussed with: swills (IRC)

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

7 years agoMFC r315734:
ngie [Thu, 30 Mar 2017 05:13:52 +0000 (05:13 +0000)]
MFC r315734:

style(9): sort #includes

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

7 years agoMFC r306733
sevan [Thu, 30 Mar 2017 02:38:38 +0000 (02:38 +0000)]
MFC r306733

Add history section to fsck(8)

PR: 212472
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8104

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

7 years agoMFC r266586
sevan [Thu, 30 Mar 2017 02:37:37 +0000 (02:37 +0000)]
MFC r266586

If called without -T or -t, fsck attempts to detect the
file system type.  If this fails, fsck will fail with
"unknown file system type" message.

PR: 188214

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

7 years agoMFC r306616
sevan [Thu, 30 Mar 2017 02:32:38 +0000 (02:32 +0000)]
MFC r306616

setkey appeared in FreeBSD 4.0

PR: 212551
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8105

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

7 years agoMFC r306617
sevan [Thu, 30 Mar 2017 02:28:49 +0000 (02:28 +0000)]
MFC r306617

shutdown appeared as a standalone utility in 4.1BSD.
http://mail-index.netbsd.org/source-changes-d/2016/09/13/msg008686.html
http://mail-index.netbsd.org/source-changes-d/2016/09/14/msg008691.html
PR: 212552
Approved by: bcr (mentor)
Obtained from: NetBSD
Differential Revision: https://reviews.freebsd.org/D8105

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

7 years agoMFC r306715
sevan [Thu, 30 Mar 2017 02:23:02 +0000 (02:23 +0000)]
MFC r306715

Add history section for dd(1)
First version of UNIX to include dd found using TUHS
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/dd.c

PR: 211777
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8104

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

7 years agoMFC r285645
sevan [Thu, 30 Mar 2017 02:19:42 +0000 (02:19 +0000)]
MFC r285645

Mention the dd-like recoverdisk(1) to help folks find this great BSD command.

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

7 years agoMFC r270831
sevan [Thu, 30 Mar 2017 02:17:48 +0000 (02:17 +0000)]
MFC r270831

Update the date for last example.

Sponsored by: Netflix

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

7 years agoMFC r270771
sevan [Thu, 30 Mar 2017 02:16:34 +0000 (02:16 +0000)]
MFC r270771
Add canonical population of a disk / thumb drive from an image example.

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

7 years agoMFC r309192
sevan [Thu, 30 Mar 2017 02:02:48 +0000 (02:02 +0000)]
MFC r309192

Fix null dereference when running out of nodes during rename.

PR: 212370
Submitted by: Sascha Wildner <swildner AT gmail>
Reviewed by: bcr (mentor)
Approved by: bapt
Obtained from: NetBSD
Differential Revision: https://reviews.freebsd.org/D8643

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

7 years agoMFC r312692
sevan [Thu, 30 Mar 2017 02:00:42 +0000 (02:00 +0000)]
MFC r312692

Improve wording when describing -mmin.

PR: 215922
Submitted by: danielsh AT apache DOT org
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D9313

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

7 years agoMFC r281759
sevan [Thu, 30 Mar 2017 01:57:32 +0000 (01:57 +0000)]
MFC r281759

find.1: Add missing whitespace:

Obtained from: Dragonfly (dee38d02d51cc8316f82b0263158d2546f2398bc)

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

7 years agoMFC r309552
sevan [Thu, 30 Mar 2017 01:48:36 +0000 (01:48 +0000)]
MFC r309552

Fix error in the example section
Adjust formatting highlighted by igor.

PR: 214683
Submitted by: Anindya Mukherjee <anindya49 AT hotmail DOT com>
Reviewed by: jilles
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D8591

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