]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
10 years agoMFC r256557 - kernel and userland osreldate helpers.
peter [Tue, 11 Feb 2014 17:07:28 +0000 (17:07 +0000)]
MFC r256557 - kernel and userland osreldate helpers.

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

10 years agoMFC r244535, r245995, r261505 and r258961:
hselasky [Fri, 7 Feb 2014 07:34:47 +0000 (07:34 +0000)]
MFC r244535, r245995, r261505 and r258961:
- Use a boundary of zero, hence a PAGE_SIZE boundary
is implied by all memory allocations.
- Fix an external compiler warning about write-only
assigned variable.

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

10 years agoMFC: r233049 by rmh
brueffer [Thu, 6 Feb 2014 07:59:05 +0000 (07:59 +0000)]
MFC: r233049 by rmh

Remove gratuitous DEBUG_FLAGS="-g" setting (this is already the default
option with GENERIC kernels).

PR: 179536
Submitted by: Alexey Markov

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

10 years agoMFC r260315:
hselasky [Tue, 4 Feb 2014 10:25:31 +0000 (10:25 +0000)]
MFC r260315:
Implement two new libusb API functions.

PR: usb/185454

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

10 years agoMFC r261228:
hselasky [Tue, 4 Feb 2014 09:03:14 +0000 (09:03 +0000)]
MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

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

10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:58:12 +0000 (08:58 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

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

10 years agoMFC r261004, r261005 and r261033:
hselasky [Tue, 4 Feb 2014 08:52:08 +0000 (08:52 +0000)]
MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.

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

10 years agoMFC r261123:
hselasky [Tue, 4 Feb 2014 08:49:56 +0000 (08:49 +0000)]
MFC r261123:
Reduce dmesg verbosity.

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

10 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sun, 2 Feb 2014 00:08:52 +0000 (00:08 +0000)]
MFC: Note merge of sendmail 8.14.8.

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

10 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sun, 2 Feb 2014 00:08:28 +0000 (00:08 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

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

10 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sun, 2 Feb 2014 00:07:55 +0000 (00:07 +0000)]
MFC: Add missing svn:keywords property to new files

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

10 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sun, 2 Feb 2014 00:07:16 +0000 (00:07 +0000)]
MFC: Update for sendmail 8.14.8 import

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

10 years agoMFC: Remove local FreeBSD workaround now that upstream project has a better fix.
gshapiro [Sun, 2 Feb 2014 00:06:44 +0000 (00:06 +0000)]
MFC: Remove local FreeBSD workaround now that upstream project has a better fix.

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

10 years agoMFC: Add new sendmail 8.14.8 file
gshapiro [Sun, 2 Feb 2014 00:05:30 +0000 (00:05 +0000)]
MFC: Add new sendmail 8.14.8 file

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

10 years agoMFC: Merge sendmail 8.14.8
gshapiro [Sun, 2 Feb 2014 00:04:23 +0000 (00:04 +0000)]
MFC: Merge sendmail 8.14.8

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

10 years agoMFC: Update link to vendor import instructions
gshapiro [Sat, 1 Feb 2014 22:06:24 +0000 (22:06 +0000)]
MFC: Update link to vendor import instructions

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

10 years agoMFC r261075: Update EINVAL description.
pluknet [Thu, 30 Jan 2014 05:38:14 +0000 (05:38 +0000)]
MFC r261075: Update EINVAL description.

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

10 years agoMFC 260910:
jhb [Tue, 28 Jan 2014 21:56:18 +0000 (21:56 +0000)]
MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.

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

10 years agoMFC r260978:
hselasky [Tue, 28 Jan 2014 07:11:23 +0000 (07:11 +0000)]
MFC r260978:
Add check for "hw.usb.no_pf" sysctl value.

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

10 years agoMFC r258545:
hselasky [Fri, 24 Jan 2014 08:17:47 +0000 (08:17 +0000)]
MFC r258545:
Comply to the XHCI specification. Certain input context fields should
always be zero.

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

10 years agoMFC r260808 and r260814:
hselasky [Fri, 24 Jan 2014 08:06:14 +0000 (08:06 +0000)]
MFC r260808 and r260814:
- Close a minor deadlock.
- Fix a possible memory use after free and leak situation associated
with USB device detach when using character device handles. This also
includes LibUSB. It turns out that "usb_close()" cannot always get a
reference to clean up its USB transfers and such, if called during the
kernel USB device detach.

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

10 years agoMFC r260588 and r260589:
hselasky [Fri, 24 Jan 2014 08:01:42 +0000 (08:01 +0000)]
MFC r260588 and r260589:
- Separate I/O errors from reception of STALL PID.
- Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.

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

10 years agoMFC r260563:
hselasky [Fri, 24 Jan 2014 07:40:58 +0000 (07:40 +0000)]
MFC r260563:
Make sure reserved fields of the EHCI DMA descriptors are not dirty
after previous transfers.

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

10 years agoMFC r260559:
hselasky [Fri, 24 Jan 2014 07:35:27 +0000 (07:35 +0000)]
MFC r260559:
Don't do synchronous USB requests inside USB transfer callbacks. It is
technically OK, but not recommended.

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

10 years agoMFC r260388, r260535 and r260536:
hselasky [Fri, 24 Jan 2014 07:29:31 +0000 (07:29 +0000)]
MFC r260388, r260535 and r260536:
Fix XHCI interrupt logic for "Intel Lynx Point" found in MBP2013.

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

10 years agoMFC r260332;
pfg [Tue, 21 Jan 2014 16:02:31 +0000 (16:02 +0000)]
MFC r260332;
gcc: backport some fixes from llvm-gcc

llvm-gcc backported some patches from gcc trunk:

http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html
http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html

The first two were always GPL2. The last two were
added after the GPL3 transition, but were written
by aaw@google.com and Rafael EspĂ­ndola got permission
to relicense them under the GPL2 for inclusion in
llvm-gcc.

This fixes GCC-PR c++/31749

Obtained from: llvm-gcc (rev. 75463; GPLv2)

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

10 years agoMFC r259925-259926 (with appropriate changes to
marck [Tue, 21 Jan 2014 09:22:00 +0000 (09:22 +0000)]
MFC r259925-259926 (with appropriate changes to
g_part_uuid_alias struct):

  Add GPT UUID for VMware vSAN meta-data partition.

Approved by: ae

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

10 years agoMFC r260566: Remove incorrect bit shift when assigning the LUN request field
bryanv [Sat, 18 Jan 2014 03:45:07 +0000 (03:45 +0000)]
MFC r260566: Remove incorrect bit shift when assigning the LUN request field

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

10 years agofix a botched merge in r260775, MFC of r258739
avg [Thu, 16 Jan 2014 18:01:57 +0000 (18:01 +0000)]
fix a botched merge in r260775, MFC of r258739

This is a direct commit.

Pointyhat to: avg

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

10 years agoRevert r260780 "add zfs_bmap to aid vnode_pager_haspage"
avg [Thu, 16 Jan 2014 17:58:22 +0000 (17:58 +0000)]
Revert r260780 "add zfs_bmap to aid vnode_pager_haspage"

I thought that I had to have that commit in this branch, but now I
decided to not bother.

This is a direct commit, obviously.

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

10 years agoMFC r243518: add zfs_bmap to aid vnode_pager_haspage
avg [Thu, 16 Jan 2014 16:37:17 +0000 (16:37 +0000)]
MFC r243518: add zfs_bmap to aid vnode_pager_haspage

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

10 years agoMFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)
avg [Thu, 16 Jan 2014 16:15:56 +0000 (16:15 +0000)]
MFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

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

10 years agoMFC r258739: zfs mappedread_sf: assert that a page is never partially valid
avg [Thu, 16 Jan 2014 16:13:44 +0000 (16:13 +0000)]
MFC r258739: zfs mappedread_sf: assert that a page is never partially valid

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

10 years agoMFC r258634: MFV r258376: 3964 L2ARC should always compress metadata
avg [Thu, 16 Jan 2014 16:08:26 +0000 (16:08 +0000)]
MFC r258634: MFV r258376: 3964 L2ARC should always compress metadata
buffers

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

10 years agoMFC r258633: MFV r255256: 3954 metaslabs continue to load even after
avg [Thu, 16 Jan 2014 16:04:36 +0000 (16:04 +0000)]
MFC r258633: MFV r255256: 3954 metaslabs continue to load even after
hitting zfs_mg_alloc_failure limit

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

10 years agoMFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
avg [Thu, 16 Jan 2014 16:00:05 +0000 (16:00 +0000)]
MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
performance work

Note a change in dmu_tx_delay: pause_sbt is not available in this
branch.

Sponsored by: HybridCluster [merge]

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

10 years agoMFC r245511: MFV r245510: improve the comment in txg.c
avg [Thu, 16 Jan 2014 15:47:09 +0000 (15:47 +0000)]
MFC r245511: MFV r245510: improve the comment in txg.c

MFC slacker: delphij

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

10 years agoMFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
avg [Thu, 16 Jan 2014 15:45:04 +0000 (15:45 +0000)]
MFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
triggers false positives

MFC slacker: delphij

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

10 years agoMFC r251478: MFV r251474: 3137 L2ARC compression
avg [Thu, 16 Jan 2014 15:29:44 +0000 (15:29 +0000)]
MFC r251478: MFV r251474: 3137 L2ARC compression

MFC slacker: delphij

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

10 years agoMFC r248426: Fix typo in sysctl description
avg [Thu, 16 Jan 2014 15:22:49 +0000 (15:22 +0000)]
MFC r248426: Fix typo in sysctl description

MFC slacker: mm

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

10 years agoMFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)
avg [Thu, 16 Jan 2014 15:11:48 +0000 (15:11 +0000)]
MFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)

Note that a different kind of cv_timedwait_hires shim is provided in
this branch because cv_timedwait_sbt is not available for better
emulation.

Sponsored by: HybridCluster [merge]

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

10 years agoMFC r258631: MFV r247578
avg [Thu, 16 Jan 2014 14:48:26 +0000 (14:48 +0000)]
MFC r258631: MFV r247578

3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot

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

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:42:22 +0000 (14:42 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

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

10 years agoMFC r258743: drop ZUT_OBJ
avg [Thu, 16 Jan 2014 14:37:50 +0000 (14:37 +0000)]
MFC r258743: drop ZUT_OBJ

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

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:35:20 +0000 (14:35 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

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

10 years agoMFC r258628: opensolaris taskq: some cosmetic changes
avg [Thu, 16 Jan 2014 14:30:46 +0000 (14:30 +0000)]
MFC r258628: opensolaris taskq: some cosmetic changes

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

10 years agoMFC r258647: zfsboottest: properly specify a library dependency
avg [Thu, 16 Jan 2014 14:24:44 +0000 (14:24 +0000)]
MFC r258647: zfsboottest: properly specify a library dependency

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

10 years agoMFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
avg [Thu, 16 Jan 2014 14:22:03 +0000 (14:22 +0000)]
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

Sponsored by: HybridCluster

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

10 years agoMFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)
avg [Thu, 16 Jan 2014 14:17:55 +0000 (14:17 +0000)]
MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)

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

10 years agoMFC r258351: fsx: new option to disable msync(MS_SYNC) after each write
avg [Thu, 16 Jan 2014 14:15:14 +0000 (14:15 +0000)]
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write

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

10 years agoMFC r253821,254753,256259
avg [Thu, 16 Jan 2014 14:05:05 +0000 (14:05 +0000)]
MFC r253821,254753,256259

MFV r253783: 3834 incremental replication of 'holey' file systems is
slow

MFV r254747:4047 panic from dbuf_free_range() from dmu_free_object()
while doing zfs receive

MFV r255257: 4082 zfs receive gets EFBIG from dmu_tx_hold_free()

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

10 years agoFix BIND remote denial of service vulnerability.
delphij [Tue, 14 Jan 2014 19:38:37 +0000 (19:38 +0000)]
Fix  BIND remote denial of service vulnerability.

Security: FreeBSD-SA-14:04.bind
Security: CVE-2014-0591

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

10 years agoMFC r259951 (kib):
delphij [Tue, 14 Jan 2014 19:33:28 +0000 (19:33 +0000)]
MFC r259951 (kib):

Do not coalesce stack entry. Pass MAP_STACK_GROWS_DOWN and
MAP_STACK_GROWS_UP flags to vm_map_insert() from vm_map_stack()

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

10 years agoOn stable/8 and stable/9, disable hardware random number generators
delphij [Tue, 14 Jan 2014 19:27:42 +0000 (19:27 +0000)]
On stable/8 and stable/9, disable hardware random number generators
by default.  This is a direct commit to stable/ branches because
HEAD and stable/10 have superior implementation of random device.

Approved by: so

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

10 years agoMFC r260637:
delphij [Tue, 14 Jan 2014 19:20:41 +0000 (19:20 +0000)]
MFC r260637:

Disable 'monitor' feature in ntpd by default.

Security: FreeBSD-SA-14:02.ntpd
Approved by: so

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

10 years agoMFC r260636:
delphij [Tue, 14 Jan 2014 19:17:20 +0000 (19:17 +0000)]
MFC r260636:

Fix bsnmpd remote denial of service vulnerability.

Reported by: dinoex
Submitted by: harti
Security: FreeBSD-SA-14:01.bsnmpd
Security: CVE-2014-1452

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

10 years agoMFC r259921,259950:
pluknet [Tue, 14 Jan 2014 10:03:31 +0000 (10:03 +0000)]
MFC r259921,259950:

Provide the manual page for aio_fsync(2).

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

10 years agoMFC 197775,197777-197779,197781,197794,243152,243313,255478:
jhb [Mon, 13 Jan 2014 21:29:34 +0000 (21:29 +0000)]
MFC 197775,197777-197779,197781,197794,243152,243313,255478:
First cut at implementing SOCK_SEQPACKET support for UNIX (local) domain
sockets.  This allows for reliable bi-directional datagram communication
over UNIX domain sockets, in contrast to SOCK_DGRAM (M:N, unreliable) or
SOCK_STERAM (bi-directional bytestream).  Largely, this reuses existing
UNIX domain socket code.  This allows applications requiring record-
oriented semantics to do so reliably via local IPC.

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

10 years agoMFC r259197:
mav [Mon, 13 Jan 2014 19:14:29 +0000 (19:14 +0000)]
MFC r259197:
Do not DELAY() for P-state transition unless we want to see the result.

Intel manual says: "If a transition is already in progress, transition to
a new value will subsequently take effect. Reads of IA32_PERF_CTL determine
the last targeted operating point."  So seems it should be fine to just
trigger wanted transition and go.  Linux does the same.

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

10 years agoMFC r259666, r259696:
pfg [Mon, 13 Jan 2014 16:05:18 +0000 (16:05 +0000)]
MFC r259666, r259696:

gcc: warnings from -Wformat-security

Obtained from: Apple GCC 4.2 - 5646 (Radar 5764921)

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

10 years agoMFC r259920:
pfg [Mon, 13 Jan 2014 15:32:37 +0000 (15:32 +0000)]
MFC r259920:

gcc: Implement -Wmost for compatibility with clang.

This is equivalent to -Wall -Wno-parentheses.

Obtained from: Apple GCC 4.2 - 5531

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

10 years agoMFC r258573:
pfg [Mon, 13 Jan 2014 15:28:39 +0000 (15:28 +0000)]
MFC r258573:

Removes strict-aliasing warnings from newer GCC in tcpdump.

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

10 years agoMFC r258081, r258138, r258143, r258179, r258157, r258204, r258205,
pfg [Mon, 13 Jan 2014 15:22:37 +0000 (15:22 +0000)]
MFC r258081, r258138, r258143, r258179, r258157, r258204, r258205,
r258206, r258207, r258321

This is a series of commits inspired on Google's gcc-4.2.1 for
Android that were taken from the gcc pre-4.3 under the GPLv2.

gcc: Backport fixes for -W parentheses in C++
This fixes GCC 19564.
gcc: merge rs6000 change from FSF pre-gcc43
Don't set MASK_PPC_GFXOPT for 8540 or 8548.
Merge vrp-tree fix from gcc-4.3
Fix missed conversion from / to >> (GCC PR32521)
Merge in GCCr120505 to include definition of TREE_OVERFLOW_P
gcc: warn about integer overflow in constant expressions in the C++
frontend.
gcc: Add a new option -Wvla to warn variable length array.
libcpp: preprocessor speedup patches from upstream gcc.
gcc: add femit-struct-debug support to reduce Reduce dwarf debug size
gcc: Fix postreload-gcse treatment of call-clobbered registers.
gcc: Record some previous commits in the ChangeLog.gcc43 file.

Tested by: danfe

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

10 years agoMFC r260184:
hselasky [Sat, 11 Jan 2014 08:24:52 +0000 (08:24 +0000)]
MFC r260184:
Minor correction for the XHCI reset logic.

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

10 years agoMFC r260361:
pfg [Sat, 11 Jan 2014 01:50:45 +0000 (01:50 +0000)]
MFC r260361:

gcc: Fix optimization bug.

GCC-PR rtl-optimization/34628
* combine.c (try_combine): Stop and undo after the first combination
if an autoincrement side-effect on the first insn has effectively
been lost.

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

10 years agoRevert MFC of r258821 - it was already handled by MFC of r239672.
peter [Wed, 8 Jan 2014 03:16:50 +0000 (03:16 +0000)]
Revert MFC of r258821 - it was already handled by MFC of r239672.

Pointy hat to: peter

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

10 years agoMerged r260415 from head.
edavis [Tue, 7 Jan 2014 23:14:55 +0000 (23:14 +0000)]
Merged r260415 from head.

Approved by: davidcd

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

10 years agoMFC r258821 - fix tcp simultaneous close
peter [Tue, 7 Jan 2014 23:02:13 +0000 (23:02 +0000)]
MFC r258821 - fix tcp simultaneous close

PR:             kern/99188

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

10 years agoMFC r260049:
trociny [Tue, 7 Jan 2014 21:25:18 +0000 (21:25 +0000)]
MFC r260049:

Add mibs for hastd(1) queue stats.

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

10 years agoMFC r235128:
hselasky [Sun, 5 Jan 2014 10:52:57 +0000 (10:52 +0000)]
MFC r235128:
Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().

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

10 years agoMFC r260112:
dim [Sat, 4 Jan 2014 23:12:01 +0000 (23:12 +0000)]
MFC r260112:

In sys/dev/sound/pci/maestro.c, #if 0 two unused static functions.

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

10 years agoMFC r260095:
dim [Sat, 4 Jan 2014 22:00:07 +0000 (22:00 +0000)]
MFC r260095:

For sys/boot/i386 and sys/boot/pc98, separate flags to be passed
directly to the linker (LD_FLAGS) from flags passed indirectly, via the
compiler driver (LDFLAGS).

This is because several Makefiles under sys/boot/i386 and sys/boot/pc98
use ${LD} directly to link, and the normal LDFLAGS value should not be
used in these cases.

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

10 years agoMFC r260103:
dim [Sat, 4 Jan 2014 21:45:52 +0000 (21:45 +0000)]
MFC r260103:

In sys/amd64/amd64/pmap.c, remove static function pmap_is_current(),
which has been unused since r189415.

Reviewed by: alc

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

10 years agoMFC r260057:
dim [Sat, 4 Jan 2014 21:32:53 +0000 (21:32 +0000)]
MFC r260057:

In sys/dev/scc, remove unused static function scc_setmreg().  While
here, invoke scc_getmreg() in two more places where it can be used.

Reviewed by: marcel

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

10 years agoMFC r260055:
dim [Sat, 4 Jan 2014 21:18:54 +0000 (21:18 +0000)]
MFC r260055:

In sys/dev/usb/wlan/if_urtw.c, #if 0 a static const variable, which has
been unused since r198194.

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

10 years agoMFC r260054:
dim [Sat, 4 Jan 2014 19:13:25 +0000 (19:13 +0000)]
MFC r260054:

In sys/dev/tpm/tpm.c, #if 0 an unused static function.

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

10 years agoMFC r260048:
dim [Sat, 4 Jan 2014 19:04:53 +0000 (19:04 +0000)]
MFC r260048:

In sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].

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

10 years agoMFC r260042:
dim [Sat, 4 Jan 2014 18:58:18 +0000 (18:58 +0000)]
MFC r260042:

Remove superfluous old-style rcsid[] from if_my.c.  There is already an
__FBSDID() at the top of the file.

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

10 years agoMFC r260040:
dim [Sat, 4 Jan 2014 18:53:31 +0000 (18:53 +0000)]
MFC r260040:

In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
so it ends up in the object file, and no warnings are emitted about it
being actually unused.

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

10 years agoMFC r260038:
dim [Sat, 4 Jan 2014 18:48:29 +0000 (18:48 +0000)]
MFC r260038:

In sys/dev/en/midway.c, #if 0 an unused static function.

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

10 years agoMFC Broadcom 10Gb bxe driver
edavis [Sat, 4 Jan 2014 18:10:15 +0000 (18:10 +0000)]
MFC Broadcom 10Gb bxe driver
Merged r255736, r255861, r256299, r256341, r258187, r259928, r260113

Approved by:  davidch (mentor)

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

10 years agoMFC r260016:
dim [Sat, 4 Jan 2014 17:33:05 +0000 (17:33 +0000)]
MFC r260016:

Remove superfluous old-style rcsid[] from if_sk.c.  There is already an
__FBSDID() at the top of the file.

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

10 years agoMFC r259872:
pluknet [Thu, 2 Jan 2014 16:41:10 +0000 (16:41 +0000)]
MFC r259872:

 The compile time constant limit on number of swap devices was removed in 5.2.
 As such, remove the EINVAL error saying so.  Currently the vm.nswapdev sysctl
 just represents the number of added swap devices.

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

10 years agoMFC r260125:
gjb [Tue, 31 Dec 2013 12:25:04 +0000 (12:25 +0000)]
MFC r260125:
  Bump copyright year.
  Happy New Year 2014!

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257155, r257582, r259191, r259192, r259193, r259194, r259195, r259196:
trociny [Sat, 28 Dec 2013 19:23:16 +0000 (19:23 +0000)]
MFC r257155, r257582, r259191, r259192, r259193, r259194, r259195, r259196:

r257155:

Make hastctl list command output current queue sizes.

Reviewed by: pjd

r257582 (pjd):

Correct alignment.

r259191:

For memsync replication, hio_countdown is used not only as an
indication when a request can be moved to done queue, but also for
detecting the current state of memsync request.

This approach has problems, e.g. leaking a request if memsynk ack from
the secondary failed, or racy usage of write_complete, which should be
called only once per write request, but for memsync can be entered by
local_send_thread and ggate_send_thread simultaneously.

So the following approach is implemented instead:

1) Use hio_countdown only for counting components we waiting to
   complete, i.e. initially it is always 2 for any replication mode.

2) To distinguish between "memsync ack" and "memsync fin" responses
   from the secondary, add and use hio_memsyncacked field.

3) write_complete() in component threads is called only before
   releasing hio_countdown (i.e. before the hio may be returned to the
   done queue).

4) Add and use hio_writecount refcounter to detect when
   write_complete() can be called in memsync case.

Reported by: Pete French petefrench ingresso.co.uk
Tested by: Pete French petefrench ingresso.co.uk

r259192:

Add some macros to make the code more readable (no functional chages).

r259193:

Fix compiler warnings.

r259194:

In remote_send_thread, if sending a request fails don't take the
request back from the receive queue -- it might already be processed
by remote_recv_thread, which lead to crashes like below:

  (primary) Unable to receive reply header: Connection reset by peer.
  (primary) Unable to send request (Connection reset by peer):
      WRITE(954662912, 131072).
  (primary) Disconnected from kopusha:7772.
  (primary) Increasing localcnt to 1.
  (primary) Assertion failed: (old > 0), function refcnt_release,
      file refcnt.h, line 62.

Taking the request back was not necessary (it would properly be
processed by the remote_recv_thread) and only complicated things.

r259195:

Send wakeup to threads waiting on empty queue before releasing the
lock to decrease spurious wakeups.

Submitted by: davidxu

r259196:

Check remote protocol version only for the first connection (when it
is actually sent by the remote node).

Otherwise it generated confusing "Negotiated protocol version 1" debug
messages when processing the second connection.

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

10 years agoMFC r259756:
dim [Sat, 28 Dec 2013 00:03:15 +0000 (00:03 +0000)]
MFC r259756:

Get rid of register keyword usage in gperf, it is totally obsolete for
C++, and this allows gperf to be compiled for C++11 without a warning
about it.

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

10 years agoMFC r259973:
delphij [Fri, 27 Dec 2013 23:09:40 +0000 (23:09 +0000)]
MFC r259973:

Tighten default restrictions for ntpd(8) server and provide a link
to NTP access restriction documentation.

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

10 years agoMFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.
jhb [Thu, 26 Dec 2013 16:59:50 +0000 (16:59 +0000)]
MFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.

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

10 years agoMFC r259724:
dim [Wed, 25 Dec 2013 00:48:08 +0000 (00:48 +0000)]
MFC r259724:

Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.

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

10 years agoMFC r259520:
ae [Tue, 24 Dec 2013 23:50:35 +0000 (23:50 +0000)]
MFC r259520:
  Fix copy/paste typo.

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

10 years agoMFC 258869:
jhb [Tue, 24 Dec 2013 19:03:30 +0000 (19:03 +0000)]
MFC 258869:
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.

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

10 years agoMFC of 259626, tzdata2013i:
edwin [Thu, 19 Dec 2013 20:26:00 +0000 (20:26 +0000)]
MFC of 259626, tzdata2013i:

Removed support for solar-time-based time zones
Jordan stays at summer time this year.
Fix historical data for Cuba

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

10 years agoMFC r258363:
truckman [Thu, 19 Dec 2013 09:46:14 +0000 (09:46 +0000)]
MFC r258363:

Add alternate ID for Novatel MiFi 2200 CDMA, which is used by my
Virgin Mobile branded device.  It needs the U3GINIT_SCSIEJECT quirk.

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

10 years agoMFC r259248 and r259462:
hselasky [Thu, 19 Dec 2013 07:17:18 +0000 (07:17 +0000)]
MFC r259248 and r259462:
Set chain bit correctly. This will fix some problems sending and
receiving Zero Length Packets, ZLPs. See comment in code for more
information.

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

10 years agoMFC r259023 and r259095:
hselasky [Thu, 19 Dec 2013 07:09:28 +0000 (07:09 +0000)]
MFC r259023 and r259095:
Improve the XHCI command timeout recovery handling code.
Fix some typos while at it.

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

10 years agoMFC r258819,258928:
nwhitehorn [Mon, 16 Dec 2013 15:08:30 +0000 (15:08 +0000)]
MFC r258819,258928:

Add new sysctl, kern.supported_archs, containing the list of FreeBSD
MACHINE_ARCH values whose binaries this kernel can run. This patch provides
a feature requested for implementing pkgng ABI identifiers in a robust
way.

The list is designed to indicate whether, say, an i386 package can be run on
the current system. If kern.supported_abis contains "i386", then the answer
is yes. Otherwise, the answer is no.

At the moment, this only supports MACHINE_ARCH and MACHINE_ARCH32. As we
gain support for more interesting combinations, this needs to become more
flexible, possibily through the sysent framework, along with the
hw.machine_arch emulation immediately preceding this code in kern_mib.c.

Reviewed by: imp

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

10 years agoFix build breakage after r259449
bjk [Mon, 16 Dec 2013 06:56:38 +0000 (06:56 +0000)]
Fix build breakage after r259449

Approved by: hrs (mentor, src committer)

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

10 years agoMFC r259286,259424,259425:
bjk [Mon, 16 Dec 2013 02:30:56 +0000 (02:30 +0000)]
MFC r259286,259424,259425:
  Apply patch from upstream Heimdal for encoding fix

  RFC 4402 specifies the implementation of the gss_pseudo_random()
  function for the krb5 mechanism (and the C bindings therein).
  The implementation uses a PRF+ function that concatenates the output
  of individual krb5 pseudo-random operations produced with a counter
  and seed.  The original implementation of this function in Heimdal
  incorrectly encoded the counter as a little-endian integer, but the
  RFC specifies the counter encoding as big-endian.  The implementation
  initializes the counter to zero, so the first block of output (16 octets,
  for the modern AES enctypes 17 and 18) is unchanged.  (RFC 4402 specifies
  that the counter should begin at 1, but both existing implementations
  begin with zero and it looks like the standard will be re-issued, with
  test vectors, to begin at zero.)

  This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6,
  from 13 October, 2013:
  % Fix krb5's gss_pseudo_random() (n is big-endian)
  %
  % The first enctype RFC3961 prf output length's bytes are correct because
  % the little- and big-endian representations of unsigned zero are the
  % same.  The second block of output was wrong because the counter was not
  % being encoded as big-endian.
  %
  % This change could break applications.  But those applications would not
  % have been interoperating with other implementations anyways (in
  % particular: MIT's).

Bump __FreeBSD_version accordingly and add a note in UPDATING.

Approved by: hrs (mentor, src committer)

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

10 years agoMFC r257987:
ae [Sat, 14 Dec 2013 04:24:50 +0000 (04:24 +0000)]
MFC r257987:
  Initialize prot variable.

  PR: 177417

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

10 years agoMFC r244673:
pfg [Fri, 13 Dec 2013 02:47:41 +0000 (02:47 +0000)]
MFC r244673:

Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t.

This seems to be needed by newer compilers.

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