]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r244973:
delphij [Wed, 16 Jan 2013 00:42:25 +0000 (00:42 +0000)]
MFC r244973:

Integrate OpenSSL changeset 22950 (appro):

bn_word.c: fix overflow bug in BN_add_word.

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

11 years agoMFC r244562,245241,245435
brooks [Tue, 15 Jan 2013 16:46:51 +0000 (16:46 +0000)]
MFC r244562,245241,245435

Add NetBSD's mtree to the tree and install it as nmtree.

Always install our mtree as /usr/sbin/fmtree and link it as
/usr/sbin/mtree by default.

Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked
as /usr/sbin/mtree as well as /usr/sbin/nmtree.

Sponsored by: DARPA, AFRL

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

11 years agoMFC r244557:
brooks [Tue, 15 Jan 2013 16:41:52 +0000 (16:41 +0000)]
MFC r244557:

Add libnetbsd, a thin compatibility layer intended to allow a limited
set of NetBSD software to compile as part of the FreeBSD build with
little or no modification.  It is built as a static library and not
installed for general use.  Likewise, its header files are not
installed.

Sponsored by: DARPA, AFRL

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

11 years agoMFC r244553,244594,244608,244639
bapt [Tue, 15 Jan 2013 09:14:18 +0000 (09:14 +0000)]
MFC r244553,244594,244608,244639

In preparation for making 'pkg -N' the one true method of determining
whether a system has been configured to use pkgng, cause /usr/sbin/pkg
recognise a -n option and exit with a failure code when the pkg port
is not installed

Submitted by: matthew

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

11 years agoRevert the MFC to sys/dev/ath/ath_hal/ar9002/ar9285_attach.c again,
dim [Tue, 15 Jan 2013 07:41:50 +0000 (07:41 +0000)]
Revert the MFC to sys/dev/ath/ath_hal/ar9002/ar9285_attach.c again,
since it does not compile on stable/9.  During testing, I had a
different local fix, so I failed to notice this did not work.  Apologies
for the breakage.

Pointy hat to: dim

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

11 years agoMFC r244401,245305,245308:
brooks [Mon, 14 Jan 2013 22:00:43 +0000 (22:00 +0000)]
MFC r244401,245305,245308:

Replace our implementation of the vis(3) and unvis(3) APIs with
NetBSD's.  This output size limited versions of vis and unvis functions
as well as a set of vis variants that allow arbitrary characters to be
specified for encoding.

Finally, MIME Quoted-Printable encoding as described in RFC 2045 is
supported.

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

11 years agoOops, r186202 (4 years ago) forgot to remove Tape from the F1 Help file.
dteske [Mon, 14 Jan 2013 21:31:27 +0000 (21:31 +0000)]
Oops, r186202 (4 years ago) forgot to remove Tape from the F1 Help file.

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

11 years agoUse a direct commit to fix a minor mistake in r245431, before it spreads
dim [Mon, 14 Jan 2013 20:26:50 +0000 (20:26 +0000)]
Use a direct commit to fix a minor mistake in r245431, before it spreads
too far: use the correct FreeBSD version in clang's target triple.  That
is, $ARCH-unknown-freebsd9.1 instead of $ARCH-unknown-freebsd9.2.

This will be bumped again for the 9.2 release, when it branches off.

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

11 years agoMFC r244628:
dim [Mon, 14 Jan 2013 19:51:26 +0000 (19:51 +0000)]
MFC r244628:

  Upgrade our copy of llvm/clang to 3.2 release.

  Release notes for llvm:
  http://llvm.org/releases/3.2/docs/ReleaseNotes.html

  Release notes for clang:
  http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html

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

11 years agoPartial MFC of r234508 (by adrian):
dim [Mon, 14 Jan 2013 19:31:44 +0000 (19:31 +0000)]
Partial MFC of r234508 (by adrian):

  "Upgrade" the AR9285 code to support PCI/ART EEPROM on flash.

  I've just verified that this boots on an Atheros AP91. I haven't verified
  it with traffic though, so YMMV.

(This is a prerequisite for the coming clang 3.2 upgrade.)

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

11 years ago- Fix r245416.
zont [Mon, 14 Jan 2013 11:13:31 +0000 (11:13 +0000)]
- Fix r245416.
  Turn unprivileged mlock off for compatibility.  Exactly this behaviour
  was approved by kib (mentor).

This is a direct commit.

Approved by: kib (mentor)

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

11 years agoMFC r244679:
zont [Mon, 14 Jan 2013 11:00:06 +0000 (11:00 +0000)]
MFC r244679:
- Update manual pages accordingly to r244384 and r244385.

Approved by: kib (mentor)

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

11 years agoMFC r244384:
zont [Mon, 14 Jan 2013 10:58:55 +0000 (10:58 +0000)]
MFC r244384:
- Fix locked memory accounting for maps with MAP_WIREFUTURE flag.
- Add sysctl vm.old_mlock which may turn such accounting off.

MFC r244385:
- Add sysctl to allow unprivileged users to call mlock(2)-family system
  calls and turn it off for compatibility.
- Do not allow to call them inside jail.

Approved by: kib (mentor)

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

11 years agoMFC r244383:
zont [Mon, 14 Jan 2013 10:58:20 +0000 (10:58 +0000)]
MFC r244383:
- Set memorylocked limit to 64Kb for default login class.
  This prevents unprivileged users to lock too much memory.
- Set memorylocked limit to 64Mb for daemon login class.
  Some daemons such as amd(8) and watchdogd(8) calls mlockall(2) on
  startup, they are run from init(8) which uses daemon login class.
- Set memorylocked limit to unlimited for root login class.

Approved by: kib (mentor)

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

11 years agoMFC: r243883
bapt [Sun, 13 Jan 2013 22:37:45 +0000 (22:37 +0000)]
MFC: r243883

if PACKAGESITE url scheme is not 'file://', always try to revolv SRV records and
use them if any. It allows the bootstrap to use directly pkg.FreeBSD.org instead
of pkgbeta.FreeBSD.org

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

11 years agoMFC r245272:
dim [Sun, 13 Jan 2013 20:35:08 +0000 (20:35 +0000)]
MFC r245272:

Add an ugly hack to libgcc's unwind code, to make it behave properly at
runtime on amd64, when it is compiled by clang.  Some versions of clang
don't save and restore all callee registers, if a __builtin_eh_return()
intrinsic is used in a function.  This is particularly bad on amd64.

Until the problem gets fixed by upstream, use an asm statement to force
clang to assume the registers in question are clobbered, when invoking
__builtin_eh_return(), so it will emit code to save and restore them.

This should fix the crashes reported on -current with some C++ programs,
particularly those that throw exceptions over multiple function
boundaries.

Reported by: stefanf

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

11 years agoMFC r244995 r244996 r244997.
markj [Sun, 13 Jan 2013 04:14:46 +0000 (04:14 +0000)]
MFC r244995 r244996 r244997.

MFC r244995:
  Fix a typo in an error message.

MFC r244996:
  Have -n imply -r, since dry-run mode obviously doesn't require root
  privileges.

MFC r244997:
  Make sure to update the mtime of a logfile after archiving it. This
  ensures that the next rotation happens at the correct time when using
  interval-based rotations.

Approved by: rstone (co-mentor)

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

11 years agoMFC r244719:
markj [Sun, 13 Jan 2013 04:13:45 +0000 (04:13 +0000)]
MFC r244719:
  Add the NO_SYNC_CACHE quirk for all Apple USB MSC devices, as they
  typically do not handle the SYNCHRONIZE_CACHE command - they either
  return an error or the firmware enters a reset loop.

Approved by: rstone (co-mentor)

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

11 years agoext2fs: cleanup the dinode structure.
pfg [Sun, 13 Jan 2013 01:26:50 +0000 (01:26 +0000)]
ext2fs: cleanup the dinode structure.

It was plagued with style errors and the offsets had been lost.
While here took the time to update the fields according to the
latest ext4 documentation.

Reviewed by: bde

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

11 years agoMFC r245005:
kib [Sun, 13 Jan 2013 00:58:02 +0000 (00:58 +0000)]
MFC r245005:
Allow to specify "cache" and "nocache" as an option for
mount_nullfs(8).

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

11 years agoMFC r245004:
kib [Sun, 13 Jan 2013 00:55:30 +0000 (00:55 +0000)]
MFC r245004:
Add the "nocache" nullfs mount option.

MFC r245033:
Fix reversed condition in the assertion.

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

11 years agoMFC r245262:
kib [Sun, 13 Jan 2013 00:46:39 +0000 (00:46 +0000)]
MFC r245262:
When nullfs mount is forcibly unmounted and nullfs vnode is reclaimed,
get back the leased write reference from the lower vnode.  There is no
other path which can correct v_writecount on the lowervp.

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

11 years agoMFC r245113:
mjg [Sun, 13 Jan 2013 00:32:07 +0000 (00:32 +0000)]
MFC r245113:
lockmgr: unlock interlock (if requested) when dealing with upgrade/downgrade
requests for LK_NOSHARE locks, just like for shared locks.

PR: kern/174969

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

11 years agoMFC r245236:
gjb [Sat, 12 Jan 2013 00:59:15 +0000 (00:59 +0000)]
MFC r245236:
 - Update where porters handbook lives.

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

11 years agoMFC r244925:
kib [Fri, 11 Jan 2013 05:39:17 +0000 (05:39 +0000)]
MFC r244925:
Add yet another flag for the vfs_write_resume_flags() to avoid calling
suspension cleanup handler after the suspend is lifted, and use it in
the ffs_snapshot() call to vfs_write_resume.

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

11 years agoMFC r244795:
kib [Fri, 11 Jan 2013 05:35:04 +0000 (05:35 +0000)]
MFC r244795:
Make it possible to atomically resume writes on the mount and account
the write start, by adding a variation of the vfs_write_resume(9) which
accepts flags.

Use the new function to prevent a deadlock between parallel suspension
and snapshotting a UFS mount.

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

11 years agoMFC r244787, 244796:
delphij [Fri, 11 Jan 2013 00:46:40 +0000 (00:46 +0000)]
MFC r244787, 244796:

Add DEVICE_IDENTIFY method for wbwd(4), required on most of recent
Supermicro motherboards.

Tested on X8STi and X8DTH boards.

Sponsored by: iXsystems, Inc.

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

11 years agoMFC r244781:
delphij [Fri, 11 Jan 2013 00:43:20 +0000 (00:43 +0000)]
MFC r244781:

Use DEVMETHOD_END.

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

11 years agoMFC 244756 + 244757:
delphij [Fri, 11 Jan 2013 00:40:03 +0000 (00:40 +0000)]
MFC 244756 + 244757:

Add Simplified Chinese catalogs.

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

11 years agoMFC r245012:
wblock [Thu, 10 Jan 2013 23:06:32 +0000 (23:06 +0000)]
MFC r245012:

Document the output of the show command.  Modified version of patch
provided by Bas Smeelen <b.smeelen@ose.nl>.  Use of 'gpart list'
suggested by by Andrey V. Elsukov <ae@FreeBSD.org>.

PR: docs/174270
Submitted by: Ronald F.Guilmette <rfg@tristatelogic.com>
Reviewed by: ae (block sizes)

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

11 years agoMFC r241731:
brooks [Thu, 10 Jan 2013 22:15:13 +0000 (22:15 +0000)]
MFC r241731:

Replace our version of the pwcache(3) API with NetBSD's implementation.

This adds two features:
 * uid_from_user() and gid_from_group() as the reverse of user_from_uid()
   and groups_from_gid().
 * pwcache_userdb() and pwcache_groupdb() which allow alternative lookup
   functions to be used.  For example lookups from passwd and group
   databases in a non-standard location.

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

11 years agoMFC r244750:
ae [Thu, 10 Jan 2013 17:06:24 +0000 (17:06 +0000)]
MFC r244750:
  Add net.link.stf.permit_rfc1918 sysctl variable. It can be used to allow
  the use of private IPv4 addresses with stf(4).

MFC r244752:
  Add an ability to set net.link.stf.permit_rfc1918 from the loader.

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

11 years agoMFC r245104:
kib [Wed, 9 Jan 2013 05:49:52 +0000 (05:49 +0000)]
MFC r245104:
Protect the p->p_pgrp dereference with the process lock.

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

11 years agoMFC r243981,243987:
erwin [Tue, 8 Jan 2013 09:05:09 +0000 (09:05 +0000)]
MFC r243981,243987:

  Update to 9.8.4-P1.

  New Features

  *  Elliptic Curve Digital Signature Algorithm keys and signatures in
     DNSSEC are now supported per RFC 6605. [RT #21918]

  Feature Changes

  *  Improves OpenSSL error logging [RT #29932]

  *  nslookup now returns a nonzero exit code when it is unable to get
     an answer.  [RT #29492]

  Other critical bug fixes are included.

  Approved by:  delphij (mentor)
  Sponsored by: DK Hostmaster A/S

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

11 years agoMFC r245034
erwin [Tue, 8 Jan 2013 08:58:07 +0000 (08:58 +0000)]
MFC r245034
Update with new IPv4 address for D root.

Approved by: delphij (mentor)

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

11 years agoMFC r244341:
yongari [Tue, 8 Jan 2013 05:34:17 +0000 (05:34 +0000)]
MFC r244341:
  Make sure to stop both TX and RX MACs in ale_stop_mac(). Previously
  it used to stop TX MAC only such that MAC reconfiguration after
  getting a link didn't work as expected.

  PR: kern/173652

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

11 years agoMFC r243686:
yongari [Tue, 8 Jan 2013 05:29:54 +0000 (05:29 +0000)]
MFC r243686:
  Add preliminary support for BCM57766 ASIC.
  While I'm here add BCM57762 device id which is found on Apple
  Thunderbolt ethernet.

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

11 years agoMFC r236899:
kevlo [Tue, 8 Jan 2013 04:43:20 +0000 (04:43 +0000)]
MFC r236899:

Fix unloading of libiconv module.

Previously it would either loop infinitely or exit with error leaking a lock.

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

11 years agoMFC r244551, r244580.
np [Tue, 8 Jan 2013 02:02:19 +0000 (02:02 +0000)]
MFC r244551, r244580.

r244551:
cxgbe(4): must hold a write-lock on the table while allocating an L2
entry for switching.

r244580:
cxgbe(4): Add support for the T440-LP-CR card.  This is the 4x10G low
profile card with a QSFP+ transceiver.

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

11 years agoMFC r244601:
mm [Mon, 7 Jan 2013 11:11:04 +0000 (11:11 +0000)]
MFC r244601:
Update contrib/xz to version 5.0.4

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

11 years agoI jumped the gun; bumping revision is wrong.
gjb [Mon, 7 Jan 2013 00:49:29 +0000 (00:49 +0000)]
I jumped the gun; bumping revision is wrong.

Submitted by: ae

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

11 years ago9.2-STABLE shall be called 9.2-STABLE.
gjb [Mon, 7 Jan 2013 00:35:06 +0000 (00:35 +0000)]
9.2-STABLE shall be called 9.2-STABLE.

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

11 years agoMFC 245107: Use full cluster domain name
peter [Sun, 6 Jan 2013 19:26:14 +0000 (19:26 +0000)]
MFC 245107: Use full cluster domain name

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

11 years agoMFC r244643:
kib [Sun, 6 Jan 2013 15:07:19 +0000 (15:07 +0000)]
MFC r244643:
Do not force a writer to the devfs file to drain the buffer writes.

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

11 years agoMFC: r244605
rmacklem [Sun, 6 Jan 2013 01:46:01 +0000 (01:46 +0000)]
MFC: r244605
Document the new gssd daemon options added by r244604.
This is a content change.

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

11 years agoMFC: r244604, r244638, r245014
rmacklem [Sun, 6 Jan 2013 01:41:14 +0000 (01:41 +0000)]
MFC: r244604, r244638, r245014
It was reported via email that some sshds create kerberos
credential cache files with names other than /tmp/krb5cc_<uid>.
The gssd daemon does not know how to find these credential caches.
This patch implements a new option "-s" that does a search for
credential cache files, using roughly the same algorithm as the
gssd daemon for Linux uses. The gssd behaviour is only changed
if the new "-s" option is specified.

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

11 years agoMFC: r244690
rmacklem [Sun, 6 Jan 2013 00:38:25 +0000 (00:38 +0000)]
MFC: r244690
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

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

11 years agoMFC: r244689
rmacklem [Sun, 6 Jan 2013 00:35:10 +0000 (00:35 +0000)]
MFC: r244689
Attempt to clarify that for ZFS, all file systems under
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.

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

11 years ago- Add IFT_L2VLAN (vlan(4)) support.
markj [Sat, 5 Jan 2013 22:55:08 +0000 (22:55 +0000)]
- Add IFT_L2VLAN (vlan(4)) support.
- Add a -P option to support PID files. When -a is specified
  /var/run/rarpd.pid is used by default, and when an interface is
  specified /var/run/rarpd.<ifname>.pid is used by default.

Approved by: hrs, emaste (co-mentor)

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

11 years agoMFC r244439:
ae [Sat, 5 Jan 2013 20:07:28 +0000 (20:07 +0000)]
MFC r244439:
  The selectroute function does own account of EHOSTUNREACH errors,
  no need to do it twice.

MFC r244440:
  Make dst_sa initialization only when it is actually needed.

MFC r244441:
  When we have some address to forward (e.g. it was specified with ipfw fwd),
  we should pass it as first argument into in6_selectroute_fib function to
  initiate new route lookup.

Sponsored by: Yandex LLC

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

11 years agoMFC r244348:
gabor [Sat, 5 Jan 2013 16:35:46 +0000 (16:35 +0000)]
MFC r244348:
  - Fix handling of .mps files

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

11 years agoMFC r244144
grehan [Fri, 4 Jan 2013 19:29:23 +0000 (19:29 +0000)]
MFC r244144

Implement an API to allow a hypervisor to save/restore
guest floating point state without having to know the
size of floating-point state.

Unstaticize fpurestore to allow the hypervisor to
save/restore guest state using fpusave/fpurestore
on the allocated FPU state area.

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

11 years agoMFC r243372:
jh [Fri, 4 Jan 2013 12:06:59 +0000 (12:06 +0000)]
MFC r243372:

Disallow attaching preloaded memory disks via ioctl.

- The feature is dangerous because the kernel code didn't check
  validity of the memory address provided from user space.
- It seems that mdconfig(8) never really supported attaching preloaded
  memory disks.
- Preloaded memory disks are automatically attached during md(4)
  initialization. Thus there shouldn't be much use for the feature.

PR: kern/169683

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

11 years agoMFC r234047 by bjk:
jh [Fri, 4 Jan 2013 11:57:27 +0000 (11:57 +0000)]
MFC r234047 by bjk:

Fix a couple of style issues. Tweak grammar and markup while here.

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

11 years agoMFC r244941:
pfg [Fri, 4 Jan 2013 04:03:21 +0000 (04:03 +0000)]
MFC r244941:

libedit: bind the correct command when using "bind -k".

"ed-argument-digit" (i. e. command 0) was incorrectly used
instead.
This bug comes from the original sources imported in 1994
and has been confirmed in upstream NetBSD.

Reported by: Yamagi Burmeister
Submitted by: Christoph Mallon

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

11 years agoMFC 244776, 244792:
pfg [Fri, 4 Jan 2013 03:54:05 +0000 (03:54 +0000)]
MFC 244776, 244792:

gcc: avoid generating negative values to DW_AT_byte_size.

There is a bug in gcc (GCC/35998) where dwarf reports
sizes of unsigned -1 (0xffffffff).

On NetBSD this generated a faulty CTF entry which then
caused a segfault in ctfmerge. The issue was worked
around in NetBSD's Dtrace but since the issue originated
in gcc, it seems reasonable to fix it here.

Thanks to Christoph Mallon for pointing out a correct fix.

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

11 years agoMFC: r244447
rmacklem [Thu, 3 Jan 2013 23:21:01 +0000 (23:21 +0000)]
MFC: r244447
Post r243965 the nfsd daemon will not start up for kernels
built without "options INET6". This patch fixes the problem.

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

11 years agoMFC: r244370
rmacklem [Thu, 3 Jan 2013 23:15:36 +0000 (23:15 +0000)]
MFC: r244370
Piete.Brooks at cl.cam.ac.uk reported via email a crash which was
caused by use of an invalid kgss_gssd_handle during an upcall to
the gssd daemon when it has exited. This patch seems to avoid the
crashes by holding a reference count on the kgss_gssd_handle until
the upcall is done. It also adds a new mutex kgss_gssd_lock used to
make manipulation of kgss_gssd_handle SMP safe.

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

11 years agoMFC: r244331
rmacklem [Thu, 3 Jan 2013 23:09:16 +0000 (23:09 +0000)]
MFC: r244331
Fix the gssd daemon so that it uses syslog() to report
an error instead of calling err() when it is daemonized,
so that the error gets logged.

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

11 years agoMFC r242697,r242704:
wblock [Thu, 3 Jan 2013 21:31:57 +0000 (21:31 +0000)]
MFC r242697,r242704:

r242697:
Add devd.conf(5) and devd(8) to SEE ALSO xrefs.  Give users a pointer to
seemingly mysterious actions that are not done by ifconfig itself, but
by devd triggering on events caused by ifconfig.

r242704:
Remove fifteen-year-old notes on media selection (suggested by simon@).
Add commas after "e.g." and "i.e.".

PR: docs/173405

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

11 years agoMFC: 234930
gnn [Thu, 3 Jan 2013 18:50:27 +0000 (18:50 +0000)]
MFC: 234930

Fix so that ,usr and ,os work correctly with fixed function (IAF)
counters.

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

11 years agoMFC r244405:
dumbbell [Wed, 2 Jan 2013 21:27:32 +0000 (21:27 +0000)]
MFC r244405:
psm: Support detection of Synaptics touchpad v7.5 and above

Starting with firmware v7.5, the "Read TouchPad Modes" ($01) and "Read
Capabilities" ($02) commands changed: previously constant bytes now
carry variable information.

We now compare those bytes to expected constants only for firmware prior
to v7.5.

Tested by: Zeus Panchenko <zeus@gnu.org.ua>

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

11 years agoMFC r244704, r244714 and r244715:
hselasky [Wed, 2 Jan 2013 07:33:19 +0000 (07:33 +0000)]
MFC r244704, r244714 and r244715:
Add vendor IDs for Broadcom USB dongles (BCM20702).

PR: kern/174707

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

11 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Tue, 1 Jan 2013 18:53:47 +0000 (18:53 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.6/cf tree.

     While here, update DNSBL link once again.

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

11 years agoMFC: Update import info based on recent experiences and sendmail 8.14.6 import.
gshapiro [Tue, 1 Jan 2013 18:43:37 +0000 (18:43 +0000)]
MFC: Update import info based on recent experiences and sendmail 8.14.6 import.

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

11 years agoMFC: Merge sendmail 8.14.6
gshapiro [Tue, 1 Jan 2013 18:26:12 +0000 (18:26 +0000)]
MFC: Merge sendmail 8.14.6

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

11 years agoMFC r244406:
delphij [Tue, 1 Jan 2013 07:02:33 +0000 (07:02 +0000)]
MFC r244406:

Update arcmsr(4) to vendor version 1.20.00.26, this adds
support for their new RAID adapter ARC-1214.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 Ching-Lung Huang <ching2048 areca com tw>

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

11 years agoMFC r244369 (jimharris):
delphij [Tue, 1 Jan 2013 07:00:42 +0000 (07:00 +0000)]
MFC r244369 (jimharris):

Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT to report nonexistent
LUNs for the virtual processor device.  This removes lots of CAM warnings,
and follows similar recent changes to tws(4) and twa(4) drivers.

Also fix case where CAM_REQ_CMP was getting OR'd with CAM_DEV_NOT_THERE
in the nonexistent LUN case, resulting in different CAM status (CAM_UA_TERMIO)
getting reported to CAM.  This issue existing previously, but was more subtle
because it changed CAM_SEL_TIMEOUT to CAM_CMD_TIMEOUT.

Sponsored by: Intel
Reported and tested by: Willem Jan Withagen <wjw@digiware.nl>

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

11 years agoShift to -STABLE now that -RELEASE is done.
kensmith [Mon, 31 Dec 2012 16:52:52 +0000 (16:52 +0000)]
Shift to -STABLE now that -RELEASE is done.

Approved by: re (implicit)

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

11 years agoMFC r244600:
dim [Mon, 31 Dec 2012 14:21:31 +0000 (14:21 +0000)]
MFC r244600:

Fix a bug in ld --gc-sections: it strips out .note sections, while it
should never do so.  This can cause global constructors and destructors
to not be executed at run-time, resulting in crashes and other strange
behaviour.

Reported by: rene

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

11 years agoMFC r244900:
bz [Mon, 31 Dec 2012 11:59:54 +0000 (11:59 +0000)]
MFC r244900:

  Happy New Year 2013!

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

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:48:17 +0000 (03:48 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

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

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:47:43 +0000 (03:47 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

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

11 years agoMFC 244523:
markj [Mon, 31 Dec 2012 03:34:52 +0000 (03:34 +0000)]
MFC 244523:
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244522: Don't reload syslogd after rotating sendmail.st.
markj [Mon, 31 Dec 2012 03:34:14 +0000 (03:34 +0000)]
MFC r244522: Don't reload syslogd after rotating sendmail.st.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244791:
gjb [Mon, 31 Dec 2012 00:51:57 +0000 (00:51 +0000)]
MFC r244791:
 - Fix wording nit.

PR: 174787
Submitted by: Cody Rank

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

11 years agoFix a missing word.
hrs [Sun, 30 Dec 2012 17:54:25 +0000 (17:54 +0000)]
Fix a missing word.

Spotted by: theraven

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

11 years agoFix version numbers.
hrs [Sun, 30 Dec 2012 16:41:17 +0000 (16:41 +0000)]
Fix version numbers.

PR: 174813

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

11 years agoFix entries of new C++ libraries and xlocale.
hrs [Sun, 30 Dec 2012 16:39:32 +0000 (16:39 +0000)]
Fix entries of new C++ libraries and xlocale.

Submitted by: theraven

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

11 years agoMFC: Add missing closing quote on commented out example
gshapiro [Sun, 30 Dec 2012 15:37:05 +0000 (15:37 +0000)]
MFC: Add missing closing quote on commented out example

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

11 years agoMFC r244855: Add directories which were wrongly created during
ume [Sun, 30 Dec 2012 08:16:05 +0000 (08:16 +0000)]
MFC r244855: Add directories which were wrongly created during
auditdistd addition.

Requested by: netchild

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

11 years agoMFC: Properly define true/false when defining __bool_true_false_are_defined
gshapiro [Sat, 29 Dec 2012 19:06:04 +0000 (19:06 +0000)]
MFC: Properly define true/false when defining __bool_true_false_are_defined
     for filters which pull in mfapi.h before stdbool.h.  Issue reported by
     Petr Rehor, maintainer of amavisd-milter port.

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

11 years agoMFC r241089, r243661 and r244252:
hselasky [Sat, 29 Dec 2012 12:29:29 +0000 (12:29 +0000)]
MFC r241089, r243661 and r244252:

Regenerate usb.conf

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

11 years agoMFC r244567:
hselasky [Sat, 29 Dec 2012 12:16:58 +0000 (12:16 +0000)]
MFC r244567:

Reduce stack usage in the USB audio driver by moving some large stack
elements to the USB audio softc structure.

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

11 years agoMFC r244491:
hselasky [Sat, 29 Dec 2012 12:13:38 +0000 (12:13 +0000)]
MFC r244491:
Add support for throttling UMASS.
Mostly useful for debugging purposes.

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

11 years agoMFC r244489:
hselasky [Sat, 29 Dec 2012 12:10:41 +0000 (12:10 +0000)]
MFC r244489:
Make sure we block recursion on TTY's inwakeup callback

Suggested by: davide

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

11 years agoMFC r244237:
kib [Sat, 29 Dec 2012 02:13:31 +0000 (02:13 +0000)]
MFC r244237:
Remove a special case for XEN.

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

11 years agoMFC: r244226
rmacklem [Fri, 28 Dec 2012 14:06:49 +0000 (14:06 +0000)]
MFC: r244226
The group list for a non-default export entry (a host/subnet one)
was being copied from the wrong place. This patch fixes that.
This could cause access failures for mapped users, when the group
permissions were needed.

PR: 147998
Submitted by: Christopher Key (cjk32@cam.ac.uk)

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

11 years agoMFC r244770: Fix location of /var/audit/dist and /var/audit/remote.
ume [Fri, 28 Dec 2012 10:58:03 +0000 (10:58 +0000)]
MFC r244770: Fix location of /var/audit/dist and /var/audit/remote.
Note that those who did installworld after r244398 should remove
wrongly created /var/dist and /var/remote.

Reviewed by: pjd

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

11 years agoMFC r244145:
mav [Wed, 26 Dec 2012 18:50:03 +0000 (18:50 +0000)]
MFC r244145:
Add quirks for AD1984A codec and Lenovo X300 laptop.

PR: kern/148741

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

11 years agoFix error message to be accurate for when ProgName is not "sysinstall" (oops?)
dteske [Tue, 25 Dec 2012 20:23:53 +0000 (20:23 +0000)]
Fix error message to be accurate for when ProgName is not "sysinstall" (oops?)

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

11 years agoMFC r244475:
pfg [Tue, 25 Dec 2012 17:39:37 +0000 (17:39 +0000)]
MFC r244475:
More constant renaming in preparation for newer features.

We also try to make better use of the fs flags instead of
trying adapt the code according to the fs structures. In
the case of subsecond timestamps and birthtime we now
check that the feature is explicitly enabled: previously
we only checked that the reserved space was available and
silently wrote them.

This approach is much safer, especially if the filesystem
happens to use embedded inodes or support EAs.

Discussed with:    Zheng Liu, bde

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

11 years agoFix another typo while we're here.
dteske [Tue, 25 Dec 2012 11:11:26 +0000 (11:11 +0000)]
Fix another typo while we're here.

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

11 years agoAdd Errata items:
hrs [Tue, 25 Dec 2012 06:07:34 +0000 (06:07 +0000)]
Add Errata items:
        - mfi(4) driver overflow issue,
        - typos in Installation Instructions.

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

11 years agoMFC r244104:
delphij [Tue, 25 Dec 2012 00:24:43 +0000 (00:24 +0000)]
MFC r244104:

In parse():

 - Only operate on copy, don't operate on source.
 - Eliminate home-rolled strsep().
 - Constify the parameter.

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

11 years agoFix various grammatical errors.
hrs [Mon, 24 Dec 2012 20:33:37 +0000 (20:33 +0000)]
Fix various grammatical errors.

Submitted by: bjk

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

11 years agoNote that filesystem modules must be recompiled.
kib [Mon, 24 Dec 2012 14:22:52 +0000 (14:22 +0000)]
Note that filesystem modules must be recompiled.

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

11 years agoMFC r242476:
kib [Mon, 24 Dec 2012 13:29:22 +0000 (13:29 +0000)]
MFC r242476:
The r241025 fixed the case when a binary, executed from nullfs mount,
was still possible to open for write from the lower filesystem.  There
is a symmetric situation where the binary could already has file
descriptors opened for write, but it can be executed from the nullfs
overlay.

Handle the issue by passing one v_writecount reference to the lower
vnode if nullfs vnode has non-zero v_writecount.

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

11 years agoMFC r241025:
kib [Mon, 24 Dec 2012 13:22:32 +0000 (13:22 +0000)]
MFC r241025:
Fix the mis-handling of the VV_TEXT on the nullfs vnodes.
Add a set of VOPs for the VV_TEXT query, set and clear operations,
which are correctly bypassed to lower vnode.

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

11 years agoMFC r243340:
kib [Mon, 24 Dec 2012 13:17:22 +0000 (13:17 +0000)]
MFC r243340:
Remove the check and panic for an impossible condition.

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