]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoMFC r280999:
bdrewery [Thu, 23 Apr 2015 15:20:57 +0000 (15:20 +0000)]
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.

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

9 years agoMFC r274988 (with modification):
ae [Wed, 22 Apr 2015 20:48:56 +0000 (20:48 +0000)]
MFC r274988 (with modification):
  Skip L2 addresses lookups for tunneling interfaces.

PR: 197286

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

9 years agoMFC r281309:
ae [Wed, 22 Apr 2015 19:59:08 +0000 (19:59 +0000)]
MFC r281309:
  Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
  It is acceptable that the size can be equal to MCLBYTES. In the later
  KAME's code this check has been moved under DIAGNOSTIC ifdef, because
  the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
  replace the check with KASSERT.

  PR: 199304

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

9 years agoMFC r281670, r281703:
pfg [Wed, 22 Apr 2015 00:40:41 +0000 (00:40 +0000)]
MFC r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR: 191895
PR: 198731
PR: 199309

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

9 years agoDocument SA-15:07, SA-15:08, SA-15:09.
gjb [Tue, 21 Apr 2015 16:54:21 +0000 (16:54 +0000)]
Document SA-15:07, SA-15:08, SA-15:09.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281605,281768:
brooks [Tue, 21 Apr 2015 14:48:18 +0000 (14:48 +0000)]
MFC r281605,281768:

r281605:
Fix a minor function definition inconsistancy.

r281768:
Bump doc date missed in r281605.

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

9 years agoMFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.
mav [Tue, 21 Apr 2015 11:29:07 +0000 (11:29 +0000)]
MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.

In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.

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

9 years agoMFC r281146.
rakuco [Wed, 15 Apr 2015 22:17:16 +0000 (22:17 +0000)]
MFC r281146.

bthidd: Remove unused macros from hid.c.

ASIZE() was never used, and min() stopped being used in r207812.

Differential Revision: https://reviews.freebsd.org/D2230
Reviewed by: emax
Approved by: emax

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

9 years agoMFC r281116.
rakuco [Wed, 15 Apr 2015 22:15:23 +0000 (22:15 +0000)]
MFC r281116.

bthidd: Consider usage ranges when dealing with array inputs.

So far, we were always using HID_USAGE() to determine the Usage ID of a
certain HID report input item. This does not work as intended if a field
is an array and the allowed usages are specified with a usage range, as
HID_USAGE() will return 0. We need to use the field value as an index in
the usage range list in this case instead.

This makes the volume keys in a Microsoft Bluetooth Mobile Keyboard
5000 be properly recognized. The relevant part of the HID report looks
like this:

  0xA1, 0x01,        // Collection (Application)
  0x85, 0x07,        //   Report ID (7)
  0x05, 0x0C,        //   Usage Page (Consumer)
  0x19, 0x00,        //   Usage Minimum (Unassigned)
  0x2A, 0xFF, 0x03,  //   Usage Maximum (0x03FF)
  0x95, 0x01,        //   Report Count (1)
  0x75, 0x10,        //   Report Size (16)
  0x15, 0x00,        //   Logical Minimum (0)
  0x27, 0xFF, 0x03, 0x00, 0x00,  //   Logical Maximum (1023)
  0x81, 0x00,        //   Input (Data,Array,Abs,No Wrap,Linear,Preferred
                     //   State,No Null Position)

When a key such as "volume down" is pressed, the following data is
transferred through Interrupt In:

  0x07 0xEA 0x00

Differential Revision: https://reviews.freebsd.org/D2229
Reviewed by: emax
Approved by: emax

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

9 years agoMFC 278474,278476,280279:
jhb [Tue, 14 Apr 2015 20:05:26 +0000 (20:05 +0000)]
MFC 278474,278476,280279:
Expand the bitcount*() API and use it to implement CPU_COUNT for cpusets.

278474:
Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

278476:
Use __builtin_popcountl() instead of __builtin_popcount().

280279:
Expand the bitcount* API to support 64-bit integers, plain ints and longs
and create a "hidden" API that can be used in other system headers without
adding namespace pollution.
- If the POPCNT instruction is enabled at compile time, use
  __builtin_popcount*() to implement __bitcount*(), otherwise fall back
  to software implementations.
- Use the existing bitcount16() and bitcount32() from <sys/systm.h> to
  implement the non-POPCNT __bitcount16() and __bitcount32() in
  <sys/types.h>.
- For the non-POPCNT __bitcount64(), use a similar SWAR method on 64-bit
  systems.  For 32-bit systems, use two __bitcount32() operations on the
  two halves.
- Use __bitcount32() to provide a __bitcount() that operates on plain ints.
- Use either __bitcount32() or __bitcount64() to provide a
  __bitcountl() that operates on longs.
- Add public bitcount*() wrappers for __bitcount*() for use in the kernel
  in <sys/libkern.h>.
- Use __bitcountl() instead of __builtin_popcountl() in BIT_COUNT().

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

9 years agoMFC r281320:
pfg [Tue, 14 Apr 2015 18:46:42 +0000 (18:46 +0000)]
MFC r281320:
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.

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

9 years agoMFC r281199: Remove hard limits on number of accepting NFS connections.
mav [Tue, 14 Apr 2015 09:58:58 +0000 (09:58 +0000)]
MFC r281199: Remove hard limits on number of accepting NFS connections.

Limits of 5 connections set long ago creates problems for SPEC benchmark.
Make the NFS follow system-wide maximum.

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

9 years agoMFC: r281331
jkim [Mon, 13 Apr 2015 22:22:32 +0000 (22:22 +0000)]
MFC: r281331

Do not crash when RSDT/XSDT contains an empty entry.

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

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/9@281389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r276347
rmacklem [Fri, 10 Apr 2015 22:53:07 +0000 (22:53 +0000)]
MFC: r276347
r245508 modified the NFS client's Setattr RPC to
use VA_UTIMES_NULL to indicate whether it should
set the time to the current tod on the server.
This had the side effect of making the NFS client
use the client's timestamp for exclusive create,
starting with FreeBSD9.2.
Unfortunately a bug in some Solaris NFS servers
causes these servers to return NFS_OK to the
Setattr RPC done during exclusive create, but not
actually set the file's mode, leaving the file's
mode == 0.
This patch restores the NFS client's behaviour to
use the server's tod for the exclusive open's
Setattr RPC, to avoid the Solaris server bug and
to restore the pre-FreeBSD9.2 NFS behaviour.

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

9 years agoMFC r280757: Remove request sorting from GEOM_MIRROR and GEOM_RAID.
mav [Fri, 10 Apr 2015 09:52:17 +0000 (09:52 +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/9@281364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 279951:
jhb [Thu, 9 Apr 2015 21:06:51 +0000 (21:06 +0000)]
MFC 279951:
Simplify string mangling in ifmaybeload().
- Use strlcpy() instead of strcpy().
- Use strlcat() instead of a strlcpy() with a magic number subtracted
  from the length.
- Replace strncmp(..., strlen(foo) + 1) with strcmp(...).

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

9 years agoMFC 279952:
jhb [Thu, 9 Apr 2015 18:50:41 +0000 (18:50 +0000)]
MFC 279952:
- Align comment for df flags variable in periodic.conf.
- Note default value of df flags variable in periodoc.conf(5).

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

9 years agoMFC 279931:
jhb [Thu, 9 Apr 2015 18:45:03 +0000 (18:45 +0000)]
MFC 279931:
Spin the twiddle in dosfs to give visual feedback for disk I/O on
FAT filesystems as is done for other filesystems in the loader.

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

9 years agoMFC 279892:
jhb [Thu, 9 Apr 2015 17:56:25 +0000 (17:56 +0000)]
MFC 279892:
Resize receive socket buffers that support autosizing when receiving
TCP data via direct data placement.

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

9 years agoMFstable/10 r228371:
ngie [Thu, 9 Apr 2015 16:52:53 +0000 (16:52 +0000)]
MFstable/10 r228371:

This missing MFC fixes PR 199308

r228371 (by jhb):

- Add a test for PR 151758.
- While here, make this compile and work on non-i386:
  - Use CMSG_SPACE(), CMSG_LEN(), and CMSG_FIRSTHDR() instead of ignoring
    padding between 'struct cmsghdr' and control message payloads.
  - Don't initialize the control message before calling recvmsg().
    Instead, check that we get a valid control message on return from
    recvmsg().
- Use errx() instead of err() for some errors that don't report failures
  that set errno.

Requested by: kib (1)

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

9 years agoMFC r280702: Make swapper release orphaned (lost) GEOM provider.
mav [Thu, 9 Apr 2015 10:12:58 +0000 (10:12 +0000)]
MFC r280702: Make swapper release orphaned (lost) GEOM provider.

Swap device is still reported as enabled, and system still may crash later
if some swapped-out kernel pages were lost with the device, but at least
GEOM and CAM can now release the lost disk, allowing it to be reconnected.

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

9 years agoMFC r280687: Make GEOM_PART work in presence of previous withered self.
mav [Thu, 9 Apr 2015 10:10:38 +0000 (10:10 +0000)]
MFC r280687: Make GEOM_PART work in presence of previous withered self.

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

9 years agoMFC r280686: Report withered providers as such alike to GEOMs.
mav [Thu, 9 Apr 2015 10:08:49 +0000 (10:08 +0000)]
MFC r280686: Report withered providers as such alike to GEOMs.

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

9 years agoMFC r280685: When searching for provider by name, prefer non-withered one.
mav [Thu, 9 Apr 2015 10:07:06 +0000 (10:07 +0000)]
MFC r280685: When searching for provider by name, prefer non-withered one.

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

9 years agoUpdate BIND to 9.9.7.
delphij [Wed, 8 Apr 2015 19:49:38 +0000 (19:49 +0000)]
Update BIND to 9.9.7.

This is a direct commit to stable/9 because BIND is no longer in -HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/9@281273 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/9@281231 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r281006
davidcs [Tue, 7 Apr 2015 18:07:16 +0000 (18:07 +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/9@281217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r280360:
bdrewery [Tue, 7 Apr 2015 02:55:22 +0000 (02:55 +0000)]
MFC r280360:

  Document "none" for VersionAddendum.

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

9 years agoMFC r280864:
dim [Mon, 6 Apr 2015 14:50:54 +0000 (14:50 +0000)]
MFC r280864:

Pull in r233552 from upstream libc++ trunk (by Eric Fiselier):

  [libcxx] Fix PR22771 - Support access control SFINAE in the library
  version of is_convertible.

  Summary:
  Currently the conversion check does not take place in a context where
  access control SFINAE is applied. This patch changes the context of
  the test expression so that SFINAE occurs if access control does not
  permit the conversion.

  Related bug: https://llvm.org/bugs/show_bug.cgi?id=22771

  Reviewers: mclow.lists, rsmith, dim

  Reviewed By: dim

  Subscribers: dim, rodrigc, emaste, cfe-commits

  Differential Revision: http://reviews.llvm.org/D8461

This fixes building clang, and other programs using libc++, with newer
versions of gcc (specifically, gcc 4.8 and higher).

Reported by: rodrigc

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

9 years agoMFC r280357:
dim [Mon, 6 Apr 2015 14:45:40 +0000 (14:45 +0000)]
MFC r280357:

Build expr with -fwrapv, since it relies on signed integer wrapping
having defined behavior.

Reported by: rodrigc

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

9 years agoMFC r280822: Some cosmetic polishing. No functional change.
mav [Sun, 5 Apr 2015 06:54:28 +0000 (06:54 +0000)]
MFC r280822: Some cosmetic polishing.  No functional change.

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

9 years agoMFC r280781:
kib [Sat, 4 Apr 2015 08:11:10 +0000 (08:11 +0000)]
MFC r280781:
Make it possible for the signal handler to act on #ss.

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

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

  Unhide linker line for libraries.

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

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

  Remove unneeded handling of undefined NM.

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

9 years agoMFC r278530:
bdrewery [Fri, 3 Apr 2015 17:17:17 +0000 (17:17 +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/9@281034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

  Document [EPERM] for UNIX sockets.

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

9 years agoMFC r280756, r280758: Fix bug on memory allocation error in split method.
mav [Fri, 3 Apr 2015 06:17:24 +0000 (06:17 +0000)]
MFC r280756, r280758: Fix bug on memory allocation error in split method.

While there, use bioq_takefirst() in place where it is convenient.

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

9 years agoMFC 276724:
jhb [Thu, 2 Apr 2015 01:02:42 +0000 (01:02 +0000)]
MFC 276724:
On some Intel CPUs with a P-state but not C-state invariant TSC the TSC
may also halt in C2 and not just C3 (it seems that in some cases the BIOS
advertises its C3 state as a C2 state in _CST).  Just play it safe and
disable both C2 and C3 states if a user forces the use of the TSC as the
timecounter on such CPUs.

PR: 192316

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

9 years agoMFC 278761:
jhb [Wed, 1 Apr 2015 19:48:19 +0000 (19:48 +0000)]
MFC 278761:
Include OBJT_PHYS VM objects in ELF core dumps. In particular this
includes the shared page allowing debuggers to use the signal trampoline
code to identify signal frames in core dumps.

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

9 years agoMFC 278760:
jhb [Tue, 31 Mar 2015 15:37:24 +0000 (15:37 +0000)]
MFC 278760:
Add two new counters for vnode life cycle events:
- vfs.recycles counts the number of vnodes forcefully recycled to avoid
  exceeding kern.maxvnodes.
- vfs.vnodes_created counts the number of vnodes created by successful
  calls to getnewvnode().

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

9 years agoMFC r280172: Improve ATA and SCSI versions printing.
mav [Tue, 31 Mar 2015 07:27:29 +0000 (07:27 +0000)]
MFC r280172: Improve ATA and SCSI versions printing.

There is no "SCSI-6" and "ATA-9", but there is "SPC-4" and "ACS-2".

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

9 years agoMFC r280166:
mav [Tue, 31 Mar 2015 07:22:53 +0000 (07:22 +0000)]
MFC r280166:
Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.

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

9 years agoMFC r280780:
kib [Tue, 31 Mar 2015 01:08:51 +0000 (01:08 +0000)]
MFC r280780:
The #ss fault handler erronously does not check for the fault
originated from the return to usermode. #ss must be handled same as
#np.

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

9 years agoMFC r280090: Hide virtio features negotiation messages under bootverbose.
mav [Sun, 29 Mar 2015 07:48:02 +0000 (07:48 +0000)]
MFC r280090: Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.

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

9 years agoMFC r280286: Add comment explaining existing powerd behavior on SMP systems.
mav [Fri, 27 Mar 2015 09:04:31 +0000 (09:04 +0000)]
MFC r280286: Add comment explaining existing powerd behavior on SMP systems.

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

9 years agoMFC r280236:
ae [Thu, 26 Mar 2015 18:51:00 +0000 (18:51 +0000)]
MFC r280236:
  To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().

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

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

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

9 years agoMFC r279903,279941:
yongari [Thu, 26 Mar 2015 05:45:21 +0000 (05:45 +0000)]
MFC r279903,279941:
  Add RTL8211F gigabit PHY support.

  PR: 197265

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

9 years agoMFC r279223:
yongari [Thu, 26 Mar 2015 05:18:17 +0000 (05:18 +0000)]
MFC r279223:
  Correct a typo.

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

9 years agoMFC r277907:
yongari [Thu, 26 Mar 2015 05:13:03 +0000 (05:13 +0000)]
MFC r277907:
  Correct device description message.

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

9 years agoMFC r277050:
yongari [Thu, 26 Mar 2015 05:08:35 +0000 (05:08 +0000)]
MFC r277050:
  Receive filter configuration is done in nge_rxfilter().  Remove
  unnecessary filter configuration code in nge_init_locked().
  While I'm here add a check for driver running state for multicast
  filter handling.  Also remove unnecessary assignment to error
  variable since it is cleared in the function entry.

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

9 years agoMFC r275816:
yongari [Thu, 26 Mar 2015 04:58:47 +0000 (04:58 +0000)]
MFC r275816:
  Fix a bug introdiced in r217548.  According to NS DP83815 data
  sheet, RX filter should be disabled before programming.
  Previously it was clearing wrong bits so RX filter was not
  disabled in RX filter configuration.

MFC r277048:
  Enable receive filter in sis_rxfilter().
  While I'm here add a check for driver running state for multicast
  filter handling.

git-svn-id: svn://svn.freebsd.org/base/stable/9@280658 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/9@280628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r280322 and r280429:
hselasky [Wed, 25 Mar 2015 13:16:39 +0000 (13:16 +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/9@280594 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r280345:
hselasky [Wed, 25 Mar 2015 13:05:17 +0000 (13:05 +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/9@280583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279725:
hselasky [Wed, 25 Mar 2015 11:14:17 +0000 (11:14 +0000)]
MFC r279725:
Add more USB IDs.

PR: 197753

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

9 years agoMFC r279281:
hselasky [Wed, 25 Mar 2015 10:56:53 +0000 (10:56 +0000)]
MFC r279281:
Fix a special case in ip_fragment() to produce a more sensible chain
of packets. When the data payload length excluding any headers, of an
outgoing IPv4 packet exceeds PAGE_SIZE bytes, a special case in
ip_fragment() can kick in to optimise the outgoing payload(s). The
code which was added in r98849 as part of zero copy socket support
assumes that the beginning of any MTU sized payload is aligned to
where a MBUF's "m_data" pointer points. This is not always the case
and can sometimes cause large IPv4 packets, as part of ping replies,
to be split more than needed.

Instead of iterating the MBUFs to figure out how much data is in the
current chain, use the value already in the "m_pkthdr.len" field of
the first MBUF in the chain.

Reviewed by: ken @
Differential Revision: https://reviews.freebsd.org/D1893
Sponsored by: Mellanox Technologies

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

9 years agoMFC r280264:
hselasky [Wed, 25 Mar 2015 10:51:09 +0000 (10:51 +0000)]
MFC r280264:
Define BINDIR for some test utilities.

Sponsored by:   Mellanox Technologies

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

9 years agoMFC r280211:
hselasky [Wed, 25 Mar 2015 10:46:13 +0000 (10:46 +0000)]
MFC r280211:
Add missing void pointer argument to SYSINIT() functions.

Sponsored by:   Mellanox Technologies

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

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

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

9 years agoMFC r279776:
dchagin [Wed, 25 Mar 2015 09:58:02 +0000 (09:58 +0000)]
MFC r279776:

Add a cred parameter to the VOP_VPTOCNP(9) manpage.
While here fix igor warning about new line.

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

9 years agoMFstable/10 r280427:
ngie [Tue, 24 Mar 2015 08:27:01 +0000 (08:27 +0000)]
MFstable/10 r280427:

MFC r278204:

Sort the entries by build knob, then MACHINE_ARCH like other areas of the tree

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r278052,r278190,r278191,r278574,r278575,r280422:
ngie [Tue, 24 Mar 2015 08:22:48 +0000 (08:22 +0000)]
MFstable/10 r278052,r278190,r278191,r278574,r278575,r280422:

r278052:

MFC r271892:

r271892:

  Sort the optional rc.d scripts by their knobs

  Sponsored by: EMC / Isilon Storage Division

r278190:

MFC r277732:

r277732:

  Honor MK_API in etc/rc.d

  Sponsored by: EMC / Isilon Storage Division

r278191:

MFC r277733:

r277733:

  Honor MK_AMD with etc/rc.d/amd

  Sponsored by: EMC / Isilon Storage Division

r278574:

MFC r277736:

r277736:

  Honor MK_ACCT with etc/rc.d/accounting

  Sponsored by: EMC / Isilon Storage Division

r278575:

Remove etc/rc.d/accounting from FILES

r280422:

MFC r271893,r271895,r272043,r278249,r278282,r278466:

r271893:

Don't install /etc/rc.d/rwho unless MK_RCMDS == yes

Sponsored by: EMC / Isilon Storage Division

r271895:

Don't install /etc/rc.d/ftp-proxy unless MK_PF == yes

Sponsored by: EMC / Isilon Storage Division

r272043:

Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division

r278249:

Honor the following flags with the following rc.d scripts for services that can
be easily decoupled from the boot process without disrupting other services

- MK_APM && MK_ACPI: powerd
- MK_BOOTPARAMD: bootparams
- MK_FTP: ftpd
- MK_INETD: inetd
- MK_LEGACY_CONSOLE: moused, syscons
- MK_MAIL: othermta
- MK_NS_CACHING: nscd
- MK_NTP: ntpd (ntpdate is required by other services and can't be easily
                conditionalized -- yet..)
- MK_ROUTED: routed
- MK_SENDMAIL: sendmail
- MK_TIMED: timed
- MK_VI: virecover

Sponsored by: EMC / Isilon Storage Division

r278282:

Use FILES+= idiom instead of _inetd when referencing inetd rc.d script

This was a discrepancy between ^/projects/building-blocks and ^/head that I
didn't resolve before committing the change to ^/head

Pointyhat to: me
Reported by: jhb
Sponsored by: EMC / Isilon Storage Division

r278466:

Remove explicit routing/sendmail rc.d inclusion in FILES

Reported by: Guy Yur <guyyur@gmail.com>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r280419,r280420:
ngie [Tue, 24 Mar 2015 08:06:45 +0000 (08:06 +0000)]
MFstable/10 r280419,r280420:

r280419:

MFC r278135,r278202:

r278135 (by amdmi3):

- Remove more files when MK_USB == no

Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

r278202:

Clean up more usb related files when MK_USB == no when dealing with
manpages, libraries, and binaries

Sponsored by: EMC / Isilon Storage Division

r280420:

Forced commit to note that the previous commit to this file included the
following MFC as well:

MFC 278251:

Honor the following flags for items that can be conditionalized out of the
build/install without disrupting other dependent services (see r278249, et
al):

- MK_LOCATE
- MK_MAN
- MK_NLS
- MK_OPENSSL
- MK_PKGBOOTSTRAP
- MK_SENDMAIL

Additional flags need to be handled in etc/Makefile, but it requires
refactoring the relevant scripts in etc/rc.d/*

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFstable/10 r278569,r279505,r279506:
ngie [Tue, 24 Mar 2015 07:11:54 +0000 (07:11 +0000)]
MFstable/10 r278569,r279505,r279506:

r278569:

MFC r278182:

r278182:

  Conditionalize building radius support into libpam, ppp, etc via
  MK_RADIUS_SUPPORT

  Sponsored by: EMC / Isilon Storage Division

r279505:

MFC r278192:

Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division

r279506:

MFC r278193:

Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC of 280413,tzdata9:
edwin [Tue, 24 Mar 2015 06:09:04 +0000 (06:09 +0000)]
MFC of 280413,tzdata9:

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/9@280415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r280307:
pfg [Tue, 24 Mar 2015 01:32:46 +0000 (01:32 +0000)]
MFC r280307:
bsdgrep: fix regression in the -f option since r268799

Caused by an incomplete merge from NetBSD.

PR: 198725

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

9 years agoMFC r277948:
pfg [Mon, 23 Mar 2015 20:02:16 +0000 (20:02 +0000)]
MFC r277948:
msun: use previously ignored "in" value.

This fixes evaluation of exceptional values in scalblnl().
While here, simplify the code as suggested by Bruce Evans.

Reported by: clang static analyzer

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

9 years agoMFC r279037:
pfg [Mon, 23 Mar 2015 19:53:37 +0000 (19:53 +0000)]
MFC r279037:
dbm_delete(3): correct man page to match current behaviour.

"The dbm_store() and dbm_delete() functions shall return 0 when they
succeed and a negative value when they fail."

Reference:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/dbm_clearerr.html

PR: 42422
Suggested by: delphij

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

9 years agoMFC revisions 268860, 268863, 274068, 274119, 279624:
dteske [Mon, 23 Mar 2015 19:25:34 +0000 (19:25 +0000)]
MFC revisions 268860, 268863, 274068, 274119, 279624:
r268860: Minor enhancements, bug fixes, man-page adjustments to sysrc(8)
r268863: Bump date/copyright in man-page
r274068: Add key+=append syntax
r279624: Add key-=remove syntax
r274119: Add EXAMPLES-section entries for new syntax

Reported by: lme (r268860)
Reviewed by: shurd (r274068)
Thanks to: seanc (r274068, r279624, r274119)

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

9 years agoMFstable/10 r280340,r280341,r280356:
ngie [Sun, 22 Mar 2015 23:20:09 +0000 (23:20 +0000)]
MFstable/10 r280340,r280341,r280356:

r280340:

MFC r279197,r279198:

r279197:

Parallelize building bootstrap-tools

Differential Revision: https://reviews.freebsd.org/D1901
Reviewed by: ian
No serious objections from: imp

r279198:

Fill in missing dependencies for dtrace related tools so the bootstrap-tools
compiles properly on older hosts

Pointyhat to: me

r280341:

Remove dependency between usr.bin/m4 and lib/libohash

libohash doesn't exist on stable/10 (only head)

Not sure why my make buildworld didn't catch any issues

This is a direct commit to stable/10 as a followup to r280340

r280356:

Defeat race with texinfo tools built with make bootstrap-tools

This is a direct commit to stable/10 because texinfo has been removed from
head

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

9 years agoMFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
jah [Sun, 22 Mar 2015 18:31:28 +0000 (18:31 +0000)]
MFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
drm2 devices to work with Intel DMAR enabled for the system, as long as
DMAR is disabled for the drm2 device.

Reviewed by: kib (mentor)

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

9 years agoMFstable/10 r279495:
ngie [Sun, 22 Mar 2015 06:17:26 +0000 (06:17 +0000)]
MFstable/10 r279495:

MFC r278891:

Add the mnt_lockref field to the ddb(4) 'show mount' command

Differential Revision: https://reviews.freebsd.org/D1688
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r279980:
dim [Sat, 21 Mar 2015 19:20:15 +0000 (19:20 +0000)]
MFC r279980:

Allow relative pathnames in SRCS, so as to enable building software
which includes more than one file with the same name, in different
directories.

For example, setting:

SRCS+= foo/foo.c bar/foo.c baz/foo.c

will now create separate objdirs 'foo', 'bar' and 'baz' for each of the
sources in the list, and use those objdirs for the corresponding object
files.

Reviewed by: brooks, imp
Differential Revision: https://reviews.freebsd.org/D1984

git-svn-id: svn://svn.freebsd.org/base/stable/9@280329 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/9@280305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279963: Fix SATA Gen3 speed constants.
mav [Fri, 20 Mar 2015 08:29:07 +0000 (08:29 +0000)]
MFC r279963: Fix SATA Gen3 speed constants.

git-svn-id: svn://svn.freebsd.org/base/stable/9@280277 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/9@280274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r278655:
markj [Thu, 19 Mar 2015 23:12:49 +0000 (23:12 +0000)]
MFC r278655:
Add support for decoding multibyte NOPs.

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

9 years agoMFC r279896:
markj [Thu, 19 Mar 2015 23:06:45 +0000 (23:06 +0000)]
MFC r279896:
Document m_collapse().

git-svn-id: svn://svn.freebsd.org/base/stable/9@280269 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/9@280266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279920:
ae [Thu, 19 Mar 2015 13:33:15 +0000 (13:33 +0000)]
MFC r279920:
  Add if_input_default() method, that will be used for if_input
  initialization, when no input method specified before if_attach().

  This prevents panics when if_input() method called directly e.g.
  from bpf(4) code.

  PR: 192426

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

9 years agoMFC 278327:
jhb [Thu, 19 Mar 2015 13:08:17 +0000 (13:08 +0000)]
MFC 278327:
Change ktrdump to use the more standard -M/-N flags to specify the path
to a crash dump and kernel, respectively.  The existing -m/-e flags are
still supported for backwards compatiblity but are no longer documented.

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

9 years agoMFC r279642: Reenable VIRTIO_BLK_F_TOPOLOGY feature.
mav [Thu, 19 Mar 2015 09:49:12 +0000 (09:49 +0000)]
MFC r279642: Reenable VIRTIO_BLK_F_TOPOLOGY feature.

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

9 years agoMFC r280125:
markj [Wed, 18 Mar 2015 02:29:00 +0000 (02:29 +0000)]
MFC r280125:
Add a missing format string argument.

PR: 197391

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

9 years agoMFC r279783, r279785:
marck [Sun, 15 Mar 2015 19:37:07 +0000 (19:37 +0000)]
MFC  r279783, r279785:

Reword phrase a bit to decrease possible misleading meaning.

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

9 years agoMFC r279779: env: Fix crash when -S string is not empty but no operand
jilles [Sun, 15 Mar 2015 11:56:52 +0000 (11:56 +0000)]
MFC r279779: env: Fix crash when -S string is not empty but no operand
follows.

split_spaces() set argc in main() incorrectly, which caused trouble for
getopt().

Examples:
  env -S '\c'
  env -S -i

PR: 197769

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

9 years agoMFC r279016:
ed [Sun, 15 Mar 2015 09:20:45 +0000 (09:20 +0000)]
MFC r279016:

  Make syslogd work in case shutdown() is POSIX-ly correct.

  On POSIX conformant systems, shutdown() should return ENOTCONN when not
  connected. We attempted to fix this once (kern/84761), but this change
  got backed out because it 'breaks code' (r150155).

  I just reapplied the patch and indeed, syslogd fails on startup. Make it
  easier to re-enable this change in the future by paching up syslogd to
  do the right thing.

Sponsored by: Nuxi

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

9 years agoMFC r279865:
hselasky [Sun, 15 Mar 2015 09:06:59 +0000 (09:06 +0000)]
MFC r279865:
Ensure setting promiscious mode when a network interface is up, is
always non-blocking by not locking a SX type of mutex.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r279722: env: Fix testsuite for additional variables set by sh.
jilles [Sat, 14 Mar 2015 21:07:37 +0000 (21:07 +0000)]
MFC r279722: env: Fix testsuite for additional variables set by sh.

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

9 years agoMFC r279735:
ae [Sat, 14 Mar 2015 14:46:10 +0000 (14:46 +0000)]
MFC r279735:
  Remove extra '&'. sin6 is already a pointer.

PR: 195011

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

9 years agoMFC r279730:
ae [Sat, 14 Mar 2015 14:44:03 +0000 (14:44 +0000)]
MFC r279730:
  lla_lookup() can directly call llentry_free() for static entries
  and the last one requires to hold afdata's wlock.

PR: 197096

git-svn-id: svn://svn.freebsd.org/base/stable/9@279990 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/9@279964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 278682:
jhb [Fri, 13 Mar 2015 17:45:34 +0000 (17:45 +0000)]
MFC 278682:
Make the extra dependencies in DPADD be dependencies of PROG_FULL and
SHLIB_NAME_FULL so that the full binary is relinked when a dependency
changes.  Right now the existing full binary is left as-is and only
the objcopy to remove debug symbols is run.

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

9 years agoMFC 278292:
jhb [Thu, 12 Mar 2015 15:48:25 +0000 (15:48 +0000)]
MFC 278292:
Add the device ID for the AMT serial port on my Thinkpad T400.

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

9 years agoMFC 277713:
jhb [Thu, 12 Mar 2015 15:08:23 +0000 (15:08 +0000)]
MFC 277713:
If the boot-time memory test is enabled, output a dot ('.') for
each GB of RAM tested so people watching the console can see that
the machine is making progress and not hung.

PR: 196650

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

9 years agoMFC r279588:
ae [Thu, 12 Mar 2015 09:16:50 +0000 (09:16 +0000)]
MFC r279588:
  Fix deadlock in IPv6 PCB code.

  When several threads are trying to send datagram to the same destination,
  but fragmentation is disabled and datagram size exceeds link MTU,
  ip6_output() calls pfctlinput2(PRC_MSGSIZE). It does notify all
  sockets wanted to know MTU to this destination. And since all threads
  hold PCB lock while sending, taking the lock for each PCB in the
  in6_pcbnotify() leads to deadlock.

  RFC 3542 p.11.3 suggests notify all application wanted to receive
  IPV6_PATHMTU ancillary data for each ICMPv6 packet too big message.
  But it doesn't require this, when we don't receive ICMPv6 message.

  Change ip6_notify_pmtu() function to be able use it directly from
  ip6_output() to notify only one socket, and to notify all sockets
  when ICMPv6 packet too big message received.

MFC r279684:
  tcp6_ctlinput() doesn't pass MTU value to in6_pcbnotify().
  Check cmdarg isn't NULL before dereference, this check was in the
  ip6_notify_pmtu() before r279588.

PR: 197059
Sponsored by: Yandex LLC

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

9 years agoMFC r279757:
dim [Wed, 11 Mar 2015 07:22:13 +0000 (07:22 +0000)]
MFC r279757:

Pull in r228344 from upstream libc++ trunk (by Eric Fiselier):

  Get tests running with warnings. Fix warnings in headers and tests

This fixes a number of -Wunused-local-typedef warnings in libc++ headers.

MFC r279758:

Fix another -Wunused-local-typedef warning in libc++, in include/__tree.

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

9 years agoMFC 277712:
jhb [Tue, 10 Mar 2015 14:18:26 +0000 (14:18 +0000)]
MFC 277712:
Change the default VFS timestamp precision from seconds to microseconds.

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

9 years agoMFC r254340
peter [Tue, 10 Mar 2015 05:20:40 +0000 (05:20 +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/9@279838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f