]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r250393:
dim [Wed, 15 May 2013 20:59:00 +0000 (20:59 +0000)]
MFC r250393:

When gcc 4.2.0 was imported, the 3DNow intrinsics header <mm3dnow.h> was
not added to the list of intrinsics headers to install, so belatedly (5
years :) add it.

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

11 years agoMFC r250550:
pfg [Wed, 15 May 2013 20:53:53 +0000 (20:53 +0000)]
MFC r250550:
Update the gcc43 changelog.

The issue solved in r250515 actually originated upstream and was
fixed in upstream gcc43 branch in 2006/10/24 (under GPLv2).

Register it in the appropriate ChangeLog for reference.

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

11 years agoMFC r249864,249918
jhibbits [Wed, 15 May 2013 19:58:12 +0000 (19:58 +0000)]
MFC r249864,249918

Introduce kernel coredumps to ppc32 AIM.  Leeched from the booke code.

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

11 years agoMFC r242995: firmware(9) mdoc cleanup.
pluknet [Wed, 15 May 2013 19:53:49 +0000 (19:53 +0000)]
MFC r242995: firmware(9) mdoc cleanup.
  - Lowercase a cross reference to make.
  - Sort SEE ALSO cross references.

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

11 years agoMFC r242992: Avoid an ambiguous reference to mtx_lock(9).
pluknet [Wed, 15 May 2013 19:33:53 +0000 (19:33 +0000)]
MFC r242992: Avoid an ambiguous reference to mtx_lock(9).

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

11 years agoMFC: r250162
rmacklem [Wed, 15 May 2013 01:44:01 +0000 (01:44 +0000)]
MFC: r250162
Document the fact that an NFSv4 mount against a volume on the same host
can result in a hung NFS server and is not recommended.
This is a content change.

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

11 years agoMFC: r250158
rmacklem [Wed, 15 May 2013 01:40:16 +0000 (01:40 +0000)]
MFC: r250158
Document that the NFSv4 server statistics are operation counts and
not RPC counts.
This is a content change.

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

11 years agoMFC: r250157
rmacklem [Wed, 15 May 2013 01:36:59 +0000 (01:36 +0000)]
MFC: r250157
Isilon reported that sec=krb5p NFS mounts had a problem when m_len == 0
for the last mbuf of the list with an encrypted message. This patch replaces
the KASSERT() with code that handles this case.

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

11 years agoMFC r248993:
yongari [Wed, 15 May 2013 01:21:40 +0000 (01:21 +0000)]
MFC r248993:
  Fix a typo.

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

11 years agoMFC r248542:
yongari [Wed, 15 May 2013 01:16:41 +0000 (01:16 +0000)]
MFC r248542:
  For RTL8211B or later PHYs, enable crossover detection and
  auto-correction. This change makes re(4) establish a link with
  a system using non-crossover UTP cable.

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

11 years agoMFC r248456:
yongari [Wed, 15 May 2013 01:05:16 +0000 (01:05 +0000)]
MFC r248456:
  r119712 introduced SIS_TYPE_83816 but it was not actually set in
  driver such that checking against the type was always false.
  To detect NS DP83816, driver should have checked silicon revision
  register for NS controllers. While here, remove SIS_TYPE_83816 to
  not make the similar mistake again.

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

11 years agoMFC r248227:
yongari [Wed, 15 May 2013 00:58:45 +0000 (00:58 +0000)]
MFC r248227:
  Disable TX IP header checksum offloading on RL_HWREV_8168CP. The
  controller generates wrong checksummed frame if the IP packet has
  IP options.

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

11 years agoMFC r245825,245890,246097,246127,246315:
brooks [Tue, 14 May 2013 21:15:36 +0000 (21:15 +0000)]
MFC r245825,245890,246097,246127,246315:

Introduce a new option -DNO_ROOT that allows install and distribution
targets to be run without root privilege.

Information about ownership, group, flags, and suid bits are stored in
the file specified by METALOG which defaults to ${DESTDIR}/METALOG.
This file can be used in conjunction with bsdtar or makefs to generate
archives or file system images with correct permissions.

Sponsored by: DARPA, AFRL

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

11 years agoMFC: r248479
jkim [Mon, 13 May 2013 19:44:35 +0000 (19:44 +0000)]
MFC: r248479

List TrackPoint device before generic model.

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

11 years agoMFC r247329, r247836:
fabient [Mon, 13 May 2013 15:18:36 +0000 (15:18 +0000)]
MFC r247329, r247836:
Add support for good old 8192Hz profiling clock to software PMC.
Add a generic way to call per event allocate / release function.

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

11 years agoMFC r249200: Correct the path.
jh [Mon, 13 May 2013 13:57:06 +0000 (13:57 +0000)]
MFC r249200: Correct the path.

PR: 176256

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

11 years agoMFC: enable parallel build of toolchain/libraries/headers
luigi [Mon, 13 May 2013 12:43:03 +0000 (12:43 +0000)]
MFC: enable parallel build of toolchain/libraries/headers

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

11 years agoMFC r249949:
eadler [Mon, 13 May 2013 01:27:59 +0000 (01:27 +0000)]
MFC r249949:
Take some improvements from DragonFlyBSD:
- add const where appropriate
- add static where appropriate
- fix a whitespace issues

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

11 years agoMFC r250303:
eadler [Mon, 13 May 2013 01:26:26 +0000 (01:26 +0000)]
MFC r250303:
Remove includes for old versions of FreeBSD.

Reviewed by: stass

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

11 years agoMFC r250463:
eadler [Mon, 13 May 2013 01:20:31 +0000 (01:20 +0000)]
MFC r250463:
Permit relative paths with mergemaster -m

PR: bin/173929

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

11 years agoMFC: r240475
hiren [Sun, 12 May 2013 22:01:22 +0000 (22:01 +0000)]
MFC: r240475

Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()).

Generally this check is not needed anymore, as there is not a legitimate
case where curthread != NULL, after pcpu 0 area has been properly
initialized.

Reviewed by: attilio
Approved by: sbruno (mentor)

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

11 years agodup(2): Remove incorrect sentence about getdtablesize().
jilles [Sun, 12 May 2013 16:26:19 +0000 (16:26 +0000)]
dup(2): Remove incorrect sentence about getdtablesize().

There are no getdtablesize() bounds on the file descriptor to be duplicated;
it only has to be open. If the RLIMIT_NOFILE rlimit was decreased after
opening the file descriptor, it may be greater than or equal to
getdtablesize() but still valid.

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

11 years agoMFC r249859: getdtablesize(2): Describe what this function actually does.
jilles [Sun, 12 May 2013 16:22:10 +0000 (16:22 +0000)]
MFC r249859: getdtablesize(2): Describe what this function actually does.

getdtablesize() returns the limit on new file descriptors; this says nothing
about existing descriptors.

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

11 years agoMFC r249956: sysconf(3): Correct the description of _SC_OPEN_MAX.
jilles [Sun, 12 May 2013 16:20:27 +0000 (16:20 +0000)]
MFC r249956: sysconf(3): Correct the description of _SC_OPEN_MAX.

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

11 years agoMFC r249979: intro(2): Fix some errors in ENFILE and EMFILE descriptions.
jilles [Sun, 12 May 2013 16:18:00 +0000 (16:18 +0000)]
MFC r249979: intro(2): Fix some errors in ENFILE and EMFILE descriptions.

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

11 years agoMFC r249566,r249644: EINTR in POSIX sem_*.
jilles [Sun, 12 May 2013 16:11:23 +0000 (16:11 +0000)]
MFC r249566,r249644: EINTR in POSIX sem_*.

Document that sem_wait() can fail with [EINTR].

Programs often do not expect an [EINTR] return from sem_wait() and POSIX
only allows it if the signal was installed without SA_RESTART. The timeout
in sem_timedwait() is absolute so it can be restarted normally.

The old POSIX semaphore implementation did this correctly, unlike the new
umtx one.

Specific to 9-stable: UMTX_ABSTIME does not exist and therefore
sem_timedwait() is erroneously not restarted after a SA_RESTART signal
handler.

It may be desirable to avoid [EINTR] completely, which matches the pthread
functions and is explicitly permitted by POSIX. However, the kernel must
return [EINTR] at least for signals with SA_RESTART clear, otherwise pthread
cancellation will not abort a semaphore wait. In this commit, only restore
the 8.x behaviour which is also permitted by POSIX, as far as possible with
the ABI in 9-stable.

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

11 years agoMFC r249796, r249830, r249844 and r249845:
hselasky [Sun, 12 May 2013 12:20:04 +0000 (12:20 +0000)]
MFC r249796, r249830, r249844 and r249845:
USB audio fixes and improvements.
- Fix runtime switching of sample rate
- Fix feedback endpoint algorithm

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

11 years agoMFC r249795:
hselasky [Sun, 12 May 2013 12:13:23 +0000 (12:13 +0000)]
MFC r249795:
Add convenience wrapper functions to run callbacks in the context of the
USB explore thread.

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

11 years agoMFC r249725:
hselasky [Sun, 12 May 2013 12:09:08 +0000 (12:09 +0000)]
MFC r249725:
Add new OHCI controller ID.

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

11 years agoMFC r249650:
jh [Sun, 12 May 2013 09:42:17 +0000 (09:42 +0000)]
MFC r249650:

Include PID in the error message which is printed when the maxproc limit
is exceeded. Improve formatting of the message while here.

PR: kern/60550

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

11 years agoMFC r250415:
kib [Sun, 12 May 2013 04:24:25 +0000 (04:24 +0000)]
MFC r250415:
Correct the type for the literal used on the left side of the shift up
to 63 bit positions.

Do not fill the save area and do not set the saved bit in the xstate
bit vector for the state which is not marked as enabled in xsave_mask.

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

11 years agoTidy up some CVS workarounds.
peter [Sun, 12 May 2013 01:53:47 +0000 (01:53 +0000)]
Tidy up some CVS workarounds.

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

11 years agoMFC r250012:
eadler [Sun, 12 May 2013 01:37:55 +0000 (01:37 +0000)]
MFC r250012:
Add an alternate version of beastie to the examples directory.

PR: docs/38556

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

11 years agoMFC r250337
brooks [Sun, 12 May 2013 00:35:57 +0000 (00:35 +0000)]
MFC r250337

Work around the implementation of LIBRARIES_ONLY.  It causes drti.o to
not be installed in /usr/lib32 on systems with compat-32 support.

This fix has two parts.  First, the build is forced by linking drti.o
into a dummy internal library.  Second, the object file is installed
manually in the LIBRARIES_ONLY case.

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

11 years agoPull in r178240 from upstream llvm trunk:
dim [Sat, 11 May 2013 21:23:55 +0000 (21:23 +0000)]
Pull in r178240 from upstream llvm trunk:

  Section 24.2.2 of the C++ standard, [iterator.iterators], Table 106
  requires that the return type of *r for all iterators r be reference,
  where reference is defined in [iterator.requirements.general]/p11 as
  iterator_traits<X>::reference, and X is the type of r.

  But in CFG.h, the dereference operator of PredIterator and
  SuccIterator return pointer, not reference.

  Furthermore the nested type reference is value_type&, which is not
  the type returned from operator*().

  This patch simply makes the iterator::reference type value_type*,
  which is what the operator*() returns, and then re-lables the return
  type as reference.

  From a functionality point of view, the only difference is that the
  nested reference type is now value_type* instead of value_type&.

This enables building clang 3.2 with the newer version of libc++ that
was merged in r250514 (and which has stricter iterator requirements for
the vector member templates).

This is a direct commit to stable/9, since head has a complete import of
llvm/clang trunk, and there is no single commit to merge.

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

11 years agoMFC r250240:
hrs [Sat, 11 May 2013 19:11:20 +0000 (19:11 +0000)]
MFC r250240:

- Fix exit status when ip6addrctl_verbose=yes [*]
- Use the absolute pathname for ip6addrctl.
- Use "install" instead of "add" to reduce the number of invocations.

Reported by: Tatsuki Makino [*]
PR: conf/175006 [*]

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

11 years agoMFC r250392:
dim [Sat, 11 May 2013 16:41:30 +0000 (16:41 +0000)]
MFC r250392:

For some reason, the gcc intrinsics header tmmintrin.h was imported with
two copies of itself pasted together.  Remove the extraneous copy.

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

11 years agoMFC r246487 (by theraven):
dim [Sat, 11 May 2013 16:38:29 +0000 (16:38 +0000)]
MFC r246487 (by theraven):

  Import new libc++ to head.  Various small fixes and cleanups.

MFC r249998:

  Merge libc++ trunk r180598.  Contains several minor cleanups and bug
  fixes, no major changes.

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

11 years agoMFC r250231: libkvm: Make second /dev/null file descriptor close-on-exec as
jilles [Sat, 11 May 2013 12:43:26 +0000 (12:43 +0000)]
MFC r250231: libkvm: Make second /dev/null file descriptor close-on-exec as
well.

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

11 years agoMFC r250230: libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call.
jilles [Sat, 11 May 2013 11:56:50 +0000 (11:56 +0000)]
MFC r250230: libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call.

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

11 years agoMFC r249352:
mav [Sat, 11 May 2013 08:14:33 +0000 (08:14 +0000)]
MFC r249352:
Do not sent 120 TEST UNIT READY requests on generic NOT READY statuses.

Some failing disks tend to return vendor-specific ASC/ASCQ codes with
NOT READY sense key.  It caused extremely long recovery attempts, repeating
these 120 TURs (it takes at least 1 minute) for every I/O request.
Instead of that use default error handling, doing just few retries.

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

11 years agoMFC r250185:
mav [Sat, 11 May 2013 08:10:46 +0000 (08:10 +0000)]
MFC r250185:
Add IDs for HighPoint RocketRAID 640L/642L/644L -- new series of 4-port
6Gbps PCIe 2.0 x2 SATA controllers, based on Marvell 88SE9235 chips.

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

11 years agoMFC r244123 Add CTLFLAG_RWTUN define
smh [Sat, 11 May 2013 02:42:59 +0000 (02:42 +0000)]
MFC r244123 Add CTLFLAG_RWTUN define
MFC r247367 Fix non-recusive mutex MFI I/O lock
MFC r247369 Fix a large amount of bugs in MFI that cause panics

Approved by: pjd (mentor)

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

11 years agoFix the build: 'valid' is no longer used.
markj [Sat, 11 May 2013 00:04:17 +0000 (00:04 +0000)]
Fix the build: 'valid' is no longer used.

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

11 years agoMFC r249526, r249600:
pfg [Fri, 10 May 2013 21:39:41 +0000 (21:39 +0000)]
MFC r249526, r249600:
DTrace: NFS translators should be split into client/server pieces

Merge change from illumos:

1731 DTrace NFS translators should be split into client/server pieces

Include Changes from OpenSolaris:
PSARC 2008/050 DTrace NFS v3 Provider
6696397 NFS v3 provider reports all UDP clients as 0.0.0.0
6711844 assert: vp-->v_shrlocks

Illumos Revision: 13523:6763769941d2

This code seems to be currently unused on FreeBSD.

Reference:
https://www.illumos.org/issues/1731

Obtained from: Illumos

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

11 years agoMFC r249526:
pfg [Fri, 10 May 2013 21:25:17 +0000 (21:25 +0000)]
MFC r249526:
DTrace: print() should try to resolve function pointers

Merge changes from illumos:

3675 DTrace print() should try to resolve function pointers
3676 dt_print_enum hardcodes a value of zero

Illumos Revision: b1fa6326238973aeaf12c34fcda75985b6c06be1

Reference:
https://www.illumos.org/issues/3675
https://www.illumos.org/issues/3676

Obtained from: Illumos

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

11 years agoMFC r248983:
pfg [Fri, 10 May 2013 21:12:55 +0000 (21:12 +0000)]
MFC r248983:
Dtrace: enablings on defunct providers prevent providers from unregistering

Merge change from illumos:

1368 enablings on defunct providers prevent providers from unregistering

Illumos Revision: 13430:8e6add739e38

Reference:
https://www.illumos.org/issues/1368

Reviewed by: gnn
Tested by: Fabian Keil
Obtained from: Illumos

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

11 years agoMFC r249257:
markj [Fri, 10 May 2013 21:08:53 +0000 (21:08 +0000)]
MFC r249257:
  Add support for getting and setting BBU properties related to battery
  relearning. Specifically, add subcommands to mfiutil(8) which allow the
  user to set the BBU and autolearn modes when the firmware supports it,
  and add a subcommand which kicks off a battery relearn.

MFC r249258:
  Switch to a 2-clause license.

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

11 years agoMFC r248851:
markj [Fri, 10 May 2013 20:57:04 +0000 (20:57 +0000)]
MFC r248851:
  Ignore interface renames instead of removing the interface from the bridge
  group.

Approved by: emaste

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

11 years agoMFC r248776:
markj [Fri, 10 May 2013 20:55:39 +0000 (20:55 +0000)]
MFC r248776:
  Fix interval-based rotations when the -t flag is used. In this case, find
  the most-recently archived logfile and use its mtime to determine whether
  or not to rotate, as in the non-timestamped case.

  Previously we would just try to use the mtime of <logfile>.0, which always
  results in a rotation since it generally doesn't exist in the -t case.

Approved by: emaste

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

11 years agoMFC r249951
asomers [Fri, 10 May 2013 16:48:21 +0000 (16:48 +0000)]
MFC r249951

According to devctl(4), clients must read events whole; they may not piece them
together from multiple reads().  It's as if /dev/devctl is a datagram device
instead of a stream device.  However, devd's internal buffer was too small
(1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to
~1300 bytes).  This commit enlarges the buffer to 8k.

Approved by: ken (mentor)

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

11 years agoMFC: sync the version of netmap with the one in HEAD, including device
luigi [Fri, 10 May 2013 16:16:33 +0000 (16:16 +0000)]
MFC: sync the version of netmap with the one in HEAD, including device
drivers (mostly simplifying the code in the interrupt handlers).

On passing, also merge r250414, which is related to netmap
and the use of lem/em in virtual machines.

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

11 years agoMFC r249952:
bdrewery [Fri, 10 May 2013 15:56:34 +0000 (15:56 +0000)]
MFC r249952:

  Fix examples for overriding INSTALL to not suggest hardcoding
  'install' since it breaks buildworld after the introduction and
  use of 'install -l' in r245752. Overriding INSTALL causes
  /usr/bin/install to be used instead of the proper
  /usr/src/tools/install.sh which handles the new flag.

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

11 years agoMFC r249807,249893
bdrewery [Fri, 10 May 2013 13:09:44 +0000 (13:09 +0000)]
MFC r249807,249893

  Fix installkernel requiring users/groups defined in CHECK_UIDS
  and CHECK_GIDS to exist since r152680. This is only needed for
  installworld. The documented procedure of running mergemaster -p
  to check for missing users is only needed for installworld, not
  for installkernel. This fixes auditdistd incorrectly being
  required for installkernel.

PR: misc/174405

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

11 years agoMFC r250116:
brooks [Thu, 9 May 2013 18:43:01 +0000 (18:43 +0000)]
MFC r250116:

Make an attempt to detect missing MTREE files in distrib-dirs.  Not
perfect, but this is just a developer seatbelt

PR: conf/176897
Submitted by: Garrett Cooper <yaneurabeya@gmail.com>

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

11 years agoMFC r249488:
trociny [Thu, 9 May 2013 18:38:49 +0000 (18:38 +0000)]
MFC r249488:

Similarly to proc_getargv() and proc_getenvv(), export proc_getauxv()
to be able to reuse the code.

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

11 years agoMFC r249487:
trociny [Wed, 8 May 2013 18:39:12 +0000 (18:39 +0000)]
MFC r249487:

Re-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(),
and kern_proc_vmmap_out() functions to output process kinfo structures
to sbuf, to make the code reusable.

The functions are going to be used in the coredump routine to store
procstat info in the core program header notes.

Reviewed by: kib

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

11 years agoMFC: 233569
hiren [Wed, 8 May 2013 16:43:52 +0000 (16:43 +0000)]
MFC: 233569

Fix crash on VirtualBox (and probably on some real hardware):

- Do not cover error returned by pmc_core_initialize with the
  result of pmc_uncore_initialize, fail right away.
- Give a user something to report instead failing silently.

Submitted by: gonzo
Reported by: Alexandr Kovalenko <never@nevermind.kiev.ua>
Approved by: sbruno (mentor)

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

11 years agoMFC r250371
sbruno [Wed, 8 May 2013 16:31:11 +0000 (16:31 +0000)]
MFC r250371

s/Numer/Number/

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

11 years agoMFC r249070
sbruno [Wed, 8 May 2013 15:55:29 +0000 (15:55 +0000)]
MFC r249070

Update man page for igb(4) with a little bit of information about
hw.igb.num_queues for those so inclined.

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

11 years agoMFC r249815
sbruno [Wed, 8 May 2013 15:47:51 +0000 (15:47 +0000)]
MFC r249815

Return a lun count of 1 and a lun id of 0 when CAM attempts a REPORT_LUNS
command on a disk device.  This quieseces some noise on the console that
recently appeared.

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

11 years agoMFC r249664
sbruno [Wed, 8 May 2013 15:45:52 +0000 (15:45 +0000)]
MFC r249664

Expose CAM_BOOT_DELAY as a kernel conf item now.

This allows users who boot without loader to adjust their environments
around slightly buggy or slow hardware.

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

11 years agoMFC r250153:
kib [Wed, 8 May 2013 10:14:46 +0000 (10:14 +0000)]
MFC r250153:
Partially saved extended state must be handled always, i.e. for both
fpu-owned context, and for pcb-saved one.  More, the XSAVE could do
partial save, same as XSAVEOPT, so qualifier for the handler should be
use_xsave and not use_xsaveopt.

Since xsave_area_desc is now needed regardless of the XSAVEOPT use,
remove the write-only use_xsaveopt variable.

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

11 years agoMFC r250152:
kib [Wed, 8 May 2013 10:11:31 +0000 (10:11 +0000)]
MFC r250152:
The check to ensure that xstate_bv always has XFEATURE_ENABLED_X87 and
XFEATURE_ENABLED_SSE bits set is not needed.  CPU correctly handles
any bitmask which is subset of the enabled bits in %XCR0.

More, CPU instructions XSAVE and XSAVEOPT could write the mask without
e.g. XFEATURE_ENABLED_SSE, after the VZEROALL.  The check prevents the
restoration of the otherwise valid FPU save area.

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

11 years agoMFC r249811:
kib [Tue, 7 May 2013 09:47:12 +0000 (09:47 +0000)]
MFC r249811:
Literally follow POSIX:
If the bs= expr operand is specified and no conversions other than sync,
noerror, or notrunc are requested, the data returned from each input
block shall be written as a separate output block.

PR: standards/177742

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

11 years agoMFC r249486:
trociny [Mon, 6 May 2013 20:58:02 +0000 (20:58 +0000)]
MFC r249486:

Re-factor coredump routines.  For each type of notes an output
function is provided, which is used either to calculate the note size
or output it to sbuf.  On the first pass the notes are registered in a
list and the resulting size is found, on the second pass the list is
traversed outputing notes to sbuf.  For the sbuf a drain routine is
provided that writes data to a core file.

The main goal of the change is to make coredump to write notes
directly to the core file, without preliminary preparing them all in a
memory buffer.  Storing notes in memory is not a problem for the
current, rather small, set of notes we write to the core, but it may
becomes an issue when we start to store procstat notes.

Reviewed by: jhb (initial version), kib
Discussed with: jhb, kib

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

11 years agoMFC r249377, r249378, r249379:
trociny [Mon, 6 May 2013 20:32:14 +0000 (20:32 +0000)]
MFC r249377, r249378, r249379:

r249377:

Add sbuf_start_section() and sbuf_end_section() functions, which can
be used for automatic section alignment.

Discussed with: kib
Reviewed by: kib

r249378:

Add sbuf_start_section and sbuf_end_section to the libsbuf symbol map.

r249379:

Document sbuf_start_section() and sbuf_end_section() functions.

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

11 years agoMerge r248175 from head:
gavin [Sun, 5 May 2013 19:53:53 +0000 (19:53 +0000)]
Merge r248175 from head:
  Add support for Optoelectronics USB barcode readers to uftdi(4).
  Add entries for other Optoelectronics devices to usbdevs.

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

11 years agoMerge r247961 from head:
gavin [Sun, 5 May 2013 19:24:51 +0000 (19:24 +0000)]
Merge r247961 from head:
  Support the FAT16 partition type in gpart(8)

PR: kern/174714
Submitted by: 4721 at hushmail dot com

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

11 years agoMerge r247915 from head:
gavin [Sun, 5 May 2013 16:44:03 +0000 (16:44 +0000)]
Merge r247915 from head:
  The ZyXEL ZyAIR G-202 is also supported by zyd(4)

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

11 years agoMerge r246619 from head:
gavin [Sun, 5 May 2013 16:42:06 +0000 (16:42 +0000)]
Merge r246619 from head:
  Correct spelling of "daemon".  No .Dd bump.
  Noticed by:   Nathan Rich <Nathan.Rich dynastysystems com>

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

11 years agoMFC r250028:
kib [Sun, 5 May 2013 06:32:13 +0000 (06:32 +0000)]
MFC r250028:
Assert that the object type for the vnode' non-NULL v_object, passed
to vnode_pager_setsize(), is either OBJT_VNODE, or, if vnode was
already reclaimed, OBJT_DEAD.

More, if the object is terminated, do not perform the resizing operation.

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

11 years agoMFC r250026:
kib [Sun, 5 May 2013 06:25:28 +0000 (06:25 +0000)]
MFC r250026:

Convert panic() into KASSERT().

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

11 years agoMFC: r249630
rmacklem [Sat, 4 May 2013 22:05:43 +0000 (22:05 +0000)]
MFC: r249630
When an NFS unmount occurs, once vflush() writes the last dirty
buffer for the last vnode on the mount back to the server, it
returns. At that point, the code continues with the unmount,
including freeing up the nfs specific part of the mount structure.
It is possible that an nfsiod thread will try to check for an
empty I/O queue in the nfs specific part of the mount structure
after it has been free'd by the unmount. This patch avoids this problem by
setting the iodmount entries for the mount back to NULL while holding the
mutex in the unmount and checking the appropriate entry is non-NULL after
acquiring the mutex in the nfsiod thread.

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

11 years agoMFC: r249623
rmacklem [Sat, 4 May 2013 21:56:39 +0000 (21:56 +0000)]
MFC: r249623
Both NFS clients can deadlock when using the "rdirplus" mount
option. This can occur when an nfsiod thread that already holds
a buffer lock attempts to acquire a vnode lock on an entry in
the directory (a LOR) when another thread holding the vnode lock
is waiting on an nfsiod thread. This patch avoids the deadlock by disabling
readahead for this case, so the nfsiod threads never do readdirplus.
Since readaheads for directories need the directory offset cookie
from the previous read, they cannot normally happen in parallel.
As such, testing by jhb@ and myself didn't find any performance
degredation when this patch is applied. If there is a case where
this results in a significant performance degradation, mounting
without the "rdirplus" option can be done to re-enable readahead
for directories.

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

11 years agoMFC r248933:
mdf [Sat, 4 May 2013 18:44:14 +0000 (18:44 +0000)]
MFC r248933:

Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.

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

11 years agoMFC r245304 (by theraven):
dim [Sat, 4 May 2013 15:43:09 +0000 (15:43 +0000)]
MFC r245304 (by theraven):

  Merge new version of libcxxrt.  This brings in three fixes:

  - Don't treat pointers to members as pointers in catch blocks
    (they're usually fat pointers).

  - Correctly catch foreign exceptions in catchalls.

  - Ensure that a happens-before relationship is established when
    setting terminate handlers in one thread and calling them in
    another.

MFC r245327 (by theraven):

  Fix libcxxrt / libc++ build with the clang in head.

  Pointy hat to: theraven

MFC r245745 (by theraven):

  Import new fix from libcxxrt.  This fixes the case where you attempt
  to rethrow an exception when you haven't caught one.  This is largely
  a cosmetic fix, as (unless you have a very unusual terminate handler
  installed) it will print a nice error and then abort, rather than
  just aborting.

MFC r246462 (by theraven):

  Fix a copy-and-paste error in libcxxrt.

MFC r249993:

  Merge libcxxrt c812a07cd2f95c1403baf0bbe0366e7618d1d6d3:

  * Don't call the _fast version of the TLS accessor in terminate() or
    unexpected().
    1) TLS may not have been set up yet.
    2) When we're in one of these functions, Really Bad Stuff has
       happened and potentially saving a few cycles really isn't
       important.
  * Merge in fixes from FreeBSD trunk to make atomics work with recent
    clang.

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

11 years agoMFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close()
jilles [Sat, 4 May 2013 11:49:02 +0000 (11:49 +0000)]
MFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close()
loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.

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

11 years agoMFC r250000:
cperciva [Sat, 4 May 2013 00:31:41 +0000 (00:31 +0000)]
MFC r250000:
  Move IPPROTO_IPV6 from #ifdef __BSD_VISIBLE to #if __POSIX_VISIBLE >= 201112
  since POSIX 2001 states that it shall be defined.

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

11 years agoMFC r244091:
pluknet [Fri, 3 May 2013 15:54:13 +0000 (15:54 +0000)]
MFC r244091:

Improve style(9) compliance of function declarations.

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

11 years agoMFC r228269,228921:
pluknet [Fri, 3 May 2013 15:52:43 +0000 (15:52 +0000)]
MFC r228269,228921:

- libc: Eliminate 13 relative relocations in wctype().
- libc: Eliminate some relative relocations in setlocale().

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

11 years agoMFC r233473,233512,233518,233992,233994,238808,238920,250209-250211.
pluknet [Fri, 3 May 2013 14:59:32 +0000 (14:59 +0000)]
MFC r233473,233512,233518,233992,233994,238808,238920,250209-250211.

libc/locale: sync mdoc changes with head.

 r233473:
  mdoc: document title should be all caps.

 r233512:
  mdoc: remove empty lines.

 r233518:
  mdoc: remove unknown macro.

 r233992:
  mdoc: fix column names, indentation, column separation within each row, and
  quotation. Also make sure we have the same amount of columns in each row as
  the number of columns we specify in the head arguments.

 r233994:
  mdoc: fix function type.

 r238808:
  Start manpage with Dd macro and also remove a trailing whitespace
  while here.

 r238920:
  Remove trailing whitespace.

 r250209:
  querylocale(3): remove the STANDARDS section.

 r250210,r250211:
  Remove an extra comma, add a missing period.

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

11 years agoMFC r249489,249555
bdrewery [Thu, 2 May 2013 21:49:43 +0000 (21:49 +0000)]
MFC r249489,249555

  Run configtest before restarting so that the system is not
  left without a running sshd.

  Also call configtest before reload to ensure working config.

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

11 years agoMFC: r249548
rmacklem [Thu, 2 May 2013 13:34:40 +0000 (13:34 +0000)]
MFC: r249548
Allow the vnode to be unlocked for the weird case of
LK_EXCLOTHER. LK_EXCLOTHER is only used to acquire a
usecount on a vnode during NFSv4 recovery from an
expired lease.

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

11 years agoMFC r250075:
kib [Thu, 2 May 2013 04:22:04 +0000 (04:22 +0000)]
MFC r250075:
Properly terminate the result string for intermediate results.

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

11 years agoMFC r249846:
dim [Wed, 1 May 2013 18:06:53 +0000 (18:06 +0000)]
MFC r249846:

When rebooting (exiting) from the BTX loader, make sure to restore the
GDT from the correct segment, otherwise a triple fault would be caused.
In some virtual environments (VMware, VirtualBox, etc) this could lead
to a unhandled error or hang in the guest emulation software.

Thanks to avg and jhb for a few hints in the right direction.

Noticed by: Jeremy Chadwick <jdc@koitsu.org> (and many others)

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

11 years agoMFC r245647 (by kan):
mav [Wed, 1 May 2013 11:10:15 +0000 (11:10 +0000)]
MFC r245647 (by kan):
Do not pretend to have autosense data when no such data is available.

Make umass return an error code if SCSI sense retrieval request
has failed. Make sure scsi_error_action honors SF_NO_RETRY and
SF_NO_RECOVERY in all cases, even if it cannot parse sense bytes.

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

11 years agoMFC r245328:
mav [Wed, 1 May 2013 09:20:13 +0000 (09:20 +0000)]
MFC r245328:
Freeze device queue before returning errors to CAM.  This is required
for proper error recovery, including keeping original request order.

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

11 years agoMFC r245783:
lstewart [Wed, 1 May 2013 08:53:40 +0000 (08:53 +0000)]
MFC r245783:

Simplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
logic (refer to [1] for associated discussion). snd_cwnd and snd_wnd are
unsigned long and on 64 bit hosts, min() will truncate them to 32 bits and could
therefore potentially corrupt the result (although under normal operation,
neither variable should legitmately exceed 32 bits).

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-January/034297.html

Submitted by: jhb

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

11 years agoMFC r245752,246913,247162,250119
brooks [Tue, 30 Apr 2013 22:13:55 +0000 (22:13 +0000)]
MFC r245752,246913,247162,250119

Replace all known uses of ln in the build process with appropriate
install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK
variables.

Sponsored by: DARPA, AFRL

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

11 years agoMFC r249906:
brooks [Tue, 30 Apr 2013 20:15:53 +0000 (20:15 +0000)]
MFC r249906:

Use the system MAKEOBJDIRPREFIX when running make targets in
mergemaster.  This allows bootstrap verions of tools to be used.

Add a note to UPDATING about this change.

This commit is a partial backout of r248531 in that it removes an
accidentally committed change to mergemaster.

Discussed with: jhb
Sponsored by: DARPA, AFRL

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

11 years agoImprove error handling when unwrapping received data.
gnn [Tue, 30 Apr 2013 18:06:43 +0000 (18:06 +0000)]
Improve error handling when unwrapping received data.

Submitted by: Rick Macklem

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

11 years agoMFC r249858:
mm [Tue, 30 Apr 2013 10:05:47 +0000 (10:05 +0000)]
MFC r249858:
Merge vendor bugfix for a possible deadlock related to async destroy
and improve write performance by introducing a new lock protecting
tx_open_txg.

Illumos ZFS issues:
  3642 dsl_scan_active() should not issue I/O to determine if async
       destroying is active
  3643 txg_delay should not hold the tc_lock

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

11 years agoMFC of 249789:
mckusick [Tue, 30 Apr 2013 06:41:42 +0000 (06:41 +0000)]
MFC of 249789:

Fix error check.

Submitted by: Andrey Chernov (ache@)

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

11 years agoMFC r249996:
eadler [Tue, 30 Apr 2013 00:49:25 +0000 (00:49 +0000)]
MFC r249996:
Add missing static qualifiers

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

11 years agoMFC: r248478
jkim [Mon, 29 Apr 2013 21:49:22 +0000 (21:49 +0000)]
MFC: r248478

Add preliminary support for IBM/Lenovo TrackPoint.

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

11 years agoMFC r243314:
pluknet [Mon, 29 Apr 2013 21:30:04 +0000 (21:30 +0000)]
MFC r243314:
 Zero the whole struct not just the size of a pointer.

MFC r246670:
 Major update for unix_cmsg.

PR: bin/131567
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>

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

11 years agoMFC r246826:
pluknet [Mon, 29 Apr 2013 21:11:21 +0000 (21:11 +0000)]
MFC r246826:
 Add support of passing SCM_BINTIME ancillary data object for PF_LOCAL
 sockets.

PR: kern/175883
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>

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

11 years agoFix a bug that allows NFS clients to issue READDIR on files.
des [Mon, 29 Apr 2013 21:11:01 +0000 (21:11 +0000)]
Fix a bug that allows NFS clients to issue READDIR on files.

(files missing from previous commit)

PR: kern/178016
Security: CVE-2013-3266
Security: FreeBSD-SA-13:05.nfsserver
Approved by: so

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

11 years agoMFC: r248777
jkim [Mon, 29 Apr 2013 21:04:37 +0000 (21:04 +0000)]
MFC: r248777

Loosen restrictions for quoted strings.  Now we can use more complex strings
and "escaped" quote characters.

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