]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
9 years agoMFC: r281171
jkim [Sat, 11 Apr 2015 01:17:19 +0000 (01:17 +0000)]
MFC: r281171

Tidy up battery status information.  Remove a trailing white space.

PR: 193671

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

9 years agoMFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.
mav [Fri, 10 Apr 2015 00:44:43 +0000 (00:44 +0000)]
MFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.

When CPU is not busy, those queues are typically empty.  When CPU is busy,
then one more extra sorting is the last thing it needs.  If specific device
(HDD) really needs sorting, then it will be done later by CAM.

This supposed to fix livelock reported for mirror of two SSDs, when UFS
fires zillion of BIO_DELETE requests, that totally blocks I/O subsystem by
pointless sorting of requests and responses under single mutex lock.

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

9 years agoImprove patch for SA-15:04.igmp to solve a potential buffer overflow.
delphij [Tue, 7 Apr 2015 20:20:44 +0000 (20:20 +0000)]
Improve patch for SA-15:04.igmp to solve a potential buffer overflow.

Fix multiple vulnerabilities of ntp. [SA-15:07]

Fix Denial of Service with IPv6 Router Advertisements. [SA-15:09]

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

9 years agoMFC r281006
davidcs [Tue, 7 Apr 2015 18:10:58 +0000 (18:10 +0000)]
MFC r281006
When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host network stack and is reused again on the receive ring.  Remaining received packets in the ring are not processed in that invocation of bxe_rxeof() and defered to the task thread

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

9 years agoMFC r280178:
bdrewery [Fri, 3 Apr 2015 17:54:48 +0000 (17:54 +0000)]
MFC r280178:

  Unhide linker line for libraries.

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

9 years agoMFC r280177:
bdrewery [Fri, 3 Apr 2015 17:49:15 +0000 (17:49 +0000)]
MFC r280177:

  Remove unneeded handling of undefined NM.

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

9 years agoMFC r278530:
bdrewery [Fri, 3 Apr 2015 17:18:05 +0000 (17:18 +0000)]
MFC r278530:

  When catopen(3) returns an error, it caches the result of that error from
  r202992. The refcount on the cache entry is not initialized, so any attempt
  to clean the cache will skip over this item since it likely has a >0 value.

  This change is currently a NOP.

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

9 years agoMFC r272291:
bdrewery [Fri, 3 Apr 2015 17:14:19 +0000 (17:14 +0000)]
MFC r272291:

  Document [EPERM] for UNIX sockets.

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

9 years agoMFC r280262 and r280263:
hselasky [Thu, 26 Mar 2015 10:27:39 +0000 (10:27 +0000)]
MFC r280262 and r280263:
Add more known bugs to the USB audio manual page.

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

9 years agoDocument SA-15:06.
gjb [Wed, 25 Mar 2015 17:58:44 +0000 (17:58 +0000)]
Document SA-15:06.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r280322 and r280429:
hselasky [Wed, 25 Mar 2015 13:18:36 +0000 (13:18 +0000)]
MFC r280322 and r280429:
The synchronisation value returned by the so-called feedback endpoint
appears to be too inaccurate that it can be used to synchronize the
playback data stream. If there is a recording endpoint associated with
the playback endpoint, use that instead. That means if the isochronous
OUT endpoint is asynchronus the USB audio driver will automatically
start recording, if possible, to get exact information about the
needed sample rate adjustments. In no recording endpoint is present,
no rate adaption will be done.

While at it fix an issue where the hardware buffer pointers don't get
reset at the first device PCM trigger.

Make some variables 32-bit to avoid problems with multithreading.

Use the feedback value from the synchronization endpoint as fallback
when there is no recording channel.

PR:  198444

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

9 years agoMFC r280345:
hselasky [Wed, 25 Mar 2015 13:08:57 +0000 (13:08 +0000)]
MFC r280345:
Fix for out of order device destruction notifications when using the
delist_dev() function. In addition to this change:
- add a proper description of this function
- add a proper witness assert inside this function
- switch a nearby line to use the "cdp" pointer instead of cdev2priv()

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

9 years agoMFC r279854:
hselasky [Wed, 25 Mar 2015 10:38:59 +0000 (10:38 +0000)]
MFC r279854:
Lock softc before clearing bits.

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

9 years agoMFC of 280413,tzdata8:
edwin [Tue, 24 Mar 2015 06:11:20 +0000 (06:11 +0000)]
MFC of 280413,tzdata8:

Release 2015b - 2015-03-19 23:28:11 -0700

  Changes affecting future time stamps

    Mongolia will start observing DST again this year, from the last
    Saturday in March at 02:00 to the last Saturday in September at 00:00.
    (Thanks to Ganbold Tsagaankhuu.)

    Palestine will start DST on March 28, not March 27.  Also,
    correct the fall 2014 transition from September 26 to October 24.
    Adjust future predictions accordingly.  (Thanks to Steffen Thorsen.)

  Changes affecting past time stamps

    The 1982 zone shift in Pacific/Easter has been corrected, fixing a 2015a
    regression.  (Thanks to Stuart Bishop for reporting the problem.)

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: America/Antigua, America/Cayman,
    Pacific/Midway, and Pacific/Saipan.

  Changes affecting time zone abbreviations

    Correct the 1992-2010 DST abbreviation in Volgograd from "MSK" to "MSD".
    (Thanks to Hank W.)

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

9 years agoMerge OpenSSL 0.9.8zf.
jkim [Fri, 20 Mar 2015 21:56:48 +0000 (21:56 +0000)]
Merge OpenSSL 0.9.8zf.

Relnotes: yes

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

9 years agoFix issues with original SA-15:06.openssl commit:
delphij [Fri, 20 Mar 2015 07:11:20 +0000 (07:11 +0000)]
Fix issues with original SA-15:06.openssl commit:

 - Revert a portion of ASN1 change per suggested by OpenBSD
   and OpenSSL developers.  The change was removed from the
   formal OpenSSL release and does not solve security issue.
 - Properly fix CVE-2015-0209 and CVE-2015-0288.

Pointy hat to: delphij

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

9 years agoFix multiple OpenSSL vulnerabilities.
delphij [Thu, 19 Mar 2015 17:40:43 +0000 (17:40 +0000)]
Fix multiple OpenSSL vulnerabilities.

Security: FreeBSD-SA-15:06.openssl
Security: CVE-2015-0209
Security: CVE-2015-0286
Security: CVE-2015-0287
Security: CVE-2015-0288
Security: CVE-2015-0289
Security: CVE-2015-0293

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

9 years agoMFC 278321:
jhb [Fri, 13 Mar 2015 20:10:09 +0000 (20:10 +0000)]
MFC 278321:
Use direct hardware access for internal requests for KCS and SMIC.  In
particular, updates to the watchdog should no longer sleep.
- Add a new IPMI_IO_LOCK for low-level I/O access.  Use this for
  kcs_polled_request() and smic_polled_request().
- Add a new backend callback "ipmi_driver_request" to handle a driver
  request.  The new callback performs the request sychronously for KCS
  and SMIC.  SSIF still defers the work to the worker thread since the
  worker thread sleeps during request processing anyway.
- Allocate driver requests on the stack rather than using malloc().

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

9 years agoMFC r254340
peter [Tue, 10 Mar 2015 05:23:29 +0000 (05:23 +0000)]
MFC r254340

Some objects - such as *_genassym.o are not hooked into
SRCS OBJS or anything else, yet have a dependency on symlinks
such as machine/

This causes occasional build failures with -j

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

9 years agoMFC: r279364
jkim [Fri, 6 Mar 2015 22:35:01 +0000 (22:35 +0000)]
MFC: r279364

Use realpath(3) to properly expand $ORIGIN to its absolute path.

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

9 years agoMFC of 279706,tzdata8:
edwin [Fri, 6 Mar 2015 22:09:44 +0000 (22:09 +0000)]
MFC of 279706,tzdata8:

Release 2015a - 2015-01-29

Changes affecting future time stamps

    The Mexican state of Quintana Roo, represented by America/Cancun,
    will shift from Central Time with DST to Eastern Time without DST
    on 2015-02-01 at 02:00.  (Thanks to Steffen Thorsen and Gwillim Law.)

    Chile will not change clocks in April or thereafter; its new standard time
    will be its old daylight saving time.  This affects America/Santiago,
    Pacific/Easter, and Antarctica/Palmer.  (Thanks to Juan Correa.)

    New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49.
    (Thanks to Tim Parenti.)

  Changes affecting past time stamps

    Iceland observed DST in 1919 and 1921, and its 1939 fallback
    transition was Oct. 29, not Nov. 29.  Remove incorrect data from
    Shanks about time in Iceland between 1837 and 1908.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait,
    and Asia/Muscat.

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

9 years agoMFC r279324:
ae [Thu, 5 Mar 2015 10:12:28 +0000 (10:12 +0000)]
MFC r279324:
  When gpart(8) is trying automatically determine the first available
  block of free space after existing partition, take into account
  provider's stripeoffset, since the result will be adjusted to this
  value.

  PR:        197989

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

9 years agoMFC r279270:
hselasky [Thu, 5 Mar 2015 09:37:27 +0000 (09:37 +0000)]
MFC r279270:
Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.

PR: 198015
PR: 198019
PR: 198026

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

9 years agoMFC r279242:
hselasky [Thu, 5 Mar 2015 09:29:05 +0000 (09:29 +0000)]
MFC r279242:
Fix debugging macros.

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

9 years agoMFC r279233:
hselasky [Fri, 27 Feb 2015 12:23:30 +0000 (12:23 +0000)]
MFC r279233:
Ensure that the XHCI driver will refresh the control endpoint settings
when re-enumerating a FULL speed device. Else the wrong max packet
setting might be used when trying to re-enumerate a FULL speed device.

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

9 years agoBump __FreeBSD_version after FreeBSD-EN-15:01.vt,
gjb [Wed, 25 Feb 2015 16:44:40 +0000 (16:44 +0000)]
Bump __FreeBSD_version after FreeBSD-EN-15:01.vt,
FreeBSD-EN-15:02.openssl, FreeBSD-EN-15:03.freebsd-update,
FreeBSD-SA-15:04.igmp, FreeBSD-SA-15:05.bind

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument FreeBSD-EN-15:01.vt, FreeBSD-EN-15:02.openssl,
gjb [Wed, 25 Feb 2015 16:36:44 +0000 (16:36 +0000)]
Document FreeBSD-EN-15:01.vt, FreeBSD-EN-15:02.openssl,
FreeBSD-EN-15:03.freebsd-update, FreeBSD-SA-15:04.igmp,
FreeBSD-SA-15:05.bind

Sponsored by: The FreeBSD Foundation

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

9 years agoInstant MFC:
delphij [Wed, 25 Feb 2015 05:43:02 +0000 (05:43 +0000)]
Instant MFC:

Fix integer overflow in IGMP protocol.

Security: FreeBSD-SA-15:04.igmp
Security: CVE-2015-1414
Found by: Mateusz Kocielski, Logicaltrust
Analyzed by: Marek Kroemeke, Mateusz Kocielski (shm@NetBSD.org) and
22733db72ab3ed94b5f8a1ffcde850251fe6f466
Submited by: Mariusz Zaborski <oshogbo@FreeBSD.org>
Reviewed by: bms
Approved by: so

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

9 years agoRemove leftover debugging output, accidentally committed.
ian [Fri, 20 Feb 2015 13:34:12 +0000 (13:34 +0000)]
Remove leftover debugging output, accidentally committed.

Pointy hat: ian
Noticed by: dim

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

9 years agoLower some WARNS from 6 to 5 to eliminate redundant redeclaration errors
ian [Fri, 20 Feb 2015 05:23:51 +0000 (05:23 +0000)]
Lower some WARNS from 6 to 5 to eliminate redundant redeclaration errors
on yylex().  This allows stable-8 to build on machines running 10 or later
(with a newer yacc that emits its own declaration) and also keep building
on older machines with a yacc that doesn't do so.

This is a direct commit to stable-8 because it fixes a problem that doesn't
exist on later branches.

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

9 years agoMFC r204227: Remove -b .orig from patch commands, since it's the default.
ian [Fri, 20 Feb 2015 01:03:44 +0000 (01:03 +0000)]
MFC r204227:  Remove -b .orig from patch commands, since it's the default.

This allows an 8-stable build to work on a system with newer tools that
don't have the old -b option.

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

9 years agoMFC r270190: Don't stop other parallel build legs on failure of make_check.
ian [Fri, 20 Feb 2015 00:55:38 +0000 (00:55 +0000)]
MFC r270190: Don't stop other parallel build legs on failure of make_check.

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

9 years agoFix CVE-2015-1349.
delphij [Wed, 18 Feb 2015 22:29:52 +0000 (22:29 +0000)]
Fix CVE-2015-1349.

This is a direct commit to stable/8 because BIND is removed from HEAD.

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

9 years agoMFC r278739:
delphij [Tue, 17 Feb 2015 19:15:07 +0000 (19:15 +0000)]
MFC r278739:

Disallow pattern spaces which would cause intermediate calculations to
overflow size_t.

Obtained from: DragonFly (2841837793bd095a82f477e9c370cfe6cfb3862c dillon)
Security: CERT VU#695940

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

9 years agoMFC r278503:
hselasky [Fri, 13 Feb 2015 07:53:18 +0000 (07:53 +0000)]
MFC r278503:
Revert r274918 and make a better solution. Poll the synchronisation
endpoint less frequently to make the sample rate adjustment more
accurate. This should resolve problems with the DN32-USB module for
Midas audio systems and possibly other similar products from Klark
Teknik.

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

9 years agoMFC r278477:
hselasky [Fri, 13 Feb 2015 07:46:02 +0000 (07:46 +0000)]
MFC r278477:
Fix DMA address casts.

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

9 years agoMFC r278105:
hselasky [Tue, 10 Feb 2015 13:48:49 +0000 (13:48 +0000)]
MFC r278105:
Separate out detection of prevent and allow medium removal quirk.

PR: 185747

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

9 years agoMFC r278071:
hselasky [Tue, 10 Feb 2015 13:20:34 +0000 (13:20 +0000)]
MFC r278071:
Section 3.2.9 in the XHCI specification about control transfers says
that we should use a normal-TRB if there are more TRBs extending the
data-stage TRB. Add a dedicated state bit to the internal USB transfer
flags to handle this case.

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

9 years agoMFC r278337:
brooks [Mon, 9 Feb 2015 10:09:46 +0000 (10:09 +0000)]
MFC r278337:

When upgrading, install the ELF runtime linkers before libraries.

This is required to prevent problems with nss modules that use libthr when
upgrading from releases prior to 10.1.

PR: 197366
Differential Revision: D1790
Reviewed by: cperciva
Sponsored by: DARPA, AFRL

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

9 years agoMFC: r266744, r267712, r276351, r277043
marius [Sun, 8 Feb 2015 21:49:29 +0000 (21:49 +0000)]
MFC: r266744, r267712, r276351, r277043

- Add PCI ID for AMT based serial interface found on the Lenovo T61.
- add support for MosChip MCS9922...  This is found on an ExpressCard.. [1]
- Add PCI ID for the Oxford Semiconductor OXPCIe952 device.

PR: 186891 [1]

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

9 years agoMFC 276065:
jhb [Fri, 6 Feb 2015 18:41:57 +0000 (18:41 +0000)]
MFC 276065:
Explicitly treat timeouts when waiting for IBF or OBF to change state as an
error.  This fixes occasional hangs in the IPMI kcs thread when using
ipmitool locally.

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

9 years agoMFC r277136:
hselasky [Thu, 5 Feb 2015 22:03:12 +0000 (22:03 +0000)]
MFC r277136:
Resolve a special case deadlock: When two or more threads are
simultaneously detaching kernel drivers on the same USB device we can
get stuck in the "usb_wait_pending_ref_locked()" function because the
conditions needed for allowing detach are not met.

While at it ensure that "flag_iserror" is only written when "priv_mtx"
is locked, which is protecting it.

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

9 years agoMFC r277179, r277199 and r277391:
hselasky [Thu, 5 Feb 2015 21:53:41 +0000 (21:53 +0000)]
MFC r277179, r277199 and r277391:
Add a kernel function to delist our kernel character devices, so that
the device name can be re-used right away in case we are destroying
the character devices in the background.

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

9 years agoMFC 274402:
jhb [Thu, 5 Feb 2015 20:59:48 +0000 (20:59 +0000)]
MFC 274402:
Add device ID for the T502-BT (dual-port 1G) adapter.

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

9 years agoAdd the 'security.url' macro to stable/9 and stable/8
gjb [Thu, 5 Feb 2015 19:31:41 +0000 (19:31 +0000)]
Add the 'security.url' macro to stable/9 and stable/8
branches, and replace hard-coded (and inconsistent) URLs
in security.xml and errata.xml.

Prefer https:// over http://.

Sponsored by: The FreeBSD Foundation

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

9 years agoApply r278265 from head:
gjb [Thu, 5 Feb 2015 19:10:32 +0000 (19:10 +0000)]
Apply r278265 from head:

Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Bump copyright year.

Move SAs and ENs into their respective files.

Add missing ENs and SAs.

Remove stale SAs [1].

Reported by: bdrewery (over a year ago)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277433: MFV r277432:
delphij [Wed, 4 Feb 2015 00:52:58 +0000 (00:52 +0000)]
MFC r277433: MFV r277432:

Plug various memory leaks in libzfs import implementation.

Illumos issue:
    5518 Memory leaks in libzfs import implementation

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

9 years agoMFC r277246:
hselasky [Wed, 28 Jan 2015 19:57:40 +0000 (19:57 +0000)]
MFC r277246:
Add more USB device IDs.

PR: 196362

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

9 years agoMFC r277245:
hselasky [Wed, 28 Jan 2015 19:54:39 +0000 (19:54 +0000)]
MFC r277245:
Add more USB request definitions. The values are described in section
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"

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

9 years agoFix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
delphij [Tue, 27 Jan 2015 19:36:08 +0000 (19:36 +0000)]
Fix SCTP SCTP_SS_VALUE kernel memory corruption and disclosure vulnerability
and SCTP stream reset vulnerability.

Security: FreeBSD-SA-15:02.kmem
Security: CVE-2014-8612
Security: FreeBSD-SA-15:03.sctp
Security: CVE-2014-8613

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

9 years agoMFC r239237, r242628 and r277044:
hselasky [Mon, 19 Jan 2015 07:16:22 +0000 (07:16 +0000)]
MFC r239237, r242628 and r277044:
- Add the UQ_MSC_NO_PREVENT_ALLOW quirk to handle devices that do not support
  the 'PREVENT/ALLOW MEDIUM REMOVAL' SCSI command.
- Improve auto-quirks detection for certain Kingston memory sticks.
- Increase the maximum number of dynamic USB quirks. USB memory stick
  devices which don't support the synchronize cache SCSI command are
  likely to also not support the prevent-allow medium removal SCSI
  command.

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

9 years agoMFC r276959:
np [Sun, 18 Jan 2015 20:40:08 +0000 (20:40 +0000)]
MFC r276959:
cxgb: replace r273280 with a more comprehensive fix.

Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.

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

9 years agoCorrect comparison of IPv6 wildcard address.
ume [Sun, 11 Jan 2015 18:56:16 +0000 (18:56 +0000)]
Correct comparison of IPv6 wildcard address.

MFH: r276814

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

9 years agoMFC r276532 and r276626:
hselasky [Sun, 11 Jan 2015 12:21:39 +0000 (12:21 +0000)]
MFC r276532 and r276626:
The "cnputs_mtx" mutex must be allowed to recurse. Debug prints and/or
witness printouts in the console driver clients can cause this mutex
to recurse by calls to "printf()" from witness for example. In
particular this can happen if "debug.witness.skipspin=0" is set in the
boot environment.

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

9 years agoMFC r251499, r271156, r276321, r276404, r276407, r276799 and r273376:
hselasky [Sun, 11 Jan 2015 12:01:46 +0000 (12:01 +0000)]
MFC r251499, r271156, r276321, r276404, r276407, r276799 and r273376:
Various XHCI fixes and improvements:
- Add IDs for Intel Patsburg USB 2.0 controller (dependancy).
- Add support for polling the XHCI interrupt handler when
  the regular interrupt handler is not working properly or
  in case of MSI interrupts which are not yet supported.
  Remove interrupt setup code for FreeBSD versions older
  than 700031.
- Improve and fix MSI interrupt allocation, setup and release.
- Add missed flushing of data which can happen when "xhci_configure_mask()"
  is called from "xhci_configure_reset_endpoint()". Ensure the 3-strikes
  error feature is always enabled except for ISOCHRONOUS transfers.
- Allow systems having a page size greater than 4K to use fewer
  scatter-gather XHCI TRB entries for its payload data. The XHCI
  controller can handle at least 65536 bytes per scatter-gather list
  entry.
- Add the Intel BayTrail USB device which needs port routing for USB 3.0.

PR: 179342

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

9 years agoMerge OpenSSL 0.9.8zd.
jkim [Fri, 9 Jan 2015 01:11:43 +0000 (01:11 +0000)]
Merge OpenSSL 0.9.8zd.

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

9 years agoMFC r275930:
delphij [Fri, 2 Jan 2015 18:52:18 +0000 (18:52 +0000)]
MFC r275930:

Plug a memory leak.

Obtained from: DragonFlyBSD (commit 5119ece)

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

9 years agoMFC r276346:
dim [Wed, 31 Dec 2014 16:28:16 +0000 (16:28 +0000)]
MFC r276346:

In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security
warnings.

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

9 years agoMFC r276462:
bz [Wed, 31 Dec 2014 10:05:42 +0000 (10:05 +0000)]
MFC r276462:

  Bump copyright year.

  Happy New Year 2015!

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

9 years agoMFC: r272491
nyan [Tue, 23 Dec 2014 11:00:51 +0000 (11:00 +0000)]
MFC: r272491

  Reduce diffs against i386.

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

9 years agoStrip trailing / characters from paths in "not present" index entries.
des [Mon, 22 Dec 2014 22:11:45 +0000 (22:11 +0000)]
Strip trailing / characters from paths in "not present" index entries.

Errata: FreeBSD-EN-14:13.freebsd-update
Approved by: so@

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

9 years agoMFC r276071:
delphij [Mon, 22 Dec 2014 19:08:09 +0000 (19:08 +0000)]
MFC r276071:

Fix multiple ntp vulnerabilities.

Reviewed by: roberto (earlier revision), philip
Security: CVE-2014-9293, CVE-2014-9294
Security: CVE-2014-9295, CVE-2014-9296
Security: FreeBSD-SA-14:31.ntp

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

9 years agoMFC r275833:
kib [Fri, 19 Dec 2014 09:52:21 +0000 (09:52 +0000)]
MFC r275833:
The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base.  Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.

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

9 years agoMFC r275624:
hselasky [Mon, 15 Dec 2014 08:31:58 +0000 (08:31 +0000)]
MFC r275624:
Add port routing support for Wildcat Point.

PR: 195793

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

9 years agoMFC r275477:
dim [Thu, 11 Dec 2014 08:05:59 +0000 (08:05 +0000)]
MFC r275477:

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.

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

9 years agoFix multiple vulnerabilities in file(1) and libmagic(3).
delphij [Wed, 10 Dec 2014 08:31:41 +0000 (08:31 +0000)]
Fix multiple vulnerabilities in file(1) and libmagic(3).

Security: FreeBSD-SA-14:28.file
Security: CVE-2014-3710, CVE-2014-8116, CVE-2014-8117

Fix BIND remote denial of service vulnerability.

Security: FreeBSD-SA-14:29.bind
Security: CVE-2014-8500

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

9 years agoMFC r274918:
hselasky [Mon, 1 Dec 2014 07:37:29 +0000 (07:37 +0000)]
MFC r274918:
Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.

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

9 years agoMFC r274724:
np [Wed, 26 Nov 2014 00:48:07 +0000 (00:48 +0000)]
MFC r274724:
cxgbe(4): figure out the max payload size and save it for later.

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

9 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

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

9 years agoMFC r274898:
dim [Tue, 25 Nov 2014 13:12:45 +0000 (13:12 +0000)]
MFC r274898:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D1197

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

9 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

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

9 years agoMFC r273360:
np [Mon, 17 Nov 2014 07:38:23 +0000 (07:38 +0000)]
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.

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

9 years agoMFC r274351:
np [Mon, 17 Nov 2014 07:20:53 +0000 (07:20 +0000)]
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.

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

9 years agoMFC of 274559,tzdata8:
edwin [Sun, 16 Nov 2014 04:12:25 +0000 (04:12 +0000)]
MFC of 274559,tzdata8:

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.

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

9 years agoMFC r273615:
np [Wed, 12 Nov 2014 20:26:50 +0000 (20:26 +0000)]
MFC r273615:

cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

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

9 years agoMFC r273280:
np [Wed, 12 Nov 2014 20:09:48 +0000 (20:09 +0000)]
MFC r273280:

cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.

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

9 years agoBump __FreeBSD_version after SA-14:23, SA-14:24,
gjb [Thu, 6 Nov 2014 02:41:38 +0000 (02:41 +0000)]
Bump __FreeBSD_version after SA-14:23, SA-14:24,
SA-14:25.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271992
lwhsu [Wed, 5 Nov 2014 16:27:27 +0000 (16:27 +0000)]
MFC r271992

  Reflect the chanages in sleepqueue.h and subr_sleepqueue.c
  - Priority argument is introduced to sleepq_*wait* in r177085
  - sleepq_calc_signal_retval is removed from implementation
  - sleepq_catch_signals is internal now

MFC r272475

  - Bump .Dd

Approved by:  kevlo

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

9 years ago[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
des [Tue, 4 Nov 2014 23:30:23 +0000 (23:30 +0000)]
[SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).
[SA-14:26] Fix remote command execution in ftp(1).
[EN-14:12] Fix NFSv4 and ZFS cache consistency issue.

Approved by: so (des)

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

9 years agoFix build breakage of r274056.
mav [Mon, 3 Nov 2014 19:20:10 +0000 (19:20 +0000)]
Fix build breakage of r274056.

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

9 years agoMFC r272059:
mav [Mon, 3 Nov 2014 17:37:49 +0000 (17:37 +0000)]
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

9 years agoMFC: r272248
nyan [Mon, 3 Nov 2014 10:27:21 +0000 (10:27 +0000)]
MFC: r272248

  - Cleanups pc98 code.
  - Remove unworked formats.

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

9 years agoMFC: r272245
nyan [Mon, 3 Nov 2014 06:34:28 +0000 (06:34 +0000)]
MFC: r272245

  Remove duplicate prog.

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

9 years agoMFC: r272243
nyan [Mon, 3 Nov 2014 05:36:35 +0000 (05:36 +0000)]
MFC: r272243

  Add missing library dependencies.

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

9 years agoMFC 273834:
jhb [Mon, 3 Nov 2014 00:13:20 +0000 (00:13 +0000)]
MFC 273834:
Rework the EXAMPLES section to be a bit clearer.
- Add an example of using etcupdate diff.
- Create a subsection on bootstrapping that is below the simple
  examples.  This should make it clearer that 'etcupdate extract' is
  a one-time operation and not part of the common workflow.  It also
  adds more suggestions on when bootstrapping is needed and additional
  steps to make future merges simpler.

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

9 years agoMFC 273644,273738:
jhb [Sun, 2 Nov 2014 23:22:22 +0000 (23:22 +0000)]
MFC 273644,273738:
Clarify that pthread_cleanup_push()/pop() are implemented as macros that
create a new code block and thus must be balanced at the same lexical
scope.  (This is also a requirement in POSIX.)

PR: 194280
Submitted by: dr2867.business@pacbell.net

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

9 years agoMFC r273837:
dim [Sat, 1 Nov 2014 13:45:01 +0000 (13:45 +0000)]
MFC r273837:

Fix a clang 3.5 warning about abs(3) being given an argument of type
quad_t in setusercontext().  While here, sanitize the clamping of the
priority value, and use the correct type for the return value of
login_getcapnum().

Reviewed by: kib

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

9 years agoMFC of 273718, tzdata2014i
edwin [Mon, 27 Oct 2014 06:12:41 +0000 (06:12 +0000)]
MFC of 273718, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.

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

9 years agoBump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
gjb [Tue, 21 Oct 2014 21:37:53 +0000 (21:37 +0000)]
Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoFix routed(8) remote denial of service vulnerability. [SA-14:21]
delphij [Tue, 21 Oct 2014 20:20:26 +0000 (20:20 +0000)]
Fix routed(8) remote denial of service vulnerability. [SA-14:21]

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

9 years agoMerge OpenSSL 0.9.8zc.
jkim [Wed, 15 Oct 2014 20:28:31 +0000 (20:28 +0000)]
Merge OpenSSL 0.9.8zc.

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

9 years agoMFC r272762: Correct scale factor for T terabyte suffix
emaste [Sat, 11 Oct 2014 01:01:18 +0000 (01:01 +0000)]
MFC r272762: Correct scale factor for T terabyte suffix

PR: 194250

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

9 years agoMFC 272550:
bryanv [Wed, 8 Oct 2014 04:34:46 +0000 (04:34 +0000)]
MFC 272550:

  Remove stray uma_mtx lock/unlock in zone_drain_wait()

  Callers of zone_drain_wait(M_WAITOK) do not need to hold (and were not)
  the uma_mtx, but we would attempt to unlock and relock the mutex if we
  had to sleep because the zone was already draining. The M_NOWAIT callers
  may hold the uma_mtx, but we do not sleep in that case.

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

9 years agoMFC r272480:
hselasky [Mon, 6 Oct 2014 06:08:29 +0000 (06:08 +0000)]
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

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

9 years agoMFC r272349, r272422 and r272479:
hselasky [Mon, 6 Oct 2014 06:00:06 +0000 (06:00 +0000)]
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

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

9 years agoMFC r272288,272289:
delphij [Thu, 2 Oct 2014 18:32:30 +0000 (18:32 +0000)]
MFC r272288,272289:

When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from: OpenBSD (r1.63 millert)

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

9 years agoMFC r272389:
delphij [Thu, 2 Oct 2014 17:42:21 +0000 (17:42 +0000)]
MFC r272389:

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR: 194071

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

9 years agoMFC r272254:
hselasky [Thu, 2 Oct 2014 16:49:22 +0000 (16:49 +0000)]
MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

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

9 years agoMFH (r272280, r272281, r272348): allow use with null user and rhost
des [Wed, 1 Oct 2014 10:35:52 +0000 (10:35 +0000)]
MFH (r272280, r272281, r272348): allow use with null user and rhost

PR: 83099 193927

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

9 years agoMFC r271874:
hselasky [Sat, 27 Sep 2014 18:12:05 +0000 (18:12 +0000)]
MFC r271874:
Add new USB IDs.

PR: 193775

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