]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r276346:
dim [Wed, 31 Dec 2014 16:28:16 +0000 (16:28 +0000)]
MFC r276346:

In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security
warnings.

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

9 years agoMFC r276462:
bz [Wed, 31 Dec 2014 10:03:19 +0000 (10:03 +0000)]
MFC r276462:

  Bump copyright year.

  Happy New Year 2015!

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

9 years agoMFC r276229:
pfg [Wed, 31 Dec 2014 04:51:09 +0000 (04:51 +0000)]
MFC r276229:
Backport fix for binutils 11867: .quad directive not assembled correctly

Alan Modra (and Alan's employer) graciously permitted use of his patch
under GPLv2.

Obtained from: OpenBSD

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

9 years agoMFC r276323
neel [Wed, 31 Dec 2014 04:12:38 +0000 (04:12 +0000)]
MFC r276323
Implement "special mask mode" in vatpic.

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

9 years agoMFC: r276221
rmacklem [Wed, 31 Dec 2014 00:44:11 +0000 (00:44 +0000)]
MFC: r276221
Delete some duplicate code that was harmless because
exactly the same code is at the end of the nfscl_checksattr()
function that is called just before it. As such, this code
had already been executed and didn't do anything.

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

9 years agoMFC: r276193
rmacklem [Wed, 31 Dec 2014 00:40:10 +0000 (00:40 +0000)]
MFC: r276193
A deadlock in the NFSv4 server with vfs.nfsd.enable_locallocks=1
was reported via email. This was caused by a LOR between the
sleep lock used to serialize the local locking (nfsrv_locklf())
and locking the vnode. I believe this patch fixes the problem
by delaying relocking of the vnode until the sleep lock is
unlocked (nfsrv_unlocklf()). To avoid nfsvno_advlock() having the side
effect of unlocking the vnode, unlocking the vnode was moved to before
the functions that call nfsvno_advlock().
It shouldn't affect the execution of the default case where
vfs.nfsd.enable_locallocks=0.

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

9 years agoMFC: r276192, r276200
rmacklem [Wed, 31 Dec 2014 00:34:37 +0000 (00:34 +0000)]
MFC: r276192, r276200
Modify vop_stdadvlock{async}() so that it only
locks/unlocks the vnode and does a VOP_GETATTR()
for the SEEK_END case. This is safe to do, since
lf_advlock{async}() only uses the size argument
for the SEEK_END case.
The NFSv4 server needs this when
vfs.nfsd.enable_locallocks!=0 since locking the
vnode results in a LOR that can cause a deadlock
for the nfsd threads.

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

9 years agoMFH r274083:
peterj [Tue, 30 Dec 2014 23:52:48 +0000 (23:52 +0000)]
MFH r274083:
convert .Nm to proper .Xr's...

MFH r275298:
Cross reference tap(4) and tun(4) and include a short explanation as
to how they differ.  This will assist users in selecting which interface
is more appropriate for their purposes.

No objection: jmg (r274083)
Approved by: grog (co-mentor)

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

9 years agoMFC r273683
neel [Tue, 30 Dec 2014 22:22:46 +0000 (22:22 +0000)]
MFC r273683
Move the ACPI PM timer emulation into vmm.ko.

MFC r273706
Change the type of the first argument to the I/O emulation handlers to
'struct vm *'.

MFC r273710
Add a comment explaining the intent behind the I/O reservation [0x72-0x77].

MFC r273744
Add foo_genassym.c files to DPSRCS so dependencies for them are generated.
This ensures these objects are rebuilt to generate an updated header of
assembly constants if needed.

MFC r274045
If the start bit, PxCMD.ST, is cleared and nothing is in-flight then
PxCI, PxSACT, PxCMD.CCS and PxCMD.CR should be 0.

MFC r274076
Improve the ability to cancel an in-flight request by using an interrupt,
via SIGCONT, to force the read or write system call to return prematurely.

MFC r274330
To allow a request to be submitted from within the callback routine of
a completing one increase the total by 1 but don't advertise it.

MFC r274931
Change the lower bound for guest vmspace allocation to 0 instead of using
the VM_MIN_ADDRESS constant.

MFC r275817
For level triggered interrupts clear the PIC IRR bit when the interrupt pin
is deasserted.

MFC r275850
Fix 8259 IRQ priority resolver.

MFC r275952
Various 8259 device model improvements.

MFC r275965
Emulate writes to the IA32_MISC_ENABLE MSR.

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

9 years agoMFC r274077:
ngie [Tue, 30 Dec 2014 20:46:01 +0000 (20:46 +0000)]
MFC r274077:

  As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when
  generating files from various sources instead of calling cat ${.ALLSRC} | sed

  The perl case was skipped because it's not being used in the tree at this time

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

9 years agoMFC r267276:
ngie [Tue, 30 Dec 2014 20:44:05 +0000 (20:44 +0000)]
MFC r267276:

  Ensure files are created during the build when using bsd.subdir.mk.

  When FILES is defined in a Makefile that _also_ includes bsd.subdir.mk, the
  build of the files (if any) was not properly triggered during the build
  stage.  This was because bsd.files.mk did not define the buildfiles target
  if it was already defined... and bsd.subdir.mk defined this target on its
  own, thus causing a conflict.

  Fix this by unconditionally defining buildfiles from bsd.files.mk; this is
  safe because nothing else in the tree needs to redefine this and because the
  target itself contains no commands: all it does is define dependencies.
  Also ensure that bsd.files.mk is always pulled in by bsd.test.mk regardless
  of what bsd.prog.mk does.

  These fixes allow "make installworld" to run cleanly on a system with
  read-only src and obj trees.

  This is "make tinderbox" clean.

  Reviewed by: imp
  Obtained from: jilles

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

9 years agoMFC r275698: MFV r275696: file 5.21.
delphij [Tue, 30 Dec 2014 19:39:31 +0000 (19:39 +0000)]
MFC r275698: MFV r275696: file 5.21.

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

9 years agoMFC r275638:
kib [Tue, 30 Dec 2014 10:30:12 +0000 (10:30 +0000)]
MFC r275638:
Do not call VFS_SYNC() before VFS_UNMOUNT() for forced unmount.

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

9 years agoMFC r273375
neel [Tue, 30 Dec 2014 08:24:14 +0000 (08:24 +0000)]
MFC r273375
Add support AMD processors with the SVM/AMD-V hardware extensions.

MFC r273749
Remove bhyve SVM feature printf's now that they are available in the general
CPU feature detection code.

MFC r273766
Add missing 'break' pointed out by Coverity CID 1249760.

MFC r276098
Allow ktr(4) tracing of all guest exceptions via the tunable "hw.vmm.trace_guest_exceptions"

MFC r276392
Inject #UD into the guest when it executes either 'MONITOR' or 'MWAIT' on an
AMD/SVM host.

MFC r276402
Remove "svn:mergeinfo" property that was dragged along when these files were
svn copied in r273375.

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

9 years agoMFC r266074,r266104,r266147:
ngie [Tue, 30 Dec 2014 02:32:48 +0000 (02:32 +0000)]
MFC r266074,r266104,r266147:

r266074:

  Move old fmake tests into bmake and hook them to the build.

  This first step is mostly to prevent the code from rotting even further
  and to ensure these do not get wiped when fmake's code is removed from
  the tree.

  These tests are currently being skipped because they detect the underlying
  make is not fmake and thus disable themselves -- and the reason is that
  some of the tests fail, possibly due to legitimate bugs.  Enabling them to
  run against bmake will come separately.

  Lastly, it would be ideal if these tests were fed upstream but they are
  not ready for that yet.  In the interim, just put them under usr.bin/bmake/
  while we sort things out.  The existence of a different unit-tests directory
  within here makes me feel less guilty about this.

  Change confirmed working with a clean amd64 build.

r266104:

  Undo changes to the generated Makefile. Move tests directory to proper
  location, including updating the test to work in the more-fragile
  fmake -> bmake bootstrap environment.

r266147:

  Makefile.inc is also included by the tests subdirectory, which results
  in SUBDIRS having tests added to it, which fails. Work around this by
  checking to make sure tests exists before adding it to subdirs and
  work to get the generated file fixed so we can rename Makefile.inc to
  something else so it isn't automatically included by subdirs...

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

9 years agoMFC 261321
neel [Tue, 30 Dec 2014 00:00:42 +0000 (00:00 +0000)]
MFC 261321
Rename the AMD MSR_PERFCTR[0-3] so the Pentium Pro MSR_PERFCTR[0-1] aren't
redefined.

MFC r273214
Fix build to not bogusly always rebuild vmm.ko.

MFC r273338
Add support for AMD's nested page tables in pmap.c:
- Provide the correct bit mask for various bit fields in a PTE (e.g. valid bit)
  for a pmap of type PT_RVI.
- Add a function 'pmap_type_guest(pmap)' that returns TRUE if the pmap is of
  type PT_EPT or PT_RVI.

Add CPU_SET_ATOMIC_ACQ(num, cpuset):
This is used when activating a vcpu in the nested pmap. Using the 'acquire'
variant guarantees that the load of the 'pm_eptgen' will happen only after
the vcpu is activated in 'pm_active'.

Add defines for various AMD-specific MSRs.

Discussed with: kib (r261321)

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

9 years agoMFC r276228:
pfg [Mon, 29 Dec 2014 22:54:28 +0000 (22:54 +0000)]
MFC r276228:

gas: use memmove instead of bogus memcpy.

partial_where points into the buffer that begins with buffer_start
so we need to use memmove() to handle the overlap.
Fixes Sourceware-PR 11456.

Obtained from: OpenBSD (CVS rev. 1.2)

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

9 years agoMFC r276037: sh: Remove EXP_REDIR.
jilles [Mon, 29 Dec 2014 15:33:20 +0000 (15:33 +0000)]
MFC r276037: sh: Remove EXP_REDIR.

EXP_REDIR was supposed to generate pathnames in redirection if exactly one
file matches, as permitted but not required by POSIX in interactive mode. It
is unlikely this will be implemented.

No functional change is intended.

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

9 years agoMFC r274854: sh: Use DQSYNTAX only while expanding, not SQSYNTAX.
jilles [Mon, 29 Dec 2014 15:15:27 +0000 (15:15 +0000)]
MFC r274854: sh: Use DQSYNTAX only while expanding, not SQSYNTAX.

Quoting during expansion only cares about CCTL, which is the same for
DQSYNTAX and SQSYNTAX.

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

9 years agoMFC r273920: sh: Fix corruption of CTL* bytes in positional parameters in
jilles [Mon, 29 Dec 2014 15:11:07 +0000 (15:11 +0000)]
MFC r273920: sh: Fix corruption of CTL* bytes in positional parameters in
redirection.

EXP_REDIR was not being checked for while expanding positional parameters in
redirection, so CTL* bytes were not being prefixed where they should be.

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

9 years agoMFC r275260:
kib [Mon, 29 Dec 2014 00:30:38 +0000 (00:30 +0000)]
MFC r275260:
Remove lock recursion for the pipe pair mutex, and disable the
recursion on mutex initialization.

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

9 years agoMFC r270326
neel [Sun, 28 Dec 2014 21:27:13 +0000 (21:27 +0000)]
MFC r270326
Fix a recursive lock acquisition in vi_reset_dev().

MFC r270434
Return the spurious interrupt vector (IRQ7 or IRQ15) if the atpic cannot find
any unmasked pin with an interrupt asserted.

MFC r270436
Fix a bug in the emulation of CPUID leaf 0x4.

MFC r270437
Add "hw.vmm.topology.threads_per_core" and "hw.vmm.topology.cores_per_package"
tunables to modify the default cpu topology advertised by bhyve.

MFC r270855
Set the 'inst_length' to '0' early on before any error conditions are detected
in the emulation of the task switch. If any exceptions are triggered then the
guest %rip should point to instruction that caused the task switch as opposed
to the one after it.

MFC r270857
The "SUB" instruction used in getcc() actually does 'x -= y' so use the
proper constraint for 'x'. The "+r" constraint indicates that 'x' is an
input and output register operand.

While here generate code for different variants of getcc() using a macro
GETCC(sz) where 'sz' indicates the operand size.

Update the status bits in %rflags when emulating AND and OR opcodes.

MFC r271439
Initialize 'bc_rdonly' to the right value.

MFC r271451
Optimize the common case of injecting an interrupt into a vcpu after a HLT
by explicitly moving it out of the interrupt shadow.

MFC r271888
Restructure the MSR handling so it is entirely handled by processor-specific
code.

MFC r271890
MSR_KGSBASE is no longer saved and restored from the guest MSR save area. This
behavior was changed in r271888 so update the comment block to reflect this.

MFC r271891
Add some more KTR events to help debugging.

MFC r272197
mmap(2) requires either MAP_PRIVATE or MAP_SHARED for non-anonymous mappings.

MFC r272395
Get rid of code that dealt with the hardware not being able to save/restore
the PAT MSR on guest exit/entry. This workaround was done for a beta release
of VMware Fusion 5 but is no longer needed in later versions.

All Intel CPUs since Nehalem have supported saving and restoring MSR_PAT
in the VM exit and entry controls.

MFC r272670
Inject #UD into the guest when it executes either 'MONITOR' or 'MWAIT'.

MFC r272710
Implement the FLUSH operation in the virtio-block emulation.

MFC r272838
iasl(8) expects integer fields in data tables to be specified as hexadecimal
values. Therefore the bit width of the "PM Timer Block" was actually being
interpreted as 50-bits instead of the expected 32-bit.

This eliminates an error message emitted by a Linux 3.17 guest during boot:
"Invalid length for FADT/PmTimerBlock: 50, using default 32"

MFC r272839
Support Intel-specific MSRs that are accessed when booting up a linux in bhyve:
 - MSR_PLATFORM_INFO
 - MSR_TURBO_RATIO_LIMITx
 - MSR_RAPL_POWER_UNIT

MFC r273108
Emulate "POP r/m". This is needed to boot OpenBSD/i386 MP kernel in bhyve.

MFC r273212
Support stopping and restarting the AHCI command list via toggling PxCMD.ST
from '1' to '0' and back.  This allows the driver a chance to recover if
for instance a timeout occurred due to activity on the host.

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

9 years agoMFC r272789:
marcel [Sun, 28 Dec 2014 19:03:29 +0000 (19:03 +0000)]
MFC r272789:
Fix draining in ttydev_leave().

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

9 years agoMFC r269126 & 272786:
marcel [Sun, 28 Dec 2014 18:53:16 +0000 (18:53 +0000)]
MFC r269126 & 272786:
Don't return ERESTART when the device is gone.

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

9 years agoMFC r275721:
marcel [Sun, 28 Dec 2014 18:43:39 +0000 (18:43 +0000)]
MFC r275721:
The size of the first level reference count table is given in terms of the
number of clusters it occupies.

Bump the version number of mkimg.

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

9 years agoMFH r275941:
peterj [Sun, 28 Dec 2014 07:14:38 +0000 (07:14 +0000)]
MFH r275941:
Adjust the test of a KASSERT to better match the intent.

This assertion was added in r246213 as a guard against corrupted mbufs
arriving from drivers, the key distinguishing factor of said mbufs being
that they had a negative length. Given we're in a while loop specifically
designed to skip over zero-length mbufs, panicking on a zero-length mbuf
seems incorrect.

Suggested by: rmacklem
MFH go-ahead: benno
Approved by: grog (co-mentor)

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

9 years agoMFC r276165, r276166:
ian [Sat, 27 Dec 2014 17:36:49 +0000 (17:36 +0000)]
MFC r276165, r276166:

  Define the old-school arm arch constants we still use internally based on
  the somewhat newer constants predefined by the compiler.  This will allow
  userland apps to use various machine/foo.h headers without CPUTYPE defined.

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

9 years agoMFC r275867:
ngie [Sat, 27 Dec 2014 17:20:24 +0000 (17:20 +0000)]
MFC r275867:

  Fix sporadic build failures due to race when running make installworld
  when strip gets replaced at install time by adding it to ITOOLS for the
  default usr.bin/xinstall STRIP_CMD

  This will fix the failure noted in this Jenkins build step:
  https://jenkins.freebsd.org/job/Build-UFS-image/688/

  This will also fix the issue reported by alfred@ dealing with installing on
  targets that differ from build hosts (e.g. installing on i386/i386 when built
  on amd64/amd64)

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r275908,r276309:
ngie [Sat, 27 Dec 2014 17:14:53 +0000 (17:14 +0000)]
MFC r275908,r276309:

r275908:

  Document STRIP_CMD in build(7) and note its importance with LOCAL_ITOOLS

  Phabric: D1335
  Reviewed by: brueffer
  Sponsored by: EMC / Isilon Storage Division

r276309:

  Bump .Dd for change done in r275908

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

9 years agoMFC r275866:
ngie [Sat, 27 Dec 2014 17:10:14 +0000 (17:10 +0000)]
MFC r275866:

  Parallelize building gnu/usr.bin/groff

  This speeds up building the directory from the bootstrap-tools stage in
  buildworld as well as building from the subdirectory

  Based on a patch submitted via -arch:
  https://lists.freebsd.org/pipermail/freebsd-arch/2014-December/016493.html

  Submitted by: Jia-Shiun Li <jiashiun@gmail.com>
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC bmake changes to stable/10 (r255285,r255916,r258113,r258114,r261212,r266760,r268437)
ngie [Sat, 27 Dec 2014 16:43:22 +0000 (16:43 +0000)]
MFC bmake changes to stable/10 (r255285,r255916,r258113,r258114,r261212,r266760,r268437)

Discussed with: sjg

r255285:

  If MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E")
  into the job queue.
  This avoids closing down an entire build on failure of one branch.
  Probably has no use outside the context of universe/tinderbox.

  Reviewed by: obrien

r255916:

  Fix Fx syntax.

  PR: 182269
  Approved by: re@

r258113:

  Avoid SEGV when passed NULL for list

r258114:

  Don't SEGV when Hash_Table is uninitialized

r261212:

  Merge bmake-20140101 from vendor

r266760:

  Portmgr no longer need the UL hack.

  Reviewed by: obrien

r268437:

  Update to bmake-20140620
  Main change is detection of malformed variable references.

  Reviewed by: obrien

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

9 years agoMFC r276045:
ian [Sat, 27 Dec 2014 05:24:18 +0000 (05:24 +0000)]
MFC r276045:

 Allow -march=armv7a on the gcc command line, for compatibility with clang.

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

9 years agoMFC r276029:
ian [Sat, 27 Dec 2014 05:11:34 +0000 (05:11 +0000)]
MFC r276029:

  Remove a volatile qualifier on return type that is ignored and results in
  a -Wreturn-type warning when compiled with gcc.

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

9 years agor276026:
ian [Sat, 27 Dec 2014 05:10:07 +0000 (05:10 +0000)]
r276026:

 Allow whitspace to appear between device name and unit number in loaderdev.

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

9 years agoMFC r275951: Log mmc and sd command failures.
ian [Sat, 27 Dec 2014 04:55:45 +0000 (04:55 +0000)]
MFC r275951:   Log mmc and sd command failures.

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

9 years agoMFC r275944, r275946, r275949, r275950:
ian [Sat, 27 Dec 2014 04:54:36 +0000 (04:54 +0000)]
MFC r275944, r275946, r275949, r275950:

  Add code to set and reset open-drain mode on the bus when requested.

  When command and data interrupts have been aggregated together, don't do
  the data-completed processing if a command-error interrupt is also asserted.

  Add a new sdhci quirk, SDHCI_QUIRK_WAITFOR_RESET_ASSERTED, to work around
  TI OMAP controllers which will return the reset-in-progress bit as zero if
  you read the status register too fast after setting the reset bit.

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

9 years agoMFC r275660: Fix the watchdog timeout calculation to prevent wrap.
ian [Sat, 27 Dec 2014 04:51:21 +0000 (04:51 +0000)]
MFC r275660:  Fix the watchdog timeout calculation to prevent wrap.

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

9 years agoMFC r274967:
ian [Sat, 27 Dec 2014 04:35:18 +0000 (04:35 +0000)]
MFC r274967:

 Add busdma sync ops before reading and after modifying the descriptor rings

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

9 years agoMFC r274941: The arm PJ4B cpu is armv7 architecture, not v6.
ian [Sat, 27 Dec 2014 04:33:35 +0000 (04:33 +0000)]
MFC r274941: The arm PJ4B cpu is armv7 architecture, not v6.

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

9 years agoMFC r274937:
ian [Sat, 27 Dec 2014 04:30:42 +0000 (04:30 +0000)]
MFC r274937:

  Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
  to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
  allows replacing ever-growing lists of cpu names as options to compile
  a given file with the using either "optional armv6" or "optional !armv6".

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

9 years agoMFC r265840: Eliminate spurious warnings when grep doesn't find NO_UNIVERSE
ian [Sat, 27 Dec 2014 03:20:34 +0000 (03:20 +0000)]
MFC r265840:  Eliminate spurious warnings when grep doesn't find NO_UNIVERSE

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

9 years agoMFC r274924, r274936:
ian [Sat, 27 Dec 2014 03:19:04 +0000 (03:19 +0000)]
MFC r274924, r274936:

  Consider the negation operator (!) to be a word even if it is not followed
  by whitespace.  This allows "optional !foo" which is what most programmers
  are naturally going to tend to do as opposed to "optional ! foo".

  Fix the negation (!) operator so that it binds only to the word that
  immediately follows it.

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

9 years agoMFC r274641, r274644, r274822, r276049:
ian [Sat, 27 Dec 2014 02:37:52 +0000 (02:37 +0000)]
MFC r274641, r274644, r274822, r276049:

  Allow i2c bus speed to be configured via hints, FDT data, and sysctl.

  Implement bus speed setting for OMAP4, AM335x, and imx5/6.

  Fix the i2c bus speed divisors for TI OMAP4 and AM335x to give the
  advertised 100, 400, and 1000 KHz speeds.

PR: 195009

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

9 years agoMFC r275906:
jamie [Sat, 27 Dec 2014 02:17:35 +0000 (02:17 +0000)]
MFC r275906:

  Setgid before running a command as a specified user.  Previously only
  initgroups(3) was called, what isn't quite enough.  This brings jail(8)
  in line with jexec(8), which was already doing the right thing.

PR: 195984

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

9 years agoMFC r274412, r274413, r274414: Bugfixes for imx5/6 pinctrl driver.
ian [Sat, 27 Dec 2014 01:35:03 +0000 (01:35 +0000)]
MFC r274412, r274413, r274414:  Bugfixes for imx5/6 pinctrl driver.

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

9 years agoMFC r274538, r274545, r274596, r274602, r274603, r274604, r274605, r274839:
ian [Sat, 27 Dec 2014 01:28:52 +0000 (01:28 +0000)]
MFC r274538, r274545, r274596, r274602, r274603, r274604, r274605, r274839:

  When doing busdma sync ops for BUSDMA_COHERENT memory, there is no need
  for cache maintenance operations, but ensure that all prior writes have
  reached memory when doing a PREWRITE sync.

  Do not do a cache invalidate on a PREREAD sync that is also a PREWRITE sync.

  Do the cache invalidate sequence from the outermost to innermost, required
  for correct operation.

  Correct the sequence of busdma sync ops involved with PRE/POSTREAD syncs.

  When doing a PREREAD sync of an mbuf-type dma buffer, do a writeback of
  the first cacheline if the buffer start address is not on a cacheline
  boundary.

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

9 years agoMFC r275745:
kib [Sat, 27 Dec 2014 00:55:14 +0000 (00:55 +0000)]
MFC r275745:
Add facility to stop all userspace processes.

MFC r275753:
Fix gcc build.

MFC r275820:
Add missed break.

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

9 years agoMFC r275960:
kib [Sat, 27 Dec 2014 00:44:33 +0000 (00:44 +0000)]
MFC r275960:
Increase allowed size of the microcode blob to 32KB.

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

9 years agoMFC r274926: Squelch a (bogus) gcc used before init warning
ian [Sat, 27 Dec 2014 00:01:28 +0000 (00:01 +0000)]
MFC r274926: Squelch a (bogus) gcc used before init warning

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

9 years agoMFC 276174:
scottl [Fri, 26 Dec 2014 23:18:09 +0000 (23:18 +0000)]
MFC 276174:

Fix tunable and sysctl handling of the fail_on_task_timeout knob.

Reviewed by:    emax
Obtained from:  Netflix, Inc.

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

9 years agoMFC r274188, r274189:
ian [Fri, 26 Dec 2014 22:56:02 +0000 (22:56 +0000)]
MFC r274188, r274189:
 DMA tag alignment should be 1 (not 0) when a device can dma at any address.

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

9 years agoMFC r272671:
markj [Fri, 26 Dec 2014 22:52:44 +0000 (22:52 +0000)]
MFC r272671:
Treat D keywords as identifiers in certain postfix expressions. This allows
one to, for example, access the "provider" field of a struct g_consumer,
even though "provider" is a D keyword.

PR: 169657

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

9 years agoMFC r275011:
markj [Fri, 26 Dec 2014 22:50:34 +0000 (22:50 +0000)]
MFC r275011:
The module load address always needs to be included when setting the dm_*_va
fields of dt_module_t. Previously, this was only done on architectures where
kernel modules have type ET_REL; this change fixes that. As a result, symbol
name resolution in the stack() action now works properly for kernel modules
on i386.

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

9 years agoMFC r270190: Don't kill parallel jobs on (expected) failure of make_check.
ian [Fri, 26 Dec 2014 21:40:45 +0000 (21:40 +0000)]
MFC r270190: Don't kill parallel jobs on (expected) failure of make_check.

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

9 years agoMFC r275790 and r275791:
hselasky [Fri, 26 Dec 2014 11:32:34 +0000 (11:32 +0000)]
MFC r275790 and r275791:
Resolve USB driver identification conflict.
Regenerate etc/devd/usb.conf.

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

9 years agoMFC r259675, r262128, r262129, r275605, r276239 and r276240:
hselasky [Fri, 26 Dec 2014 11:16:59 +0000 (11:16 +0000)]
MFC r259675, r262128, r262129, r275605, r276239 and r276240:
Add more USB quirks.

PR: 178771
PR: 180617
PR: 195372

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

9 years agoMFC r275920, r276127: Pass real optimal transfer size supported by backend.
mav [Fri, 26 Dec 2014 09:44:32 +0000 (09:44 +0000)]
MFC r275920, r276127: Pass real optimal transfer size supported by backend.

For files and ZVOLs that is 1MB now, not 128K.

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

9 years agoMFC r275925: Slightly polish iSCSI parameters negotiation.
mav [Fri, 26 Dec 2014 09:12:19 +0000 (09:12 +0000)]
MFC r275925: Slightly polish iSCSI parameters negotiation.

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

9 years agoMFC r275118: Some microoptimizations.
mav [Fri, 26 Dec 2014 09:11:26 +0000 (09:11 +0000)]
MFC r275118: Some microoptimizations.

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

9 years agoMFC r275112:
mav [Fri, 26 Dec 2014 09:09:50 +0000 (09:09 +0000)]
MFC r275112:
Make isp_find_pdb_by_*() search for targets in portdb in reverse order.

Records with target_mode == 1 are allocated from the end of portdb, so it
seems logical to start search from the end not traverse whole array.

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

9 years agoMFC r275865:
mav [Wed, 24 Dec 2014 13:49:40 +0000 (13:49 +0000)]
MFC r275865:
Add configuration options to override physical and UNMAP blocks geometry.

While in most cases CTL should correctly fetch those values from backing
storages, there are some initiators (like MS SQL), that may not like large
physical block sizes, even if they are true.  For such cases allow override
fetched values with supported ones (like 4K).

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

9 years agoMFC r273087 (with modifications):
ae [Tue, 23 Dec 2014 16:33:44 +0000 (16:33 +0000)]
MFC r273087 (with modifications):
  Overhaul if_gif(4):
   o convert to if_transmit;
   o use rmlock to protect access to gif_softc;
   o use sx lock to protect from concurrent ioctls;
   o remove a lot of unneeded and duplicated code;
   o remove cached route support (it won't work with concurrent io);
   o style fixes.

MFC r273090:
  Move memset under ifdef INET6.

MFC r273091:
  Add more ifdefs. SIOC*_IN6 are defined only with INET6.

MFC r273121:
  Add inet/inet6 to the dependency list. Without them if_gif is useless.

MFC r273209 by bz:
  After r273087,r273090,r273091,r273121 changes to gif(4) try to fix
  NOIP builds for real.

MFC r273587:
  Remove redundant check and m_pullup() call.

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

9 years agoMFC r275959: Report initiator id in portlist XML in more formalized way.
mav [Tue, 23 Dec 2014 12:45:29 +0000 (12:45 +0000)]
MFC r275959: Report initiator id in portlist XML in more formalized way.

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

9 years agoMFC r275958: Report XML parsing errors.
mav [Tue, 23 Dec 2014 12:44:16 +0000 (12:44 +0000)]
MFC r275958: Report XML parsing errors.

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

9 years agoMFC r275842: Do not count RCTD bit set as an error.
mav [Tue, 23 Dec 2014 12:41:28 +0000 (12:41 +0000)]
MFC r275842: Do not count RCTD bit set as an error.

We can not really implement it, but specification tells that it "shall"
work, so it can be safely ignored.

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

9 years agoMFC: r272492
nyan [Tue, 23 Dec 2014 12:13:31 +0000 (12:13 +0000)]
MFC: r272492

  Merge pc98's machdep.c into i386/i386/machdep.c.

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

9 years agoMFC r271208:
kib [Tue, 23 Dec 2014 12:04:23 +0000 (12:04 +0000)]
MFC r271208:
Add a define for index of IA32_XSS MSR.

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

9 years agoMFC r271206:
kib [Tue, 23 Dec 2014 12:00:41 +0000 (12:00 +0000)]
MFC r271206:
Adjust the definition of struct xstate_hdr according to SDM rev. 50.

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

9 years agoMFC r271197:
kib [Tue, 23 Dec 2014 11:55:53 +0000 (11:55 +0000)]
MFC r271197:
Add more bits for the XSAVE features from CPUID 0xd, sub-function 1
%eax report.  Print the XSAVE features 0xd/1 in the boot banner.

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

9 years agoMFC: r272491
nyan [Tue, 23 Dec 2014 10:59:15 +0000 (10:59 +0000)]
MFC: r272491

  Reduce diffs against i386.

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

9 years agoMFC: r272490 (partial)
nyan [Tue, 23 Dec 2014 09:46:23 +0000 (09:46 +0000)]
MFC: r272490 (partial)

  - MFi386: Add compile-with option for tau32-ddk.c.
  - Whitespace change.

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

9 years agoAdd if_inc_counter() and if_get_counter_default() functions that do
ae [Tue, 23 Dec 2014 09:39:40 +0000 (09:39 +0000)]
Add if_inc_counter() and if_get_counter_default() functions that do
access to ifnet counters for code compatibility with FreeBSD 11.

This is direct commit to stable/10.

Discussed with: glebius@, arch@

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

9 years agoMFC r274437;
pfg [Tue, 23 Dec 2014 03:24:16 +0000 (03:24 +0000)]
MFC r274437;

ifdef ext2_print_inode which is not really used.

ext2_print_inode was nice to have for initial development work but
is not really used anymore. #ifdef it under a new EXT2FS_DEBUG knob
so that we don't spend time compiling it.

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

9 years agoMFC r275838;
pfg [Tue, 23 Dec 2014 02:46:00 +0000 (02:46 +0000)]
MFC r275838;
sed: Bounds check the file path used in the 'w' command.

Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.

Obtained from: OpenBSD (CVS Rev. 1.37)

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

9 years agoStrip trailing / characters from paths in "not present" index entries.
des [Mon, 22 Dec 2014 22:11:39 +0000 (22:11 +0000)]
Strip trailing / characters from paths in "not present" index entries.

Errata: FreeBSD-EN-14:13.freebsd-update
Approved by: so@

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

9 years agoMFC 275035:
jhb [Mon, 22 Dec 2014 21:46:35 +0000 (21:46 +0000)]
MFC 275035:
MFamd64: Check for invalid flags in the machine context in sigreturn()
and setcontext().

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

9 years agoMFC 273988,273989,273995,274057:
jhb [Mon, 22 Dec 2014 21:32:39 +0000 (21:32 +0000)]
MFC 273988,273989,273995,274057:
MFamd64: Add support for extended FPU states on i386.  This includes
support for AVX on i386.

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

9 years agoMFC r275530:
delphij [Mon, 22 Dec 2014 21:06:26 +0000 (21:06 +0000)]
MFC r275530:

Use %d instead of %u for error number.  This way we see ERESTART as -1
not 4294967295 when doing DTrace.

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

9 years agoMFC r274337,r274673,274681,r275515:
delphij [Mon, 22 Dec 2014 20:58:51 +0000 (20:58 +0000)]
MFC r274337,r274673,274681,r275515:

ZFS large block support.  The default recordsize remains at 128KB.

A new tunable/sysctl variable, vfs.zfs.max_recordsize is added to
allow adjusting the permitted maximum record size, or
zfs_max_recordsize, with a default of 1MB.  ZFS will not allow
setting recordsize greater than zfs_max_recordsize as a safety
belt, because larger recordsize means greater read and write
latency and more memory usage.

Please note that booting from datasets that have recordsize greater
than 128KB is not supported (but it's Okay to enable the feature on
the pool).

Limited safety belt is provided for mounted root filesystem but use
caution when using a larger value.

Illumos issue:
    5027 zfs large block support

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

9 years agoMFC 273991:
jhb [Mon, 22 Dec 2014 20:53:45 +0000 (20:53 +0000)]
MFC 273991:
MFamd64: Move extern declaration of _ucodesel and _udatasel to
<machine/md_var.h>

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

9 years agoMFC 271405,271408,271409,272658:
jhb [Mon, 22 Dec 2014 19:53:55 +0000 (19:53 +0000)]
MFC 271405,271408,271409,272658:
MFamd64: Use initializecpu() to set various model-specific registers on
AP startup and AP resume (it was already used for BSP startup and BSP
resume).

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

9 years agoMFC r276071:
delphij [Mon, 22 Dec 2014 19:07:16 +0000 (19:07 +0000)]
MFC r276071:

Fix multiple ntp vulnerabilities.

Reviewed by: roberto (earlier revision), philip
Security: CVE-2014-9293, CVE-2014-9294
Security: CVE-2014-9295, CVE-2014-9296
Security: FreeBSD-SA-14:31.ntp

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

9 years agoMFC 260557,271076,271077,271082,271083,271098:
jhb [Mon, 22 Dec 2014 18:40:59 +0000 (18:40 +0000)]
MFC 260557,271076,271077,271082,271083,271098:
- Remove spaces from boot messages when we print the CPU ID/Family/Stepping
- Move prototypes for various functions into out of C files and into
  <machine/md_var.h>.
- Reduce diffs between i386 and amd64 initcpu.c and identcpu.c files.
- Move blacklists of broken TSCs out of the printcpuinfo() function
  and into the TSC probe routine.
- Merge the amd64 and i386 identcpu.c into a single x86 implementation.

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

9 years agoMFC r271917 by hrs:
ae [Mon, 22 Dec 2014 17:54:26 +0000 (17:54 +0000)]
MFC r271917 by hrs:
  Virtualize interface cloner for gif(4).  This fixes a panic when destroying
  a vnet jail which has a gif(4) interface.

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

9 years agoMFC r258167:
ae [Mon, 22 Dec 2014 17:32:13 +0000 (17:32 +0000)]
MFC r258167:
  ANSIfy function defintions.

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

9 years agoMFC r275622:
ngie [Mon, 22 Dec 2014 02:22:01 +0000 (02:22 +0000)]
MFC r275622:

  Add makewhatis to ITOOLS if MK_MAN != no

  This will fix installation with differing host targets in installworld, so
  one can build i386/i386 on an amd64 host, then install to an i386/i386 target

  Reported by: alfred
  Phabric: D1280

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

9 years agoMFC r273803,r273810:
ngie [Mon, 22 Dec 2014 00:50:08 +0000 (00:50 +0000)]
MFC r273803,r273810:

r273803:

  Filter out TESTS_SUBDIRS already added to SUBDIR instead of blindly
  appending the TESTS_SUBDIRS variable to SUBDIR

  Duplicate directory entries can cause unexpected side effects, like
  installing the same files multiple times. This can be easily
  reproduced via the following testcase prior to this commit:

    SUBDIR= dir
    TESTS_SUBDIRS+= dir

    .include <bsd.test.mk>

  Sponsored by: EMC / Isilon Storage Division

r273810:

  Fix the logic inversion in the previous commit by ensuring that the matched
  expression (:M) is empty, not the not matched (:N) is empty. The former case
  means we have not found the TEST_SUBDIR value in SUBDIR

  Reported by: rodrigc
  Pointyhat to: me (did not use a clean install root)
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r273186,r273873:
ngie [Mon, 22 Dec 2014 00:21:24 +0000 (00:21 +0000)]
MFC r273186,r273873:

r273186:

  Don't define rules based on PROGS if PROGS is empty.

  Reviewed by: sjg, ngie
  Sponsored by: EMC / Isilon Storage Division

r273873:

  Use the right depend file for each program.

  bsd.progs.mk generates a separate depend file for every program being
  built, but then it does not properly tell each submake to use those
  individual files.  Properly propagate the depend file to use.

  Discovered while preparing the update of atf to 0.21 and noticing that
  the test programs were not being relinked to the new library.

  This change is "make tinderbox" clean.

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

9 years agoMFC r272223:
smh [Sun, 21 Dec 2014 16:43:56 +0000 (16:43 +0000)]
MFC r272223:
Prevent possible use after free in ahci direct mode

Sponsored by: Multiplay

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

9 years agoMFC r268156:
smh [Sun, 21 Dec 2014 15:39:19 +0000 (15:39 +0000)]
MFC r268156:
Various bugfixes from Stefano GarzarellaA

This has been proved to fix reproducable panics on 10.x.

Sponsored by: Multiplay

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

9 years agoMFC r274784:
trasz [Sun, 21 Dec 2014 11:33:18 +0000 (11:33 +0000)]
MFC r274784:

Fix smbfs to not zero out statfs f_flags field. Previously, this
made getmntinfo() return empty flags for smbfs filesystems when
called with MNT_WAIT. It's not visible with mount(8), since it uses
MNT_NOWAIT, but broke autounmount(8) operation.

PR: 195161
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274742:
trasz [Sun, 21 Dec 2014 11:26:51 +0000 (11:26 +0000)]
MFC r274742:

Uniformly refer to a file system as "file system".

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274741:
trasz [Sun, 21 Dec 2014 11:25:26 +0000 (11:25 +0000)]
MFC r274741:

Add example on how to use gpart before growfs.  While here, reorder examples
so that the simplest one comes first.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274738:
trasz [Sun, 21 Dec 2014 11:23:59 +0000 (11:23 +0000)]
MFC r274738:

Document growfs(8) feature apparently nobody knows about.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274737:
trasz [Sun, 21 Dec 2014 11:22:15 +0000 (11:22 +0000)]
MFC r274737:

Use proper ordering in EXAMPLES section in growfs(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274796:
trasz [Sun, 21 Dec 2014 11:15:35 +0000 (11:15 +0000)]
MFC r274796:

Document use of wildcards (*) and ampersands (&) in autofs map files.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273482,r274078:
ngie [Sun, 21 Dec 2014 11:11:17 +0000 (11:11 +0000)]
MFC r273482,r274078:

r273482:

  The NetBSD libc tests use several definitions/macros that aren't available in
  FreeBSD

  Add the missing compat definitions/macros to lib/libnetbsd so the testcases
  can be compiled with libnetbsd without having to invent ad hoc #define's, or
  having to convert things over to FreeBSD idioms

  Reviewed by: brooks
  Phabric: D993
  Sponsored by: EMC / Isilon Storage Division

r274078:

  Commit missing header for sys/time.h compat on NetBSD to unbreak the amd64/i386
  build

  Pointyhat to: me (forgot to svn add it sooner)

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

9 years agoMFC r274723:
trasz [Sun, 21 Dec 2014 11:03:59 +0000 (11:03 +0000)]
MFC r274723:

Make the auto_master(5) man page clearer on how auto_master
and map files work together, and add example for smbfs.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274621:
trasz [Sun, 21 Dec 2014 11:00:48 +0000 (11:00 +0000)]
MFC r274621:

The "intr" option is NFS-specific; fix examples in auto_master(5).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274549:
trasz [Sun, 21 Dec 2014 10:56:06 +0000 (10:56 +0000)]
MFC r274549:

Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session
that matches both -t and -p.

Sponsored by: The FreeBSD Foundation

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