]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r235211:
gjb [Fri, 18 May 2012 00:00:46 +0000 (00:00 +0000)]
MFC r235211:

General mdoc(7) and typo fixes.

PR: 167696

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

11 years agoMFC 235563:
jhb [Thu, 17 May 2012 20:27:24 +0000 (20:27 +0000)]
MFC 235563:
Don't expose i386-only ptrace constants on amd64.  This broke gdb with
libthread_db on amd64.

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

11 years agoforgot two files in the previous commit...
luigi [Thu, 17 May 2012 20:04:24 +0000 (20:04 +0000)]
forgot two files in the previous commit...

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

11 years agoPartial MFC of 232520:
jhb [Thu, 17 May 2012 19:01:13 +0000 (19:01 +0000)]
Partial MFC of 232520:
For amd64 PT_GETXSTATE and PT_SETXSTATE have been redefined to match the
i386 values. The old values are still supported but should no longer be
used.

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

11 years agoMFC 235453:
jpaetzel [Thu, 17 May 2012 15:22:08 +0000 (15:22 +0000)]
MFC 235453:

Style fixes.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

11 years agoMFC: 235452
jpaetzel [Thu, 17 May 2012 15:20:21 +0000 (15:20 +0000)]
MFC: 235452

Set the MBR partition to active when doing a full disk MBR.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

11 years agoMFC: netmap support for the 're' driver
luigi [Thu, 17 May 2012 15:03:16 +0000 (15:03 +0000)]
MFC: netmap support for the 're' driver

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

11 years agoMFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
luigi [Thu, 17 May 2012 15:02:51 +0000 (15:02 +0000)]
MFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
drivers (re/ will come in the next commit)

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

11 years agofix a typo in a comment
luigi [Thu, 17 May 2012 14:37:01 +0000 (14:37 +0000)]
fix a typo in a comment

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

11 years agoMFC r235133:
dim [Thu, 17 May 2012 10:36:32 +0000 (10:36 +0000)]
MFC r235133:

Revert r234656, and apply a proper fix for binutils PR 10474, which
caused linking clang on 32-bit PowerPC to fail with "relocation
truncated to fit: R_PPC_REL24" errors.

Original diffs (relicensed under GPLv2 with permission from author):
http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd
http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb

Tested by: andreast

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

11 years agoMFC r234785:
dim [Thu, 17 May 2012 10:25:34 +0000 (10:25 +0000)]
MFC r234785:

Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).

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

11 years agoMFC r235122:
jlh [Thu, 17 May 2012 07:59:15 +0000 (07:59 +0000)]
MFC r235122:
  Introduce the ${SHLIB_LDSCRIPT} variable to have an ld(1) script
  instead of a symlink for .so files.

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

12 years agoMFC of the ixgbe driver. Including revisions:
jfv [Thu, 17 May 2012 00:06:54 +0000 (00:06 +0000)]
MFC of the ixgbe driver. Including revisions:
228276,229767,229939,230329,
230572,230775,230790,231796,
232238,234137,234229,234620

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

12 years agoMFC of the e1000 drivers: revisions include
jfv [Wed, 16 May 2012 22:22:52 +0000 (22:22 +0000)]
MFC of the e1000 drivers: revisions include
227309,228281,228386,228387,228393,228405,
228415,228788,228803,229606,229767,229939,
230023,230024,230742,231796,232238,233708,
234154,234665,235256

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

12 years agoMFC r235318, r235321
sbruno [Wed, 16 May 2012 22:19:22 +0000 (22:19 +0000)]
MFC r235318, r235321

Fix inappropriate data type for two bus_dmamap_t variables that were causing
PAE to insta-panic on startup.  Remove one unused variable that was
commented out.

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

12 years agoMFC 234152:
jhb [Wed, 16 May 2012 21:06:56 +0000 (21:06 +0000)]
MFC 234152:
Allow device_busy() and device_unbusy() to be invoked while a device is
being attached.  This is implemented by adding a new DS_ATTACHING state
while a device's DEVICE_ATTACH() method is being invoked.  A driver is
required to not fail an attach of a busy device.  The device's state will
be promoted to DS_BUSY rather than DS_ACTIVE() if the device was marked
busy during DEVICE_ATTACH()

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

12 years agoMFC r235142:
jlh [Wed, 16 May 2012 20:31:37 +0000 (20:31 +0000)]
MFC r235142:
  Always define LD_32_PRELOAD so it works for 32 bits binaries on
  64 bits platforms.  Let rtld(1) decide if it needs to honor it
  or not.

  While here, fix a small bug in error reporting when asprintf(3)
  returns an error.

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

12 years agoMFC r234245:
delphij [Wed, 16 May 2012 20:05:21 +0000 (20:05 +0000)]
MFC r234245:

Eliminate an unused parameter of static method igmp_stats_live_old().

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

12 years agoMFC 233709,233781,233793:
jhb [Wed, 16 May 2012 20:04:45 +0000 (20:04 +0000)]
MFC 233709,233781,233793:
- Don't malloc() new MCA records for machine checks logged due to a
  CMCI or MC# exception.  Instead, use a pre-allocated pool of records.
  When a CMCI or MC# exception fires, schedule a task to refill the pool.
  The pool is sized to hold at least one record per available machine
  bank, and one record per CPU. This should handle the case of all CPUs
  triggering a single bank at once as well as the case a single CPU
  triggering all of its banks.  The periodic scans still use malloc()
  since they are run from a safe context.
- Make machine check exception logging more readable.  On newer Intel systems,
  an uncorrected ECC error tends to fire on all CPUs in a package
  simultaneously and the current printf hacks are not sufficient to make
  the messages legible.  Instead, use the existing mca_lock spinlock to
  serialize calls to mca_log() and change the machine check code to panic
  directly when an unrecoverable error is encoutered rather than falling
  back to a trap_fatal() call in trap() (which adds nearly a screen-full of
  logging messages that aren't useful for machine checks).

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

12 years agoMFC r234244:
delphij [Wed, 16 May 2012 20:00:33 +0000 (20:00 +0000)]
MFC r234244:

The scandir(3) function expects fourth parameter, compar, be in type of:

int (*compar)(const struct dirent **, const struct dirent **)

The current code defines sortq() to accept two void *, then cast them
to const struct dirent **.  Because the code does not really need this
cast, we can eliminate the casts by changing the function prototype
to match scandir(3) expectation.

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

12 years agoMFC: r234957
brueffer [Wed, 16 May 2012 19:25:50 +0000 (19:25 +0000)]
MFC: r234957

Check vplabel for NULL before dereferencing it.  Fixes a panic
when running atop with MAC_MLS enabled.

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

12 years agoMFC r235201 r235419:
eadler [Wed, 16 May 2012 00:37:37 +0000 (00:37 +0000)]
MFC r235201 r235419:
 Add missing period at the end of the error message

Approved by: cperciva (implicit)

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

12 years agoMFC r235043:
jimharris [Wed, 16 May 2012 00:10:42 +0000 (00:10 +0000)]
MFC r235043:

Fix off-by-one error in sati_inquiry_block_device_translate_data().  Bug would
result in INQUIRY VPD 0x81 to SATA devices to return only 63 bytes of data
instead of 64 during SCSI/ATA translation.

Sponsored by: Intel

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

12 years agoMFC 229538:
jpaetzel [Tue, 15 May 2012 21:06:24 +0000 (21:06 +0000)]
MFC 229538:

mkulzma used to create lzma compressed images, just like mkuzip do.

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

12 years agoMFC 229537
jpaetzel [Tue, 15 May 2012 20:49:25 +0000 (20:49 +0000)]
MFC 229537

GEOM_UNCOMPRESS module, can be used with uzip images and with new ulzma images.

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

12 years agoMFC 229533:
jpaetzel [Tue, 15 May 2012 20:48:09 +0000 (20:48 +0000)]
MFC 229533:

Update contrib/xz-embedded to build with new GEOM_UNCOMPRESS module.

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

12 years agoMFC 229211:
jpaetzel [Tue, 15 May 2012 20:47:00 +0000 (20:47 +0000)]
MFC 229211:

Initial copy of xz-embedded to sys/contrib/.

The upcoming geom_compress module (a read-only gzip/ulzma translation layer,
similar to what geom_uzip does) will leverage parts of this.

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

12 years agoMFC r230643: stop_scheduler -> td_stopsched
avg [Tue, 15 May 2012 17:21:46 +0000 (17:21 +0000)]
MFC r230643: stop_scheduler -> td_stopsched

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

12 years agoMFC r235143:
kib [Tue, 15 May 2012 09:09:14 +0000 (09:09 +0000)]
MFC r235143:
Plug a leak.

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

12 years agoMFC r234489:
jh [Mon, 14 May 2012 15:46:37 +0000 (15:46 +0000)]
MFC r234489:

The value of flags matching VNOVAL can't be supported. Return EOPNOTSUPP
from setfflags() in this case. This fixes the return value of
chflags(path, -1).

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

12 years agoMFC: 235008
jpaetzel [Mon, 14 May 2012 15:20:39 +0000 (15:20 +0000)]
MFC: 235008

Add bootcamp bootloader stamp.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC: 235006
jpaetzel [Mon, 14 May 2012 15:18:47 +0000 (15:18 +0000)]
MFC: 235006

Add powerpc / powerpc64 support to pc-sysinstall. This patch will
autodetect if on powerpc and use the APM gpart GEOM class
automaticaly.  At this time support for full disk installation is
the only supported scheme.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC: 235005
jpaetzel [Mon, 14 May 2012 15:15:13 +0000 (15:15 +0000)]
MFC: 235005

Use a unique zpool name during install, in the case of having another
PC-BSD / FreeBSD zpool on the system for another install.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC 234990:
jpaetzel [Mon, 14 May 2012 15:13:14 +0000 (15:13 +0000)]
MFC 234990:

Fix some issues creaing zpool mirror / raidz1(2)(3) devices.
Fix issues stamping boot on other ZFS drives, now you can boot after removing
mirror drive.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC 234987:
jpaetzel [Mon, 14 May 2012 15:08:45 +0000 (15:08 +0000)]
MFC 234987:

Add the ability to configure multiple interfaces

Submitted by: glarkin
Obtained from: PC-BSD

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

12 years agoMFC: 234985
jpaetzel [Mon, 14 May 2012 15:06:04 +0000 (15:06 +0000)]
MFC: 234985

Fix parsing values which contain multiple "=" signs.

Submitted by: glarkin
Sponsored by: iXsystems

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

12 years agoMFC r228687:
pluknet [Mon, 14 May 2012 13:49:06 +0000 (13:49 +0000)]
MFC r228687:

Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.

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

12 years agoMFC r235283:
tuexen [Mon, 14 May 2012 09:54:16 +0000 (09:54 +0000)]
MFC r235283:
Fix a bug in the handling of association reset request.

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

12 years agoMFC r235282:
tuexen [Mon, 14 May 2012 09:51:43 +0000 (09:51 +0000)]
MFC r235282:
Only provide the supported features in the SCTP_ASSOC_CHANGE notif
if the state is SCTP_COMM_UP or SCTP_RESTART.
While there, do some cleanups.

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

12 years agoMFC r235280:
tuexen [Mon, 14 May 2012 09:48:39 +0000 (09:48 +0000)]
MFC r235280:
Remove a constant which is only used on non-FreeBSD platform.
(The actual code for the socket option handling has been #ifdefed
out forever...)

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

12 years agoMFC r235119:
yongari [Mon, 14 May 2012 04:21:27 +0000 (04:21 +0000)]
MFC r235119:
  Restore jumbo frame configuration which was broken in r218423.

  Submitted by: Andrey Zonov <andrey <> zonov dot org > (initial version)
  Tested by: Andrey Zonov <andrey <> zonov dot org >

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

12 years agoMFC: r235255
marius [Mon, 14 May 2012 03:11:07 +0000 (03:11 +0000)]
MFC: r235255

- Change the module order of these MAC drivers to be last so they are
  deterministically handled after the corresponding PHY drivers when
  loaded as modules. Otherwise, when these MAC/PHY driver pairs are
  compiled into a single module probing the PHY driver may fail. This
  makes r151438 and r226154 actually work. [1]
  Reported and tested by: yongari (fxp(4))
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Submitted by: jhb [1]

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

12 years agoMFC r229854: enable stop_scheduler_on_panic by default
avg [Sun, 13 May 2012 17:32:12 +0000 (17:32 +0000)]
MFC r229854: enable stop_scheduler_on_panic by default

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

12 years agoMFC r228765: ukbd: adjust for SCHEDULER_STOPPED() and overhaul locking code
avg [Sun, 13 May 2012 17:15:30 +0000 (17:15 +0000)]
MFC r228765: ukbd: adjust for SCHEDULER_STOPPED() and overhaul locking code

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

12 years agoMFC r228760: adapt usb transfer code for SCHEDULER_STOPPED
avg [Sun, 13 May 2012 17:14:26 +0000 (17:14 +0000)]
MFC r228760: adapt usb transfer code for SCHEDULER_STOPPED

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

12 years agoMFC r228767: sc_cngrab: switch to console vty when possible
avg [Sun, 13 May 2012 17:13:21 +0000 (17:13 +0000)]
MFC r228767: sc_cngrab: switch to console vty when possible

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

12 years agoMFC r228644: syscons: provide a first iteration of cngrab/cnungrab
avg [Sun, 13 May 2012 17:11:49 +0000 (17:11 +0000)]
MFC r228644: syscons: provide a first iteration of cngrab/cnungrab
implementation

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

12 years agoMFC r228633,228634,228638,228642,228643: introduce cngets,
avg [Sun, 13 May 2012 17:10:38 +0000 (17:10 +0000)]
MFC r228633,228634,228638,228642,228643: introduce cngets,
a method for kernel to read a string from console

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

12 years agoMFC r228632: introduce cngrab/cnungrab stub calls in some places where they
avg [Sun, 13 May 2012 17:05:54 +0000 (17:05 +0000)]
MFC r228632: introduce cngrab/cnungrab stub calls in some places where they
make sense

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

12 years agoMFC r228631: kern cons: introduce infrastructure for console grabbing by
avg [Sun, 13 May 2012 17:04:46 +0000 (17:04 +0000)]
MFC r228631: kern cons: introduce infrastructure for console grabbing by
kernel

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

12 years agoMFC r228424,228448: panic: add a switch and infrastructure for stopping
avg [Sun, 13 May 2012 17:01:32 +0000 (17:01 +0000)]
MFC r228424,228448: panic: add a switch and infrastructure for stopping
other CPUs in SMP case

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

12 years agoRegenerate
kib [Sun, 13 May 2012 14:02:40 +0000 (14:02 +0000)]
Regenerate

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

12 years agoMFC r234782:
kib [Sun, 13 May 2012 13:57:53 +0000 (13:57 +0000)]
MFC r234782:
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

MFC r235152 (by imp):
Make is part of the bootstrap path, so we need to guard against this
not being defined.  Otherwise we don't make a new make when the old
make is incompatible.

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

12 years agoMFC: r234742
rmacklem [Sun, 13 May 2012 13:35:50 +0000 (13:35 +0000)]
MFC: r234742
It was reported via email that some non-FreeBSD NFS servers
do not include file attributes in the reply to an NFS create RPC
under certain circumstances.
This resulted in a vnode of type VNON that was not usable.
This patch adds an NFS getattr RPC to nfs_create() for this case,
to fix the problem. It was tested by the person that reported
the problem and confirmed to fix this case for their server.

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

12 years agoMFC r234840:
kib [Sun, 13 May 2012 12:50:42 +0000 (12:50 +0000)]
MFC r234840:
Split the symlook_obj1 into a loop iterating over the ELF object symbol
hash elements, and a helper matched_symbol() which match the given hash
entry and request, performing needed type and version checks.

MFC r234841:
Add GNU hash support for rtld.

MFC r235054:
Work around a situation where symlook_obj() could be called for the
object for which digest_dynamic1() was not done yet. Just return
EINVAL and do not try to dereference NULL buckets hash array.

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

12 years agoMFC 235210
sbruno [Sun, 13 May 2012 10:31:08 +0000 (10:31 +0000)]
MFC 235210

  Modify the binding of queues to attach to as many CPUs
  as possible when using more than one igb(4) adapter.  This
  means that queues will not be bound to the same CPUs if
  there are more CPUs availble.

  This is only applicable to a system that has multiple interfaces.

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

12 years agoMFC r235069:
mav [Sun, 13 May 2012 01:59:50 +0000 (01:59 +0000)]
MFC r235069:
Fix `gmultipath configure` for big-endian machines.

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

12 years agoMFC r235209 r235227:
eadler [Sun, 13 May 2012 01:29:49 +0000 (01:29 +0000)]
MFC r235209 r235227:
Add a few new tips and update some old ones to more modern commands

Approved by: cperciva (implicit)

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

12 years agoMFC r234711, r234756-234759, r234786:
bschmidt [Sat, 12 May 2012 08:22:41 +0000 (08:22 +0000)]
MFC r234711, r234756-234759, r234786:

r234711:
fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running. [1]

r234756-234758:
- Follow up r234711 and do same for the supplicant, one file/option per
  line. While here merge the options which are always enabled.
- enable EAP_GTC and EAP_OTP to match upstream's default configuration
- not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
  the defines too

r234759:
Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

r234786:
Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

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

12 years agoMFC r232496:
eadler [Sat, 12 May 2012 00:55:02 +0000 (00:55 +0000)]
MFC r232496:
Fix a variety of grammar nits and errors

Approved by: cperciva (implicit)

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

12 years agoMFC r235208:
eadler [Sat, 12 May 2012 00:49:14 +0000 (00:49 +0000)]
MFC r235208:
make it easier for users used to a VCS that allows up to be a shortcut
for update.

Approved by: cperciva (implicit)

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

12 years agoMFC r235205:
eadler [Sat, 12 May 2012 00:47:21 +0000 (00:47 +0000)]
MFC r235205:
Document the -c option in --help output

Approved by: cperciva (implicit)

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

12 years agoMFC r235203:
eadler [Sat, 12 May 2012 00:43:14 +0000 (00:43 +0000)]
MFC r235203:
fix spacing in mtree file

Approved by: cperciva (implicit)

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

12 years agoMFC r235202:
eadler [Sat, 12 May 2012 00:40:44 +0000 (00:40 +0000)]
MFC r235202:
Remove reference to non-existent FreeBSD Security Architecture

Approved by: cperciva (implicit)

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

12 years agoMFC r233961,234074,234105,234564,234723,234989,235231-235232:
attilio [Fri, 11 May 2012 04:10:23 +0000 (04:10 +0000)]
MFC r233961,234074,234105,234564,234723,234989,235231-235232:
- Fix a bug in x86 and sparc64 where the intr cpu mask does only
  enables the BSP.
- Remove the SMP constraints for intr_add_cpu

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

12 years agoMFC r235033:
ae [Fri, 11 May 2012 04:02:17 +0000 (04:02 +0000)]
MFC r235033:
  Don't ignore start offset value when user specifies it together
  with alignment.

  PR: bin/167567
  Tested by: Warren Block

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

12 years agoMFC r234138:
emaste [Fri, 11 May 2012 01:24:16 +0000 (01:24 +0000)]
MFC r234138:

  Support percent-encoded user and password

  RFC 1738 specifies that any ":", "@", or "/" within a user name or
  password in a URL is percent-encoded, to avoid ambiguity with the use
  of those characters as URL component separators.

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

12 years agoAdded forgotten r234867,234944 mergeinfo
daichi [Thu, 10 May 2012 22:36:01 +0000 (22:36 +0000)]
Added forgotten r234867,234944 mergeinfo

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

12 years agoMFC: 234867 and 234944
daichi [Thu, 10 May 2012 20:35:50 +0000 (20:35 +0000)]
MFC: 234867 and 234944

- fixed a vnode lock hang-up issue.
- fixed an incorrect lock status issue.
- fixed an incorrect lock issue of unionfs root vnode removed.
  (pointed out by keith)
- fixed an infinity loop issue.
  (pointed out by dumbbell)
- changed to do LK_RELEASE expressly when unlocked.
- fixed a unionfs_readdir math issue

Submitted by: ozawa@ongs.co.jp, Matthew Fleming <mfleming@isilon.com>

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

12 years agoMFC r234981:
kib [Thu, 10 May 2012 10:16:21 +0000 (10:16 +0000)]
MFC r234981:
Move the code to call the callout callback into the helper function
softclock_call_cc(). While there, move some common code to callout_cc_del().

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

12 years agoMFC r234952:
kib [Thu, 10 May 2012 10:02:56 +0000 (10:02 +0000)]
MFC r234952:
Mark the migrating callouts with CALLOUT_DFRMIGRATION flag. The flag is
cleared by callout_stop_safe() when the function detects a migration,
besides returning the success. The softclock() rechecks the flag for
migrating callout and cancels its execution if the flag was cleared
meantime.

PR: misc/166340

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

12 years agoMFC r235099:
kib [Wed, 9 May 2012 14:28:21 +0000 (14:28 +0000)]
MFC r235099:
Add definition for the -z nodefaultlib flag.

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

12 years agoMFC r235091:
tuexen [Wed, 9 May 2012 14:27:42 +0000 (14:27 +0000)]
MFC r235091:
Address clang warnings.

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

12 years agoMFC r235081:
tuexen [Wed, 9 May 2012 14:25:15 +0000 (14:25 +0000)]
MFC r235081:
Add support for the sac_info field in struct sctp_assoc_change
as required by RFC 6458.

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

12 years agoMFC r235077:
tuexen [Wed, 9 May 2012 14:19:06 +0000 (14:19 +0000)]
MFC r235077:
Remove debug code.

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

12 years agoMFC r235075:
tuexen [Wed, 9 May 2012 14:15:59 +0000 (14:15 +0000)]
MFC r235075:
Add support for SCTP_SEND_FAILED_EVENT as required by RFC 6458.

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

12 years agoMFC r235066:
tuexen [Wed, 9 May 2012 14:12:08 +0000 (14:12 +0000)]
MFC r235066:
Provide the flags in the SCTP stream reconfig related notification
as specified in RFC 6525.

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

12 years agoMFC r235064:
tuexen [Wed, 9 May 2012 14:07:12 +0000 (14:07 +0000)]
MFC r235064:
Honor SCTP_ENABLE_STREAM_RESET socket option when processing incoming
requests. Fix also the provided result in the response and use names
as specified in RFC 6525.

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

12 years agoMFC r235057:
tuexen [Wed, 9 May 2012 14:03:50 +0000 (14:03 +0000)]
MFC r235057:
Do error checking for the SCTP_RESET_STREAMS, SCTP_RESET_ASSOC,
and SCTP_ADD_STREAMS socket options as specified by RFC 6525.

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

12 years agoMFC r235021:
tuexen [Wed, 9 May 2012 14:00:58 +0000 (14:00 +0000)]
MFC r235021:
Add support for the SCTP_ENABLE_STREAM_RESET socket option to
getsockopt(). This improves the support of RFC 6525.

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

12 years agoMFC r235009:
tuexen [Wed, 9 May 2012 13:57:11 +0000 (13:57 +0000)]
MFC r235009:
Add support for SCTP_STREAM_CHANGE_EVENT, SCTP_ASSOC_RESET_EVENT as
required by RFC 6525. This also fixes SCTP_STREAM_RESET_EVENT.

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

12 years agoMFC r234997:
tuexen [Wed, 9 May 2012 13:52:24 +0000 (13:52 +0000)]
MFC r234997:
Remove debug output.

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

12 years agoMFC r234996:
tuexen [Wed, 9 May 2012 13:47:21 +0000 (13:47 +0000)]
MFC r234996:
Call panic() only under INVARIANTS.

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

12 years agoMFC r234995:
tuexen [Wed, 9 May 2012 13:42:52 +0000 (13:42 +0000)]
MFC r234995:
Use SCTP_PRINTF() instead of printf() in all SCTP sources.

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

12 years agoMFC: r234932
pho [Wed, 9 May 2012 08:18:22 +0000 (08:18 +0000)]
MFC: r234932

Added D_TRACKCLOSE to sndstat_cdevsw to fix the situation when
another process is in open() or stat() for the device node, then
close() from the owning process does not result in cdevsw close
method call. This fixes the pemanent "Device busy" seen.

Changed the sndstat_lock from mutex to sx.  This allows to extend
the region covered by the lock, to include the uiomove() call in
sndstat_read() and bufptr increment. This fixes the "panic:
sbuf_put_byte called with finished or corrupt sbuf" seen.

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

12 years agoMFC r234935:
eadler [Wed, 9 May 2012 00:56:51 +0000 (00:56 +0000)]
MFC r234935:
Prefer the use of csup to cvsup when talking about the binary.

PR: docs/167459
Approved by: cperciva (implicit)

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

12 years agoMFC r234772:
jlh [Tue, 8 May 2012 16:36:32 +0000 (16:36 +0000)]
MFC r234772:
  Import stdbuf(1) and the shared library it relies on.
  This tool changes the default buffering behaviour of standard
  stdio streams.

  It only works on dynamic binaries.  To make it work for static
  ones it would require cluttering stdio because there no single
  entry point.

  PR: 166660
  Reviewed by: current@, jhb
  Approved by: kib (mentor)
  MFC after: 1 week

MFC r234773:
  Fix small documentation mistakes.

  Submitted by: brueffer
  Approved by: kib (mentor)

MFC r234779:
  Use standard getopt(3) error message.

  Submitted by: jilles
  Approved by: kib (mentor)

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

12 years agoMFC r235014: Rebuild fix and LBA calculation fix for ThunderBolt
ambrisko [Mon, 7 May 2012 19:17:09 +0000 (19:17 +0000)]
MFC r235014: Rebuild fix and LBA calculation fix for ThunderBolt
based cards.

MFC r235016: Some style improvements.

MFC r235040: Fix the returns in mfi_tbolt_sync_map_info that I added.

PR: 167226

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

12 years agoMFC r234104:
jh [Mon, 7 May 2012 15:30:53 +0000 (15:30 +0000)]
MFC r234104:

Apply changes from r233787 to ext2fs:

- Use more natural ip->i_flags instead of vap->va_flags in the final
  flags check.
- Style improvements.

No functional change intended.

MFC r234139:

Restore the blank line incorrectly removed in r234104.

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

12 years agoMFC r234131:
eadler [Mon, 7 May 2012 12:19:49 +0000 (12:19 +0000)]
MFC r234131:
Return EBADF instead of EMFILE from dup2 when the second argument is
outside the range of valid file descriptors

PR: kern/164970
Approved by: cperciva (implicit)

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

12 years agoMFC r234951:
tuexen [Mon, 7 May 2012 10:50:26 +0000 (10:50 +0000)]
MFC r234951:

Fix another RFC 6458 issue. Spotted by Irene Ruengeler.

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

12 years agoMFC r234832:
tuexen [Mon, 7 May 2012 10:46:26 +0000 (10:46 +0000)]
MFC r234832:
Add support for missing gauth_number_of_chunks field. This Bug was
found by Irene Ruengeler.

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

12 years agoMFC r234313 r234315 r234322 r234351 r234870
bapt [Sun, 6 May 2012 22:50:07 +0000 (22:50 +0000)]
MFC r234313 r234315 r234322 r234351 r234870

bootstrap tool for pkgng.
it respects PACKAGESITE, PACKAGEROOT, and a new environment variable ABI (if a
user want to use a different API from the base one for its packages)
it has no man page on purpose to avoid hidding the pkg(8) man page from the
pkgng package.
for now uses pkgbeta.FreeBSD.org as default mirror to find its package
it respects MK_PKGTOOLS

Approved by: des (mentor)

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

12 years agoMFC r233113:
bz [Sun, 6 May 2012 20:26:22 +0000 (20:26 +0000)]
MFC r233113:

 Hide kernel option ROUTETABLES evaluations in the implementation
 rather than the header file.  With this also move RT_MAXFIBS and
 RT_NUMFIBS into the implemantion to avoid further usage in other
 code. rt_numfibs is all that should be needed.

 This allows users to change the number of FIBs from 1..RT_MAXFIBS(16)
 dynamically using the tunable without the need to change the kernel
 config for the maximum anymore.  This means that the multi-FIB
 feature is now fully available with GENERIC kernels.
 The kernel option ROUTETABLES can still be used to set the default
 numbers of FIBs in absence of the tunable.

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

12 years agoMFC r234601:
mav [Sun, 6 May 2012 15:55:01 +0000 (15:55 +0000)]
MFC r234601:
Add sos@ copyrights to RAID metadata modules, respecting his efforts in
decoding metadata formats in ataraid(4) code.

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

12 years agoMFC r234820:
eadler [Sun, 6 May 2012 14:22:30 +0000 (14:22 +0000)]
MFC r234820:
 pread(2) might fail with EBUSY, so document it

PR: docs/167201
Approved by: cperciva (implicit)

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

12 years agoMFC r234821:
eadler [Sun, 6 May 2012 14:15:32 +0000 (14:15 +0000)]
MFC r234821:
Add support for:
Olympus FE-210 camera
LG UP3S MP3 player
Laser MP3-2GA13 MP3

PR: usb/119201
Approved by: cperciva (implicit)

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

12 years agoMFC r234819:
eadler [Sun, 6 May 2012 14:10:56 +0000 (14:10 +0000)]
MFC r234819:
Allow users of gprof to get per run output files (using the pid)

PR: bin/99800
Approved by: cperciva (implicit)

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

12 years agoMFC r230993,230994,230995,230999,231003,231026,231046,231149,231908:
nwhitehorn [Sat, 5 May 2012 16:41:17 +0000 (16:41 +0000)]
MFC r230993,230994,230995,230999,231003,231026,231046,231149,231908:
Reduce code duplication in Open Firmware based PCI bus drivers, implement
infrastructure for NEW_PCIB, and switch to using NEW_PCIB by default.

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

12 years agoMFC r234572
melifaro [Sat, 5 May 2012 11:33:48 +0000 (11:33 +0000)]
MFC r234572

Do not require radix write lock to be held while dumping route table
via sysctl(4) interface. This permits router not to stop forwarding
packets while route table is being written to user-supplied buffer.

Reported by:        Pawel Tyll <ptyll@nitronet.pl>
Approved by:        kib(mentor)

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