]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r234772:
jlh [Tue, 8 May 2012 19:33:31 +0000 (19:33 +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/8@235141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoSync traceroute(8) with head.
uqs [Tue, 8 May 2012 08:19:07 +0000 (08:19 +0000)]
Sync traceroute(8) with head.

Merges r215937,216184 and r211062,215880,220968:

- Remove unused traceroute(8) contrib code from head
- make WARNS=3 clean
- fix an operator precedence bug for TCP tracerouting
- Remove unneeded struct timezone passed to gettimeofday().
- Remove clause 3 and 4 from TNF licenses.
- Check return code of setuid() in traceroute.

Requested by: tuexen

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

12 years agoMFC r234131:
eadler [Mon, 7 May 2012 12:20:26 +0000 (12:20 +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/8@235126 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r225203 (partial)
marius [Mon, 7 May 2012 07:04:41 +0000 (07:04 +0000)]
MFC: r225203 (partial)

Attempt to make break-to-debugger and alternative break-to-debugger more
accessible:

(1) Always compile in support for breaking into the debugger if options
    KDB is present in the kernel.

(2) Disable both by default, but allow them to be enabled via tunables
    and sysctls debug.kdb.break_to_debugger and
    debug.kdb.alt_break_to_debugger.

(3) options BREAK_TO_DEBUGGER and options ALT_BREAK_TO_DEBUGGER continue
    to behave as before -- only now instead of compiling in
    break-to-debugger support, they change the default values of the
    above sysctls to enable those features by default.  Current kernel
    configurations should, therefore, continue to behave as expected.

(4) Migrate alternative break-to-debugger state machine logic out of
    individual device drivers into centralised KDB code.  This has a
    number of upsides, but also one downside: it's now tricky to release
    sio spin locks when entering the debugger, so we don't.  However,
    similar logic does not exist in other device drivers, including uart.

(5) dcons requires some special handling; unlike other console types, it
    allows overriding KDB's own debugger selection, so we need a new
    interface to KDB to allow that to work.

GENERIC kernels will now support break-to-debugger as long as appropriate
boot/run-time options are set, which should improve the debuggability of
kernels significantly.

MFC: r225214 (partial)

Follow up to r225203 refining break-to-debugger run-time configuration
improvements:

(1) Implement new model in previously missed at91 UART driver
(2) Move BREAK_TO_DEBUGGER and ALT_BREAK_TO_DEBUGGER from opt_comconsole.h
    to opt_kdb.h (spotted by np)
(3) Garbage collect now-unused opt_comconsole.h

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

12 years agoMFC r233113:
bz [Sun, 6 May 2012 20:26:28 +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/8@235104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234601:
mav [Sun, 6 May 2012 15:56:07 +0000 (15:56 +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/8@235093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234820:
eadler [Sun, 6 May 2012 14:23:01 +0000 (14:23 +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/8@235089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234821:
eadler [Sun, 6 May 2012 14:15:52 +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/8@235086 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234819:
eadler [Sun, 6 May 2012 14:11:51 +0000 (14:11 +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/8@235084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r231929:
dougb [Sun, 6 May 2012 08:31:57 +0000 (08:31 +0000)]
MFC r231929:

If nested scheme allows dump kernel to its partition, we may allow
dump for the parent partition too.

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

12 years agoMFC r234572
melifaro [Sat, 5 May 2012 11:34:27 +0000 (11:34 +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/8@235056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMerge 234342 from head:
glebius [Sat, 5 May 2012 10:05:13 +0000 (10:05 +0000)]
Merge 234342 from head:
  When we receive an ICMP unreach need fragmentation datagram, we take
  proposed MTU value from it and update the TCP host cache. Then
  tcp_mss_update() is called on the corresponding tcpcb. It finds the
  just allocated entry in the TCP host cache and updates MSS on the
  tcpcb. And then we do a fast retransmit of what we have in the tcp
  send buffer.

  This sequence gets broken if the TCP host cache is exausted. In this
  case allocation fails, and later called tcp_mss_update() finds nothing
  in cache. The fast retransmit is done with not reduced MSS and is
  immidiately replied by remote host with new ICMP datagrams and the
  cycle repeats. This ping-pong can go up to wirespeed.

  To fix this:
  - tcp_mss_update() gets new parameter - mtuoffer, that is like
    offer, but needs to have min_protoh subtracted.
  - tcp_mtudisc() as notification method renamed to tcp_mtudisc_notify().
  - tcp_mtudisc() now accepts not a useless error argument, but proposed
    MTU value, that is passed to tcp_mss_update() as mtuoffer.

  Reported by:  az
  Reported by:  Andrey Zonov <andrey zonov.org>
  Reviewed by:  andre (previous version of patch)

Tested by:  Andrey Zonov <andrey zonov.org>

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

12 years agoMFC r234775:
gjb [Sat, 5 May 2012 02:53:02 +0000 (02:53 +0000)]
MFC r234775:

As cron(8) is started with '-s' by default, timezones that observe
DST should not need to worry about scheduling jobs when the DST time
changes.

Rather than removing the BUGS section in crontab(5) regarding this,
note that disabling '-s' may still cause jobs to be executed twice or
not at all.

PR: 166318

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

12 years agoMFC r234769:
kib [Sat, 5 May 2012 00:30:43 +0000 (00:30 +0000)]
MFC r234769:
Fix several memory and lock leaks on the out of memory condition.

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

12 years agoMFC r228235, r228236, r233667, r234687, r234491, r234193, and r233424:
hselasky [Fri, 4 May 2012 16:25:35 +0000 (16:25 +0000)]
MFC r228235, r228236, r233667, r234687, r234491, r234193, and r233424:

Minor code simplification.
No functional change.
Fix some compile warnings.
Fix some mdoc issues.
Add missing LibUSB 1.0 API function.

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

12 years agoMFC r231835, r234636 and r234655:
hselasky [Fri, 4 May 2012 16:18:57 +0000 (16:18 +0000)]
MFC r231835, r234636 and r234655:

Add support for filtering USB devices and USB endpoints to the usbdump utility
when making software USB traces.

Improve support for USB packet filtering also when reading dumps, and
allow filtered data to be dumped to a binary file.

Add missing and probably also mandatory -h option.

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

12 years agoMFC r234541:
hselasky [Fri, 4 May 2012 15:57:05 +0000 (15:57 +0000)]
MFC r234541:
Add new USB ID to u3g driver.

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

12 years agoMFC r234803 and r234961:
hselasky [Fri, 4 May 2012 15:55:31 +0000 (15:55 +0000)]
MFC r234803 and r234961:
Add support for Multi-TT mode of modern USB HUBs.
This will give you more bandwidth for isochronous
FULL speed applications connected through a
High Speed HUB.

This patch has been tested with XHCI and EHCI.

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

12 years agoMFC r233429,r233435,r233437,r234077,r234133,r234135,r234159,r234823:
eadler [Thu, 3 May 2012 19:56:17 +0000 (19:56 +0000)]
MFC r233429,r233435,r233437,r234077,r234133,r234135,r234159,r234823:
A variety of changes that make the default shell easier to use.

Approved by: cperciva (implicit)

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

12 years agoMFC r230108:
eadler [Thu, 3 May 2012 16:49:27 +0000 (16:49 +0000)]
MFC r230108:
Fix trivial typo

Approved by: cperciva (implicit)

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

12 years agoMFC r234131:
eadler [Thu, 3 May 2012 16:31:44 +0000 (16:31 +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/8@234967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r234714, r234700:
eadler [Thu, 3 May 2012 16:20:50 +0000 (16:20 +0000)]
MFC r234714, r234700:
Document the standardization status of err* and warn*

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

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

12 years agoFix multiple OpenSSL vulnerabilities.
bz [Thu, 3 May 2012 15:25:11 +0000 (15:25 +0000)]
Fix multiple OpenSSL vulnerabilities.

Security: CVE-2011-4576, CVE-2011-4619, CVE-2011-4109
Security: CVE-2012-0884, CVE-2012-2110
Security: FreeBSD-SA-12:01.openssl
Approved by: so (bz,simon)

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

12 years agoMFC r234715,r234716:
tuexen [Thu, 3 May 2012 07:17:25 +0000 (07:17 +0000)]
MFC r234715,r234716:

Export symbols for sctp_sendv() and sctp_recvv().
Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
Konstantin Belousov.

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

12 years agoMerge 233103, 233912 from head:
davidxu [Thu, 3 May 2012 03:05:18 +0000 (03:05 +0000)]
Merge 233103, 233912 from head:

233103:
Some software think a mutex can be destroyed after it owned it, for
example, it uses a serialization point like following:
pthread_mutex_lock(&mutex);
pthread_mutex_unlock(&mutex);
pthread_mutex_destroy(&muetx);
They think a previous lock holder should have already left the mutex and
is no longer referencing it, so they destroy it. To be maximum compatible
with such code, we use IA64 version to unlock the mutex in kernel, remove
the two steps unlocking code.

233912:
umtx operation UMTX_OP_MUTEX_WAKE has a side-effect that it accesses
a mutex after a thread has unlocked it, it event writes data to the mutex
memory to clear contention bit, there is a race that other threads
can lock it and unlock it, then destroy it, so it should not write
data to the mutex memory if there isn't any waiter.
The new operation UMTX_OP_MUTEX_WAKE2 try to fix the problem. It
requires thread library to clear the lock word entirely, then
call the WAKE2 operation to check if there is any waiter in kernel,
and try to wake up a thread, if necessary, the contention bit is set again
by the operation. This also mitgates the chance that other threads find
the contention bit and try to enter kernel to compete with each other
to wake up sleeping thread, this is unnecessary. With this change, the
mutex owner is no longer holding the mutex until it reaches a point
where kernel umtx queue is locked, it releases the mutex as soon as
possible.
Performance is improved when the mutex is contensted heavily.  On Intel
i3-2310M, the runtime of a benchmark program is reduced from 26.87 seconds
to 2.39 seconds, it even is better than UMTX_OP_MUTEX_WAKE which is
deprecated now. http://people.freebsd.org/~davidxu/bench/mutex_perf.c

Special code for stable/8:
And add code to detect if the UMTX_OP_MUTEX_WAKE2 is available.

PR: threads/167308

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

12 years agoMFC (with appropriate changes to gpt ikernel structures) r234417:
marck [Wed, 2 May 2012 11:38:58 +0000 (11:38 +0000)]
MFC (with appropriate changes to gpt ikernel structures) r234417:

  VMware environments are not unusual now.  Add VMware partitions recognition
  (both MBR for ESXi <= 4.1 and GPT for ESXi 5) to g_part.

  Reviewed by: ae
  Approved by: ae

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

12 years agoMFC r234415:
mav [Wed, 2 May 2012 07:22:58 +0000 (07:22 +0000)]
MFC r234415:
Some improvements to GEOM MULTIPATH:
 - Implement "configure" command to allow switching operation mode of
running device on-fly without destroying and recreation.
 - Implement Active/Read mode as hybrid of Active/Active and Active/Passive.
In this mode all paths not marked FAIL may handle reads same time,
but unlike Active/Active only one path handles write requests at any
point in time. It allows to closer follow original write request order
if above layers need it for data consistency (not waiting for requisite
write completion before sending dependent write).
 - Hide duplicate messages about device status change.
 - Remove periodic thread wake up with 10Hz rate.

Sponsored by: iXsystems, Inc.

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

12 years agoMFC r223019:
mav [Wed, 2 May 2012 07:08:04 +0000 (07:08 +0000)]
MFC r223019:
Do not report CFA devices as ATAPI, even though IDENTIFY data look alike.

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

12 years agoMFC r222643:
mav [Wed, 2 May 2012 07:05:20 +0000 (07:05 +0000)]
MFC r222643:
When possible, join ranges of subsequest BIO_DELETE requests to handle more
(up to 2048 instead of 256 or even 64) of them with single TRIM request.

OCZ Vertex2/Vertex3 SSDs can handle no more then 64 ranges per TRIM request.
Due to lack of BIO_DELETE clustering now, it means that we could delete no
more then 2MB per request (on FS with 32K block) with limited request rate.
This change increases delete rate on Vertex2 from 250MB/s to 950MB/s.

MFC r222643:
Increase maximum supported number of ranges per TRIM command from 256 to 512
to use full potential of Intel X25-M SSDs. On synthetic test with 32K ranges
it gives about 20% speedup, which probably costs more then 2K of RAM.

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

12 years agoMFC r222336, r222339:
mav [Wed, 2 May 2012 06:58:44 +0000 (06:58 +0000)]
MFC r222336, r222339:
Add names for few more SES element types according SES-2 specification.

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

12 years agoMerge ATA_CAM compatibility shims. While 8-STABLE doesn't have ATA_CAM
mav [Wed, 2 May 2012 06:52:00 +0000 (06:52 +0000)]
Merge ATA_CAM compatibility shims. While 8-STABLE doesn't have ATA_CAM
enabled by default, this should make migration easier for users enabling
it manually.

r221071:
Add shim to simplify migration to the CAM-based ATA. For each new adaX
device in /dev/ create symbolic link with adY name, trying to mimic old ATA
numbering. Imitation is not complete, but should be enough in most cases to
mount file systems without touching /etc/fstab.

r221384:
Do not report legacy unit numbers (do not create legacy aliases) for disks
on port multiplier ports above first two. They don't fit into ATA_STATIC_ID
scheme and so can't be mapped properly. No need to pollute dev.

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

12 years agoMFC r233770:
delphij [Wed, 2 May 2012 00:31:09 +0000 (00:31 +0000)]
MFC r233770:

Eliminate two cases of unwanted strncpy().  The name is not required
by the current code, and the results would get overwritten anyway
by subsequent memset().

Reviewed by: ume

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

12 years agoMFC r234657:
kib [Tue, 1 May 2012 11:45:16 +0000 (11:45 +0000)]
MFC r234657:
Take the spinlock around clearing of the fp->_flags in fclose(3), which
indicates the avaliability of FILE, to prevent possible reordering of
the writes as seen by other CPUs.

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

12 years agoMFC r234762:
tuexen [Tue, 1 May 2012 07:27:23 +0000 (07:27 +0000)]
MFC r234762:
Whitespace changes.

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

12 years agoMFC r234345:
marck [Mon, 30 Apr 2012 22:06:47 +0000 (22:06 +0000)]
MFC r234345:

VMware environment is frequent nowadays.  Add VMFS id.

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

12 years agoMFC r234616:
kib [Mon, 30 Apr 2012 13:44:04 +0000 (13:44 +0000)]
MFC r234616:
Allow for the process information sysctls to accept a thread id in addition
to the process id.

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

12 years agoMFC r233507:
dumbbell [Mon, 30 Apr 2012 13:37:07 +0000 (13:37 +0000)]
MFC r233507:
Use program exit status as pam_exec return code (optional)

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

The following changes are related to this new feature but they apply no
matter if the "return_prog_exit_status" option is set or not.

The environment passed to the program is extended:
    o  $PAM_SM_FUNC contains the name of the PAM service module function
       (eg. pam_sm_authenticate).
    o  All valid PAM return codes' numerical values are available
       through variables named after the return code name. For instance,
       $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED.

pam_exec return code better reflects what went on:
    o  If the program exits with !0, the return code is now
       PAM_PERM_DENIED, not PAM_SYSTEM_ERR.
    o  If the program fails because of a signal (WIFSIGNALED) or doesn't
       terminate normally (!WIFEXITED), the return code is now
       PAM_SERVICE_ERR, not PAM_SYSTEM_ERR.
    o  If a syscall in pam_exec fails, the return code remains
       PAM_SYSTEM_ERR.

waitpid(2) is called in a loop. If it returns because of EINTR, do it
again. Before, it would return PAM_SYSTEM_ERR without waiting for the
child to exit.

Several log messages now include the PAM service module function name.

The man page is updated accordingly.

Reviewed by: des@
Sponsored by: Yakaz (http://www.yakaz.com)

MFC r234184:
Fix error messages containing the executed command name

Before, we took the first argument to pam_exec(8). With the addition of
options in front of the command, this could be wrong.

Now, options are parsed before calling _pam_exec() and messages contain
the proper command name.

While here, fix a warning.

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

12 years agoMFC r234731:
tuexen [Mon, 30 Apr 2012 06:54:44 +0000 (06:54 +0000)]
MFC r234731:
Remove unused structure.
Reported by Irene Ruengeler.

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

12 years agoMFC r234699:
tuexen [Sun, 29 Apr 2012 18:55:52 +0000 (18:55 +0000)]
MFC r234699:

Fix a type in an SCTP AUTH related notification. Keep the old name
for backwards compatibility.
Spotted by Irene Ruengeler.

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

12 years agoMFC r234614:
tuexen [Sun, 29 Apr 2012 18:52:22 +0000 (18:52 +0000)]
MFC r234614:
Use the flags defined in RFC 6525 in the stream reset event.

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

12 years agoMFC r234539:
tuexen [Sun, 29 Apr 2012 18:50:16 +0000 (18:50 +0000)]
MFC r234539:
Fix check used by stream reset related events.

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

12 years agoMFC r234464:
tuexen [Sun, 29 Apr 2012 18:48:00 +0000 (18:48 +0000)]
MFC r234464:
Whitespace changes.

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

12 years agoMFC r234461:
tuexen [Sun, 29 Apr 2012 18:46:19 +0000 (18:46 +0000)]
MFC r234461:
Use the same pattern for mbuf logging everywhere.

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

12 years agoMFC r234460:
tuexen [Sun, 29 Apr 2012 18:44:24 +0000 (18:44 +0000)]
MFC r234460:
Fix reported errno.

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

12 years agoMFC r234459:
tuexen [Sun, 29 Apr 2012 18:42:49 +0000 (18:42 +0000)]
MFC r234459:
Fix a bug where we copy out more data from a mbuf chain that are
ctually in it. This happens when SCTP receives an unknown chunk, which
requires the sending of an ERROR chunk, and there is no final padding but
the chunk is not 4-byte aligned.
Reported by yueting via rwatson@

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

12 years agoMFC r234296,r234297:
tuexen [Sun, 29 Apr 2012 18:40:41 +0000 (18:40 +0000)]
MFC r234296,r234297:

Bugfix: Don't send HBs on path which are not idle.
Send always HBs when in PF state.

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

12 years agoMFC r233940:
tuexen [Sun, 29 Apr 2012 18:37:26 +0000 (18:37 +0000)]
MFC r233940:

Remove duplicate condition in if statement.

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

12 years agoMFC r233660:
tuexen [Sun, 29 Apr 2012 18:35:19 +0000 (18:35 +0000)]
MFC r233660:

Make stream our stream reset implementation
compliant to RFC6525.
From rrs@.

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

12 years agoMFC r233597:
tuexen [Sun, 29 Apr 2012 18:31:29 +0000 (18:31 +0000)]
MFC r233597:

Honor the net.inet.udp.checksum sysctl when using SCTP/UDP/IPv4
encapsulation.

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

12 years agoMFC r233311:
tuexen [Sun, 29 Apr 2012 18:28:58 +0000 (18:28 +0000)]
MFC r233311:

Small cleanup of the code. No functional change (in FreeBSD kernel).

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

12 years agoMFC r234556:
kib [Sun, 29 Apr 2012 10:04:20 +0000 (10:04 +0000)]
MFC r234556:
When MAP_STACK mapping is created, the map entry is created only to
cover the initial stack size. For MCL_WIREFUTURE maps, the subsequent
call to vm_map_wire() to wire the whole stack region fails due to
VM_MAP_WIRE_NOHOLES flag.

Use the VM_MAP_WIRE_HOLESOK to only wire mapped part of the stack.

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

12 years agoMFC r233554:
bz [Sun, 29 Apr 2012 08:51:06 +0000 (08:51 +0000)]
MFC r233554:

 Export the udp_cksum sysctl for upcoming SCTP work.  Rather than always,
 SCTP will only do IPv4 UDP checksum calculation as defined by the host
 policy.  When tunneling SCTP always calculates the inner checksum already
 so not doing the outer UDP can save cycles.

 While here virtualize the variable.

 Requested by: tuexen

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

12 years agoMFC r234038
alc [Sat, 28 Apr 2012 23:05:08 +0000 (23:05 +0000)]
MFC r234038
  If a page belonging a reservation is cached, then mark the reservation so
  that it will be freed to the cache pool rather than the default pool.
  Otherwise, the cached pages within the reservation may be recycled sooner
  than necessary.

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

12 years agoMFH r203377, r215680, r227044, r227105: mainly, respect passwordtime.
des [Fri, 27 Apr 2012 21:40:51 +0000 (21:40 +0000)]
MFH r203377, r215680, r227044, r227105: mainly, respect passwordtime.

PR: 93310, 93473

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

12 years agoMFC r232159:
gjb [Thu, 26 Apr 2012 20:23:14 +0000 (20:23 +0000)]
MFC r232159:
  Whitespace cleanup:
   o Wrap sentences on to new lines
   o Rewrap lines where possible while trying to keep the diff to a
     minimum

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

12 years agoMFC r232157, r232158:
gjb [Thu, 26 Apr 2012 20:16:00 +0000 (20:16 +0000)]
MFC r232157, r232158:

r232157:
  Fix various typos in manual pages.

  Submitted by: amdmi3
  PR:           165431

r232158:
  Whitespace cleanup:
    o Wrap sentences on to new lines
    o Cleanup trailing whitespace

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

12 years agoMFC r234692:
ae [Thu, 26 Apr 2012 05:17:48 +0000 (05:17 +0000)]
MFC r234692:
  Read backup GPT header from the last LBA only when primary GPT header and
  table aren't valid. If they are ok, use hdr_lba_alt value to read backup
  header. This will make gptboot happy when GPT used atop of some GEOM
  provider, e.g. GEOM_MIRROR.

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

12 years agoMFC r234574
melifaro [Wed, 25 Apr 2012 09:56:35 +0000 (09:56 +0000)]
MFC r234574

Fix panic in ng_patch(4) caused by checksum flags being added to mbuf flags.

Tested by:        Maxim Ignatenko <gelraen.ua@gmail.com>
Approved by:      ae(mentor)

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

12 years agoMFC r234339: zfsboot: honor -q if it's present in boot.config
avg [Wed, 25 Apr 2012 07:27:13 +0000 (07:27 +0000)]
MFC r234339: zfsboot: honor -q if it's present in boot.config

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

12 years agoMFC r234338: intpm: add ATI IXP400 pci id
avg [Wed, 25 Apr 2012 07:18:04 +0000 (07:18 +0000)]
MFC r234338: intpm: add ATI IXP400 pci id

PR: kern/136762

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

12 years agoMFC r234208: add actual interrupt counters to back ipi_invlcache_counts
avg [Wed, 25 Apr 2012 07:10:17 +0000 (07:10 +0000)]
MFC r234208: add actual interrupt counters to back ipi_invlcache_counts

Note: i386 only as r209248 has never been MFCed.

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

12 years agoMFC r234207: bump INTRCNT_COUNT values to reflect actual numbers of IPI counters
avg [Wed, 25 Apr 2012 06:48:57 +0000 (06:48 +0000)]
MFC r234207: bump INTRCNT_COUNT values to reflect actual numbers of IPI counters

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

12 years agoMFC r234414:
mav [Wed, 25 Apr 2012 06:22:22 +0000 (06:22 +0000)]
MFC r234414:
Alike to SCSI make adaclose() to not return error if device gone.
This fixes KASSERT panic inside GEOM if kernel built with INVARIANTS.

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

12 years agoMFC r234416:
kib [Wed, 25 Apr 2012 04:57:29 +0000 (04:57 +0000)]
MFC r234416:
Fix string buffer overflow when preparing the line of output.

PR: bin/161739

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

12 years agoMFC: r232702
pho [Tue, 24 Apr 2012 20:27:31 +0000 (20:27 +0000)]
MFC: r232702

Free up allocated memory used by posix_fadvise(2).

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

12 years agoMFC r226186
melifaro [Tue, 24 Apr 2012 10:20:24 +0000 (10:20 +0000)]
MFC r226186

Free mbuf in case when protocol in unknown in ng_ipfw_rcvdata().
This change fixes (theoretically) possible mbuf leak introduced in
r225586. Reorder code a bit and change return codes to be more specific

Approved by:    ae(mentor)

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

12 years agoMFC r234376:
mav [Tue, 24 Apr 2012 07:28:53 +0000 (07:28 +0000)]
MFC r234376:
Add some more SCSI mode pages from SPC-4 spec.

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

12 years agoMFC r232865, r232868, r233478
melifaro [Tue, 24 Apr 2012 07:01:34 +0000 (07:01 +0000)]
MFC r232865, r232868, r233478

- Add ipfw eXtended tables permitting radix to be used for any kind of keys.
- Add support for IPv6 and interface extended tables
- Make number of tables to be changed in runtime in range 0..65534.
- Use IP_FW3 opcode for all new extended table cmds

No ABI changes are introduced. Old userland will see valid tables for
IPv4 tables and no entries otherwise. Flush works for any table.

IP_FW3 socket option is used to encapsulate all new opcodes:
 /* IP_FW3 header/opcodes */
 typedef struct _ip_fw3_opheader {
        uint16_t opcode;        /* Operation opcode */
        uint16_t reserved[3];   /* Align to 64-bit boundary */
 } ip_fw3_opheader;

New opcodes added:
 IP_FW_TABLE_XADD, IP_FW_TABLE_XDEL, IP_FW_TABLE_XGETSIZE, IP_FW_TABLE_XLIST

ipfw(8) table argument parsing behavior is changed:
 'ipfw table 999 add some-unqualified-host' now assumes
 'some-unqualified-host' to be interface name instead of hostname.

New tunable:
 net.inet.ip.fw.tables_max controls number of table supported by ipfw in given
 VNET instance. 128 is still the default value.

Sysctl change:
  net.inet.ip.fw.tables_max is now read-write.

New syntax:
ipfw add skipto tablearg ip from any to any via table(42) in
ipfw add skipto tablearg ip from any to any via table(4242) out

This is a bit hackish, special interface name '\1' is used to signal interface
table number is passed in p.glob field.

Sponsored by Yandex LLC

Approved by:        kib(mentor)

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

12 years agoMFC r234529:
das [Tue, 24 Apr 2012 03:59:18 +0000 (03:59 +0000)]
MFC r234529:
  Ensure that the {,v}swprintf functions always null-terminate the
  output string, even if an encoding error or malloc failure occurs.

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

12 years agoMFC r234528, r234536:
das [Tue, 24 Apr 2012 03:56:39 +0000 (03:56 +0000)]
MFC r234528, r234536:
  Fix an infinite loop in fputws().

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

12 years agoMFC r233160:
bjk [Tue, 24 Apr 2012 03:29:10 +0000 (03:29 +0000)]
MFC r233160:
    Expound a bit more about the system maximum number of FIBs,
    how it may be set, and current limitations on the value.

PR: docs/157453
Approved by: hrs (mentor)

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

12 years agoMFC r233298:
pluknet [Mon, 23 Apr 2012 13:13:46 +0000 (13:13 +0000)]
MFC r233298:
 Garbage collect defunct nlist(3) symbols.

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

12 years agoMFC r234121:
yongari [Mon, 23 Apr 2012 03:40:39 +0000 (03:40 +0000)]
MFC r234121:
  Back out r228476.
  r228476 fixed superfluous link UP/DOWN messages but broke IPMI
  access during boot.  It's not clear why r228476 breaks IPMI and
  should be revisited.

  Reported by: Paul Guyot <paulguyot <> ieee dot org >

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

12 years ago8.3-RELEASE was announced; call this STABLE again.
bz [Sun, 22 Apr 2012 22:39:24 +0000 (22:39 +0000)]
8.3-RELEASE was announced; call this STABLE again.

Reported by: Adrian Wontroba (aw1 stade.co.uk) on stable

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

12 years agoMFC r233387:
bschmidt [Sun, 22 Apr 2012 09:19:19 +0000 (09:19 +0000)]
MFC r233387:
Use suspend/resume methods provided by net80211. This ensures that the
appropriate state handling takes place, not doing so results in the
device doing nothing until manual intervention.

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

12 years agoMFC: revision 232784
nyan [Sun, 22 Apr 2012 03:57:33 +0000 (03:57 +0000)]
MFC: revision 232784

  MFi386: revisions 232570 and 232754

  Fix boot2 to handle boot config files that only contain a custom path to
  a loader or kernel.

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

12 years agoMFC: r228730
melifaro [Sat, 21 Apr 2012 18:30:48 +0000 (18:30 +0000)]
MFC: r228730

Add binding support to libradius(3).
Submitted by:    Sergey Matveychuk <sem33@yandex-team.ru>

Approved by:     kib(mentor)

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

12 years agoMFC r229930
melifaro [Sat, 21 Apr 2012 18:14:46 +0000 (18:14 +0000)]
MFC r229930

Add setsockopt(2) example to ng_ksocket(4).
While here, fix formatting a bit

Approved by:     ae(mentor)

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

12 years agoMFC r233973:
das [Sat, 21 Apr 2012 07:00:00 +0000 (07:00 +0000)]
MFC r233973:
  Fix bugs in remquo{,f,l}.

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

12 years agoMFC: r234303
davide [Fri, 20 Apr 2012 23:00:37 +0000 (23:00 +0000)]
MFC: r234303

Fix a typo.

Approved by: gnn (mentor)

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

12 years agoMFC r227802:
delphij [Fri, 20 Apr 2012 22:27:10 +0000 (22:27 +0000)]
MFC r227802:

Improve the way to calculate available pages in tmpfs:

 - Don't deduct wired pages from total usable counts because it does not
   make any sense.  To make things worse, on systems where swap size is
   smaller than physical memory and use a lot of wired pages (e.g. ZFS),
   tmpfs can suddenly have free space of 0 because of this;
 - Count cached pages as available; [1]
 - Don't count inactive pages as available, technically we could but that
   might be too aggressive; [1]

[1] Suggested by kib@

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

12 years agoMFC of r227310:
rmh [Fri, 20 Apr 2012 22:16:08 +0000 (22:16 +0000)]
MFC of r227310:

Don astbestos garment and remove the warning about TMPFS being experimental
-- highly experimental even. So far the closest to a bug in TMPFS that people
have gotten to relates to how ZFS can take away from the memory that TMPFS
needs. One can argue that such is not a bug in TMPFS. Irrespective, even if
there is a bug here and there in TMPFS, it's not in our own advantage to
scare people away from using TMPFS. I for one have been using it, even with
ZFS, very successfully.

Reviewed by: marcel

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

12 years agoMFC: r233045, r234302
davide [Fri, 20 Apr 2012 22:01:12 +0000 (22:01 +0000)]
MFC: r233045, r234302

r233045:
Add rudimentary profiling of the hash table used in the umtx code to
hold active lock queues.

r234302:
Fix some style bugs introduced in a previous commit (r233045)

Approved by: gnn (mentor)

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

12 years agoMFC: 234234
gnn [Fri, 20 Apr 2012 16:09:28 +0000 (16:09 +0000)]
MFC: 234234

Change SIGUSR1 to SIGTHR to properly wake up a process that is being
traced.  The use of SIGUSR1 caused traced processes (those attached to
with dtrace -p) to exit when dtrace exited.

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

12 years agoMFC: r222475
marius [Fri, 20 Apr 2012 14:45:57 +0000 (14:45 +0000)]
MFC: r222475

Fix read_ivar implementation for MMC and SD.

1. Both mmc_read_ivar() and sdhci_read_ivar() use the expression
'*(int *)result = val' to assign to result which is uintptr_t *.
This does not work on big-endian 64 bit systems.

2. The media_size ivar is declared as 'off_t' which does not fit
into uintptr_t in 32bit systems, change this to long.

Submitted by: kanthms at netlogicmicro com (initial version)

PR: 134745

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

12 years agoMFC of 234158:
mckusick [Thu, 19 Apr 2012 23:04:35 +0000 (23:04 +0000)]
MFC of 234158:

Export vinactive() from kern/vfs_subr.c (e.g., make it no longer
static and declare its prototype in sys/vnode.h) so that it can be
called from process_deferred_inactive() (in ufs/ffs/ffs_snapshot.c)
instead of the body of vinactive() being cut and pasted into
process_deferred_inactive().

Reviewed by: kib

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

12 years agoMFC of 234157:
mckusick [Thu, 19 Apr 2012 22:37:24 +0000 (22:37 +0000)]
MFC of 234157:

Whitespace cleanup.

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

12 years agoMFC r234172:
kib [Thu, 19 Apr 2012 10:53:17 +0000 (10:53 +0000)]
MFC r234172:
Add thread-private flag to indicate that error value is already placed
in td_errno. Flag is supposed to be used by syscalls returning
EJUSTRETURN because errno was already placed into the usermode frame
by a call to set_syscall_retval(9). Both ktrace and dtrace get errno
value from td_errno if the flag is set.

Use the flag to fix sigsuspend(2) error return ktrace records.

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

12 years agoMFC r234336:
mm [Thu, 19 Apr 2012 07:43:44 +0000 (07:43 +0000)]
MFC r234336:
Fix typo miror -> mirror

Reported by: Glen Barber <gjb@FreeBSD.org>

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

12 years agoAdd installation/upgrade instructions for 8.3R.
hrs [Wed, 18 Apr 2012 08:15:55 +0000 (08:15 +0000)]
Add installation/upgrade instructions for 8.3R.

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

12 years agoMFC r234122:
ae [Wed, 18 Apr 2012 05:16:20 +0000 (05:16 +0000)]
MFC r234122:
  It seems that libdisk(3) incorrectly sets d_secperunit value.
  Automatically fix it like GEOM_PART_BSD does.

  PR: bin/165789

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

12 years agoMFC r233179:
ae [Wed, 18 Apr 2012 05:12:17 +0000 (05:12 +0000)]
MFC r233179:
  Document GEOM_PART_LDM scheme and partition types.

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

12 years agoMFC r233176:
ae [Wed, 18 Apr 2012 05:00:25 +0000 (05:00 +0000)]
MFC r233176:
  Add new GEOM_PART_LDM module that implements the Logical Disk Manager
  scheme. The LDM is a logical volume manager for MS Windows NT and it
  is also known as dynamic volumes. It supports about 2000 partitions
  and also provides the capability for software RAID implementations.

  This version implements only partitioning scheme capability and based
  on the linux-ntfs project documentation and several publications across
  the Web. NOTE: JBOD, RAID0 and RAID5 volumes aren't supported.

  An access to the LDM metadata is read-only. When LDM is on the disk
  partitioned with MBR we can also destroy metadata. For the GPT
  partitioned disks destroy action is not supported.

MFC r233177:
  Connect geom_part_ldm module to the build.

MFC r233178:
  Connect geom_part_ldm to the kernel build.

MFC r233181:
  Add CTLFLAG_TUN to sysctls.

MFC r233651:
  Do proper cleanup for the GPT case when an error occurs.

MFC r233652:
  VMDB offset should be greater than logical volume size only for MBR.

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

12 years agoMFC r233175:
ae [Wed, 18 Apr 2012 04:39:37 +0000 (04:39 +0000)]
MFC r233175:
  Make kern.geom.part node not static. Also add CTLFLAG_TUN to the
  check_integrity sysctl.

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

12 years agoMFC 234059:
jhb [Tue, 17 Apr 2012 19:55:55 +0000 (19:55 +0000)]
MFC 234059:
Recognize the RDRAND instruction feature.

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

12 years agoMFC 233296,233300:
pluknet [Tue, 17 Apr 2012 11:55:19 +0000 (11:55 +0000)]
MFC 233296,233300:
 Prevent fs_file NULL pointer dereference.

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

12 years agoMFC r233939:
pluknet [Tue, 17 Apr 2012 11:49:21 +0000 (11:49 +0000)]
MFC r233939:
 Free ballooned pages with the corresponding malloc type.

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

12 years agoMerge 233103 from head:
davidxu [Tue, 17 Apr 2012 09:18:06 +0000 (09:18 +0000)]
Merge 233103 from head:

Some software think a mutex can be destroyed after it owned it, for
example, it uses a serialization point like following:
pthread_mutex_lock(&mutex);
pthread_mutex_unlock(&mutex);
pthread_mutex_destroy(&muetx);
They think a previous lock holder should have already left the mutex and
is no longer referencing it, so they destroy it. To be maximum compatible
with such code, we use IA64 version to unlock the mutex in kernel, remove
the two steps unlocking code.

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

12 years agoMFC r234206:
kevlo [Mon, 16 Apr 2012 01:20:17 +0000 (01:20 +0000)]
MFC r234206:
Partially implement zipinfo (-Z) support.
This fixes some test failures seen with perl 5.12 and 5.14.

PR: bin/166895
Submitted by: swills

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

12 years agoregen
netchild [Sun, 15 Apr 2012 16:56:28 +0000 (16:56 +0000)]
regen

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