]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC r236596:
eadler [Sun, 2 Sep 2012 18:54:47 +0000 (18:54 +0000)]
MFC r236596:
Fix style nit: don't use leading zero for dates in .Dd

Approved by: cperciva (implicit)

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

11 years agoMFC r237178,r237180:
eadler [Sun, 2 Sep 2012 18:44:43 +0000 (18:44 +0000)]
MFC r237178,r237180:
Fix mdoc style nits

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

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

11 years agoMFC r235251,r238205:
eadler [Sun, 2 Sep 2012 18:40:14 +0000 (18:40 +0000)]
MFC r235251,r238205:

Add Spanish Dvorak keyboard model to syscons.

(not verified to be accurate)

PR: conf/160235
Approved by: cperciva (implicit)

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

11 years agoMFC r238199:
eadler [Sun, 2 Sep 2012 18:33:47 +0000 (18:33 +0000)]
MFC r238199:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r238206:
eadler [Sun, 2 Sep 2012 18:19:37 +0000 (18:19 +0000)]
MFC r238206:
Add missing sleep stat increase

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

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

11 years agoMFC r238201:
eadler [Sun, 2 Sep 2012 18:17:16 +0000 (18:17 +0000)]
MFC r238201:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r238203:
eadler [Sun, 2 Sep 2012 18:13:18 +0000 (18:13 +0000)]
MFC r238203:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r238221:
eadler [Sun, 2 Sep 2012 18:10:30 +0000 (18:10 +0000)]
MFC r238221:
Fix always 0 tautologly revealed by gcc46

Approved by: cperciva (implicit)

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

11 years agoMFC r238399:
eadler [Sun, 2 Sep 2012 18:08:46 +0000 (18:08 +0000)]
MFC r238399:
Document the behavior of mount with failok specified.

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

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

11 years agoMFC r239076:
eadler [Sun, 2 Sep 2012 18:04:27 +0000 (18:04 +0000)]
MFC r239076:
Add support for SIIG Cyber Serial Dual PCI 16C850

Approved by: cperciva (implicit)

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

11 years agoMFC r239047:
eadler [Sun, 2 Sep 2012 18:00:57 +0000 (18:00 +0000)]
MFC r239047:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r239383:
trociny [Sat, 1 Sep 2012 10:39:01 +0000 (10:39 +0000)]
MFC r239383:

In ip6_ctloutput() guard inp_flags modifications with INP_WLOCK.

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

11 years agoMFC r239075:
trociny [Sat, 1 Sep 2012 10:33:53 +0000 (10:33 +0000)]
MFC r239075:

In tcp timers, check INP_DROPPED flag a little later, after
callout_deactivate(), so if INP_DROPPED is set we return with the
timer active flag cleared.

For me this fixes negative keep timer values reported by `netstat -x'
for connections in CLOSE state.

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

11 years agoMFC r238309:
trociny [Sat, 1 Sep 2012 10:28:20 +0000 (10:28 +0000)]
MFC r238309:

In epair_clone_destroy(), when destroying the second half, we have to
switch to its vnet before calling ether_ifdetach(). Otherwise if the
second half resides in a different vnet, if_detach() silently fails
leaving a stale pointer in V_ifnet list, and the system crashes trying
to access this pointer later.

Another solution could be not to allow to destroy epair unless both
ends are in the home vnet.

Discussed with: bz
Tested by: delphij

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

11 years agoMFC r238085:
trociny [Sat, 1 Sep 2012 10:21:56 +0000 (10:21 +0000)]
MFC r238085:

Fix KASSERT message.

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

11 years agoMFC r238084:
trociny [Sat, 1 Sep 2012 10:00:37 +0000 (10:00 +0000)]
MFC r238084:

Don't check for ifp != NULL before KASSERT, as ifp may not be NULL here
(it is dereferenced below).

Discussed with: jhb

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

11 years agoRevert 239931 and 239932 until I figure out why it breaks on stable branches
delphij [Fri, 31 Aug 2012 06:42:51 +0000 (06:42 +0000)]
Revert 239931 and 239932 until I figure out why it breaks on stable branches
but not on -HEAD.

Noticed by: tinderbox
Pointy hat to: delphij

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

11 years agoMFC r238964:
delphij [Fri, 31 Aug 2012 00:34:48 +0000 (00:34 +0000)]
MFC r238964:

Teach md5(1) about sha512.

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

11 years agoMFC 239128:
jhb [Thu, 30 Aug 2012 20:43:01 +0000 (20:43 +0000)]
MFC 239128:
Don't try to stop the IPMI watchdog timer if it is not running.
Starting or stopping the IPMI watchdog is rather expensive with the
current implementation as all IPMI requests are bounced via thread.
This is not viable during shutdown or dumps, and this avoids headache
in the common case that the watchdog is not enabled.  The IPMI watchdog
should probably be reworked to not use a separate thread to fix this
in the case when the watchdog timer is enabled.

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

11 years agoMFC 239103:
jhb [Thu, 30 Aug 2012 19:47:15 +0000 (19:47 +0000)]
MFC 239103:
Explicitly enable busmastering on PCI-PCI bridges.  Transactions initiated
on the secondary side of a bridge will not be propagated to the primary
bus unless this is enabled.  Busmastering is not enabled by default (we
have relied on firmware to set this bit to date).  The OS needs to set it
for any bridges not configured by system firmware.

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

11 years agoMFC 238424:
jhb [Thu, 30 Aug 2012 18:30:08 +0000 (18:30 +0000)]
MFC 238424:
Make the interval timings for EVFILT_TIMER more accurate.  tvtohz() always
adds an extra tick to account for the current partial clock tick.  However,
that is not appropriate for a repeating timer when the exact tvtohz() value
should be used for subsequent intervals.  Fix repeating callouts for
EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the
fix used in realitexpire() for interval timers.

While here, update a few comments to note that if the EVFILT_TIMER code
were to move out of kern_event.c, it should move to kern_time.c (where the
interval timer code it mimics lives) rather than kern_timeout.c.

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

11 years agoMFC r238972:
kib [Thu, 30 Aug 2012 11:00:00 +0000 (11:00 +0000)]
MFC r238972:
Add lfence().

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

11 years agoMFC 238310:
jhb [Wed, 29 Aug 2012 20:50:01 +0000 (20:50 +0000)]
MFC 238310:
Partially revert r217515 so that the mem_range_softc variable is always
present on x86 kernels.  This fixes the build of kernels that include
'device acpi' but do not include 'device mem'.

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

11 years agoMFC 238024:
jhb [Wed, 29 Aug 2012 19:17:35 +0000 (19:17 +0000)]
MFC 238024:
Add a one second sleep before touching the spool directory.  If the touch
occurs in the same second as the earlier operations to create the temporary
file and the cron(8) daemon is rescans the spool directory during that
second, then the daemon may miss a cron edit and not properly update its
internal database.

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

11 years agoMFC 238000,239584:
jhb [Wed, 29 Aug 2012 19:12:53 +0000 (19:12 +0000)]
MFC 238000,239584:
Honor db_pager_quit in 'show malloc', 'show uma', and 'show witness'.

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

11 years agoMFC 238077:
jhb [Wed, 29 Aug 2012 17:36:31 +0000 (17:36 +0000)]
MFC 238077:
Fix panics triggered by older mfiutil binaries run on the new mfi(4) driver.
The new driver changed the size of the mfi_dcmd_frame structure in such a
way that a MFI_IOC_PASSTHRU ioctl from an old amd64 binary is treated as an
MFI_IOC_PASSTHRU32 ioctl in the new driver.  As a result, the user pointer
is treated as the buffer length.  mfi_user_command() doesn't have a bounds
check on the buffer length, so it passes a really big value to malloc()
which panics when it tries to exhaust the kmem_map.  Fix this two ways:
- Only honor MFI_IOC_PASSTHRU32 if the binary has the SV_ILP32 flag set,
  otherwise treat it as an unknown ioctl.
- Add a bounds check on the buffer length passed by the user.  For now
  it fails any user attempts to use a buffer larger than 1MB.

While here, fix a few other nits:
- Remove an unnecessary check for a NULL return from malloc(M_WAITOK).
- Use the ENOTTY errno for invalid ioctl commands instead of ENOENT.

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

11 years agoMFC r238835:
kib [Wed, 29 Aug 2012 16:44:50 +0000 (16:44 +0000)]
MFC r238835:
Document F_DUP2FD_CLOEXEC.

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

11 years agoMFC r238615:
kib [Wed, 29 Aug 2012 16:43:57 +0000 (16:43 +0000)]
MFC r238615:
Document F_DUPFD_CLOEXEC.

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

11 years agoMFC r238834:
kib [Wed, 29 Aug 2012 16:42:26 +0000 (16:42 +0000)]
MFC r238834:
Add F_DUP2FD_CLOEXEC.

PR: standards/169962

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

11 years agoMFC r238614:
kib [Wed, 29 Aug 2012 16:37:48 +0000 (16:37 +0000)]
MFC r238614:
Implement F_DUPFD_CLOEXEC command for fcntl(2), specified by SUSv4.

MFC r238627:
Remove line which was accidentally kept in r238614.

PR: standards/169962

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

11 years agoMerge r225538 from head:
gavin [Wed, 29 Aug 2012 12:52:04 +0000 (12:52 +0000)]
Merge r225538 from head:

  Include descriptions for keymaps missing from INDEX.keymaps.  This fixes
  the five keymaps referred to only by filename on the keymap selection
  screen of bsdinstall.

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

11 years agoMerge r239037,239050 from head:
gavin [Wed, 29 Aug 2012 12:47:00 +0000 (12:47 +0000)]
Merge r239037,239050 from head:
  Support multiple interface devices.  The driver had previously hardcoded
  support for only the first port, but the CP2105 can have multiple ports.
  Although without this change the the first port mostly worked on multi
  port devices, there could still be issues with this arrangement.

  Update the man page to reflect support for both ports and the CP2105.

  Many thanks to Silicon Labs (www.silabs.com) for providing a CP2105-EK
  dev board for testing.

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

11 years agoMFC r238878:
bz [Wed, 29 Aug 2012 12:44:14 +0000 (12:44 +0000)]
MFC r238878:

  For consistency put the IPsec comment iside the #fidef section.

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

11 years agoMFC 237338:
jhb [Wed, 29 Aug 2012 12:35:50 +0000 (12:35 +0000)]
MFC 237338:
Don't return an error if a kld does not contain any modules (e.g. a
kld that only contained a sysctl).  The kernel linker allows such
modules, so the boot loader should not reject them.

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

11 years agoMerge r238803, r238804 from head:
gavin [Wed, 29 Aug 2012 12:18:42 +0000 (12:18 +0000)]
Merge r238803, r238804 from head:

  Add support for more devices to uslcom(4).  This commit syncronises the
  list of supported devices with the union of:

  NetBSD  src/sys/dev/usb/uslsa.c 1.18
  OpenBSD src/sys/dev/usb/uslcom.c 1.24
  Linux   source/drivers/usb/serial/cp210x.c HEAD

  Remove duplicate JABLOTRON PC60B entry.

  Note that some of the devices added here are multi-port devices.  The
  uslcom(4) driver currently only supports the first port on such devices.

  Update the man page to reflect the full list of supported devices.
  Remove two caveats from the CAVEATS section, as both listed caveats no
  longer apply.  Add a caveat about multi-port devices.

  Improve descriptions for several devices supported by uslcom(4).
  Correct the spelling of the company Telegesis.
  Move MpMan to the correct location alphabetically.

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

11 years agoMFC r238229: acpi_cpu: we are able to handle _CST change notifications
avg [Wed, 29 Aug 2012 09:02:02 +0000 (09:02 +0000)]
MFC r238229:  acpi_cpu: we are able to handle _CST change notifications

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

11 years agoMFC r238194: acpi_cpu_generic_cx_probe: for consistency set cpu_non_c3
avg [Wed, 29 Aug 2012 08:59:02 +0000 (08:59 +0000)]
MFC r238194: acpi_cpu_generic_cx_probe: for consistency set cpu_non_c3
here too

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

11 years agoMFC r238192: acpi_cpu_cx_cst: consistently use cpu_cx_count during state
avg [Wed, 29 Aug 2012 08:46:04 +0000 (08:46 +0000)]
MFC r238192: acpi_cpu_cx_cst: consistently use cpu_cx_count during state
enumeration

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

11 years agoMFC r215188: Create C1 state when _CST is valid but _CST does not have one.
avg [Wed, 29 Aug 2012 08:44:21 +0000 (08:44 +0000)]
MFC r215188: Create C1 state when _CST is valid but _CST does not have one.

On behalf of: jkim

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

11 years agoMFC r238418: acpi_cpu: separate a notion of current deepest
avg [Wed, 29 Aug 2012 08:34:16 +0000 (08:34 +0000)]
MFC r238418: acpi_cpu: separate a notion of current deepest
allowed+available Cx level from a user-set persistent limit on the said level

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

11 years agoMFC 230782,237274:
jhb [Tue, 28 Aug 2012 18:45:20 +0000 (18:45 +0000)]
MFC 230782,237274:
Refine the implementation of POSIX_FADV_NOREUSE to perform
POSIX_FADV_DONTNEED requests on the currently accessed portion of the
file on each read(2) or write(2) rather than using direct I/O.  This
gives much better performance including read-ahead and write clustering
similar to normal read(2) and write(2) calls.

If subsequent read(2) and write(2) calls are sequential, then the
POSIX_FADV_DONTNEED requests will cover the entire sequentially-accessed
range.

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

11 years agoMFC r238877:
bz [Tue, 28 Aug 2012 12:56:28 +0000 (12:56 +0000)]
MFC r238877:

  Fix a comment that we do not have an SA yet but need to acquire one.

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

11 years agoMFC r239588:
kib [Tue, 28 Aug 2012 10:15:30 +0000 (10:15 +0000)]
MFC r239588:
Provide some compat32 shims for sysctl vfs.conflist. It is required
for getvfsbyname(3) operation when called from 32bit process, and
getvfsbyname(3) is used by recent bsdtar import.

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

11 years agoMFC 237646,237656,238020:
jhb [Mon, 27 Aug 2012 19:55:31 +0000 (19:55 +0000)]
MFC 237646,237656,238020:
- Add a new line to top that provides a brief summary of the ZFS ARC memory
  usage on hosts using ZFS.  The new line displays the total amount of RAM
  used by the ARC along with the size of MFU, MRU, anonymous (in flight),
  headers, and other (miscellaneous) sub-categories.  The line is not
  displayed on systems that are not using ZFS.
- Clarify that the cached file data pages included in the "Wired" count
  in top are the BIO-level cached data (i.e. "Buf"), since the previous
  phrase was a bit ambiguous with the "Cache" count.

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

11 years agoMFC r239545, r239665:
jimharris [Mon, 27 Aug 2012 15:52:09 +0000 (15:52 +0000)]
MFC r239545, r239665:

Fix/add support for SCSI UNMAP to ATA DSM translation.

(Note: scsi_da does not support BIO_DELETE->SCSI_UNMAP on this
stable branch, but I am MFC'ing the changes to keep a
consistent driver across all stable releases.)

This addresses kernel panic observed when sending SCSI UNMAP
commands to SATA disks attached to isci(4).

1) Flesh out callback routines to allocate/free buffers needed for
translating SCSI UNMAP data to ATA DSM data.
2) Add controller-level pool for storing buffers previously allocated
for UNMAP translation, to lessen chance of no buffer available
under memory pressure.
3) Ensure driver properly handles case where buffer pool is empty
and contigmalloc returns NULL.
4) Clear freeze bit in isci_remote_device_release_lun_queue() before
calling xpt_release_devq to ensure that any ccbs which immediately
start during the call to xpt_release_devq() see an accurate picture
of the frozen_lun_mask.  This code path is extensively exercised
when tagged read/write commands mix with non-tagged DSM commands.

Sponsored by: Intel

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

11 years agoMerge r238778 from head:
gavin [Mon, 27 Aug 2012 13:50:01 +0000 (13:50 +0000)]
Merge r238778 from head:

  The baud rate on CP1201/2/3 devices can be set in one of two ways:
   - The USLCOM_SET_BAUD_DIV command (0x01)
   - The USLCOM_SET_BAUD_RATE command (0x13)

  Devices based on the CP1204 will only accept the latter command, and ignore
  the former.  As the latter command works on all chips that this driver
  supports, switch to always using it.

  A slight confusion here is that the previously used command was incorrectly
  named USLCOM_BAUD_RATE - even though we no longer use it, rename it to
  USLCOM_SET_BAUD_DIV to closer match the name used in the datasheet.

  This change reflects a similar change made in the Linux driver, which was
  submitted by preston.fick at silabs.com, and has been tested on all of the
  uslcom(4) devices I have to hand.

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

11 years agoMerge r238396 from head:
gavin [Mon, 27 Aug 2012 13:05:15 +0000 (13:05 +0000)]
Merge r238396 from head:

  Update to reflect new core team.

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

11 years agoMerge r238766, r238774 from head:
gavin [Mon, 27 Aug 2012 12:45:41 +0000 (12:45 +0000)]
Merge r238766, r238774 from head:
  Update the list of devices supported by uplcom.  Although this only adds
  one device (support for Motorola cables), this syncronises us with:

  OpenBSD src/sys/dev/usb/uplcom.c 1.56
  NetBSD  src/sys/dev/usb/uplcom.c 1.73
  Linux   kernel.org HEAD

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

11 years agoMFC r239649:
bschmidt [Fri, 24 Aug 2012 14:22:47 +0000 (14:22 +0000)]
MFC r239649:
Document update of 802.11s IE identifiers.

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

11 years agoMFC r231187:
bschmidt [Thu, 23 Aug 2012 17:09:58 +0000 (17:09 +0000)]
MFC r231187:
Update the 802.11s IE numbers to represent the latest 802.11 amendment
standard.

This update breaks compatibility with older mesh setups but is necessary as
the previous IDs are used by another amendment leading to unexpected results
when trying to associate with an accesspoint using the affected IDs.

Discussed with: re
Tested by: honestqiao at gmail dot com

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

11 years agoMFC r239464:
delphij [Thu, 23 Aug 2012 00:39:08 +0000 (00:39 +0000)]
MFC r239464:

As of r232844 we no longer need the maxpoll 9 workaround.

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

11 years agoMFC r239247:
kib [Wed, 22 Aug 2012 20:34:23 +0000 (20:34 +0000)]
MFC r239247:
Adjust the r205536, by allowing a non-zero offset for anonymous
mappings for a.out binaries. Apparently, a.out ld.so from FreeBSD
1.1.5.1 can issue such requests.

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

11 years agoMFC r238178, 238624, 238810:
pfg [Wed, 22 Aug 2012 20:07:10 +0000 (20:07 +0000)]
MFC     r238178, 238624, 238810:

Re-merge a couple of changes from NetBSD libedit.

bin/sh has been taught about el_gets setting the count to -1
on error, so now we can partially revert r238173 to reduce
differences with NetBSD's implementation.

Also fix some warnings to be more in sync with NetBSD.

Obtained from: NetBSD

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

11 years agoMFC r238502:
mdf [Wed, 22 Aug 2012 17:16:05 +0000 (17:16 +0000)]
MFC r238502:

Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.

The code was not taking into account the size of the kernel_map, which
the kmem_map is allocated from, so it could produce a sub-map size too
large to fit.  The simplest solution is to ignore VM_KMEM_MAX entirely
and base the memguard map's size off the kernel_map's size, since this
is always relevant and always smaller.

Found by: Justin Hibbits

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

11 years agoMFC: r234313,234315,234322,234351,234870,235726,238461
bapt [Wed, 22 Aug 2012 08:27:37 +0000 (08:27 +0000)]
MFC: r234313,234315,234322,234351,234870,235726,238461

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

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

11 years agoMFC r239125:
kib [Wed, 22 Aug 2012 05:38:06 +0000 (05:38 +0000)]
MFC r239125:
Do not apply errata 721 workaround when under hypervisor, since
typical hypervisor does not implement access to the required MSR,
causing #GP on boot.

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

11 years agoMFC r239038:
kib [Wed, 22 Aug 2012 05:28:55 +0000 (05:28 +0000)]
MFC r239038:
Remove verbose unused commented out debugging printf.

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

11 years agoMFC r239135:
kib [Wed, 22 Aug 2012 05:23:56 +0000 (05:23 +0000)]
MFC r239135:
Always initialize pl_event.

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

11 years agoMFC r238377:
pfg [Tue, 21 Aug 2012 21:46:44 +0000 (21:46 +0000)]
MFC r238377:

Merge libedit adjustment from NetBSD.

On recent versions of NetBSD's libedit, el_gets
now sets el_len to -1 on error so we can
distinguish between a NULL string and an error.

This fixes sh from exiting with newer versions
of libedit now allowing EINTR to return.

Obtained from: NetBSD
Reviewed by: jilles

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

11 years agoMFC 237817:
pfg [Tue, 21 Aug 2012 21:21:51 +0000 (21:21 +0000)]
MFC 237817:

Bump dtrace_helper_actions_max from 32 to 128

Dave Pacheco from Joyent (and Dtrace.org) bumped the cap to 1024 but,
according to his blog, 128 is the recommended minimum.

For now bump it safely to 128 although we may have to bump it further
if there is demand in the future.

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

11 years agoMFC 238457:
pfg [Tue, 21 Aug 2012 21:11:59 +0000 (21:11 +0000)]
MFC 238457:

1458 D compiler fails to generate error on sizeof() an undefined struct

Reference:
https://www.illumos.org/issues/1458

Obtained from: Illumos

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

11 years agoMFC r238558:
pfg [Tue, 21 Aug 2012 21:06:17 +0000 (21:06 +0000)]
MFC r238558:

Dtrace: improve handling of library paths.

Merge changes from illumos

906 dtrace depends_on pragma should search all library paths, not just the
current one

949 dtrace should only include the first instance of a library found on
its library path

Obtained from: Illumos

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

11 years agoMFC r238509:
pfg [Tue, 21 Aug 2012 21:01:24 +0000 (21:01 +0000)]
MFC     r238509:

Use libc's strndup() instead of Dtrace's reimplementation.

Corresponds partially to OpenSolaris change:
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6901783 strndup would be nice.

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

11 years agoMFC r238673:
mav [Tue, 21 Aug 2012 11:43:01 +0000 (11:43 +0000)]
MFC r238673:
Use 16bit PIO instead of 32bit in case of misaligned buffer.
It fixes kernel panic during CD write with cdrecord on sparc64.

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

11 years agoMFC: r239089
marius [Tue, 21 Aug 2012 10:30:57 +0000 (10:30 +0000)]
MFC: r239089

- Merge from NetBSD:
  When issuing a non-DMA command, make sure to set the "remaining length of
  command to be transferred via DMA" (sc_cmdlen) to zero up-front, otherwise
  we might get confused on command competition interrupt (no DMA active but
  still data left to transfer).
- Implement handling of MSG_IGN_WIDE_RESIDUE which some targets produce, as
  just rejecting these leads to a resend and disconnect loop.
  Reported and tested by: mjacob

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

11 years agoMFC r239346:
lstewart [Tue, 21 Aug 2012 02:52:25 +0000 (02:52 +0000)]
MFC r239346:

The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCP
timestamp related stack variables to reference ms directly instead of ticks.
The h_ertt(4) Khelp module relies on TCP timestamp information in order to
calculate its enhanced RTT estimates, but was not updated as part of r231767.

Consequently, h_ertt has not been calculating correct RTT estimates since
r231767 was comitted, which in turn broke all delay-based congestion control
algorithms because they rely on the h_ertt RTT estimates.

Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all
previous uses of the ticks variable. This ensures all timestamp related
variables in h_ertt use the same units as the TCP stack and therefore results in
meaningful comparisons and RTT estimate calculations.

Reported & tested by: Naeem Khademi (naeemk at ifi uio no)
Discussed with: bz

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

11 years agoMFC r227652, r228301, r234270, r234349
emaste [Tue, 21 Aug 2012 00:05:44 +0000 (00:05 +0000)]
MFC r227652, r228301, r234270, r234349

  Sync Bryan Venteicher's virtio base, PCI front-end, and net/block/balloon
  drivers from HEAD.

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

11 years agoMFC r232844: Remove extraneous log message
emaste [Mon, 20 Aug 2012 19:26:43 +0000 (19:26 +0000)]
MFC r232844: Remove extraneous log message

When ntp switched between PLL and FLL mode it produced a log message
"kernel time sync status change %04x".  This issue is reported in ntp
bug 452[1] which claims that this behaviour is normal and the log
message isn't necessary.  I'm not sure exactly when it was removed, but
it's gone in the latest ntp release (4.2.6p5).

[1] http://bugs.ntp.org/show_bug.cgi?id=452

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

11 years agoMFC r238631:
delphij [Mon, 20 Aug 2012 18:33:23 +0000 (18:33 +0000)]
MFC r238631:

Import an updated version of moduli(5) manual page from OpenBSD.

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

11 years agoMFC r239169:
delphij [Mon, 20 Aug 2012 18:26:16 +0000 (18:26 +0000)]
MFC r239169:

RFC 2289 requires all hashes be stored in little endian format before
folding to 64 bits, while SHA1 code is big endian.  Therefore, a bswap32
is required before using the value.

Without this change, the implementation does not conform to test vector
found in RFC 2289.

PR: bin/170519
Submitted by: Arthur Mesh <arthurmesh gmail com> (with changes)

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

11 years agoMFC r239084:
delphij [Mon, 20 Aug 2012 18:16:39 +0000 (18:16 +0000)]
MFC r239084:

Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices.

Obtained from: FreeNAS

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

11 years agoMFC r239233:
wblock [Mon, 20 Aug 2012 16:38:58 +0000 (16:38 +0000)]
MFC r239233:

Correct description of minfree to kilobytes rather than blocks.

PR: 125921
Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com>

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

11 years agoMRC r239021:
jimharris [Mon, 20 Aug 2012 16:13:16 +0000 (16:13 +0000)]
MRC r239021:

In virstor_ctl_stop(), check for a valid softc before trying to update
metadata.

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

11 years agoMFC r238718: Quirk MS keyboard so that function keys work
emaste [Mon, 20 Aug 2012 14:14:19 +0000 (14:14 +0000)]
MFC r238718: Quirk MS keyboard so that function keys work

The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been
repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is
required to return them to their normal purpose.

This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000
keyboard to get the keys working again.  More extensive changes to the USB
keyboard infrastructure would be needed to fully support the "F Lock" mode
and the extended keys on this keyboard.

PR:             usb/116947

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

11 years agoMFC r238853: Correct BUGS description of static buffer use
emaste [Mon, 20 Aug 2012 14:10:00 +0000 (14:10 +0000)]
MFC r238853: Correct BUGS description of static buffer use

  Since r142667 strerror has unconditionally returned a pointer to a
  static buffer.

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

11 years agoMFC r239216, r239217:
gjb [Mon, 20 Aug 2012 13:08:37 +0000 (13:08 +0000)]
MFC r239216, r239217:

r239216:
 - Remove a leading space that breaks rendering

r239217:
 - Fix source dataset snapshot name in Example 15.
 - Bump date.

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

11 years agoMFC r238969:
mav [Mon, 20 Aug 2012 12:11:09 +0000 (12:11 +0000)]
MFC r238969:
Fix kernel panic on `camcontrol reset` for specific target, caused by
uninitialized cm_targ in mpssas_action_resetdev().

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

11 years agoRegen for correct file headers after committing r239342.
obrien [Thu, 16 Aug 2012 23:59:29 +0000 (23:59 +0000)]
Regen for correct file headers after committing r239342.

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

11 years agoMF9: r237134
obrien [Thu, 16 Aug 2012 23:52:08 +0000 (23:52 +0000)]
MF9: r237134
   MFC r226342, r226343, r226347, r226348, r226349, r226353, r226388
   When building for amd64 or ia64, add the "kern.elf32.read_exec" sysctl
   to enable PROT_EXECUTE for elf32 binaries when reading is allowed.
   The JDK 1.4.x requires the ability to execute in the heap.

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

11 years agoMFC r239084:
delphij [Thu, 9 Aug 2012 20:27:11 +0000 (20:27 +0000)]
MFC r239084:

Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices.

Obtained from: FreeNAS
MFC after: 3 days

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

11 years agoMFC r238997:
delphij [Thu, 9 Aug 2012 20:22:24 +0000 (20:22 +0000)]
MFC r238997:

Correct a typo.

Reported by: Sascha Wildner <swildner dragonflybsd org>
Reviewed by: scottl

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

11 years agoMFC r239052:
tuexen [Wed, 8 Aug 2012 20:08:45 +0000 (20:08 +0000)]
MFC r239052:
Fix a refcount issue. The called only decrements is stcb is NULL.

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

11 years agoMFC r239041:
tuexen [Wed, 8 Aug 2012 20:05:25 +0000 (20:05 +0000)]
MFC r239041:

Fix a bug reported by Simon L. B. Nielsen:
If an SCTP endpoint receives an ASCONF with a wildcard
lookup address and incorrect verification tag, the system
crashes.
This bug was found by Shaun Colley.

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

11 years agoMFC: r238933
fjoe [Fri, 3 Aug 2012 11:22:09 +0000 (11:22 +0000)]
MFC: r238933

- Change back "d_ofs" to int8_t to not pessimize padding and size of "struct puc_cfg"
- Use "puc_config_moxa" for Moxa boards that need d_ofs greater than 0x7f

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

11 years agoPull the tier-2 card and change the sparc64 ZFS loader to no longer probe
marius [Mon, 30 Jul 2012 11:29:05 +0000 (11:29 +0000)]
Pull the tier-2 card and change the sparc64 ZFS loader to no longer probe
all diskN aliases for providers (which more or less corresponds to how the
x86 version behaves) but instead probe only those listed in the boot-device
OFW environment variable. This has the following advantages:
- avoids otherwise unavoidable OFW warnings about failures to open disks
  for which aliases exist but no actual hardware is connected
- avoids issues due to different diskN naming schemes
- aligns us with Solaris

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

11 years agoMFC r238707:
gjb [Sun, 29 Jul 2012 18:52:18 +0000 (18:52 +0000)]
MFC r238707:
Document the following in rc.conf.5:
 - rtsold_enable
 - rtsold_flags
 - rtsol_flags

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

11 years agoMFC: r238393
brueffer [Thu, 26 Jul 2012 09:27:00 +0000 (09:27 +0000)]
MFC: r238393

Add and utilize defines for the ATA device register.

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

11 years agoMFC: r227457, r237350, r237357
fjoe [Wed, 25 Jul 2012 17:42:57 +0000 (17:42 +0000)]
MFC: r227457, r237350, r237357

Add support for the following Moxa PCIe multiport serial boards:
- CP102E
- CP102EL
- CP104EL-A
- CP104JU
- CP114EL
- CP118EL-A
- CP168EL-A

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

11 years agoMFC r238705:
wblock [Wed, 25 Jul 2012 13:11:36 +0000 (13:11 +0000)]
MFC r238705:

Correct ugen.4 to show that it has been integrated into usb(4).  Also
fix some punctuation errors.

Approved by: hps

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

11 years agoMFC: r238574
brueffer [Wed, 25 Jul 2012 12:06:52 +0000 (12:06 +0000)]
MFC: r238574

Fix a small memory leak in mpssas_get_sata_identify().  The change has
been submitted upstream as well.

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

11 years agoUse target thread's scheduling policy not current's.
davidxu [Wed, 25 Jul 2012 02:09:06 +0000 (02:09 +0000)]
Use target thread's scheduling policy not current's.

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

11 years agoRelease a reference count in case priority needn't
davidxu [Wed, 25 Jul 2012 02:05:59 +0000 (02:05 +0000)]
Release a reference count in case priority needn't
to be changed.

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

11 years agoRevert r238715, the revision breaks firefox.
davidxu [Wed, 25 Jul 2012 01:57:53 +0000 (01:57 +0000)]
Revert r238715, the revision breaks firefox.

Reported by: dougb

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

11 years agoMFC r227317, r227355:
trociny [Tue, 24 Jul 2012 19:11:50 +0000 (19:11 +0000)]
MFC r227317, r227355:

When displaying process virtual memory mappings print superpage
mapping flag.

Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by: alc, rwatson

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

11 years agoMFC r227316:
trociny [Tue, 24 Jul 2012 19:10:43 +0000 (19:10 +0000)]
MFC r227316:

Add KVME_FLAG_SUPER and use it in sysctl_kern_proc_vmmap for marking
entries with superpages.

Submitted by: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net>
Reviewed by: alc, rwatson

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

11 years agoHeavy DNSSEC Validation Load Can Cause a "Bad Cache" Assertion Failure
dougb [Tue, 24 Jul 2012 19:04:35 +0000 (19:04 +0000)]
Heavy DNSSEC Validation Load Can Cause a "Bad Cache" Assertion Failure
in BIND9

High numbers of queries with DNSSEC validation enabled can cause an
assertion failure in named, caused by using a "bad cache" data structure
before it has been initialized.

CVE: CVE-2012-3817
Posting date: 24 July, 2012

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

11 years agoMFC r230454:
eadler [Tue, 24 Jul 2012 03:47:49 +0000 (03:47 +0000)]
MFC r230454:

Use provided name when allocating ksid domain. It isn't really used on FreeBSD, but should fix a panic when pool is imported from another OS that is using this.

Requested by: nox
No objections: pjd
Approved by: cperciva (implicit)

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

11 years agoMFC r238666:
mav [Mon, 23 Jul 2012 15:20:52 +0000 (15:20 +0000)]
MFC r238666:
Fix typo in bzero() length argument during sense fetching.
For me it at least fixed CD burning in PIO mode.

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

11 years agoMerge r238637,r238640,r238641,r238642:
davidxu [Mon, 23 Jul 2012 09:34:19 +0000 (09:34 +0000)]
Merge r238637,r238640,r238641,r238642:

------------------------------------------------------------------------
r238637 | davidxu | 2012-07-20 09:56:14 +0800 (Fri, 20 Jul 2012) | 6 lines

Don't forget to release a thread reference count,
replace _thr_ref_add() with _thr_find_thread(),
so reference count is no longer needed.

------------------------------------------------------------------------
r238640 | davidxu | 2012-07-20 11:00:41 +0800 (Fri, 20 Jul 2012) | 2 lines

Eliminate duplicated code.

------------------------------------------------------------------------
r238641 | davidxu | 2012-07-20 11:16:52 +0800 (Fri, 20 Jul 2012) | 2 lines

Eliminate duplicated code.

------------------------------------------------------------------------
r238642 | davidxu | 2012-07-20 11:22:17 +0800 (Fri, 20 Jul 2012) | 2 lines

Don't assign same value.

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

11 years agoMerge r234032 from head to stable/8:
rwatson [Sun, 22 Jul 2012 16:56:59 +0000 (16:56 +0000)]
Merge r234032 from head to stable/8:

  When allocation of labels on files is implicitly disabled due to MAC
  policy configuration, avoid leaking resources following failed calls
  to get and set MAC labels by file descriptor.

  Reported by:    Mateusz Guzik <mjguzik at gmail.com> + clang scan-build

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