]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r246857:
dim [Fri, 22 Feb 2013 18:30:41 +0000 (18:30 +0000)]
MFC r246857:

Regenerate libstdc++'s config.h, synchronizing it with our current
almost-C99 headers.

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

11 years agoMFC r242852, r243069:
mav [Fri, 22 Feb 2013 09:47:21 +0000 (09:47 +0000)]
MFC r242852, r243069:
Several optimizations to sched_idletd():
 - Do not try to steal load from other CPUs if there was no context switches
on this CPU (i.e. it was idle all the time and woke up just for bus mastering
or TLB shutdown). If current CPU was idle, then it is quite unlikely that some
other CPU has load to steal.  Under high I/O rate, when TLB shutdowns cause
numerous CPU wakeups, on 24-CPU system load stealing code may consume up to
25% of all CPU time without giving any benefits.
 - Change code that implements spinning for load to restart spin in case of
context switch.  Previous code periodically called cpu_idle() even under
high interrupt/context switch rate.
 - Rise spinning threshold to 10KHz, where it gives at least some effect
that may worth consumed power.

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

11 years agoMFC r246832:
pluknet [Fri, 22 Feb 2013 08:56:48 +0000 (08:56 +0000)]
MFC r246832:
  vn_io_faults_cnt:
  - use u_long consistently
  - use SYSCTL_ULONG to match the type of variable

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

11 years agoMFC: Merge sendmail 8.14.6 errata issue
gshapiro [Thu, 21 Feb 2013 22:38:39 +0000 (22:38 +0000)]
MFC: Merge sendmail 8.14.6 errata issue

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

11 years agoMFC r226064 (by wxs):
mav [Thu, 21 Feb 2013 20:28:42 +0000 (20:28 +0000)]
MFC r226064 (by wxs):
Fix a typo in a comment.

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

11 years agoMFC r238802:
pluknet [Thu, 21 Feb 2013 20:24:00 +0000 (20:24 +0000)]
MFC r238802:
   Update the 'C1x draft' reference to '.St -isoC-2011' mdoc macro.

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

11 years agoMFC r244980 (by jvf):
mav [Thu, 21 Feb 2013 19:40:46 +0000 (19:40 +0000)]
MFC r244980 (by jvf):
Add Intel Lynx Point PCH HD Audio Device IDs

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

11 years agoMFC r244014 (by ken):
mav [Thu, 21 Feb 2013 19:02:29 +0000 (19:02 +0000)]
MFC r244014 (by ken):

Fix a device departure bug for the the pass(4), enc(4), sg(4) and ch(4)
drivers.

The bug occurrs when a userland process has the driver instance
open and the underlying device goes away.  We get the devfs
callback that the device node has been destroyed, but not all of
the closes necessary to fully decrement the reference count on the
CAM peripheral.

The reason is that once devfs calls back and says the device has
been destroyed, it is moved off to deadfs, and devfs guarantees
that there will be no more open or close calls.  So the solution
is to keep track of how many outstanding open calls there are on
the device, and just release that many references when we get the
callback from devfs.

scsi_pass.c,
scsi_enc.c,
scsi_enc_internal.h:    Add an open count to the softc in these
                        drivers.  Increment it on open and
                        decrement it on close.

                        When we get a devfs callback to say that
                        the device node has gone away, decrement
                        the peripheral reference count by the
                        number of still outstanding opens.

                        Make sure we don't access the peripheral
                        with cam_periph_unlock() after what might
                        be the final call to
                        cam_periph_release_locked().  The
                        peripheral might have been freed, and we
                        will be dereferencing freed memory.

scsi_ch.c,
scsi_sg.c:              For the ch(4) and sg(4) drivers, add the
                        same changes described above, and in
                        addition, fix another bug that was
                        previously fixed in the pass(4) and enc(4)
                        drivers.

                        These drivers were calling destroy_dev()
                        from their cleanup routine, but that could
                        cause a deadlock because the cleanup
                        routine could be indirectly called from
                        the driver's close routine.  This would
                        cause a deadlock, because the device node
                        is being held open by the active close
                        call, and can't be destroyed.

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

11 years agoMFC r237328 (by ken) for recently merged scsi_enc.c:
mav [Thu, 21 Feb 2013 18:56:09 +0000 (18:56 +0000)]
MFC r237328 (by ken) for recently merged scsi_enc.c:

Fix several reference counting and object lifetime issues between
the pass(4) and enc(4) drivers and devfs.

The pass(4) driver uses the destroy_dev_sched() routine to
schedule its device node for destruction in a separate thread
context.  It does this because the passcleanup() routine can get
called indirectly from the passclose() routine, and that would
cause a deadlock if the close routine tried to destroy its own
device node.

In any case, once a particular passthrough driver number, e.g.
pass3, is destroyed, CAM considers that unit number (3 in this
case) available for reuse.

The problem is that devfs may not be done cleaning up the previous
instance of pass3, and will panic if isn't done cleaning up the
previous instance.

The solution is to get a callback from devfs when the device node
is removed, and make sure we hold a reference to the peripheral
until that happens.

Testing exposed some other cases where we have reference counting
issues, and those were also fixed in the pass(4) driver.

cam_periph.c: In camperiphfree(), reorder some of the operations.

The peripheral destructor needs to be called before
the peripheral is removed from the peripheral is
removed from the list.  This is because once we
remove the peripheral from the list, and drop the
topology lock, the peripheral number may be reused.
But if the destructor hasn't been called yet, there
may still be resources hanging around (like devfs
nodes) that haven't been fully cleaned up.

cam_xpt.c: Add an argument to xpt_remove_periph() to indicate
whether the topology lock is already held.

scsi_enc.c: Acquire an extra reference to the peripheral during
registration, and release it once we get a callback
from devfs indicating that the device node is gone.

Call destroy_dev_sched_cb() in enc_oninvalidate()
instead of calling destroy_dev() in the cleanup
routine.

scsi_pass.c: Add reference counting to handle peripheral and
devfs object lifetime issues.

Add a reference to the peripheral and the devfs
node in the peripheral registration.

Don't attempt to add a physical path alias if the
peripheral has been marked invalid.

Release the devfs reference once the initial
physical path alias taskqueue run has completed.

Schedule devfs node destruction in the
passoninvalidate(), and release our peripheral
reference in a new routine, passdevgonecb() once
the devfs node is gone.  This allows the peripheral
to fully go away, and the peripheral destructor,
passcleanup(), will get called.

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

11 years agoMFC r236138 (by ken) for recently merged scsi_enc.c:
mav [Thu, 21 Feb 2013 18:49:05 +0000 (18:49 +0000)]
MFC r236138 (by ken) for recently merged scsi_enc.c:

Work around a race condition in devfs by changing the way closes
are handled in most CAM peripheral drivers that are not handled by
GEOM's disk class.

The usual character driver open and close semantics are that the
driver gets N open calls, but only one close, when the last caller
closes the device.

CAM peripheral drivers expect that behavior to be honored to the
letter, and the CAM peripheral driver code (specifically
cam_periph_release_locked_busses()) panics if it is done incorrectly.

Since devfs has to drop its locks while it calls a driver's close
routine, and it does not have a way to delay or prevent open calls
while it is calling the close routine, there is a race.

The sequence of events, simplified a bit, is:

- devfs acquires a lock
- devfs checks the reference count, and if it is 1, continues to close.
- devfs releases the lock

- 2nd process open call on the device happens here

- devfs calls the driver's close routine

- devfs acquires a lock
- devfs decrements the reference count
- devfs releases the lock

- 2nd process close call on the device happens here

At the second close, we get a panic in
cam_periph_release_locked_busses(), complaining that peripheral
has been released when the reference count is already 0.  This is
because we have gotten two closes in a row, which should not
happen.

The fix is to add the D_TRACKCLOSE flag to the driver's cdevsw, so
that we get a close() call for each open().  That does happen
reliably, so we can make sure that our reference counts are
correct.

Note that the sa(4) and pt(4) drivers only allow one context
through the open routine.  So these drivers aren't exposed to the
same race condition.

scsi_ch.c,
scsi_enc.c,
scsi_enc_internal.h,
scsi_pass.c,
scsi_sg.c:
For these drivers, change the open() routine to
increment the reference count for every open, and
just decrement the reference count in the close.

Call cam_periph_release_locked() in some scenarios
to avoid additional lock and unlock calls.

scsi_pt.c: Call cam_periph_release_locked() in some scenarios
to avoid additional lock and unlock calls.

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

11 years agoMFC r237574:
pfg [Thu, 21 Feb 2013 18:41:35 +0000 (18:41 +0000)]
MFC r237574:

Ensure crunchen uses the same make binary as the rest of the build.

I actually had already merged the crunchgen part of it as part
of the the enhanced ELF support.

Discussed with: Simon Gerraty

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

11 years agoMFC r230590 (by ken) except parts changing ABI:
mav [Thu, 21 Feb 2013 18:15:41 +0000 (18:15 +0000)]
MFC r230590 (by ken) except parts changing ABI:
Add CAM infrastructure to allow reporting when a drive's long read capacity
data changes.

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

11 years agoMFC r238379, r238382 (by bruefer):
mav [Thu, 21 Feb 2013 16:59:28 +0000 (16:59 +0000)]
MFC r238379, r238382 (by bruefer):
Renamed the kern.cam.da.da_send_ordered sysctl and tunable to
kern.cam.da.send_ordered, more in line with the other da sysctls/tunables.
Renamed the kern.cam.ada.ada_send_ordered sysctl and tunable to
kern.cam.ada.send_ordered, more in line with the other da sysctls/tunables.

PR: 169765

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

11 years agoMFC r244983 (by jfv):
mav [Thu, 21 Feb 2013 15:21:25 +0000 (15:21 +0000)]
MFC r244983 (by jfv):
Add Intel Lynx Point PCH SATA Controller Device IDs

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

11 years agoMFC r246616 and r246759:
hselasky [Thu, 21 Feb 2013 07:48:07 +0000 (07:48 +0000)]
MFC r246616 and r246759:

- Move scratch data from the USB bus structure to the USB device
structure so that simultaneous access cannot happen. Protect scratch
area using the enumeration lock.
- Reduce stack usage in usbd_transfer_setup() by moving some big stack
members to the scratch area. This saves around 200 bytes of stack.
- Fix a whitespace.
- Protect control requests using the USB device enumeration lock.
- Make sure all callers of usbd_enum_lock() check the return value.
- Remove the control transfer specific lock.
- Bump the FreeBSD version number, hence external USB modules may need
to be recompiled due to a USB device structure change.

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

11 years agoMFC r246486:
kib [Thu, 21 Feb 2013 06:00:33 +0000 (06:00 +0000)]
MFC r246486:
Document P_PPTRACE.

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

11 years agoMFC r246485:
kib [Thu, 21 Feb 2013 05:59:16 +0000 (05:59 +0000)]
MFC r246485:
Document the detail of interaction between vfork and PT_TRACEME.

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

11 years agoMFC r246476:
kib [Thu, 21 Feb 2013 05:57:51 +0000 (05:57 +0000)]
MFC r246476:
Document the ERESTART translation to EINTR for devfs nodes.

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

11 years agoMFC r246802:
kib [Thu, 21 Feb 2013 05:55:52 +0000 (05:55 +0000)]
MFC r246802:
Print slightly more useful information on the 'bad pte' panic.

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

11 years agoMFC r246801:
kib [Thu, 21 Feb 2013 05:53:42 +0000 (05:53 +0000)]
MFC r246801:
Assert that user address is never qremoved.

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

11 years agoMFC r246484:
kib [Thu, 21 Feb 2013 05:47:52 +0000 (05:47 +0000)]
MFC r246484:
Allow ptrace(2) operation on the child created by vfork(2), if the
debugger is not the parent.

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

11 years agoMFC r246472:
kib [Thu, 21 Feb 2013 05:38:11 +0000 (05:38 +0000)]
MFC r246472:
Stop translating the ERESTART error from the open(2) into EINTR.
Posix requires that open(2) is restartable for SA_RESTART.

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

11 years agoMFC r246371: sh: Do not test for digit_contig in mksyntax.
jilles [Wed, 20 Feb 2013 21:57:01 +0000 (21:57 +0000)]
MFC r246371: sh: Do not test for digit_contig in mksyntax.

ISO/IEC 9899:1999 (E) 5.2.1p3 guarantees that the values of the characters
0123456789 are contiguous.

The generated syntax.c and syntax.h remain the same.

Submitted by: Christoph Mallon

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

11 years agoMFC r246507: sh: Fix a comment.
jilles [Wed, 20 Feb 2013 21:49:52 +0000 (21:49 +0000)]
MFC r246507: sh: Fix a comment.

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

11 years agoMFC r246347, r246348, r246349, r246350, r246351, r246352:
pfg [Wed, 20 Feb 2013 20:56:07 +0000 (20:56 +0000)]
MFC r246347, r246348, r246349, r246350, r246351, r246352:

ext2fs: Miscellaneous cleanups and fixes.

Use EXT2_LINK_MAX instead of LINK_MAX.
Use nitems().
Correct off-by-one errors in FFTODT() and DDTOFT().
Remove useless rootino local variable.
Remove unused em_e2fsb definition.
Move assignment where it is not dead.

Submitted by: Christoph Mallon

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

11 years agoMFC r239359:
pfg [Wed, 20 Feb 2013 20:12:17 +0000 (20:12 +0000)]
MFC r239359:

Remove unused member of struct indir (in_exists) from UFS and EXT2 code.

Discussed with: mjg

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

11 years agoMFC r246804:
jamie [Wed, 20 Feb 2013 04:14:31 +0000 (04:14 +0000)]
MFC r246804:

  Handle (ignore) when a process disappears before it can be tracked.

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

11 years agoMFC r246890:
marcel [Wed, 20 Feb 2013 03:59:45 +0000 (03:59 +0000)]
MFC r246890:
Close a race relating to setting the PCPU pointer (r13).

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

11 years agoMFC r232977 and r233945:
ed [Tue, 19 Feb 2013 17:57:17 +0000 (17:57 +0000)]
MFC r232977 and r233945:

  Make init(8) slightly more robust when /dev/console is missing.

  If the environment doesn't offer a working /dev/console, the existing
  version of init(8) will simply refuse running rc(8) scripts. This means
  you'll only have a system running init(8) and nothing else.

  Change the code to do the following:

  - Open /dev/console like we used to do, but make it more robust to use
    O_NONBLOCK to prevent blocking on a carrier.
  - If this fails, use /dev/null as stdin and /var/log/init.log as stdout
    and stderr.
  - If even this fails, use /dev/null as stdin, stdout and stderr.

  So why us this useful? Well, if you remove the `getpid() == 1' check in
  main(), you can now use init(8) inside jails to properly execute rc(8).
  It still requires some polishing, as existing tools assume init(8) has
  PID 1.

  Also it is now possible to use use init(8) on `headless' devices that
  don't even have a serial boot console.

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

11 years agoMFC r239672 (by rrs):
markj [Tue, 19 Feb 2013 16:39:53 +0000 (16:39 +0000)]
MFC r239672 (by rrs):
  This small change takes care of a race condition
  that can occur when both sides close at the same time.
  If that occurs, without this fix the connection enters
  FIN1 on both sides and they will forever send FIN|ACK at
  each other until the connection times out. This is because
  we stopped processing the FIN|ACK and thus did not advance
  the sequence and so never ACK'd each others FIN. This
  fix adjusts it so we *do* process the FIN properly and
  the race goes away ;-)

Approved by: rrs
Approved by: emaste (co-mentor)

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

11 years agoMFC r246875:
dim [Tue, 19 Feb 2013 08:07:11 +0000 (08:07 +0000)]
MFC r246875:

Import change 40eebf235370b6fe6353784ccf01ab92eed062a5 from upstream wpa:

  From: Jouni Malinen <j@w1.fi>
  Date: Fri, 15 Jul 2011 13:42:06 +0300
  Subject: [PATCH] MD5: Fix clearing of temporary stack memory to use correct length

  sizeof of the structure instead of the pointer was supposed to be used
  here. Fix this to clear the full structure at the end of MD5Final().

Found by: clang ToT
Reviewed by: rpaulo

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

11 years agoMFC r246874:
dim [Tue, 19 Feb 2013 07:55:53 +0000 (07:55 +0000)]
MFC r246874:

Fix two instances of undefined behaviour in contrib/nvi.

Found by: clang ToT
Obtained from: NetBSD
Reviewed by: jh

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

11 years agoMFC r246873:
dim [Tue, 19 Feb 2013 07:50:10 +0000 (07:50 +0000)]
MFC r246873:

In contrib/opie/opiekey.c, use the correct length to zero the secret.

Found by: clang ToT
Reviewed by: delphij

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

11 years agoMFC r246860:
dim [Mon, 18 Feb 2013 22:03:04 +0000 (22:03 +0000)]
MFC r246860:

Fix undefined behaviour in usr.bin/mail/util.c.

Reported by: deeptech71@gmail.com

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

11 years agoMFC r246658: Cross-reference vfs_unbusy(9).
pluknet [Mon, 18 Feb 2013 16:02:17 +0000 (16:02 +0000)]
MFC r246658: Cross-reference vfs_unbusy(9).

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

11 years agoMFC r246630:
ae [Mon, 18 Feb 2013 08:24:39 +0000 (08:24 +0000)]
MFC r246630:
  Add bootcamp support to the loader.

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

11 years agoMFC r246715:
marcel [Mon, 18 Feb 2013 05:05:01 +0000 (05:05 +0000)]
MFC r246715:
Eliminate the PC_CURTHREAD symbol and load the current thread's
thread structure pointer atomically from r13 (the pcpu pointer)
for the current CPU/core.

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

11 years agoMFC r245075:
markj [Sun, 17 Feb 2013 19:49:59 +0000 (19:49 +0000)]
MFC r245075:
  Fix a segfault when bsdgrep -i is given an empty pattern string.

Approved by: emaste (co-mentor)

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

11 years agoMFC r245961 r245962 r245963.
markj [Sun, 17 Feb 2013 19:49:18 +0000 (19:49 +0000)]
MFC r245961 r245962 r245963.

MFC r245961:
  When the 'R' flag is used with a newsyslog.conf entry, some fields of
  the corresponding struct sigwork_entry were left uninitialized,
  potentially causing an early return from do_sigwork(). Ensure that these
  fields are initialized, and handle the 'R' flag properly in
  do_sigwork().

MFC r245962:
  Ensure that newsyslog -n prints the correct message for a rotation rule
  that uses the 'R' flag.

MFC r245963:
  Rename the run_cmd field to sw_runcmd to make it consistent with the
  other fields in struct sigwork_entry.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244734: test(1): Document == alias for =.
jilles [Sun, 17 Feb 2013 14:25:42 +0000 (14:25 +0000)]
MFC r244734: test(1): Document == alias for =.

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

11 years agoMFC r246636:
kib [Sun, 17 Feb 2013 06:06:11 +0000 (06:06 +0000)]
MFC r246636:
Remove the ia64-specific code fragment, which effect is more cleanly
done by the call to trans_prot() function a line before.

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

11 years agoMFC r246296, r246298, r246346;
pfg [Sun, 17 Feb 2013 03:33:13 +0000 (03:33 +0000)]
MFC r246296, r246298, r246346;

crunchide: support non-custom elf object layout.
crunchgen: Permit use of alternative linkers.
crunchide: Put e_shnum into a local variable. [1]

Submitted by: Pete Chou
Reviewed by: Christoph Mallon [1]

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

11 years agoMFC r240355, r239372, r246258;
pfg [Sun, 17 Feb 2013 01:34:41 +0000 (01:34 +0000)]
MFC r240355, r239372, r246258;

ext2fs: general cleanups.

- Remove unused extern declarations in fs.h
- Correct comments in ext2_dir.h
- Several panic() messages showed wrong function names.
- Remove commented out stray line in ext2_alloc.c.
- Remove the unused macro EXT2_BLOCK_SIZE_BITS() and the then
  write-only member e2fs_blocksize_bits from struct m_ext2fs.
- Remove the unused macro EXT2_FIRST_INO() and the then write-only
  member e2fs_first_inode from struct m_ext2fs.
- Remove EXT2_DESC_PER_BLOCK() and the member e2fs_descpb from
  struct m_ext2fs.
- Remove the unused members e2fs_bmask, e2fs_dbpg and
  e2fs_mount_opt from struct m_ext2fs
- Correct harmless off-by-one error for fspath in ext2_vfsops.c.
- Remove the unused and broken macros EXT2_ADDR_PER_BLOCK_BITS()
  and EXT2_DESC_PER_BLOCK_BITS().
- Remove the !_KERNEL versions of the EXT2_* macros.

Submitted by: Christoph Mallon

To ease the ease bringing this change I also brought this changes:
- Fix typo.
- Fix style nit.

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

11 years agopartial MFC of rev=245362:
luigi [Sat, 16 Feb 2013 22:44:02 +0000 (22:44 +0000)]
partial MFC of rev=245362:
enable building virtio devices into static kernels.

I think the 'files.*' entries should be improved (also in HEAD) because
bringing up a vtnet device now requires 3 entries in your kernel config:
"device virtio, device virtio_pci, device vtnet"

but i'll leave the fix to a future commit.

This is also the reason not to enable the device in GENERIC kernels now.

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

11 years agoMFC r246557:
trasz [Fri, 15 Feb 2013 06:52:56 +0000 (06:52 +0000)]
MFC r246557:

In the setfacl(1) manual page, make it clear that for NFSv4 ACLs,
one should really use -a and -x instead of -m.

MFC r246558:

Improve description of the "-m" option to setfacl(1).

MFC r246559:

Fix NFSv4 permission description in setfacl(1) manual page: the 'D'
means delete_child, not delete.

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

11 years agoMFC r246421 and r246454:
hselasky [Thu, 14 Feb 2013 10:48:08 +0000 (10:48 +0000)]
MFC r246421 and r246454:
Add support for buttons on USB audio devices,
like Volume Up, Volume Down and Mute.

Reviewed by:  mav @

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

11 years agoMFC r246397:
hselasky [Thu, 14 Feb 2013 10:32:47 +0000 (10:32 +0000)]
MFC r246397:
Make sure that all mouse buttons are released when clients
using /dev/consolectl close. This fixes a problem where if
a USB mouse is detached while a button is pressed, that
button is never released.

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

11 years agoMFC r246117:
kib [Wed, 13 Feb 2013 23:25:11 +0000 (23:25 +0000)]
MFC r246117:
Rework the __vdso_* symbols attributes to only make the symbols weak,
but use normal references instead of weak. This makes the statically
linked binaries to use fast gettimeofday(2) by forcing the linker to
resolve references and providing the neccessary functions.

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

11 years agoMFC r246116:
kib [Wed, 13 Feb 2013 13:55:54 +0000 (13:55 +0000)]
MFC r246116:
Reduce default shift used to calculate the max frequency for the TSC
timecounter to 1, and correspondingly increase the precision of the
gettimeofday(2) and related functions in the default configuration.

MFC r246212:
Remove the (shift > 0) condition when selecting the get_timecount()
implementation.

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

11 years agoMFC r246412:
pluknet [Wed, 13 Feb 2013 10:16:58 +0000 (10:16 +0000)]
MFC r246412:
  Prezero the acl structure which is to be copied to usermode, to avoid
  leakage of the previous content of padding and unitialized fields.

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

11 years agoMFC r246341:
yongari [Wed, 13 Feb 2013 00:46:41 +0000 (00:46 +0000)]
MFC r246341:
  Rework jumbo frame handling.  QAC confirmed that the controller
  requires 8 bytes alignment on RX buffer.  Given that non-jumbo
  frame works on any alignments I guess this DMA limitation for RX
  buffer could be jumbo frame specific one.  Also I'm not sure
  whether this DMA limitation is related with 64bit DMA.  Previously
  age(4) disabled 64bit DMA addressing due to silent data corruption.
  So we may need more testing on re-enabling 64bit DMA in future.

  While I'm here, change mbuf chaining algorithm to use fixed sized
  buffer and force software checksum if controller reports length
  error. According to QAC, RFD is not updated at all for jumbo frame
  so it works just like alc(4) controllers.  This change also added
  alignment fixup for strict alignment architectures.  Because I'm
  not aware of any non-x86 machines that use age(4) controllers it's
  just for completeness at this moment.

  Wit this change, jumbo frame should work with age(4).

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

11 years agoMFC: r240696, r240698, r240740
bapt [Tue, 12 Feb 2013 23:01:21 +0000 (23:01 +0000)]
MFC: r240696, r240698, r240740

Allow zfs jail and zfs unjail to use both jailnames and jailid

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

11 years agoMFC r246370:
pluknet [Tue, 12 Feb 2013 10:21:02 +0000 (10:21 +0000)]
MFC r246370:
  Remove reference to the rlist code from comments, and fix a typo visible
  in the resulted change.

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

11 years agoMFC r246554:
kib [Mon, 11 Feb 2013 00:50:25 +0000 (00:50 +0000)]
MFC r246554:
The 'end' word was missed in the comment.

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

11 years agoRegenerate src.conf.5 after r246637.
dim [Sun, 10 Feb 2013 21:29:59 +0000 (21:29 +0000)]
Regenerate src.conf.5 after r246637.

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

11 years agoMFC r246259:
dim [Sun, 10 Feb 2013 21:24:47 +0000 (21:24 +0000)]
MFC r246259:

Pull in r170135 from upstream clang trunk:

  Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user
  specifies not to. Dont build ASTMatchers with Rewriter disabled and
  StaticAnalyzer when it's disabled.

  Without all those three, the clang binary shrinks (x86_64) from ~36MB
  to ~32MB (unstripped).

To disable these clang components, and get a smaller clang binary built
and installed, set WITHOUT_CLANG_FULL in src.conf(5).  During the
initial stages of buildworld, those extra components are already
disabled automatically, to save some build time.

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

11 years agoMFC r246016:
cperciva [Sun, 10 Feb 2013 17:48:46 +0000 (17:48 +0000)]
MFC r246016:
  Add a loader tunable "hw.broken_txfifo" which enables a workaround for a
  bug in old versions of QEMU (and Xen, and other places using QEMU code).

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

11 years agoMFC r245976:
kib [Sun, 10 Feb 2013 10:00:35 +0000 (10:00 +0000)]
MFC r245976:
Fix reversed condition.

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

11 years agoMFC r245297:
delphij [Sun, 10 Feb 2013 07:36:23 +0000 (07:36 +0000)]
MFC r245297:

Add ID for Nuvoton WPCM450RA0BX found on Supermicro X9SCA-F motherboards.

While I'm there, also make this driver to attach to devices that have
an unknown device ID.

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

11 years agoMFC r244132:
delphij [Sun, 10 Feb 2013 07:23:23 +0000 (07:23 +0000)]
MFC r244132:

Add -R, an option to restart all enabled "local" services.

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

11 years agoMFC r246255: Use the default policy table of RFC 6724.
ume [Sat, 9 Feb 2013 17:56:57 +0000 (17:56 +0000)]
MFC r246255: Use the default policy table of RFC 6724.

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

11 years agoMFC r241470
bryanv [Sat, 9 Feb 2013 06:31:13 +0000 (06:31 +0000)]
MFC r241470

    Add VirtIO SCSI driver man page

Approved by: grehan (mentor)

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

11 years agoMFC r230461
bryanv [Sat, 9 Feb 2013 06:29:15 +0000 (06:29 +0000)]
MFC r230461

    Connect VirtIO-related manpages to the build.

Approved by: grehan (mentor)

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

11 years agoMFC r238072,r238360,r240430,r241469,r241470,r241495,r244136,r244200
bryanv [Sat, 9 Feb 2013 06:11:45 +0000 (06:11 +0000)]
MFC r238072,r238360,r240430,r241469,r241470,r241495,r244136,r244200

Sync VirtIO with HEAD.

 - r238072: Do not include <sys/types.h> in the local headers.
 - r238360: Various VirtIO improvements
 - r240430: No need to leak these into the includer's namespace.
 - r241469: virtqueue: Fix non-indirect virtqueues
 - r241470: Add Virtio SCSI driver
 - r241495: Fix build with PAE enabled
 - r244136: Remove duplicated lines
 - r244200: Start taskqueues threads after attach cannot fail

Approved by: grehan (mentor)

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

11 years agoMFC r246278;
pfg [Sat, 9 Feb 2013 02:57:37 +0000 (02:57 +0000)]
MFC r246278;

crunch: some more NetBSD syncing.

Obtained from: NetBSD

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

11 years agoMFC r237574, r237625, r246256;
pfg [Sat, 9 Feb 2013 01:08:49 +0000 (01:08 +0000)]
MFC r237574, r237625, r246256;

crunch: Sync some NetBSD changes.

crunchide:
Apr 11, 2009: fix some -Wsign-compare issues.
Sep 20, 1999: Free the right thing.

crunchgen:
Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual)
Oct 30, 2004: Add (unsigned char) cast to ctype functions
Feb 5, 2001: fix nested extern.

examples:
Aug 30, 2007: NetBSD 36867 - trsp references are deprecated

In order to merge this I also had to merge some previous changes:
- Ensure crunchen uses the same make binary as the rest of the
  build.
- Some amount of style(9): function definitions, header ordering,
  and  $FreeBSD$.

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

11 years agoMFC r245264:
delphij [Sat, 9 Feb 2013 00:29:36 +0000 (00:29 +0000)]
MFC r245264:

The current ZFS code expects ddt_zap_count to always succeed by asserting
the underlying zap_count() to return no errors.  However, it is possible
that the pool reaches to such a state where zap_count would return error,
leading to panics when a pool is imported.

This commit changes the ddt_zap_count to return error returned from
zap_count and handle the error appropriately.  With this change, it's now
possible to let zpool rollback damaged transaction groups and import the
pool.

Obtained from: ZFS on Linux github (e8fd45a0f975c6b8ae8cd644714fc21f14fac2bf)

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

11 years agoMFC r245418:
jlh [Fri, 8 Feb 2013 22:13:20 +0000 (22:13 +0000)]
MFC r245418:
Allow commands without any additional arguments, as stated in the
manpage.  While here, exit early when there is nothing to do.

PR:            168415
Submitted by:  Zhihao Yuan (initial version)

MFC r245419:
Remove stray tabs.

Submitted by: kib

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

11 years agoMFC r246219:
kib [Fri, 8 Feb 2013 10:41:51 +0000 (10:41 +0000)]
MFC r246219:
Use MNT_SYNCHRONOUS to decide to write the FAT updates syncrhonously.

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

11 years agoMFC r246218:
kib [Fri, 8 Feb 2013 10:38:12 +0000 (10:38 +0000)]
MFC r246218:
Backup FATs were sometimes marked dirty by copying their first block
from the primary FAT, and then they were not marked clean on unmount.
Force marking them clean when appropriate.

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

11 years agoMFC r246217:
kib [Fri, 8 Feb 2013 10:34:07 +0000 (10:34 +0000)]
MFC r246217:
Fix the corruption of the ".." entry for the directory moved to a
subdirectory of the root on FAT32.

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

11 years agoMFC r246216:
kib [Fri, 8 Feb 2013 10:30:04 +0000 (10:30 +0000)]
MFC r246216:
The mountmsdosfs() function had an insane sanity test, remove it.

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

11 years agoMFC r246215:
kib [Fri, 8 Feb 2013 10:25:24 +0000 (10:25 +0000)]
MFC r246215:
Fix a backwards comment in markvoldirty().

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

11 years agoMFC r246213:
kib [Fri, 8 Feb 2013 10:20:00 +0000 (10:20 +0000)]
MFC r246213:
Assert that the mbuf in the chain has sane length.

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

11 years agoMFC r246242: zfs: add MODULE_VERSION for zfsctrl
avg [Fri, 8 Feb 2013 08:03:03 +0000 (08:03 +0000)]
MFC r246242: zfs: add MODULE_VERSION for zfsctrl

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

11 years agoMFC r246244: solaris compat: remove KM_ZERO
avg [Fri, 8 Feb 2013 07:59:13 +0000 (07:59 +0000)]
MFC r246244: solaris compat: remove KM_ZERO

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

11 years agoMFC r235922:
mav [Thu, 7 Feb 2013 08:27:48 +0000 (08:27 +0000)]
MFC r235922:
Revert devfs part of r235911. I was unaware about old but unfinished
discussion between kib@ and gibbs@ about it.

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

11 years agoMFC r245051:
bjk [Thu, 7 Feb 2013 04:49:28 +0000 (04:49 +0000)]
MFC r245051:

    Grammar fixes and some wordsmithing

    Discussed with: rmacklem

Approved by: hrs (mentor)

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

11 years agoMFC r236426 (by mjacob):
mav [Wed, 6 Feb 2013 22:39:45 +0000 (22:39 +0000)]
MFC r236426 (by mjacob):
Print FC PortID as a hex number. This makes it easy to
figure out domain, etc..

Zero ATIO and INOTify allocations. It makes for much
less guesswork when looking at the structure and
seeing 'deadc0de' present.

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

11 years agoMFC r244016 (by ken):
mav [Wed, 6 Feb 2013 22:32:45 +0000 (22:32 +0000)]
MFC r244016 (by ken):
Make sure we hold the SIM lock when calling xpt_free_path().

Sponsored by:   Spectra Logic Corporation

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

11 years agoMFC r244001 (by ken):
mav [Wed, 6 Feb 2013 22:30:40 +0000 (22:30 +0000)]
MFC r244001 (by ken):
Fix a panic during CAM EDT traversal.

The problem was a race condition between the EDT traversal used by
things like 'camcontrol devlist', and CAM peripheral driver
removal.

The EDT traversal code holds the CAM topology lock, and wants
to show devices that have been invalidated.  It acquires a
reference to the peripheral to make sure the peripheral it is
examining doesn't go away.

However, because the peripheral removal code in camperiphfree()
drops the CAM topology lock to call the peripheral's destructor
routine, we can run into a situation where the EDT traversal
increments the peripheral reference count after free process is
already in progress.  At that point, the reference count is
ignored, because it was 0 when we started the process.

Fix this race by setting a flag, CAM_PERIPH_FREE, that I previously
added and checked in xptperiphtraverse() and xptpdperiphtravsere(),
but failed to use.  If the EDT traversal code sees that flag,
it will know that the peripheral free process has already started,
and that it should not access that peripheral.

Also, fix an inconsistency in the locking between
xptpdperiphtraverse() and xptperiphtraverse().  They now both
hold the CAM topology lock while calling the peripheral traversal
function.

cam_xpt.c:      Change xptperiphtraverse() to hold the CAM topology
                lock across calls to the traversal function.

                Take out the comment in xptpdperiphtraverse() that
                referenced the locking inconsistency.

cam_periph.c:   Set the CAM_PERIPH_FREE flag when we are in the
                process of freeing a peripheral driver.

Sponsored by:   Spectra Logic Corporation

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

11 years agoMFC r242358 (by trasz):
mav [Wed, 6 Feb 2013 22:25:28 +0000 (22:25 +0000)]
MFC r242358 (by trasz):
Use M_ZERO instead of explicit memsets and bzeros.

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

11 years agoMFC r241503:
mav [Wed, 6 Feb 2013 22:22:15 +0000 (22:22 +0000)]
MFC r241503:
XPT_DEV_MATCH is probably the only xpt_action() method that is called
without holding SIM lock. It really doesn't need that lock, but adding it
removes that specific exception, allowing to assert locking there later.

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

11 years agoMFC r235911, r235980, r238739, r238740, r238894, r239213, r241488, r241952,
mav [Wed, 6 Feb 2013 22:07:38 +0000 (22:07 +0000)]
MFC r235911, r235980, r238739, r238740, r238894, r239213, r241488, r241952,
r242173, r242621, r242634, r242638, r242647, r242720, r244418, r244508,
r245891:
Revamp the CAM enclosure services driver.
This updated driver uses an in-kernel daemon to track state changes and
publishes physical path location information for disk elements into the
CAM device database.

Sponsored by:   Spectra Logic Corporation
Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r242175:
mav [Wed, 6 Feb 2013 18:40:07 +0000 (18:40 +0000)]
MFC r242175:
Remove priority enforcement from xpt_ation().  It is not good and even not
safe in some cases to reduce CCB priority after it was scheduled with high
priority.  This fixes reproducible deadlock when command sent through the
pass interface while ATA XPT recovers from command timeout.

Instead of that enforce priority at passioctl().  libcam provides no obvious
interface to specify CCB priority and so much (all?) code specifies zero
(highest) priority.  This change limits pass CCBs priority to NORMAL run
level, allowing XPT to complete bus and device recovery after reset before
running any payload.

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

11 years agoMFC r242174:
mav [Wed, 6 Feb 2013 18:36:26 +0000 (18:36 +0000)]
MFC r242174:
Remove several uses of numeric priorities from immediate CCB setups.

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

11 years agoMFC r240993 (by trasz):
mav [Wed, 6 Feb 2013 18:32:12 +0000 (18:32 +0000)]
MFC r240993 (by trasz):
Remove useless NULL checks after M_WAITOK allocations.

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

11 years agoMFC r240948 (by trasz):
mav [Wed, 6 Feb 2013 18:30:53 +0000 (18:30 +0000)]
MFC r240948 (by trasz):
Fix panic in CTL caused by trying to free invalid pointers passed
by the userland process via the IOCTL interface.

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

11 years agoMFC r238595, r238596:
mav [Wed, 6 Feb 2013 18:21:36 +0000 (18:21 +0000)]
MFC r238595, r238596:
Add bunch of new ASC/ASCQ values from T10 site.

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

11 years agoMFi386: Remove firewire devices.
nyan [Wed, 6 Feb 2013 13:55:02 +0000 (13:55 +0000)]
MFi386: Remove firewire devices.

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

11 years agoMFC r246119:
kib [Wed, 6 Feb 2013 13:53:59 +0000 (13:53 +0000)]
MFC r246119:
Rework the handling of the children for the pthread_vfork_test.  The
trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to
not abandon our zombies to init(8). This way, the zombies are around
slightly longer, allowing to actually exercise the logic for p_pwait
use by the test.

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

11 years agoMFC r246118:
kib [Wed, 6 Feb 2013 13:49:56 +0000 (13:49 +0000)]
MFC r246118:
The case of pid == WAIT_MYPGRP for the kern_wait() is already handled
in kern_wait6(), which is called by kern_wait().  Remove the redundand
check, introduced in r243136, and add a comment noting this, to make
the code less confusing.

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

11 years agoMFC r245696:
zont [Wed, 6 Feb 2013 13:16:43 +0000 (13:16 +0000)]
MFC r245696:
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

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

11 years agoMFC r245457:
zont [Wed, 6 Feb 2013 13:13:15 +0000 (13:13 +0000)]
MFC r245457:
- Detect when we are in KVM.

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

11 years agoMFC r246113 and r246126:
hselasky [Wed, 6 Feb 2013 11:08:11 +0000 (11:08 +0000)]
MFC r246113 and r246126:
Add missing NULL pointer check.

Reported by:  Lars Engels

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

11 years agoMFC: Remove firewire devices missed in r244992.
hrs [Wed, 6 Feb 2013 07:20:09 +0000 (07:20 +0000)]
MFC: Remove firewire devices missed in r244992.

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

11 years agoMFC r246299;
pfg [Wed, 6 Feb 2013 02:51:25 +0000 (02:51 +0000)]
MFC r246299;

UFS: Remove dead assignment.

PR: kern/175794
Submitted by: Christoph Mallon

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

11 years agoMFC:
delphij [Wed, 6 Feb 2013 00:42:23 +0000 (00:42 +0000)]
MFC:

one-true-awk 20121220.

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

11 years agoMFC r246028 (by theraven):
dim [Tue, 5 Feb 2013 19:10:50 +0000 (19:10 +0000)]
MFC r246028 (by theraven):

  Fix some symbol version mismatches between libstdc++ and libsupc++/libcxxrt
  that were causing the runtime and STL libraries to see different versions of
  various classes and functions when libstdc++ is used as a filter.

  Note: This changes the ABI for libcxxrt, but libcxxrt is currently only in
  -STABLE for testing and is not used by anything unless explicitly enabled by
  the end user.  No default compiler configurations use it.

  libc++ will need to be recompiled after this change.  make buildworld will do
  this automatically, but make in lib/libc++ will not necessarily work unless the
  new libcxxrt is installed first.

  PR: kern/171610, stand/175453
  Reviewed by: kib

MFC r246297:

  Add several missing symbols to libcxxrt's symbol version map, and remove
  a few duplicates.  This should fix building world with -stdlib=libc++
  after r246028.

  Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>

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

11 years agoMFH r246362: remove political propaganda
des [Tue, 5 Feb 2013 14:53:05 +0000 (14:53 +0000)]
MFH r246362: remove political propaganda

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