]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC: r225901
marius [Sat, 28 Jan 2012 23:37:04 +0000 (23:37 +0000)]
MFC: r225901

Remove obsolete macros.

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

12 years agoMFC: r225900
marius [Sat, 28 Jan 2012 23:35:24 +0000 (23:35 +0000)]
MFC: r225900

Nuke SUN4U #ifdef's which with the demise of sun4v no longer serve any
purpose.

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

12 years agoMFC: r225899
marius [Sat, 28 Jan 2012 23:33:50 +0000 (23:33 +0000)]
MFC: r225899

Also allocate space for the PIL counters. Given that no machine actually
uses IV_MAX interrupt vectors this wasn't a problem in practice though.

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

12 years agoMFC: r225891
marius [Sat, 28 Jan 2012 23:26:50 +0000 (23:26 +0000)]
MFC: r225891

Re-reading the Schizo errata suggests that it's actually tolerable to
also use the streaming buffer of pre version 5/revision 2.3 hardware as
long as we stay away from context flushes (which iommu(4) so far doesn't
take advantage of). OpenSolaris does the same.

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

12 years agoMFC: r225890
marius [Sat, 28 Jan 2012 23:25:28 +0000 (23:25 +0000)]
MFC: r225890

- Add protective parentheses to macros as far as possible.
- Move {r,w,}mb() to the top of this file where they live on most of the
  other architectures.

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

12 years agoMFC: r225889, r228222
marius [Sat, 28 Jan 2012 23:24:03 +0000 (23:24 +0000)]
MFC: r225889, r228222

In total store which we use for running the kernel and all of the userland
atomic operations behave as if they were followed by a CPU memory barrier
so there's no need to include ones in the acquire variants of atomic(9) and
it's sufficient to just use include compiler memory barriers to satisfy
the requirements of atomic(9). Removing the CPU memory barriers results in
a small performance improvement, specifically this is sufficient to
compensate the performance loss seen in the worldstone benchmark seen when
using SCHED_ULE instead of SCHED_4BSD.
This change is inspired by Linux even more radically doing the equivalent
thing some time ago.
Thanks go to Peter Jeremy for additional testing.

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

12 years agoMFC: r225888
marius [Sat, 28 Jan 2012 23:17:58 +0000 (23:17 +0000)]
MFC: r225888

Add a comment about why contrary to what once would think running all of
userland with total store order actually is appropriate.

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

12 years agoMFC: r225887
marius [Sat, 28 Jan 2012 23:16:47 +0000 (23:16 +0000)]
MFC: r225887

Use the extended integer condition code when comparing 64-bit values. Given
that ATOMIC_INC_LONG currently is unused this happened to not be fatal.

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

12 years agoMFC: r225886
marius [Sat, 28 Jan 2012 23:15:02 +0000 (23:15 +0000)]
MFC: r225886

- Right-justify backslashes as suggested by style(9).
- Rename ATOMIC_INC_ULONG to ATOMIC_INC_LONG in order to be consistent with
  the names of the other macros in this file an adjust accordingly.

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

12 years agoMFC: r228022, r228026
marius [Sat, 28 Jan 2012 23:12:55 +0000 (23:12 +0000)]
MFC: r228022, r228026

For sparc64 also adjust the geometry of da(4) driven disks to not overflow
the 16-bit cylinders field of the VTOC8 disk label (at around 502GB). The
geometry chosen for disks above that limit allows to use disks up to 2TB,
which is the limit of the extended VTOC8 format. The geometry used for
disks smaller than the 16-bit cylinders limit stays the same as used by
cam_calc_geometry(9) for extended translation.
Thanks to Hans-Joerg Sirtl for providing hardware for testing this change.

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

12 years agoMFC r230327:
eadler [Sat, 28 Jan 2012 21:44:51 +0000 (21:44 +0000)]
MFC r230327:
 Add support for Sony Ericsson GC89 EDGE/Wirelles LAN PC Card

PR: kern/131933
Approved by: cperciva

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

12 years agoMFC r229831:
eadler [Sat, 28 Jan 2012 19:48:44 +0000 (19:48 +0000)]
MFC r229831:
- X11BASE has been deprecated for a long time and will die soon

Approved by: cperciva

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

12 years agoMFC r230109:
eadler [Sat, 28 Jan 2012 19:32:28 +0000 (19:32 +0000)]
MFC r230109:
 - Document TheDraw splash screens in the default loader.conf

Approved by: cperciva

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

12 years agoMFC: r230100
rmacklem [Sat, 28 Jan 2012 01:45:19 +0000 (01:45 +0000)]
MFC: r230100
Tai Horgan reported via email that there were two places in
the new NFSv4 server where the code follows the wrong list.
Fortunately, for these fairly rare cases, the lc_stateid[]
lists are normally empty. This patch fixes the code to
follow the correct list.

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

12 years agoMFC r228937: sh: Do not force special builtins non-special in optimized
jilles [Fri, 27 Jan 2012 21:22:07 +0000 (21:22 +0000)]
MFC r228937: sh: Do not force special builtins non-special in optimized
command substitition.

This is not necessary: errors are already caught in evalbackcmd() and
forcelocal handles changes to variables.

Note that this depends on r223024.

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

12 years agoMFC r230095: sh: Properly show "Not a directory" error in cd builtin.
jilles [Fri, 27 Jan 2012 20:53:37 +0000 (20:53 +0000)]
MFC r230095: sh: Properly show "Not a directory" error in cd builtin.

The errno message display added in r222292 did not take attempting to
cd to a non-directory or something that cannot be stat()ed into account.

PR: bin/164070

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

12 years agoMFC r229284:
bschmidt [Fri, 27 Jan 2012 17:32:50 +0000 (17:32 +0000)]
MFC r229284:
MCS32 equals 32, not 8*ic_txstream.

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

12 years agoMFC r229375:
bschmidt [Fri, 27 Jan 2012 17:29:59 +0000 (17:29 +0000)]
MFC r229375:
Don't rely on MCS7 being at index 7 while determining the amount
of antennas to use. Not all APs enable all MCS rates.

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

12 years agoMFC r230496: Remove the stale XXX rt_newaddrmsg comment.
pluknet [Fri, 27 Jan 2012 07:15:14 +0000 (07:15 +0000)]
MFC r230496: Remove the stale XXX rt_newaddrmsg comment.

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

12 years agoMFC 227460
qingli [Fri, 27 Jan 2012 02:13:27 +0000 (02:13 +0000)]
MFC 227460

A default route learned from the RAs could be deleted manually
after its installation. This removal may be accidental and can
prevent the default route from being installed in the future if
the associated default router has the best preference. The cause
is the lack of status update in the default router on the state
of its route installation in the kernel FIB. This patch fixes
the described problem.

Reviewed by: hrs, discussed with hrs

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

12 years agoMFC r228259:
dumbbell [Thu, 26 Jan 2012 19:46:13 +0000 (19:46 +0000)]
MFC r228259:
Support domain-search in dhclient(8)

The "domain-search" option (option 119) allows a DHCP server to publish
a list of implicit domain suffixes used during name lookup. This option
is described in RFC 3397.

For instance, if the domain-search option says:
    ".example.org .example.com"
and one wants to resolve "foobar", the resolver will try:
    1. "foobar.example.org"
    2. "foobar.example.com"

The file /etc/resolv.conf is updated with a "search" directive if the
DHCP server provides "domain-search".

A regression test suite is included in this patch under
tools/regression/sbin/dhclient.

PR: bin/151940
Sponsored by: Yakaz (http://www.yakaz.com)

MFC r229000:
Invalid Domain Search option isn't considered as a fatal error

In the original Domain Search option patch, an invalid option value
would cause the whole lease to be rejected. However, DHCP servers who
emit such an invalid value are more common than I thought. With this new
patch, just the option is rejected, not the entire lease.

PR: bin/163431
Submitted by: Fabian Keil <fk@fabiankeil.de> (earlier version)
Reviewed by: Fabian Keil <fk@fabiankeil.de>
Sponsored by: Yakaz (http://www.yakaz.com)

MFC r229001:
Adapt testsuite following change in Domain Search error handling

In this testsuite, warning() and error() have the same behaviour.

PR: bin/163431
Sponsored by: Yakaz (http://www.yakaz.com)

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

12 years agoMFC r227992:
dumbbell [Thu, 26 Jan 2012 19:15:13 +0000 (19:15 +0000)]
MFC r227992:

Prevent a division by zero with some broken batteries

This problem was seen on a laptop with a dead battery.

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

12 years agoMFC r229916 (by eadler):
ae [Thu, 26 Jan 2012 06:57:47 +0000 (06:57 +0000)]
MFC r229916 (by eadler):
  Fix warning when compiling with gcc46:
 error: variable 'secsz' set but not used

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

12 years agoMerge r230127 from head/:
glebius [Wed, 25 Jan 2012 13:47:55 +0000 (13:47 +0000)]
Merge r230127 from head/:
  Restore functionality to pack several kernels into release. All
  kernels specified by KERNCONF are built and packed into release.
  The first one is packed into kernel.txz, all others to
  kernel.CONFIG.txz.

  The first one is installed on bootables in /boot.

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

12 years agoMFC r230459:
kib [Wed, 25 Jan 2012 07:12:45 +0000 (07:12 +0000)]
MFC r230459:
Fix typo.

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

12 years agoMFC: r229956
rmacklem [Wed, 25 Jan 2012 01:45:19 +0000 (01:45 +0000)]
MFC: r229956
jwd@ reported via email that the "CacheSize" field reported by "nfsstat -e -s"
would go negative after using the "-z" option to zero out the stats.
This patch fixes that by not zeroing out the srvcache_size field
for "-z", since it is the size of the cache and not a counter

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

12 years agoMFC r230270:
kib [Tue, 24 Jan 2012 11:48:06 +0000 (11:48 +0000)]
MFC r230270:
Add definitions for the FPU extended state header, legacy extended
state and AVX state.

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

12 years agoMFC r230269:
kib [Tue, 24 Jan 2012 11:42:46 +0000 (11:42 +0000)]
MFC r230269:
Modernize the fpusave structures definitions by using uint*_t types.

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

12 years agoMFC r230262:
kib [Tue, 24 Jan 2012 11:28:53 +0000 (11:28 +0000)]
MFC r230262:
Implement xsetbv(), xsave() and xrstor().

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

12 years agoMFC r230261:
kib [Tue, 24 Jan 2012 11:10:32 +0000 (11:10 +0000)]
MFC r230261:
Add definitions related to XCR0.

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

12 years agoMFC r230260:
kib [Tue, 24 Jan 2012 10:56:40 +0000 (10:56 +0000)]
MFC r230260:
Add macro IS_BSP() to check whether the current CPU is BSP.

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

12 years agoMFC r230256:
pluknet [Tue, 24 Jan 2012 10:28:19 +0000 (10:28 +0000)]
MFC r230256:
 Fix the "lock &zrl->zr_mtx already initialized" assertion by initializing
 the allocated memory before calling mtx_init(9) on mtx pointing to it.
 Otherwize, random contents of uninitialized memory might occasionally
 trigger the assertion.

 Reported by:  Pavel Polyakov <bsd kobyla org>
 Reviewed by:  pjd

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

12 years agoMFC r229694:
jh [Mon, 23 Jan 2012 16:28:35 +0000 (16:28 +0000)]
MFC r229694:

r222004 changed sbuf_finish() to not clear the buffer error status. As a
consequence sbuf_len() will return -1 for buffers which had the error
status set prior to sbuf_finish() call. This causes a problem in
pfs_read() which purposely uses a fixed size sbuf to discard bytes which
are not needed to fulfill the read request.

Work around the problem by using the full buffer length when
sbuf_finish() indicates an overflow. An overflowed sbuf with fixed size
is always full.

PR: kern/163076

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

12 years agoMFC r230402, r230404:
mm [Mon, 23 Jan 2012 08:29:58 +0000 (08:29 +0000)]
MFC r230402, r230404:
Add accidentially removed copyright lines in r228103

Reported by: pjd

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

12 years agoMFC: r228360
pho [Sun, 22 Jan 2012 18:27:24 +0000 (18:27 +0000)]
MFC: r228360

Move cpu_set_upcall(newtd, td) up before the first call of
thread_free(newtd).  This to avoid a possible page fault in
cpu_thread_clean() as seen on amd64 with syscall fuzzing.

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

12 years agoMFC r229692:
jh [Sun, 22 Jan 2012 13:55:15 +0000 (13:55 +0000)]
MFC r229692:

Check the return value of sbuf_finish() in pfs_readlink() and return
ENAMETOOLONG if the buffer overflowed.

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

12 years agoMFC: r229802
rmacklem [Sun, 22 Jan 2012 05:16:31 +0000 (05:16 +0000)]
MFC: r229802
opt_inet6.h was missing from some files in the new NFS subsystem.
The effect of this was, for clients mounted via inet6 addresses,
that the DRC cache would never have a hit in the server. It also
broke NFSv4 callbacks when an inet6 address was the only one available
in the client. This patch fixes the above, plus deletes opt_inet6.h
from a couple of files it is not needed for.

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

12 years agoMFC: revision 229463
nyan [Sun, 22 Jan 2012 04:19:03 +0000 (04:19 +0000)]
MFC: revision 229463

  MFi386: revision 229435

    Add special loader environment variables 'comconsole_port' and
    'comconsole_pcidev'.

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

12 years agoMFC r230117: sh: Fix out of bounds array access when trap is used with an
jilles [Sat, 21 Jan 2012 21:54:31 +0000 (21:54 +0000)]
MFC r230117: sh: Fix out of bounds array access when trap is used with an
invalid signal.

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

12 years agoMFC r228923, r228935, and r229007
alc [Sat, 21 Jan 2012 19:21:42 +0000 (19:21 +0000)]
MFC r228923, r228935, and r229007
  Eliminate many of the unnecessary differences between the native and
  paravirtualized pmap implementations for i386.

  Fix a bug in the Xen pmap's implementation of
  pmap_extract_and_hold(): If the page lock acquisition is retried,
  then the underlying thread is not unpinned.

  Wrap nearby lines that exceed 80 columns.

  Merge r216333 and r216555 from the native pmap
    When r207410 eliminated the acquisition and release of the page
    queues lock from pmap_extract_and_hold(), it didn't take into
    account that pmap_pte_quick() sometimes requires the page queues
    lock to be held.  This change reimplements pmap_extract_and_hold()
    such that it no longer uses pmap_pte_quick(), and thus never
    requires the page queues lock.

  Merge r177525 from the native pmap
    Prevent the overflow in the calculation of the next page
    directory.  The overflow causes the wraparound with consequent
    corruption of the (almost) whole address space mapping.

  Strictly speaking, r177525 is not required by the Xen pmap because
  the hypervisor steals the uppermost region of the normal kernel
  address space.  I am nonetheless merging it in order to reduce the
  number of unnecessary differences between the native and Xen pmap
  implementations.

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

12 years agoMFC r228746
alc [Sat, 21 Jan 2012 18:11:12 +0000 (18:11 +0000)]
MFC r228746
  The Xen pmap doesn't support superpages.  So, there is no point in it
  initializing structures, like the pv table, that are only used to
  implement superpages.  In fact, some of the unnecessary code in
  pmap_init() was actually doing harm.  It was preventing the kernel from
  booting on virtual machines with more than 768 MB of memory.

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

12 years agoMFC r227827
rmh [Sat, 21 Jan 2012 17:22:50 +0000 (17:22 +0000)]
MFC r227827
  Define __FreeBSD_kernel__ macro in sys/param.h.

  __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
  which by definition is always true on FreeBSD. This macro is also defined
  on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD.

  It is tempting to use this macro in userland code when we want to enable
  kernel-specific routines, and in fact it's fine to do this in code that
  is part of FreeBSD itself.  However, be aware that as presence of this
  macro is still not widespread (e.g. older FreeBSD versions, 3rd party
  compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in
  external applications without also checking for __FreeBSD__ as an
  alternative.

Approved by: kib (mentor)

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

12 years agoMFC r228398
alc [Sat, 21 Jan 2012 08:26:41 +0000 (08:26 +0000)]
MFC r228398
  Avoid the possibility of integer overflow in the calculation of
  VM_KMEM_SIZE_MAX.  Specifically, if the user/kernel address space split
  was changed such that the kernel address space was greater than or equal
  to 2 GB, then overflow would occur.

PR: 161721

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

12 years agoMFC r226163, r228317, and r228324
alc [Sat, 21 Jan 2012 05:03:10 +0000 (05:03 +0000)]
MFC r226163, r228317, and r228324
  Fix the handling of an empty kmem map by sysctl_kmem_map_free().

  Eliminate the possibility of 32-bit arithmetic overflow in the
  calculation of vm_kmem_size that may occur if the system
  administrator has specified a vm.vm_kmem_size tunable value that
  exceeds the hard cap.

  Eliminate stale numbers from a comment.

PR: 162741

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

12 years agoMFC r229898:
lstewart [Sat, 21 Jan 2012 03:59:31 +0000 (03:59 +0000)]
MFC r229898:

Consumers of bpfdetach() expect it to remove all bpf_if structs from the
bpf_iflist list which reference the specified ifnet. The existing implementation
only removes the first matching bpf_if found in the list, effectively leaking
list entries if an ifnet has been bpfattach()ed multiple times with different
DLTs.

Fix the leak by performing the detach logic in a loop, stopping when all bpf_if
structs referencing the specified ifnet have been detached and removed from the
bpf_iflist list.

Whilst here, also:

- Remove the unnecessary "bp->bif_ifp == NULL" check, as a bpf_if should never
  exist in the list with a NULL ifnet pointer.

- Except when INVARIANTS is in the kernel config, silently ignore the case where
  no bpf_if referencing the specified ifnet is found, as it is harmless and does
  not require user attention.

Reviewed by: csjp

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

12 years agoMFC r230294:
lstewart [Sat, 21 Jan 2012 03:16:32 +0000 (03:16 +0000)]
MFC r230294:

Specify the correct section (4 instead of 9) in the h_ertt man page's title and
bump the document date.

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

12 years agoMFC r229768:
kib [Sat, 21 Jan 2012 01:24:06 +0000 (01:24 +0000)]
MFC r229768:
Implement fdlopen(3), an rtld interface to load shared object by file
descriptor.

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

12 years agoMFC r227124: fifo_misc test: Fix swapped lseek arguments.
jilles [Fri, 20 Jan 2012 16:29:17 +0000 (16:29 +0000)]
MFC r227124: fifo_misc test: Fix swapped lseek arguments.

It worked regardless because SEEK_CUR happens to be 1.

PR: misc/160866

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

12 years agoMFC r227123: lint: Fix lseek() argument order.
jilles [Fri, 20 Jan 2012 15:43:08 +0000 (15:43 +0000)]
MFC r227123: lint: Fix lseek() argument order.

Because SEEK_SET is 0, this seems to have no effect on the generated code.

PR: bin/160806
Submitted by: Henning Petersen <henning dot petersen at t-online dot de>
Obtained from: NetBSD

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

12 years agoMFC: r229977
brueffer [Wed, 18 Jan 2012 21:59:32 +0000 (21:59 +0000)]
MFC: r229977

Add hpt27xx to the hardware notes,

While here, add the 2012 copyright.

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

12 years agoMFC: 229965
gnn [Wed, 18 Jan 2012 21:54:34 +0000 (21:54 +0000)]
MFC: 229965

Fix for PR 138526.

Add the ability for /dev/null and /dev/zero to accept
being set into non blocking mode via fcntl().  This
brings the code into compliance with IEEE Std 1003.1-2001
as referenced in another PR, 94729.

Reviewed by: jhb

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

12 years agoMFC: r229984
truckman [Wed, 18 Jan 2012 21:49:37 +0000 (21:49 +0000)]
MFC: r229984

Pass the arguments to mtx_init() in the correct order.  There should be
no change to the binary because the value of MTX_DEF is zero and there
is a visible function prototype.

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

12 years agoMFC r228869,r228874:
jhibbits [Wed, 18 Jan 2012 11:48:07 +0000 (11:48 +0000)]
MFC r228869,r228874:

Implement hwpmc counting PMC support for PowerPC G4+ (MPC745x/MPC744x).
Sampling is in progress.

Approved by: nwhitehorn (mentor)

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

12 years agoMFC r230032, r230050, r230090, r230091 and r228493.
hselasky [Wed, 18 Jan 2012 07:57:17 +0000 (07:57 +0000)]
MFC r230032, r230050, r230090, r230091 and r228493.
- Various XHCI and USB 3.0 related issues.
- USB 3.0 HUBs should work after this change.

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

12 years agoMFC r229971:
kib [Wed, 18 Jan 2012 04:37:17 +0000 (04:37 +0000)]
MFC r229971:
Add PCI Id for the AMT SOL UART on 5 series Intel chipsets.

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

12 years agoMFC r229495:
kib [Wed, 18 Jan 2012 04:34:18 +0000 (04:34 +0000)]
MFC r229495:
Do not restart the scan in vm_object_page_clean() on the object
generation change if requested mode is async.

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

12 years agoMFC r230035:
jhibbits [Tue, 17 Jan 2012 22:42:54 +0000 (22:42 +0000)]
MFC r230035:

Add PWM monitoring sysctl to G4 MDD (Windtunnel) fan driver.  While there, clean
up some style nits.

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

12 years agoMFC: Revert changes in r229899. The ypserv daemon could not work with multiple
hrs [Tue, 17 Jan 2012 20:56:12 +0000 (20:56 +0000)]
MFC: Revert changes in r229899.  The ypserv daemon could not work with multiple
socktypes due to it.

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

12 years agoMerge r229085 from head:
gavin [Tue, 17 Jan 2012 13:52:04 +0000 (13:52 +0000)]
Merge r229085 from head:

  Default to not performing the early-boot memory tests when we detect we
  are booting inside a VM.  There are three reasons to disable this:

  o  It causes the VM host to believe that all the tested pages or RAM are
     in use.  This in turn may force the host to page out pages of RAM
     belonging to other VMs, or otherwise cause problems with fair resource
     sharing on the VM cluster.
  o  It adds significant time to the boot process (around 1 second/Gig in
     testing)
  o  It is unnecessary - the host should have already verified that the
     memory is functional etc.

  Note that this simply changes the default when in a VM - it can still be
  overridden using the hw.memtest.tests tunable.

Early MFC requested by: bz

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

12 years agoMFC: r228218, r228219, 228220, 228221
pho [Tue, 17 Jan 2012 11:04:58 +0000 (11:04 +0000)]
MFC: r228218, r228219, 228220, 228221

Rename copyin_timeout32 to umtx_copyin_timeout32 and move parameter
check here. Include check for negative seconds value.
Add umtx_copyin_timeout() and move parameter checks here.
Add declaration of umtx_copyin_timeout()
Use umtx_copyin_timeout() to copy and check timeout parameter.

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

12 years agoMFC r229771:
kib [Tue, 17 Jan 2012 07:01:22 +0000 (07:01 +0000)]
MFC r229771:
Document comconsole_port and comconsole_pcidev loader variables.

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

12 years agoMFC r229934:
kib [Tue, 17 Jan 2012 06:57:55 +0000 (06:57 +0000)]
MFC r229934:
Change the type of the paging_in_progress refcounter from u_short to
u_int. With the auto-sized buffer cache on the modern machines, UFS
metadata can generate more the 65535 pages belonging to the buffers
undergoing i/o, overflowing the counter.

To keep the layout of other fields of the struct vm_object intact
on stable/9, put enlarged paging_in_progress at the end of the structure,
and put a placeholder in the place of old pip counter.

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

12 years agoMFC r229435:
kib [Tue, 17 Jan 2012 06:40:41 +0000 (06:40 +0000)]
MFC r229435:
Add special loader environment variables 'comconsole_port' and
'comconsole_pcidev'.

Change allows to use ISA serial ports other than COM1 for the
loader/kernel console without loader recompilation, and to configure
console on the PCI-attached UARTs.

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

12 years agoDocument the following open issues:
hrs [Tue, 17 Jan 2012 02:49:23 +0000 (02:49 +0000)]
Document the following open issues:

 - $ipv6_prefix_IF fails to configure IF when there is no $ifconfig_IF_ipv6.
 - USB 3.0 hubs do not work.

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

12 years agoMFC 229416 + 223200:
delphij [Tue, 17 Jan 2012 01:28:43 +0000 (01:28 +0000)]
MFC 229416 + 223200:

Don't forget to release queue lock when allocation of memory failed.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly

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

12 years agoMFC r229886:
jimharris [Mon, 16 Jan 2012 23:22:56 +0000 (23:22 +0000)]
MFC r229886:

 Add support for >2TB disks in GEOM RAID for Intel metadata format.

Sponsored by: Intel
Approved by: sbruno

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

12 years agoRevert r229671 mergeinfo property from root directory. This was mistakenly
jimharris [Mon, 16 Jan 2012 22:59:23 +0000 (22:59 +0000)]
Revert r229671 mergeinfo property from root directory.  This was mistakenly
added as part of r230223 MFC commit.

Reviewed by: avg
Approved by: sbruno

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

12 years agoMFC r228060, r228068, r228060
bapt [Mon, 16 Jan 2012 22:17:12 +0000 (22:17 +0000)]
MFC r228060, r228068, r228060

Upgrade gperf to 3.0.3 latest GPLv2 version

Approved by:    des (mentor)

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

12 years agoMFC r229671:
jimharris [Mon, 16 Jan 2012 17:30:00 +0000 (17:30 +0000)]
MFC r229671:

 Add 0x2826 device ID for C600 (Patsburg) SATA controller in RAID mode.

Sponsored by: Intel
Approved by: sbruno

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

12 years agoMFC r228985,229881:
pluknet [Mon, 16 Jan 2012 14:55:42 +0000 (14:55 +0000)]
MFC r228985,229881:

 Unset the environment variables associated with individual menu items
 before invoking the kernel.

 Get rid of a spurious warning on the console when booting the kernel
 from the interactive loader(8) prompt and beastie_disable="YES" is set
 in loader.conf(5).

Submitted by: Devin Teske <devin dott teske fisglobal.com>

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

12 years agoFix build breakage
kevlo [Mon, 16 Jan 2012 14:31:01 +0000 (14:31 +0000)]
Fix build breakage

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

12 years agoUse <itemizedlist> to format entries.
hrs [Mon, 16 Jan 2012 07:02:59 +0000 (07:02 +0000)]
Use <itemizedlist> to format entries.

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

12 years agoDocument {ALLOW_NEW,BLOCK_OLD}_SOURCES state change record type support
hrs [Mon, 16 Jan 2012 06:49:03 +0000 (06:49 +0000)]
Document {ALLOW_NEW,BLOCK_OLD}_SOURCES state change record type support
for SSM MLDv2 forgotten in the 9.0R Release Notes.

Pointy hat to: hrs

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

12 years agoMFC r228864:
kevlo [Mon, 16 Jan 2012 05:22:18 +0000 (05:22 +0000)]
MFC r228864:
Discard local array based on return values.

Pointed out by: uqs
Found with: Coverity Prevent(tm)
CID: 10089

MFC 228023:
Add unicode support to ntfs

Obtained from: imura

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

12 years agoMFC r228796:
kevlo [Mon, 16 Jan 2012 05:15:13 +0000 (05:15 +0000)]
MFC r228796:
Discarding local array based on return values.

MFC r227650:
Add unicode support to msdosfs and smbfs; original pathes from imura,
bug fixes by Kuan-Chung Chiu <buganini at gmail dot com>.

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

12 years ago- Listen to WITHOUT_SYSINSTALL
eadler [Mon, 16 Jan 2012 04:00:32 +0000 (04:00 +0000)]
- Listen to WITHOUT_SYSINSTALL

PR: bin/164185
Submitted by: Pierre Guinoiseau <pierre@guinoiseau.eu>
Reviewed by: imp
Approved by: cperciva
MFC After 3 days

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

12 years agoMFC r228265: critical_exit: ignore td_owepreempt if kdb_active is set
avg [Sun, 15 Jan 2012 22:20:52 +0000 (22:20 +0000)]
MFC r228265: critical_exit: ignore td_owepreempt if kdb_active is set

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

12 years agoMFC r228718: ule: ensure that batch timeshare threads are scheduled
avg [Sun, 15 Jan 2012 22:10:35 +0000 (22:10 +0000)]
MFC r228718: ule: ensure that batch timeshare threads are scheduled
fairly

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

12 years agoMFC r228710: opensolaris compat: fix vcmn_err so that panic(9) produces
avg [Sun, 15 Jan 2012 22:07:14 +0000 (22:07 +0000)]
MFC r228710: opensolaris compat: fix vcmn_err so that panic(9) produces
a proper message

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

12 years agoMFC r228426: syscons: make sc_puts static as it is used only privately
avg [Sun, 15 Jan 2012 22:04:28 +0000 (22:04 +0000)]
MFC r228426: syscons: make sc_puts static as it is used only privately

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

12 years agoMFC r228430,228433: put sys/systm.h at its proper place or add it if missing
avg [Sun, 15 Jan 2012 21:58:51 +0000 (21:58 +0000)]
MFC r228430,228433: put sys/systm.h at its proper place or add it if missing

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

12 years agoMFC r228267: zfsboot: print boot.config contents before parsing it
avg [Sun, 15 Jan 2012 21:51:55 +0000 (21:51 +0000)]
MFC r228267: zfsboot: print boot.config contents before parsing it

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

12 years agoMFC r228266: zfs boot: allow file vdevs to be used in testing (e.g. with zfsboottest)
avg [Sun, 15 Jan 2012 21:48:42 +0000 (21:48 +0000)]
MFC r228266: zfs boot: allow file vdevs to be used in testing (e.g. with zfsboottest)

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

12 years agoMFC r228343:
eadler [Sun, 15 Jan 2012 20:53:50 +0000 (20:53 +0000)]
MFC r228343:
 - Fix ktrace leakage if error is set

PR: kern/163098
Approved by: sbruno

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

12 years agoDocument ugen devctl event change.
hrs [Sun, 15 Jan 2012 07:48:12 +0000 (07:48 +0000)]
Document ugen devctl event change.

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

12 years agoMFC r229828:
kib [Sun, 15 Jan 2012 00:46:29 +0000 (00:46 +0000)]
MFC r229828:
Avoid LOR between vfs_busy() lock and covered vnode lock on quotaon().

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

12 years agoMFC r228284, r228308:
ume [Sat, 14 Jan 2012 19:38:24 +0000 (19:38 +0000)]
MFC r228284, r228308:
  - Make heimdal buildable with WITH_OPENLDAP defined, again.
  - Our heimdal uses the deprecated OpenLDAP functions.
  - Don't support OpenLDAP during lib32 build.

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

12 years agoMFC r229766:
ume [Sat, 14 Jan 2012 19:08:39 +0000 (19:08 +0000)]
MFC r229766:
  Handle the internal scope address representation of the KAME IPv6
  stack for the node-local multicast address.

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

12 years agoAdd an open issue and workaround about possible device detection failure on
hrs [Fri, 13 Jan 2012 20:50:18 +0000 (20:50 +0000)]
Add an open issue and workaround about possible device detection failure on
FreeBSD/{amd64,i386}.

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

12 years agoMFC 229665,229672,229700:
jhb [Fri, 13 Jan 2012 20:35:12 +0000 (20:35 +0000)]
MFC 229665,229672,229700:
Remove the assertion from tcp_input() that rcv_nxt is always greater
than or equal to rcv_adv and fix tcp_twstart() to handle this case by
assuming the last window was zero rather than a negative value.

The code in tcp_input() already safely handled this case.  It can happen
due to delayed ACKs along with a remote sender that sends data beyond
the window we previously advertised.  If we have room in our socket buffer
for the extra data beyond the advertised window, we will accept it.
However, if the ACK for that segment is delayed, then we will not
effectively fixup rcv_adv to account for that extra data until the
next segment arrives and forces out an ACK.  When that next segment
arrives, rcv_nxt will be beyond rcv_adv.

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

12 years agoMFC 228961:
jhb [Fri, 13 Jan 2012 20:28:11 +0000 (20:28 +0000)]
MFC 228961:
Further relax the strictness of enforcing allocations to only come from
decoded ranges.  Pass any request for a specific range that fails because
it is not in a decoded range for an ACPI Host-PCI bridge up to the parent
to see if it can still be allocated.  This is based on the assumption that
many BIOSes are inconsistent/broken and that settings programmed into BARs
or resources assigned to other built-in components are more trustworthy than
the list of decoded resource ranges in _CRS.  This effectively limits the
decoded ranges to only being used for "wildcard" ranges when allocating
fresh resources for a BAR, etc.  At some point I would like to only be
this permissive during an early scan of firmware-assigned resources during
boot and to be strict about all later allocations, but that isn't viable
currently.

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

12 years agoMFC 228960:
jhb [Fri, 13 Jan 2012 20:25:38 +0000 (20:25 +0000)]
MFC 228960:
Cap the priority calculated from the current thread's running tick count
at SCHED_PRI_RANGE to prevent overflows in the priority value.  This can
happen due to irregularities with clock interrupts under certain
virtualization environments.

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

12 years agoMFC 229519:
jhb [Fri, 13 Jan 2012 20:22:57 +0000 (20:22 +0000)]
MFC 229519:
Fix 'make clean' for this module so it cleans up the generated gssd.h.

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

12 years agoMFC 229429:
jhb [Fri, 13 Jan 2012 20:15:27 +0000 (20:15 +0000)]
MFC 229429:
Some small fixes to CPU accounting for threads:
- Only initialize the per-cpu switchticks and switchtime in sched_throw()
  for the very first context switch on APs during boot.  This avoids a
  small gap between the middle of thread_exit() and sched_throw() where
  time is not accounted to any thread.
- In thread_exit(), update the timestamp bookkeeping to track the changes
  to mi_switch() introduced by td_rux so that the code once again matches
  the comment claiming it is mimicing mi_switch().  Specifically, only
  update the per-thread stats directly and depend on ruxagg() to update
  p_rux rather than adjusting p_rux directly.  While here, move the
  timestamp bookkeeping as late in the function as possible.

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

12 years agoMFC 229427:
jhb [Fri, 13 Jan 2012 19:54:00 +0000 (19:54 +0000)]
MFC 229427:
Fix a few bugs in the SRAT parsing code:
- Actually increment ndomain when building our list of known domains
  so that we can properly renumber them to be 0-based and dense.
- If the number of domains exceeds the configured maximum (VM_NDOMAIN),
  bail out of processing the SRAT and disable NUMA rather than hitting an
  obscure panic later.
- Don't bother parsing the SRAT at all if VM_NDOMAIN is set to 1 to
  disable NUMA (the default).

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

12 years agoMFC 229390,229420,229479:
jhb [Fri, 13 Jan 2012 19:50:52 +0000 (19:50 +0000)]
MFC 229390,229420,229479:
Fix some races in the multicast code by removing places where we would
drop the IF_ADDR_LOCK while walking an interface's multicast address list:
- Use TAILQ_FOREACH() instead of TAILQ_FOREACH_SAFE() for some loops that
  do not modify the queues they iterate over.
- When cancelling multicast timers on an interface, don't release the
  reference on a group in the leaving state while iterating over the loop.
  Instead, use the same approach used in igmp_ifdetach() and mld_ifdetach()
  of placing the groups to free on a pending release list and then releasing
  the references after dropping the IF_ADDR_LOCK.
- Use the mli_relinmhead list normally used to defer calls to
  in6m_release_locked() to defer calls to mld_v1_transmit_report() until
  after the IF_ADDR_LOCK is dropped.

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

12 years agoMFC 229414,229476,229477:
jhb [Fri, 13 Jan 2012 19:20:09 +0000 (19:20 +0000)]
MFC 229414,229476,229477:
Various fixes to the SIOC[DG]LIFADDR ioctl handlers:
- Grab a reference on any matching interface address (ifa) before dropping
  the IF_ADDR_LOCK() and release the reference after using it to prevent a
  potential use-after-free.
- Fix the IPv4 ioctl handlers in in_lifaddr_ioctl() to work with IPv4
  interface addresses rather than IPv6.
- Add missing interface address list locking in the IPv4 handlers.

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

12 years agoMFC 229400:
jhb [Fri, 13 Jan 2012 19:10:53 +0000 (19:10 +0000)]
MFC 229400:
Improve the cscope target's handling of MD directories.  Automatically
include the MACHINE_CPUARCH directory if it differents from MACHINE when
building an index for a single machine.  Also, include the 'x86' directory
when building an index for i386, pc98, or amd64.

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

12 years agoMFC 229728:
jhb [Fri, 13 Jan 2012 19:03:30 +0000 (19:03 +0000)]
MFC 229728:
Add 5 spare VOPs as placeholders to avoid breaking the KBI in the future
when new VOPs are MFC'd to a branch.

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

12 years agoMFC 229622:
jhb [Fri, 13 Jan 2012 18:58:15 +0000 (18:58 +0000)]
MFC 229622:
Fix a logic bug in change 228207 in the check for a thread's new user
priority being a realtime priority.

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