]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r266865;
pfg [Sat, 14 Jun 2014 02:57:40 +0000 (02:57 +0000)]
MFC r266865;

Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance.

POSIX.1-2008 specifies that those two functions should be declared by
including <strings.h>, not <string.h> (the latter only has strcoll_l()
and strxfrm_l()):

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

Bump __FreeBSD_version for ports that may be using the non-standard
reference.

Obtained from: DragonFlyBSD
Reviewed by: theraven

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

9 years agoMFC r267368:
delphij [Sat, 14 Jun 2014 00:44:57 +0000 (00:44 +0000)]
MFC r267368:

Apply vendor fixes to the High Point drivers:

 - Don't call xpt_free_path() in os_query_remove_device() and
   always return TRUE.
 - Update os_buildsgl() to support build logical SG table which
   will be used by lower RAID module.
 - Return CAM_SEL_TIMEOUTstatus for SCSIcommand failed as target
   missing.

Many thanks to HighPoint for providing this driver update.

Submitted by: Steve Chang
Reviewed by: mav

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

9 years agoMFC 262744:
jhb [Fri, 13 Jun 2014 21:30:40 +0000 (21:30 +0000)]
MFC 262744:
Add SMBIOS support.

A new option, -U, can be used to set the UUID in the System
Information (Type 1) structure.

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

9 years agoMFC 262139,262140,262236,262281,262532:
jhb [Fri, 13 Jun 2014 19:10:40 +0000 (19:10 +0000)]
MFC 262139,262140,262236,262281,262532:
Various x2APIC fixes and enhancements:
- Use spinlocks for the vioapic.
- Handle the SELF_IPI MSR.
- Simplify the APIC mode switching between MMIO and x2APIC.  The guest is
  no longer allowed to switch modes at runtime.  Instead, the desired mode
  is set when the virtual machine is created.
- Disallow MMIO access in x2APIC mode and MSR access in xAPIC mode.
- Add support for x2APIC virtualization assist in Intel VT-x.

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

9 years agoMFC r267174:
bdrewery [Fri, 13 Jun 2014 15:04:21 +0000 (15:04 +0000)]
MFC r267174:

  Fix some rpcgen sample file issues.

PR: 185582

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

9 years agoMFC r267162: ktrace: Use designated initializers for the data_lengths array.
jilles [Fri, 13 Jun 2014 12:39:06 +0000 (12:39 +0000)]
MFC r267162: ktrace: Use designated initializers for the data_lengths array.

In the .o file, this only changes some line numbers (stable/10 amd64)
because element 0 is no longer explicitly initialized.

This should make bugs like FreeBSD-SA-14:12.ktrace less likely.

Discussed with: des

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

9 years agoMFC: r267185
brueffer [Fri, 13 Jun 2014 12:01:55 +0000 (12:01 +0000)]
MFC: r267185

Minor improvements.

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

9 years agoMFC r263191:
hselasky [Fri, 13 Jun 2014 07:33:43 +0000 (07:33 +0000)]
MFC r263191:
Add libusb_log_level enum.

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

9 years agoMFC 262615,262624:
jhb [Thu, 12 Jun 2014 21:36:17 +0000 (21:36 +0000)]
MFC 262615,262624:
Workaround an apparent bug in VMWare Fusion's nested VT support where it
triggers a VM exit with the exit reason of an external interrupt but
without a valid interrupt set in the exit interrupt information.

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

9 years agoMFC 261638,262144,262506,266765:
jhb [Thu, 12 Jun 2014 19:58:12 +0000 (19:58 +0000)]
MFC 261638,262144,262506,266765:
Add virtualized XSAVE support to bhyve which permits guests to use XSAVE and
XSAVE-enabled features like AVX.
- Store a per-cpu guest xcr0 register and handle xsetbv VM exits by emulating
  the instruction.
- Only expose XSAVE to guests if XSAVE is enabled in the host.  Only expose
  a subset of XSAVE features currently supported by the guest and for which
  the proper emulation of xsetbv is known.  Currently this includes X87, SSE,
  AVX, AVX-512, and Intel MPX.
- Add support for injecting hardware exceptions into the guest and use this
  to trigger exceptions in the guest for invalid xsetbv operations instead
  of potentially faulting in the host.
- Queue pending exceptions in the 'struct vcpu' instead of directly updating
  the processor-specific VMCS or VMCB. The pending exception will be delivered
  right before entering the guest.
- Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict
  it to only deliver x86 hardware exceptions. This new ioctl is now used to
  inject a protection fault when the guest accesses an unimplemented MSR.
- Expose a subset of known-safe features from leaf 0 of the structured
  extended features to guests if they are supported on the host including
  RDFSBASE/RDGSBASE, BMI1/2, AVX2, AVX-512, HLE, ERMS, and RTM.  Aside
  from AVX-512, these features are all new instructions available for use
  in ring 3 with no additional hypervisor changes needed.

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

9 years agoFix a typo in note for r266890, pmcstat(8)
gjb [Thu, 12 Jun 2014 17:21:11 +0000 (17:21 +0000)]
Fix a typo in note for r266890, pmcstat(8)

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 266263,266551,266552:
jhb [Thu, 12 Jun 2014 17:15:56 +0000 (17:15 +0000)]
MFC 266263,266551,266552:
- Add definitions for more structured extended features as well as
  XSAVE Extended Features for AVX512 and MPX (Memory Protection Extensions).
- Don't permit users to request a subset of the AVX512 or MPX xsave masks.

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

9 years agoMFC r267326, r267327:
gjb [Thu, 12 Jun 2014 17:13:35 +0000 (17:13 +0000)]
MFC r267326, r267327:

r267326:
  Add empty pkg-stage file to CLEANFILES if WITH_DVD=1.

r267327:
  Fix indentation level.

Sponsored by: The FreeBSD Foundation

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

9 years agoUndo incorrect mergeinfo from r267410
emaste [Thu, 12 Jun 2014 17:06:50 +0000 (17:06 +0000)]
Undo incorrect mergeinfo from r267410

Suggested by: gjb

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

9 years agoDocument r266890, pmcstat(8) '-l' flag.
gjb [Thu, 12 Jun 2014 16:55:04 +0000 (16:55 +0000)]
Document r266890, pmcstat(8) '-l' flag.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265798, r265815 by wblock:
emaste [Thu, 12 Jun 2014 16:41:52 +0000 (16:41 +0000)]
MFC r265798, r265815 by wblock:

  Add a man page for the new vt.4 device.

  Fix document title.

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

9 years agoMFC r267090:
wblock [Thu, 12 Jun 2014 15:46:24 +0000 (15:46 +0000)]
MFC r267090:

Correct the document date for last change.

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

9 years agoMFC 262311: Fix virtio spec URL.
jhb [Thu, 12 Jun 2014 15:24:33 +0000 (15:24 +0000)]
MFC 262311: Fix virtio spec URL.

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

9 years agoMFC 261504:
jhb [Thu, 12 Jun 2014 15:20:59 +0000 (15:20 +0000)]
MFC 261504:
Add support for FreeBSD/i386 guests under bhyve.

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

9 years agoMFC 261503,264501:
jhb [Thu, 12 Jun 2014 13:48:52 +0000 (13:48 +0000)]
MFC 261503,264501:
Emulate the byte move and zero/sign extend instructions.

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

9 years agoMFC 261229:
jhb [Thu, 12 Jun 2014 13:17:11 +0000 (13:17 +0000)]
MFC 261229:
o Fix typo, sort .Xrs.

PR: docs/186191

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

9 years agoMFC 260239,261268,265058:
jhb [Thu, 12 Jun 2014 13:13:15 +0000 (13:13 +0000)]
MFC 260239,261268,265058:
Expand the support for PCI INTx interrupts including providing interrupt
routing information for INTx interrupts to I/O APIC pins and enabling
INTx interrupts in the virtio and AHCI backends.

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

9 years agoMFC r267252, r267253:
bryanv [Thu, 12 Jun 2014 04:47:14 +0000 (04:47 +0000)]
MFC r267252, r267253:

  - Remove an unnecessary variable reassignment
  - Fix TSO support on VMware Fusion

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

9 years agoMFC r267109, r267179: Update vt(4) "Terminus BSD Console" font
emaste [Thu, 12 Jun 2014 01:33:01 +0000 (01:33 +0000)]
MFC r267109, r267179: Update vt(4) "Terminus BSD Console" font

  "Terminus BSD Console" is a derivative of Terminus that is provided
  by Mr. Dimitar Zhekov under the 2-clause BSD license for use by the
  FreeBSD vt(4) console.

  Clarify statement on font origin

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

9 years agoMFC r267066 and r267041:
hselasky [Wed, 11 Jun 2014 05:50:04 +0000 (05:50 +0000)]
MFC r267066 and r267041:
Fixes for the RSU driver:
- The R92S_TCR register is an 8-bit register. Don't access it like a
16-bit register.
- Disable parsing the delete station event, due to many false events.
- Ensure that there is only one transfer queue for each endpoint, so
to hal packets transmitted don't get out of order.
- Properly align temporary buffer to 32-bit.
- Add an extra parenthesis to make expression clear.
- Range check the association ID received from hardware.

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

9 years agoMFC r267240:
hselasky [Wed, 11 Jun 2014 05:39:08 +0000 (05:39 +0000)]
MFC r267240:
Resolve a deadlock setting the USB configuration index from userspace
on USB HUBs by moving the code into the USB explore threads. The
deadlock happens because child devices of the USB HUB don't have the
expected reference count when called from outside the explore
thread. Only the HUB device itself, which the IOCTL interface locks,
gets the correct reference count.

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

9 years agoMFC r267060:
kib [Wed, 11 Jun 2014 03:59:14 +0000 (03:59 +0000)]
MFC r267060:
Allow shared locking for the tmpfs vnode.

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

9 years agoMFC: r267191
rmacklem [Tue, 10 Jun 2014 22:36:01 +0000 (22:36 +0000)]
MFC: r267191
The new NFS server would not allow a hard link to be
created to a symlink. This restriction (which was
inherited from OpenBSD) is not required by the NFS RFCs.
Since this is allowed by the old NFS server, it is a
POLA violation to not allow it. This patch modifies the
new NFS server to allow this.

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

9 years agoMFC 261217:
jhb [Tue, 10 Jun 2014 21:20:37 +0000 (21:20 +0000)]
MFC 261217:
Remove support for legacy PCI devices.  These haven't been needed since
support for LPC uart devices was added and it conflicts with upcoming
patches to add PCI INTx support.

Approved by: grehan

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

9 years agoMFC 261000,261785,263238,263322,264302:
jhb [Tue, 10 Jun 2014 19:00:14 +0000 (19:00 +0000)]
MFC 261000,261785,263238,263322,264302:
Various AHCI fixes:
- Fix issue with stale fields from a recycled request pulled off the
  freelist.
- Provide an indication a "PIO Setup Device to Host FIS" occurred while
  executing the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands.
- Provide an indication a "D2H Register FIS" occurred during a SET FEATURES
  command.
- Though there currently isn't a way to insert new media into an ATAPI
  drive, at least pretend to support Asynchronous Notification (AN) to
  avoid a guest needlessly polling for it.
- Don't reissue in-flight commands.
- Constrain the amount of data returned to what is actually available
  not the size of the buffer.

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

9 years agoMFC 267284
luigi [Tue, 10 Jun 2014 17:24:46 +0000 (17:24 +0000)]
MFC  267284
Fixes from Fanco Ficthner on transparent mode

* The way rings are updated changed with the last API bump.
  Also sync ->head when moving slots in netmap_sw_to_nic().

* Remove a crashing selrecord() call.

* Unclog the logic surrounding netmap_rxsync_from_host().

* Add timestamping to RX host ring.

* Remove a couple of obsolete comments.

Submitted by: Franco Fichtner
MFC after: 3 days
Sponsored by: Packetwerk

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

9 years agoMFC 267328:
luigi [Tue, 10 Jun 2014 17:17:44 +0000 (17:17 +0000)]
MFC 267328:
change the netmap mbuf destructor so the same code works also on FreeBSD 9.
For head and 10 this change has no effect, but on stable/9 it would cause
panics when using emulated netmap on top of a standard device driver.

MFC after: 3 days

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

9 years agoMFC r267212:
hselasky [Tue, 10 Jun 2014 04:44:28 +0000 (04:44 +0000)]
MFC r267212:
Make WITNESS happy by giving USB mutexes different names.

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

9 years agoMFC r266951:
bryanv [Tue, 10 Jun 2014 03:23:35 +0000 (03:23 +0000)]
MFC r266951:

  Split the virtio.h header file into multiple files

  Reorganize the previous contexts of the file as it is in Linux. The
  eventual goal is to install the header files and share them between
  the kernel and bhyve.

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

9 years agoMFC r266416:
bjk [Mon, 9 Jun 2014 23:11:50 +0000 (23:11 +0000)]
MFC r266416:
    ------------------------------------------------------------------------
    r266416 | bjk | 2014-05-18 17:05:54 -0400 (Sun, 18 May 2014) | 14 lines

    Document some user-settable make variables in ports.7

    This is not a comprehensive list, as the variables themselves are spread
    out over multiple files, but it is a start.

    Add a section to make.conf noting that variables may be set there that
    affect ports builds, but refer to ports.7 and elsewhere for the actual
    listing; any listing in make.conf.5 would likely become out of date
    fairly quickly.

    PR:             docs/189199
    Reviewed by:    bdrewery (previous version)
    Approved by:    hrs (mentor)

    ------------------------------------------------------------------------

PR: 189199
Approved by: hrs (mentor)

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

9 years agoDocument r267258, OpenSSL update to 1.0.1h.
gjb [Mon, 9 Jun 2014 20:54:23 +0000 (20:54 +0000)]
Document r267258, OpenSSL update to 1.0.1h.

Sponsored by: The FreeBSD Foundation

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

9 years agosync netmap code with the version in HEAD:
luigi [Mon, 9 Jun 2014 15:24:45 +0000 (15:24 +0000)]
sync netmap code with the version in HEAD:
- fix handling of tx mbufs in emulated netmap mode;
- introduce mbq_lock() and mbq_unlock()
- rate limit some error messages
- many whitespace and comment fixes

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

9 years agoMFC 267168:
luigi [Mon, 9 Jun 2014 15:16:17 +0000 (15:16 +0000)]
MFC 267168:
misc bugfixes:
- stdio.h is needed for fprint()
- make memsize uint32_t to avoid errors due to overflow
- honor the *XPOLL flagg in NIOCREGIF requests
- mmap fails wit MAP_FAILED, not NULL.

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

9 years agoMFC 267167: whitespace changes (comments)
luigi [Mon, 9 Jun 2014 15:15:08 +0000 (15:15 +0000)]
MFC 267167: whitespace changes (comments)

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

9 years agoMFC svn 267065 and 267187
luigi [Mon, 9 Jun 2014 15:09:05 +0000 (15:09 +0000)]
MFC svn 267065 and 267187

make sure ifp->if_transmit returns 0 if a buffer is enqueued.
This should also be merged to stable/9.

After this fix, drivers still known to have this bug are igxbe/ixv
and i40e.

Drivers using if_transmit are correct, and so are most of the
other drivers that reassing if_transmit.

Among other things, this bug causes panics when using netmap emulation
on top of generic drivers.

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

9 years agoMFC r267089:
kevlo [Mon, 9 Jun 2014 07:21:42 +0000 (07:21 +0000)]
MFC r267089:

Remove D-Link DWA140 rev D1 by accident.

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

9 years agoMFC: r267256
jkim [Mon, 9 Jun 2014 06:00:28 +0000 (06:00 +0000)]
MFC: r267256

Merge OpenSSL 1.0.1h.

Approved by: so (delphij)

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

9 years agoMFC: r267184
brueffer [Mon, 9 Jun 2014 05:56:18 +0000 (05:56 +0000)]
MFC: r267184

Add vte(4) to the hardware notes.

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

9 years agoDocument r267236, ttys 'onifconsole'
gjb [Mon, 9 Jun 2014 02:30:57 +0000 (02:30 +0000)]
Document r267236, ttys 'onifconsole'

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r267160:
gjb [Mon, 9 Jun 2014 01:24:53 +0000 (01:24 +0000)]
MFC r267160:
  Dereference portaudit(1), as it is now deprecated and its
  functionality exists in pkg-audit(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r267082:
np [Sun, 8 Jun 2014 23:22:25 +0000 (23:22 +0000)]
MFC r267082:
cxgbe(4):  Properly account for the freelist buffers used when returning
early from service_iq due to a budget restriction.  This fixes a potential
rx hang when using INTx.

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

9 years agoMFC r267044, r267120, r267210 and r267211:
hselasky [Sun, 8 Jun 2014 20:39:39 +0000 (20:39 +0000)]
MFC r267044, r267120, r267210 and r267211:
Multiple fixes for FULL and LOW speed USB transfers going through
the DWC OTG as split transactions. INTERRUPT transfers should have
a higher chance of success after this series of patches and the
chance of data loss should be reduced.

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

9 years agoMFC r260913,266895:
nwhitehorn [Sun, 8 Jun 2014 17:50:07 +0000 (17:50 +0000)]
MFC r260913,266895:
Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the
device is an active kernel console and "off" otherwise. This is designed to
allow serial-booting x86 systems to provide a login prompt on the serial line
by default without providing one on all systems by default. Set this flag
on x86 systems for ttyu0.

Comments and suggestions by: grehan, dteske, jilles

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

9 years agoMFC r267078, r267079:
emaste [Sun, 8 Jun 2014 14:02:25 +0000 (14:02 +0000)]
MFC r267078, r267079:

   Update vt(4) console font author's email address
   Remove extra copy of old email address.

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

9 years agoMFC: r266931
brueffer [Sat, 7 Jun 2014 19:12:43 +0000 (19:12 +0000)]
MFC: r266931

Grammar cleanup; sort SEE ALSO.

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

9 years agoMFC r267067:
kib [Sat, 7 Jun 2014 02:49:39 +0000 (02:49 +0000)]
MFC r267067:
Cross-reference jot(1) and seq(1).

MFC r267098 (by pluknet):
mdoc: drop the trailing dot from the xref list.

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

9 years agoMFC r266609:
kib [Sat, 7 Jun 2014 02:45:24 +0000 (02:45 +0000)]
MFC r266609:
Change the _rtld_atfork() to lock the bind lock in write mode.

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

9 years agoMFC changes related to PR kern/189089. Unlike CURRENT, stable/10 does not
asomers [Fri, 6 Jun 2014 22:14:25 +0000 (22:14 +0000)]
MFC changes related to PR kern/189089.  Unlike CURRENT, stable/10 does not
panic when you attempt to remove the IP address.  But it still fails to
remove the address.

MFC r265094

Add regression test for PR kern/189088.

MFC r265092

Fix a panic when removing an IP address from an interface, if the same
address exists on another interface.  The panic was introduced by change
264887, which changed the fibnum parameter in the call to rtalloc1_fib() in
ifa_switch_loopback_route() from RT_DEFAULT_FIB to RT_ALL_FIBS.  The
solution is to use the interface fib in that call.  For the majority of
users, that will be equivalent to the legacy behavior.

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

9 years agoMFC r264887
asomers [Fri, 6 Jun 2014 21:45:14 +0000 (21:45 +0000)]
MFC r264887

Fix host and network routes for new interfaces when net.add_addr_allfibs=0

sys/net/route.c
        In rtinit1, use the interface fib instead of the process fib.  The
        latter wasn't very useful because ifconfig(8) is usually invoked
        with the default process fib.  Changing ifconfig(8) to use setfib(2)
        would be redundant, because it already sets the interface fib.

tests/sys/netinet/fibs_test.sh
        Clear the expected ATF failure

sys/net/if.c
        Pass the interface fib in calls to rtrequest1_fib and rtalloc1_fib

sys/netinet/in.c
sys/net/if_var.h
        Add a fibnum argument to ifa_switch_loopback_route, a subroutine of
        in_scrubprefix.  Pass it the interface fib.

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

9 years agoMFC changes relating to running multiple interfaces on different fibs but
asomers [Fri, 6 Jun 2014 20:35:40 +0000 (20:35 +0000)]
MFC changes relating to running multiple interfaces on different fibs but
with addresses on the same subnet.

MFC r266860

Fix unintended KBI change from r264905.  Add _fib versions of
ifa_ifwithnet() and ifa_ifwithdstaddr()  The legacy functions will call the
_fib() versions with RT_ALL_FIBS, preserving legacy behavior.

sys/net/if_var.h
sys/net/if.c
        Add legacy-compatible functions as described above.  Ensure legacy
        behavior when RT_ALL_FIBS is passed as fibnum.

sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/net/route.c
sys/net/rtsock.c
sys/netinet6/nd6.c
        Call with _fib() functions if we must use a specific fib, or the
        legacy functions otherwise.

tests/sys/netinet/fibs_test.sh
tests/sys/netinet/udp_dontroute.c
        Improve the udp_dontroute test.  The bug that this test exercises is
        that ifa_ifwithnet() will return the wrong address, if multiple
        interfaces have addresses on the same subnet but with different
        fibs.  The previous version of the test only considered one possible
        failure mode: that ifa_ifwithnet_fib() might fail to find any
        suitable address at all.  The new version also checks whether
        ifa_ifwithnet_fib() finds the correct address by checking where the
        ARP request goes.

MFC r264917

Style fixes, mostly trailing whitespace elimination.  No functional change.

MFC r264905

Fix subnet and default routes on different FIBs on the same subnet.

These two bugs are closely related.  The root cause is that ifa_ifwithnet
does not consider FIBs when searching for an interface address.

sys/net/if_var.h
sys/net/if.c
        Add a fib argument to ifa_ifwithnet and ifa_ifwithdstadddr.  Those
        functions will only return an address whose interface fib equals the
        argument.

sys/net/route.c
        Update calls to ifa_ifwithnet and ifa_ifwithdstaddr with fib
        arguments.

sys/netinet/in.c
        Update in_addprefix to consider the interface fib when adding
        prefixes.  This will prevent it from not adding a subnet route when
        one already exists on a different fib.

sys/net/rtsock.c
sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/netinet6/nd6.c
        Add RT_DEFAULT_FIB arguments to ifa_ifwithdstaddr and ifa_ifwithnet.
        In some cases it there wasn't a clear specific fib number to use.
        In others, I was unable to test those functions so I chose
        RT_DEFAULT_FIB to minimize divergence from current behavior.  I will
        fix some of the latter changes along with PR kern/187553.

tests/sys/netinet/fibs_test.sh
tests/sys/netinet/udp_dontroute.c
tests/sys/netinet/Makefile
        Revert r263738.  The udp_dontroute test was right all along.
        However, bugs kern/187550 and kern/187553 cancelled each other out
        when it came to this test.  Because of kern/187553, ifa_ifwithnet
        searched the default fib instead of the requested one, but because
        of kern/187550, there was an applicable subnet route on the default
        fib.  The new test added in r263738 doesn't work right, however.  I
        can verify with dtrace that ifa_ifwithnet returned the wrong address
        before I applied this commit, but route(8) miraculously found the
        correct interface to use anyway.  I don't know how.

        Clear expected failure messages for kern/187550 and kern/187552.

MFC r263738

tests/sys/netinet/Makefile
tests/sys/netinet/fibs.sh
        Replace fibs:udp_dontroute with fibs:src_addr_selection_by_subnet.
        The original test was poorly written; it was actually testing
        kern/167947 instead of the desired kern/187553.  The root cause of the
        bug is that ifa_ifwithnet did not have a fib argument.  The new test
        more directly targets that behavior.

tests/sys/netinet/udp_dontroute.c
        Delete the auxilliary binary used by the old test

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

9 years agoMFC r263779
asomers [Fri, 6 Jun 2014 17:42:55 +0000 (17:42 +0000)]
MFC r263779

Correct ARP update handling when the routes for network interfaces are
restricted to a single FIB in a multifib system.

Restricting an interface's routes to the FIB to which it is assigned (by
setting net.add_addr_allfibs=0) causes ARP updates to fail with "arpresolve:
can't allocate llinfo for x.x.x.x".  This is due to the ARP update code hard
coding it's lookup for existing routing entries to FIB 0.

sys/netinet/in.c:
When dealing with RTM_ADD (add route) requests for an interface, use
the interface's assigned FIB instead of the default (FIB 0).

sys/netinet/if_ether.c:
In arpresolve(), enhance error message generated when an
lla_lookup() fails so that the interface causing the error is
visible in logs.

tests/sys/netinet/fibs_test.sh
Clear ATF expected error.

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

9 years agoMFC r264417: realpath(): Properly fail "." or ".." components after
jilles [Fri, 6 Jun 2014 13:37:40 +0000 (13:37 +0000)]
MFC r264417: realpath(): Properly fail "." or ".." components after
non-directories.

If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..",
it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as
they should.

Also, put the check for non-directories after lstatting the previous
component instead of when the empty component (consecutive or trailing
slashes) is detected, saving an lstat() call and some lines of code.

PR: 82980

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

9 years agoMFC r266880:
ae [Fri, 6 Jun 2014 12:37:56 +0000 (12:37 +0000)]
MFC r266880:
  Use g_conf_printf_escaped() to escape symbols, which can break
  an XML tree.

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

9 years agoMFC r266903: Update default callchain depth to 16 to match kernel
emaste [Fri, 6 Jun 2014 01:35:52 +0000 (01:35 +0000)]
MFC r266903: Update default callchain depth to 16 to match kernel

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

9 years agoMFC r266915: MFV 266913+266914:
delphij [Fri, 6 Jun 2014 00:13:38 +0000 (00:13 +0000)]
MFC r266915: MFV 266913+266914:

3897 zfs filesystem and snapshot limits (fix leak)
4901 zfs filesystem/snapshot limit leaks

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

9 years agoDocument r267113, newsyslog.conf(5) includes in conf.d.
gjb [Thu, 5 Jun 2014 23:56:06 +0000 (23:56 +0000)]
Document r267113, newsyslog.conf(5) includes in conf.d.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r266463:
bdrewery [Thu, 5 Jun 2014 15:21:25 +0000 (15:21 +0000)]
MFC r266463:

  - Include /etc/newsyslog.conf.d/* and /usr/local/etc/newsyslog.conf.d/* by
    default for newsyslog(8).

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

9 years agoMFH r266813: Don't break the legacy applications which set
ume [Thu, 5 Jun 2014 15:16:44 +0000 (15:16 +0000)]
MFH r266813: Don't break the legacy applications which set
just 2 bytes to salt.

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

9 years agoFix mismerge in r267049 and put makeoptions DEBUG=-gdwarf-2 instead of
marius [Thu, 5 Jun 2014 13:08:08 +0000 (13:08 +0000)]
Fix mismerge in r267049 and put makeoptions DEBUG=-gdwarf-2 instead of
DEBUG=-g back.
Still, the original comment should be restored in head and then be MFCed
along with r263749.

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

9 years agoFix OpenSSL multiple vulnerabilities.
delphij [Thu, 5 Jun 2014 12:32:38 +0000 (12:32 +0000)]
Fix OpenSSL multiple vulnerabilities.

Security: CVE-2014-0195, CVE-2014-0221, CVE-2014-0224,
CVE-2014-3470
Security: SA-14:14.openssl

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

9 years agoMFC r266859:
marck [Thu, 5 Jun 2014 11:48:36 +0000 (11:48 +0000)]
MFC r266859:

  Change examples to have master skew above 0 to have ability to overwrite this
  from the slave (for example, when master is failing on disk IO and could not be
  logged into or execute cronjob).

  Commented out examples changed too to simplify future merging.

  Idea by:        kaa@zvuki.ru
  Discussed with: glebius

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

9 years agoMFC r266538:
mav [Thu, 5 Jun 2014 05:36:55 +0000 (05:36 +0000)]
MFC r266538:
Make ng_mppc to not disable the node in case of multiple packet loss.
Quite often it can be just packet reorder, and killing link in such case
is inconvenient.  Add few sysctl's to control that behavior.

PR: kern/182212
Submitted by: Eugene Grosbein <egrosbein@rdtc.ru>

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

9 years agoMFC r266828:
wblock [Thu, 5 Jun 2014 01:20:25 +0000 (01:20 +0000)]
MFC r266828:

Correct the description of characters allowed.  Based on pw_checkname in
usr.sbin/pw/pw_user.c.  Modified version of patch submitted by
venture37.

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

9 years agoMFC r266848:
kib [Thu, 5 Jun 2014 00:43:32 +0000 (00:43 +0000)]
MFC r266848:
Add support for the unmapped i/o to mfi(4).

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

9 years agoMFC r266846:
kib [Thu, 5 Jun 2014 00:40:48 +0000 (00:40 +0000)]
MFC r266846:
When usermode loaded non-default segment selector into the %gs,
correctly prepare KGSBASE msr to restore the user descriptor base on
the last swapgs during return to usermode.

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

9 years agoMFC 266281:
jhb [Wed, 4 Jun 2014 18:21:33 +0000 (18:21 +0000)]
MFC 266281:
Clear the data buffer length field when freeing a command structure so that
it doesn't leak through when the command structure is reused for a user
command without a data buffer.

PR: 189668

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

9 years agoMFC 260999:
jhb [Wed, 4 Jun 2014 18:08:08 +0000 (18:08 +0000)]
MFC 260999:
Increase the block-layer backend maximum number of requests to match
the AHCI command queue depth.

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

9 years agoMFC 260972:
jhb [Wed, 4 Jun 2014 17:57:48 +0000 (17:57 +0000)]
MFC 260972:
There is no need to initialize the IOMMU if no passthru devices have been
configured for bhyve to use.

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

9 years agoMFC 263772: Fix build without SMP.
jhb [Wed, 4 Jun 2014 17:50:47 +0000 (17:50 +0000)]
MFC 263772: Fix build without SMP.

PR: 187854

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

9 years agoFix syntax error thrown at the point of creating the root pool, caused by
roberto [Wed, 4 Jun 2014 15:31:57 +0000 (15:31 +0000)]
Fix syntax error thrown at the point of creating the root pool, caused by
an embedded newline appearing within the options string surrounded by
double-quotes. Rework the logic that goes into setting dataset options on
the root pool dataset while we're here -- added two new variables (which
can be altered via scripting) ZFSBOOT_POOL_CREATE_OPTIONS and also
ZFSBOOT_BOOT_POOL_CREATE_OPTIONS for setting pool/dataset attributes at
the time of pool creation. The former is for setting options on the root
pool (zroot) and the latter is for setting options on the optional separate
boot pool (bootpool) implicitly enabled when using either GELI or MBR. The
default value for the root pool variable (ZFSBOOT_POOL_CREATE_OPTIONS) is
"-O compress=lz4 -O atime=off" and the default value for separate boot pool
variable (ZFSBOOT_BOOT_POOL_CREATE_OPTIONS) is NULL (no additional options
for the separate boot pool dataset).

Reviewed by: allanjude

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

9 years agoMFC r266780:
kib [Wed, 4 Jun 2014 15:18:46 +0000 (15:18 +0000)]
MFC r266780:
Remove the assert which can be triggered by the userspace.

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

9 years agoMFC r266107,r266108,r266109:
roberto [Wed, 4 Jun 2014 14:58:51 +0000 (14:58 +0000)]
MFC r266107,r266108,r266109:

Here is a patch for the bsdinstall root-on-zfs stuff that adds optional
encryption for swap, and optional gmirror for swap (which can be combined)

Updates to the datasets created by zfsboot.

Set compress=lz4 for the entire pool, removing it from the individual
datasets

Remove exec=no from /usr/src, breaks the test suite.

Fix the "disks" variable reuse.

It starts off being used to track the grammar for the number of disks
(singular vs plural) and then it is reused as the list of available disks.

Replace the variable with disks_grammar and move 'disk' and 'disks' to
msg_ vars so they can be translated in the future.

Submitted by: Allan Jude <freebsd@allanjude.com>
Reviewed by: roberto
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r266821 (partial)
marius [Wed, 4 Jun 2014 12:03:51 +0000 (12:03 +0000)]
MFC: r266821 (partial)

- Actually, modules are built correctly when compiled along the kernel as
  they then pick up an opt_global.h from KERNBUILDDIR having PAE defined.
  Thus, build all modules by default except those which still really are
  defective as of r267043.
- Minor style cleanup.

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

9 years agoMFC: r266820 (partial)
marius [Wed, 4 Jun 2014 11:06:38 +0000 (11:06 +0000)]
MFC: r266820 (partial)

- Shrink the list of excluded modules to what actually still doesn't build
  as of r267043.
- Some style cleanups.

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

9 years agoMFC r266664:
hselasky [Wed, 4 Jun 2014 10:40:43 +0000 (10:40 +0000)]
MFC r266664:
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
from sourceforge.

PR: usb/190204

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

9 years agoMFC r266798 and r266803:
hselasky [Wed, 4 Jun 2014 10:33:30 +0000 (10:33 +0000)]
MFC r266798 and r266803:
Fix for big-endian architectures.

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

9 years agoMFC: r266793, r266799, r266808
marius [Wed, 4 Jun 2014 09:54:01 +0000 (09:54 +0000)]
MFC: r266793, r266799, r266808

- Fix compilation with PAE support enabled by merging r233362 and, thus,
  doing away with the unnecessary uint8_t pointer casting.
  physical addresses.
- Nuke the unused softc of emujoy(4).
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC: r266792
marius [Wed, 4 Jun 2014 09:44:05 +0000 (09:44 +0000)]
MFC: r266792

Fix DMA handling in radeon_dummy_page_init():
- Based on actual usage and on what Linux does, dummy_page.addr should
  contain the physical bus address of the dummy page rather than its
  virtual one. As a side-effect, correcting this bug fixes compilation
  with PAE support enabled by getting rid of an inappropriate cast.
- Also based on actual usage of dummy_page.addr, theoretically Radeon
  devices could do a maximum of 44-bit DMA. In reality, though, it is
  more likely that they only support 32-bit DMA, at least that is what
  radeon_gart_table_ram_alloc() sets up for, too. However, passing ~0
  to drm_pci_alloc() as maxaddr parameter translates to 64-bit DMA on
  amd64/64-bit machines. Thus, use BUS_SPACE_MAXSIZE_32BIT instead,
  which the existing 32-bit DMA limits within the drm2 code spelled as
  0xFFFFFFFF should also be changed to.

Reviewed by: dumbbell
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r266778:
nwhitehorn [Wed, 4 Jun 2014 06:21:54 +0000 (06:21 +0000)]
MFC r266778:
Repair nested signal handling on PowerPC. The signal trampoline code
was not allocating space for the parameter save area in the stack frame.
If the compiler chose to save the argument to the signal handler on the
stack, it would overwrite the first 32 bits of the sigaction struct with
it, corrupting it for a subsequent invocation.

PR: powerpc/183040

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

9 years agoMFC r266833:
hselasky [Wed, 4 Jun 2014 06:15:45 +0000 (06:15 +0000)]
MFC r266833:
Add some more spinlocks to protect the state of the USB transfer
queue. Rename some functions to indicate locking requirements.

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

9 years agoMFC r266335:
lwhsu [Wed, 4 Jun 2014 03:03:34 +0000 (03:03 +0000)]
MFC r266335:

Add axge(4) to LINT

Approved by: kevlo

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

9 years agoMFC: r266709
brueffer [Tue, 3 Jun 2014 19:25:39 +0000 (19:25 +0000)]
MFC: r266709

Language cleanup.

Reviewed by: mav, bcr, wblock

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

9 years agoMFC r266605.
cy [Tue, 3 Jun 2014 19:06:47 +0000 (19:06 +0000)]
MFC r266605.

Move mutex creation from ipf_log_soft_init() to ipf_log_soft_create()
to be consistent with mutex destruction in ipf_log_soft_destroy(). As a
result mutex destruction in ipf_log_soft_fini() is redundant.

Approved by: glebius (mentor)

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

9 years agoFix incorrect error handling in PAM policy parser. [SA-14:13]
delphij [Tue, 3 Jun 2014 19:02:18 +0000 (19:02 +0000)]
Fix incorrect error handling in PAM policy parser. [SA-14:13]

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

9 years agoMFC r266938:
rodrigc [Tue, 3 Jun 2014 14:50:51 +0000 (14:50 +0000)]
MFC r266938:

Allow customization of the brand displayed in the boot menu.
If the user specifies in /boot/loader.conf:

    loader_brand="mycustom-brand"

Then "mycustom-brand" will be executed instead of "fbsd-logo".

Submitted by:    alfred
Obtained from:   FreeNAS

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

9 years agoMFC r266468:
mav [Tue, 3 Jun 2014 06:48:35 +0000 (06:48 +0000)]
MFC r266468:
Add IOMMU PCI subclass, found on Tyan S8236 motherboard.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC r266925:
dchagin [Tue, 3 Jun 2014 04:31:42 +0000 (04:31 +0000)]
MFC r266925:

To allow to run the interpreter itself add a new ELF branding type.
Allow Linux ABI to run ELF interpreter.

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

9 years agoMFC r266924:
dchagin [Tue, 3 Jun 2014 04:29:26 +0000 (04:29 +0000)]
MFC r266924:

Glibc was switched to the FUTEX_WAIT_BITSET op and CLOCK_REALTIME
flag has been added instead of FUTEX_WAIT to replace the FUTEX_WAIT
logic which needs to do gettimeofday() calls before the futex syscall
to convert the absolute timeout to a relative timeout.
Before this the CLOCK_MONOTONIC used by the FUTEX_WAIT_BITSET op.

When the FUTEX_CLOCK_REALTIME is specified the timeout is an absolute
time, not a relative time. Rework futex_wait to handle this.
On the side fix the futex leak in error case and remove useless
parentheses.

Properly calculate the timeout for the CLOCK_MONOTONIC case.

Tested by: Hans Petter Selasky

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

9 years agoMFC r266490, r266738:
kevlo [Tue, 3 Jun 2014 01:39:55 +0000 (01:39 +0000)]
MFC r266490, r266738:

- Configure Rx bulk
- Announce flow control capability to PHY drivers
- Improve performance by fixing incorrect Rx/Tx handling
- Rename definition of AXGE_* to reflect reality
- Add new USB IDs

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

9 years agoMFC r266444:
ae [Mon, 2 Jun 2014 10:14:03 +0000 (10:14 +0000)]
MFC r266444:
  We have two functions from where a geom orphan method could be called:
  g_orphan_register and g_resize_provider_event. Both are called from the
  event queue. Also we have GEOM_DEV class, which does deferred destroy
  for its consumers via g_dev_destroy (also called from the event queue).
  So it is possible, that for some consumers an orphan method will be
  called twice. This triggers panic in g_dev_orphan.
  Check that consumer isn't already orphaned before call orphan method.

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

9 years agoMFC r266908:
np [Mon, 2 Jun 2014 05:01:08 +0000 (05:01 +0000)]
MFC r266908:

cxgbe(4): Fix a NULL dereference when the very first call to
get_scatter_segment() in get_fl_payload() fails.  While here,
fix the code to adjust fl_bufs_used when a failure occurs for
any other scatter segment.

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

9 years agoMFC r264480: mergemaster: Avoid "/var/tmp/temproot disappeared" if there is
jilles [Sun, 1 Jun 2014 18:52:21 +0000 (18:52 +0000)]
MFC r264480: mergemaster: Avoid "/var/tmp/temproot disappeared" if there is
nothing to compare.

Because of the change to find in SVN r253886, the entire temproot would be
deleted if it became empty, leading to a confusing message "*** FATAL ERROR:
The temproot directory ${TEMPROOT} has disappeared!"

Note that mergemaster does not do anything useful in this situation anyway
(e.g. put IGNORE_FILES="/etc/group /etc/master.passwd" in
/etc/mergemaster.rc and run mergemaster -p).

As noted in that commit, add -mindepth 1.

PR: bin/188485
Submitted by: David Boyd

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

9 years agoMFC r266285,266866:
bjk [Sun, 1 Jun 2014 18:41:33 +0000 (18:41 +0000)]
MFC r266285,266866:

    ------------------------------------------------------------------------
    r266285 | bjk | 2014-05-16 23:05:52 -0400 (Fri, 16 May 2014) | 9 lines

    Correct documentation of the limit on how much memory can be mlock()ed

    vm.max_wired is a system-wide limit, not per-process.  Reword the
    section to make this more clear.

    PR:             docs/189214
    Submitted by:   Lawrence Chen (original text)
    Approved by:    hrs (mentor)

    ------------------------------------------------------------------------
    r266866 | bjk | 2014-05-29 22:16:28 -0400 (Thu, 29 May 2014) | 5 lines

    Minor mdoc fix

    Submitted by:   hrs
    Approved by:    hrs (mentor, implicit)

    ------------------------------------------------------------------------

PR: docs/189214
Approved by: hrs (mentor)

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

9 years agoMFC: r266270
brueffer [Sat, 31 May 2014 11:08:22 +0000 (11:08 +0000)]
MFC: r266270

Remove some unused variables.

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

9 years agoMFC r266782:
dchagin [Sat, 31 May 2014 05:59:55 +0000 (05:59 +0000)]
MFC r266782:

In r218101 I have not changed properly the futex syscall definition.
Some Linux futex ops atomically verifies that the futex address uaddr
(uval) contains the value val. Comparing signed uval and unsigned val
may lead to an unexpected result, mostly to a deadlock.

So copyin uaddr to an unsigned int to compare the parameters correctly.

While here change ktr records to print parameters in more readable format.

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