]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
10 years agoMFC: less v458.
delphij [Thu, 30 May 2013 20:42:51 +0000 (20:42 +0000)]
MFC: less v458.

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

10 years agoMFC 249566-249567:
jhb [Thu, 30 May 2013 20:11:31 +0000 (20:11 +0000)]
MFC 249566-249567:
Document that sem_wait() can fail with EINTR if it is interrupted by a
signal.

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

10 years agoMFC 246417,247116,248584:
jhb [Thu, 30 May 2013 19:24:29 +0000 (19:24 +0000)]
MFC 246417,247116,248584:
Rework the handling of stop signals in the NFS client.  The changes in
195702, 195703, and 195821 prevented a thread from suspending while holding
locks inside of NFS by forcing the thread to fail sleeps with EINTR or
ERESTART but defer the thread suspension to the user boundary.  However,
this had the effect that stopping a process during an NFS request could
abort the request and trigger EINTR errors that were visible to userland
processes (previously the thread would have suspended and completed the
request once it was resumed).

This change instead effectively masks stop signals while in the NFS client.
It uses the existing TDF_SBDRY flag to effect this since SIGSTOP cannot
be masked directly.  Instead of setting PBDRY on individual sleeps, change
the VFS_*() and VOP_*() methods to defer stop signals for filesystems which
request this behavior via a new VFCF_SBDRY flag.  Note that this has to be
a VFC flag rather than a MNTK flag so that it works properly with
VFS_MOUNT() when the mount is not yet fully constructed.  For now, only the
NFS clients set this new flag in VFS_SET().

A few other related changes:
- Add an assertion to ensure that TDF_SBDRY doesn't leak to userland.
- When a lookup request uses VOP_READLINK() to follow a symlink, mark
  the request as being on behalf of the thread performing the lookup
  (cnp_thread) rather than using a NULL thread pointer.  This causes
  NFS to properly handle signals during this VOP on an interruptible
  mount.
- Ignore thread suspend requests due to SIGSTOP if stop signals are
  currently deferred.  This can occur if a process is stopped via
  SIGSTOP while a thread is running or runnable but before it has set
  TDF_SBDRY.

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

10 years agoRevert my previous merge. There's a variable name difference between head
markj [Wed, 29 May 2013 22:29:33 +0000 (22:29 +0000)]
Revert my previous merge. There's a variable name difference between head
and stable (dirfd vs. dir_fd) and I managed to get it wrong again when I
did the MFC, even after I tested.

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

10 years agoMFC r250545:
markj [Wed, 29 May 2013 21:08:23 +0000 (21:08 +0000)]
MFC r250545:
  Some filesystems (NFS in particular) do not fill out the d_type field when
  returning directory entries through readdir(3). In this case we need to
  obtain the file type ourselves; otherwise newsyslog -t will not be able to
  find archived log files and will fail to both delete old log files and to
  do interval-based rotations properly.

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

10 years agoMFH r250595:
bdrewery [Wed, 29 May 2013 17:31:34 +0000 (17:31 +0000)]
MFH r250595:
  The HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW
  and the update to 6.1 added SSH_BUG_DYNAMIC_RPORT with the
  same value.

  Fix the HPN SSH_BUG_LARGEWINDOW bit so it is unique.

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

10 years agoMF9 (r248915): remove harmless duplicate entry for VersionAddendum.
des [Wed, 29 May 2013 16:55:33 +0000 (16:55 +0000)]
MF9 (r248915): remove harmless duplicate entry for VersionAddendum.

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

10 years agoMFC r250508:
mav [Wed, 29 May 2013 04:18:02 +0000 (04:18 +0000)]
MFC r250508:
Disable sending Early R_OK on SiI3726/SiI3826 port multipliers.
With "cached read" HDD testing and multiple ports busy on a SATA
host controller, 3726/3826 PMP will very rarely drop a deferred
R_OK that was intended for the host. Symptom will be all 5 drives
under test will timeout, get reset, and recover.

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

10 years agoMFC r250819:
mav [Wed, 29 May 2013 04:14:41 +0000 (04:14 +0000)]
MFC r250819:
Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit.
In some cases it could cause kernel panic during failed drive replacement.

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

10 years agoMFC r250900:
mav [Wed, 29 May 2013 04:10:57 +0000 (04:10 +0000)]
MFC r250900:
Fix NULL-dereference kernel panic in case of mps_attach() failure.

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

10 years agoMFC 247332:
jhb [Tue, 28 May 2013 18:43:58 +0000 (18:43 +0000)]
MFC 247332:
Add a quirk to disable this driver for certain older laptops with an ICH2
southbridge and an Intel 82815_MC host bridge where the host bridge's
revision is less than 5

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

10 years agoMFC of 250708:
mckusick [Mon, 27 May 2013 22:41:43 +0000 (22:41 +0000)]
MFC of 250708:

Clean up trailing whitespace.

Submitted by: Andy Kosela

MFC of 250710: (delete addition of -k which does not exist in 8-stable)

When running the -m option to generate a newfs(8) command suitable for
recreating the filesystem, check for and output the -i, -k, and -l
options if appropriate.

Note the remaining deficiencies of the -m option in the dumpfs(8)
manual page. Specifically that newfs(8) options -E, -R, -S, and -T
options are not handled and that -p is not useful so is omitted.
Also document that newfs(8) options -n and -r are neither checked
for nor output but should be. The -r flag is needed if the filesystem
uses gjournal(8).

PR:           bin/163992
Reported by:  Dieter <freebsd@sopwith.solgatos.com>
Submitted by: Andy Kosela <akosela@andykosela.com>

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

10 years agoPreparation for MFC revs r248291 and r249741:
marck [Mon, 27 May 2013 13:51:57 +0000 (13:51 +0000)]
Preparation for MFC revs r248291 and r249741:

Add 'list' command, for now the exact equivalent of 'status',
so users of the latter could change their scripts.

This is direct commit to stable, and is temporary.

Requested by: Pete French <petefrench@ingresso.co.uk>
Approved by: trociny
2B cleaned after: 6 weeks

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

10 years agoMFC r250405:
trociny [Sun, 26 May 2013 18:54:50 +0000 (18:54 +0000)]
MFC r250405:

Move snmp_hast manual to section 3, where all other manual pages for
bsnmp modules are located.

Section 3 (Library Functions) looks wrong for this manual page, which
contains only module description, that is why initially it was located
to section 8 (System Manager's Manual).  On the other hand manual
pages for all other bsnmpd modules are already located in the section
3, and having all pages in one section looks more consistent.  Also,
currently, similarly to manuals for other modules, snmp_hast manual
contains LIBRARY section, which is not good style for section 8.

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

10 years agoMFC r250380:
trociny [Sun, 26 May 2013 18:39:33 +0000 (18:39 +0000)]
MFC r250380:

Register OID for HAST module.

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

10 years agoMFC r250379, r250503:
trociny [Sun, 26 May 2013 18:37:20 +0000 (18:37 +0000)]
MFC r250379, r250503:

HAST module for bsnmpd(1).

Reviewed by: harti, pjd

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

10 years agoMFC r250503:
trociny [Sun, 26 May 2013 18:30:07 +0000 (18:30 +0000)]
MFC r250503:

Get rid of libl dependency.  We needed it only to provide yywrap.  But
yywrap is not necessary when parsing a single hast.conf file.

Suggested by: kib
Reviewed by: pjd

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

10 years agoMFH (r230478): fix a couple of nits in r230307 (r231248)
des [Sun, 26 May 2013 17:00:15 +0000 (17:00 +0000)]
MFH (r230478): fix a couple of nits in r230307 (r231248)
MFH (r243149): fix indentation
MFH (r249431): use CONNECT to proxy HTTPS over HTTP

PR: bin/80176

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

10 years agoMFC r250763 and r250765:
hselasky [Sat, 25 May 2013 17:19:06 +0000 (17:19 +0000)]
MFC r250763 and r250765:
Fix some USB audio device issues.

PR: usb/178722

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

10 years agoMFC r250741:
kib [Fri, 24 May 2013 18:28:27 +0000 (18:28 +0000)]
MFC r250741:
Decode new HT 3.00 and 3.10 capabilities.

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

10 years agoMFC r250740:
kib [Fri, 24 May 2013 18:26:12 +0000 (18:26 +0000)]
MFC r250740:
Add new capability types encodings from HyperTransport I/O Link
Specification revisions 3.00 and 3.10.

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

10 years agoMFC 238450,250152-250153,250415:
jhb [Tue, 21 May 2013 19:25:19 +0000 (19:25 +0000)]
MFC 238450,250152-250153,250415:
- Add support for the XSAVEOPT instruction use.
- 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.
- Partially saved extended state must be handled always, i.e. for both
  fpu-owned context, and for pcb-saved one.
- 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/8@250880 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248458:
hselasky [Tue, 21 May 2013 06:09:19 +0000 (06:09 +0000)]
MFC r248458:
Add new USB ID.

PR: usb/177013

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

10 years agoMFC r248499:
hselasky [Tue, 21 May 2013 06:06:16 +0000 (06:06 +0000)]
MFC r248499:
Add new USB ID.

PR: usb/177105

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

10 years agoAdd new USB ID.
hselasky [Tue, 21 May 2013 06:03:32 +0000 (06:03 +0000)]
Add new USB ID.

PR: usb/177173

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

10 years agoMFC: r250487
hiren [Fri, 17 May 2013 17:16:29 +0000 (17:16 +0000)]
MFC: r250487

Adding a detach method to p4tcc driver.

PR: 118739
Submitted by: Dan Lukes <dan@obluda.cz> (earlier version)
Reviewed by: jhb
Approved by: sbruno (mentor)

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

10 years agoMFC r250509:
eadler [Fri, 17 May 2013 00:40:48 +0000 (00:40 +0000)]
MFC r250509:
The M_VESA_MODE_MAX is latest valid mode - not the first invalid.
Permit its use in vidcontrol -i

PR: bin/119483

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

10 years agoMFC r250459:
eadler [Thu, 16 May 2013 20:32:28 +0000 (20:32 +0000)]
MFC r250459:
Add the letter 'q' to the font iso05-8x16.fnt

PR: 72585
PR: 169797

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

10 years agoMFC r250553:
eadler [Thu, 16 May 2013 20:27:30 +0000 (20:27 +0000)]
MFC r250553:
Add the letter 'x' to the font iso05-8x16.fnt

PR: 169797

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

10 years agoMFC r250193:
kib [Thu, 16 May 2013 10:32:01 +0000 (10:32 +0000)]
MFC r250193:
Do a sync of the devvp vnode for the mount, which buffers, among other
things, contain FAT blocks.  This makes fsync(2) for msdosfs more correct
by syncing the metadata needed to read the synced data.

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

10 years agoMFC r250088:
pluknet [Wed, 15 May 2013 21:37:08 +0000 (21:37 +0000)]
MFC r250088:
  Pass a format string to kproc_create() [1] and thus fix the build with
  -DBKTR_NEW_MSP34XX_DRIVER and -Wformat-security.

PR: kern/175546

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

10 years agoMFC r248250-248251:
pluknet [Wed, 15 May 2013 21:19:05 +0000 (21:19 +0000)]
MFC r248250-248251:

- Add the getcontextx prototype to SYNOPSIS.
- Link getcontextx(3) to getcontext(3).

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

10 years agoMFC r246711:
pluknet [Wed, 15 May 2013 21:05:25 +0000 (21:05 +0000)]
MFC r246711:

o Bring in sync decoding the first nfssvc(2) parameter (flags) with
the current definitions location.
o Respect numbers in NFSSVC_* (e.g. NFSSVC_V4ROOTEXPORT).

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

10 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/8@250677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r242995: firmware(9) mdoc cleanup.
pluknet [Wed, 15 May 2013 19:52:37 +0000 (19:52 +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/8@250673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

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

11 years agoMFC r248542:
yongari [Wed, 15 May 2013 01:17:59 +0000 (01:17 +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/8@250649 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r248456:
yongari [Wed, 15 May 2013 01:06:24 +0000 (01:06 +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/8@250647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r248227:
yongari [Wed, 15 May 2013 01:00:40 +0000 (01:00 +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/8@250645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

PR: 176256

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

11 years agoMFC r249949:
eadler [Mon, 13 May 2013 01:28:09 +0000 (01:28 +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/8@250587 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

PR: bin/173929

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

11 years agoMFC r249796, r249830, r249844 and r249845:
hselasky [Sun, 12 May 2013 12:30:42 +0000 (12:30 +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/8@250563 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249795:
hselasky [Sun, 12 May 2013 12:24:29 +0000 (12:24 +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/8@250562 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/8@250544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r250012:
eadler [Sun, 12 May 2013 01:38:01 +0000 (01:38 +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/8@250542 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r250392:
dim [Sat, 11 May 2013 16:44:36 +0000 (16:44 +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/8@250516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249352:
mav [Sat, 11 May 2013 08:15:56 +0000 (08:15 +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/8@250502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r250185:
mav [Sat, 11 May 2013 08:11:55 +0000 (08:11 +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/8@250500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r244123 Add CTLFLAG_RWTUN define
smh [Sat, 11 May 2013 02:48:40 +0000 (02:48 +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/8@250497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC r249257:
markj [Fri, 10 May 2013 21:11:18 +0000 (21:11 +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/8@250483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r248851:
markj [Fri, 10 May 2013 20:57:22 +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/8@250481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r248776:
markj [Fri, 10 May 2013 20:56:07 +0000 (20:56 +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/8@250479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249815
sbruno [Wed, 8 May 2013 15:48:36 +0000 (15:48 +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/8@250368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249811:
kib [Tue, 7 May 2013 09:48:42 +0000 (09:48 +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/8@250329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r210877 (partial)
jkim [Mon, 6 May 2013 21:13:22 +0000 (21:13 +0000)]
MFC: r210877 (partial)

Decrease emulated stack size from 64K to 4K bytes.

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

11 years agoMFC r215137:
dim [Mon, 6 May 2013 19:59:13 +0000 (19:59 +0000)]
MFC r215137:

  Revert r103230, which depended on ld preserving the __start_xxx and
  __stop_xxx symbols for custom sections, even when these were not
  referenced (at link time).  This behaviour was changed again in binutils
  commit 0b8ed435c3fe8bd09a08c23920e65bfb03251221.

  This time, put the __GLOBL macro definition in cdefs.h, so it can be
  reused in a few other places where it will be needed.

  Reviewed by: kib

MFC r215138:

  Use the same treatment as in linker_set.h for the __start and __stop
  symbols of the set_vnet and set_pcpu sections, so those symbols will
  always be emitted in kernel modules, if they use vnet.h or pcpu.h.

  Also, for pcpu.h, make the __(start|stop)_set_pcpu declarations, and
  associated macros invisible to userland, to prevent it picking up these
  symbols.

  Reviewed by: kib

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

11 years agoMFC r248933:
mdf [Sat, 4 May 2013 18:49:04 +0000 (18:49 +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/8@250249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249489,249555
bdrewery [Thu, 2 May 2013 21:51:57 +0000 (21:51 +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/8@250196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@250171 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/8@250151 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r245783:
lstewart [Wed, 1 May 2013 08:57:45 +0000 (08:57 +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/8@250141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC r243314:
pluknet [Mon, 29 Apr 2013 21:33:36 +0000 (21:33 +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/8@250077 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r246826:
pluknet [Mon, 29 Apr 2013 21:12:18 +0000 (21:12 +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/8@250074 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:10:49 +0000 (21:10 +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/8@250068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC: r248777
jkim [Mon, 29 Apr 2013 21:05:12 +0000 (21:05 +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/8@250067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r248253:
pluknet [Mon, 29 Apr 2013 20:31:25 +0000 (20:31 +0000)]
MFC r248253:
 Add missed `_load' to the `if_foo_load="YES"' line.

PR: docs/176915
Submitted by: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>

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

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

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/8@250058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r249525:
kib [Mon, 29 Apr 2013 17:29:48 +0000 (17:29 +0000)]
MFC r249525:
Rewrite origin_subst_one() to get rid of the wrong limit on the length
of the resulting string.

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

11 years agoFix build.
pluknet [Mon, 29 Apr 2013 11:36:22 +0000 (11:36 +0000)]
Fix build.
- pass a format string to printf
- catch up with constifying uz_name

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

11 years agoMFC r249471: libc: Fix typo in French translation.
jilles [Fri, 26 Apr 2013 16:11:07 +0000 (16:11 +0000)]
MFC r249471: libc: Fix typo in French translation.

PR: kern/177704
Submitted by: martymac

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

11 years agoMFC remainder of r249802 (eadler) to fix build:
gjb [Fri, 26 Apr 2013 11:58:46 +0000 (11:58 +0000)]
MFC remainder of r249802 (eadler) to fix build:

- sl_find does not modify 'name'
- make the prototype of sl_find match NetBSD

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

11 years agoMFC r249802:
eadler [Fri, 26 Apr 2013 00:47:28 +0000 (00:47 +0000)]
MFC r249802:
- sl_find does not modify 'name'
- make the prototype of sl_find match NetBSD

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

11 years agoMFC r249801:
eadler [Fri, 26 Apr 2013 00:45:03 +0000 (00:45 +0000)]
MFC r249801:
Switch from K&R prototypes to modern C

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

11 years agoMFC r249349
sbruno [Thu, 25 Apr 2013 17:04:48 +0000 (17:04 +0000)]
MFC r249349

Repair camcontrol output and use CAM defined values for string sizes

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

11 years agoMFC of PR r249848.
rrs [Thu, 25 Apr 2013 11:24:40 +0000 (11:24 +0000)]
MFC of PR r249848.

PR: 174749, 157796

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

11 years agoRecord sendmail 8.14.7 upgrade
gshapiro [Thu, 25 Apr 2013 02:25:42 +0000 (02:25 +0000)]
Record sendmail 8.14.7 upgrade

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

11 years agoUpdate perl version to that included on install medium.
gjb [Thu, 25 Apr 2013 02:18:57 +0000 (02:18 +0000)]
Update perl version to that included on install medium.
This is a direct commit to stable/8 with no intent to MFC/MFS.

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

11 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Thu, 25 Apr 2013 02:16:29 +0000 (02:16 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.7/cf tree.

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

11 years agoMFC: Update for sendmail 8.14.7
gshapiro [Thu, 25 Apr 2013 02:15:34 +0000 (02:15 +0000)]
MFC: Update for sendmail 8.14.7

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

11 years agoMFC: Merge sendmail 8.14.7
gshapiro [Thu, 25 Apr 2013 02:14:36 +0000 (02:14 +0000)]
MFC: Merge sendmail 8.14.7

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

11 years agoMFC r227101:
eadler [Wed, 24 Apr 2013 12:47:41 +0000 (12:47 +0000)]
MFC r227101:
Add static keywords to variables and functions where possible in games/.

This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.

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

11 years agoMFC r249281: Add FreeBSD 8.4.
pluknet [Wed, 24 Apr 2013 10:20:21 +0000 (10:20 +0000)]
MFC r249281: Add FreeBSD 8.4.

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

11 years agoMerge unmerged commits to fortune(1)
eadler [Wed, 24 Apr 2013 04:21:23 +0000 (04:21 +0000)]
Merge unmerged commits to fortune(1)

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

11 years agoMFC r249398:
ae [Mon, 22 Apr 2013 06:47:27 +0000 (06:47 +0000)]
MFC r249398:
  Free memory after deleting an address policy entry.

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

11 years agoMerge of current from 249692, tzdata2013c:
edwin [Sat, 20 Apr 2013 11:46:01 +0000 (11:46 +0000)]
Merge of current from 249692, tzdata2013c:

- antarctica: AusAQ and ATAQ have been removed.
- Antarctica/Macquarie has been moved to australasia file and AU.
- Asia/Hebron, Palestine updated for 2013.
- Paraguay stays with DST for the whole year.

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

11 years agoMFC r249170
sbruno [Fri, 19 Apr 2013 18:37:49 +0000 (18:37 +0000)]
MFC r249170

Notify CAM on state* change to a logical volume not status.  This resolves
the issues reported regarding camcontrol devlist not showing the rebuild
states of volumes unless an explicit camcontrol rescan was executed.

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

11 years agoMFC r248493:
mm [Fri, 19 Apr 2013 10:48:38 +0000 (10:48 +0000)]
MFC r248493:
Plug memory leak in dsl_check_snap_cb()
This was unnoticed because the function is very rarely used.

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

11 years agoMFC r240870 (pjd):
mm [Fri, 19 Apr 2013 10:35:45 +0000 (10:35 +0000)]
MFC r240870 (pjd):
It is possible to recursively destroy snapshots even if the snapshot
doesn't exist on a dataset we are starting from. For example if we
have the following configuration:

tank
tank/foo
tank/foo@snap
tank/bar
tank/bar@snap

We can execute:

# zfs destroy -t tank@snap

eventhough tank@snap doesn't exit.

Unfortunately it is not possible to do the same with recursive rename:

# zfs rename -r tank@snap tank@pans
cannot open 'tank@snap': dataset does not exist

...until now. This change allows to recursively rename snapshots even if
snapshot doesn't exist on the starting dataset.

Sponsored by: rsync.net

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

11 years agoMFC of 249064:
mckusick [Thu, 18 Apr 2013 00:14:51 +0000 (00:14 +0000)]
MFC of 249064:

The code in clear_remove() and clear_inodedeps() skips one entry
in the pagedep and inodedep hash tables. An entry in the table is
skipped because 'pagedep_hash' and 'inodedep_hash' hold the size
of the hash tables - 1.

The chance that this would have any operational failure is extremely
unlikely. These funtions only need to find a single entry and are
only called when there are too many entries. The chance that they
would fail because all the entries are on the single skipped hash
chain are remote.

Submitted by: Pedro Martelletto
Reviewed by:  kib

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

11 years agoMFC r247910:
danfe [Wed, 17 Apr 2013 05:56:59 +0000 (05:56 +0000)]
MFC r247910:

  Plug a memory leak.

  Reviewed by: mav
  Sponsored by: Nginx, Inc.

Approved by: glebius

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

11 years agoMFC r249449:
dim [Tue, 16 Apr 2013 17:50:20 +0000 (17:50 +0000)]
MFC r249449:

Fix undefined behaviour in several gpio_pin_setflags() routines (under
sys/arm and sys/mips), squelching the clang 3.3 warnings about this.

Noticed by: tinderbox and many irate spectators
Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
PR: kern/177759

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

11 years agoMFC r249316:
dim [Tue, 16 Apr 2013 06:52:32 +0000 (06:52 +0000)]
MFC r249316:

Ensure make -j N universe works correctly, by checking for an up-to-date
make before starting the universe targets themselves.  Otherwise, all of
the targets would attempt to build make simultaneously, overwriting each
other's copies of the make object files and executable.  This could lead
to strange errors, for example when partially-written make executables
are invoked.

Also amend r216620, to make the rest of universe wait properly until the
upgrade_checks target is finished, by adding universe_${target}_prologue
to the .ORDER target.  Otherwise, make will be too smart for its own
good, and start building the universe targets simultaneously with the
prologues anyway.

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

11 years agoMFC r249439:
kib [Tue, 16 Apr 2013 06:21:57 +0000 (06:21 +0000)]
MFC r249439:
Fix the name of the pcb member in the comments.

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

11 years agoMFC r249397:
delphij [Mon, 15 Apr 2013 05:01:12 +0000 (05:01 +0000)]
MFC r249397:

Fix a few typos.

Reviewed by: gjb

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

11 years agoFreeBSD 8.0 introduced inpcb reference counting, and FreeBSD 8.1 began using
rwatson [Sun, 14 Apr 2013 16:25:37 +0000 (16:25 +0000)]
FreeBSD 8.0 introduced inpcb reference counting, and FreeBSD 8.1 began using
that reference count to protect inpcb stability in udp_pcblist() and other
monitoring functions, preventing the inpcb from being garbage collected
across potentially sleeping copyout() operations despite the inpcb zone
becoming shrinkable.

However, this introduced a race condition in which inp->inp_socket() might
become NULL as a result of the socket being freed, but before the inpcb we
removed from the global list of connections, allowing it to be exposed to a
third thread invoking udp_input() or udp6_input() which would try to
indirect through inp_socket without testing it for NULL.  This might occur
with particular regularity on systems that frequently run netstat, or which
use SNMP for connection monitoring.

Later FreeBSD releases use a different reference/destruction model, but
stable/8 remained affected in FreeBSD 8.2 and 8.3; the problem could be
spotted on very high-load UDP services, such as top-level name servers.

An Errata Note for 8.x branches under continuing support might be
appropriate.  Regardless, this fix should be merged to releng/8.4 prior to
8.4-RELEASE.

PR: 172963
Submitted by: Vincent Miller <vmiller@verisign.com>
Submitted by: Julien Charbon <jcharbon@verisign.com>
Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com>

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

11 years agoMFH (r247285): always bootstrap liby along with yacc.
des [Sun, 14 Apr 2013 11:51:25 +0000 (11:51 +0000)]
MFH (r247285): always bootstrap liby along with yacc.

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