]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
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/10@280274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

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

9 years agoMFC r269854:
ae [Thu, 19 Mar 2015 14:09:27 +0000 (14:09 +0000)]
MFC r269854:
  Remove duplicate entry.

MFC r279935:
  Add GUID and alias for Apple Core Storage partition.

  PR: 196241

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

9 years agoMerge r263233 from HEAD to stable/10:
rwatson [Thu, 19 Mar 2015 13:37:36 +0000 (13:37 +0000)]
Merge r263233 from HEAD to stable/10:

  Update kernel inclusions of capability.h to use capsicum.h instead; some
  further refinement is required as some device drivers intended to be
  portable over FreeBSD versions rely on __FreeBSD_version to decide whether
  to include capability.h.

Sponsored by: Google, Inc.

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

9 years agoMFC r279920:
ae [Thu, 19 Mar 2015 13:10:09 +0000 (13:10 +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/10@280256 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/10@280255 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279910:
ae [Thu, 19 Mar 2015 12:49:55 +0000 (12:49 +0000)]
MFC r279910:
  Reset mbuf pointer to NULL in fastroute case to indicate that mbuf was
  consumed by filter. This fixes several panics due to accessing to mbuf
  after free.

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

9 years agoMerge an applicable subset of r263234 from HEAD to stable/10:
rwatson [Thu, 19 Mar 2015 12:32:48 +0000 (12:32 +0000)]
Merge an applicable subset of r263234 from HEAD to stable/10:

  Update most userspace consumers of capability.h to use capsicum.h instead.

  auditdistd is not updated as I will make the change upstream and then do a
  vendor import sometime in the next week or two.

Note that a significant fraction does not apply, as FreeBSD 10 doesn't
contain a Capsicumised ping, casperd, libcasper, etc.  When these features
are merged, the capsicum.h change will need to be merged with them.

Sponsored by: Google, Inc.

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

9 years agoMerge r263842 from HEAD to stable/10:
rwatson [Thu, 19 Mar 2015 11:24:07 +0000 (11:24 +0000)]
Merge r263842 from HEAD to stable/10:

  Update system man pages for s/capability.h/capsicum.h/.

Sponsored by: Google, Inc.

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

9 years agoBump __FreeBSD_version to 1001511 reflecting the capability.h -> capsicum.h
rwatson [Thu, 19 Mar 2015 11:20:12 +0000 (11:20 +0000)]
Bump __FreeBSD_version to 1001511 reflecting the capability.h -> capsicum.h
rename.

Sponsored by: Google, Inc.

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

9 years agoMFC r279658, r279673, r279675:
mav [Thu, 19 Mar 2015 09:56:38 +0000 (09:56 +0000)]
MFC r279658, r279673, r279675:
Implement cache flush for ahci-hd and for virtio-blk over device.

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

9 years agoMFC r279654: Report logical/physical sector sizes for virtual SATA disk.
mav [Thu, 19 Mar 2015 09:54:48 +0000 (09:54 +0000)]
MFC r279654: Report logical/physical sector sizes for virtual SATA disk.

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

9 years agoMFC r279651, r279652, r279657:
mav [Thu, 19 Mar 2015 09:53:00 +0000 (09:53 +0000)]
MFC r279651, r279652, r279657:
Add support for TOPOLOGY feature of virtio block device.

Passing through physical block size/offset from underlying storage allows
guest to manage proper data and I/O alignment to improve performance.

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

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

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

9 years agoMerge r263232 from head to stable/10:
rwatson [Wed, 18 Mar 2015 15:20:08 +0000 (15:20 +0000)]
Merge r263232 from head to stable/10:

  Rename capability.h to capsicum.h: the original name conflicts with the
  draft POSIX.1e capability.h used on some systems (e.g., Linux).  On
  FreeBSD, leave a wrapper header so that current code continues to compile.

  We will eventually want to deprecate the old header as the presence of a
  capability.h may be confusing some configure scripts.

  Suggested by:   David Drysdale <drysdale at google.com>
  Discussed on:   cl-capsicum-discuss
  MFC after:      3 weeks

Sponsored by: Google, Inc.

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

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

PR: 197391

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

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

Reword phrase a bit to decrease possible misleading meaning.

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

9 years agoMFC r279936:
kib [Sun, 15 Mar 2015 18:42:19 +0000 (18:42 +0000)]
MFC r279936:
Remove write-only variable.

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

9 years agoMFC r279764:
kib [Sun, 15 Mar 2015 18:40:06 +0000 (18:40 +0000)]
MFC r279764:
Fix function name in the panic message.

git-svn-id: svn://svn.freebsd.org/base/stable/10@280045 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:43:51 +0000 (11:43 +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/10@280027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279016:
ed [Sun, 15 Mar 2015 09:15:11 +0000 (09:15 +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/10@280020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279865:
hselasky [Sun, 15 Mar 2015 09:05:26 +0000 (09:05 +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/10@280018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

PR: 195011

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

9 years agoMFC r279730:
ae [Sat, 14 Mar 2015 14:35:07 +0000 (14:35 +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/10@279988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270571 (by dumbbell):
kib [Sat, 14 Mar 2015 11:36:47 +0000 (11:36 +0000)]
MFC r270571 (by dumbbell):
drm/i915: Add opt_acpi.h and acpi_if.h to the source files

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

9 years agoMFC r279401:
kib [Sat, 14 Mar 2015 08:42:40 +0000 (08:42 +0000)]
MFC r279401:
Some fixes for fdescfs lookup code Do not ever return doomed vnode from.
lookup. Reuse the vn_vget_ino_gen() helper to handle parallel unmounts .

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

9 years agoMFC 270516:
jhb [Fri, 13 Mar 2015 18:38:02 +0000 (18:38 +0000)]
MFC 270516:
i915 driver - enable opregion handle; program CADL.

add opregion handling for drm2 - which exposes some ACPI video configuration
pieces that some Lenovo laptop models use to flesh out which video device
to speak to.  This enables the brightness control in ACPI to work these models.

The CADL bits are also important - it's used to figure out which ACPI
events to hook the brightness buttons into.  It doesn't yet seem to work
for me, but it does for the OP.

PR: 190186, 198551
Submitted by: Henry Hu <henry.hu.sh@gmail.com>

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

9 years agoMFC r279366:
delphij [Fri, 13 Mar 2015 01:18:46 +0000 (01:18 +0000)]
MFC r279366:

Set altroot if the user have specified it via -o altroot.

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

9 years agoMFC r278729
sjg [Thu, 12 Mar 2015 17:07:45 +0000 (17:07 +0000)]
MFC r278729

sbspace: size of bleft, mleft must match sockbuf fields to avoid
overflow on amd64

Submitted by:   anshukla@juniper.net
Obtained from:  Juniper Networks

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

9 years agoMFC r272566:
kib [Thu, 12 Mar 2015 16:05:52 +0000 (16:05 +0000)]
MFC r272566:
Convert -1 from sbuf_bcat() to ENOMEM.

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

9 years agoMFC r271146,271201,271207,271261,271457,272606,277100,277126,278034,279320,
mav [Thu, 12 Mar 2015 13:40:02 +0000 (13:40 +0000)]
MFC r271146,271201,271207,271261,271457,272606,277100,277126,278034,279320,
279573:  Sync AHCI driver with HEAD.

Due to code reorganization in r271146 and many previous reordered merges it
is problematic to merge those revisions separately.

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

9 years agoMFC r270833 (by imp):
mav [Thu, 12 Mar 2015 13:16:05 +0000 (13:16 +0000)]
MFC r270833 (by imp):
We were returning 20 bytes as the FIS size to send, but only
initializing 16. Initialize all 20 so we don't send garbage in the
Auxiliary register. The SATA standard mandates a 5 dword length for
the Host to Device FIS.

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

9 years agoMFC r279588:
ae [Thu, 12 Mar 2015 09:04:19 +0000 (09:04 +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/10@279911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271889, 272799, 272800, 274976
scottl [Thu, 12 Mar 2015 07:07:41 +0000 (07:07 +0000)]
MFC r271889, 272799, 272800, 274976
This brings in bus_get_domain() and the related reporting via devinfo,
dmesg, and sysctl.

Obtained from: adrian, jhb
Sponsored by: Netflix, Inc.

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

9 years agoMFC r279802: Don't specify a function name in the example SDT(9) probe.
markj [Thu, 12 Mar 2015 01:03:04 +0000 (01:03 +0000)]
MFC r279802: Don't specify a function name in the example SDT(9) probe.

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

9 years agoMFC r279591: Add example configuration for FibreChannel ports.
mav [Wed, 11 Mar 2015 09:54:03 +0000 (09:54 +0000)]
MFC r279591: Add example configuration for FibreChannel ports.

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

9 years agoMFC r279590: If target name starts with "naa.", set it as WWNN for CTL port.
mav [Wed, 11 Mar 2015 09:52:54 +0000 (09:52 +0000)]
MFC r279590: If target name starts with "naa.", set it as WWNN for CTL port.

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

9 years agoMFC r279589: Fix handling of queued text and logout requests.
mav [Wed, 11 Mar 2015 09:51:53 +0000 (09:51 +0000)]
MFC r279589: Fix handling of queued text and logout requests.

While it may have little sense, text and logout requests can be queued.
If they are, they consume cmdsn, so we should increment our conn_cmdsn.

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

9 years agoMFC r279278: Replace constant with proper sizeof().
mav [Wed, 11 Mar 2015 09:50:31 +0000 (09:50 +0000)]
MFC r279278: Replace constant with proper sizeof().

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

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

9 years agoMFC r279275: Fix potential NULL dereference.
mav [Wed, 11 Mar 2015 09:49:06 +0000 (09:49 +0000)]
MFC r279275: Fix potential NULL dereference.

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

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

9 years agoMFC r278848: symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW).
jilles [Tue, 10 Mar 2015 22:23:56 +0000 (22:23 +0000)]
MFC r278848: symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW).

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

9 years agoMFC r279598:
dim [Sun, 8 Mar 2015 22:50:45 +0000 (22:50 +0000)]
MFC r279598:

When compiling boot2 with gcc on i386 and pc98, only use the custom flag
-mno-align-long-strings when compiling with base gcc.  This is checked
by comparing the version number against 4.2.1, which is not exactly
right, but good enough.  (There is no other way to check whether we are
using the non-standard gcc in base, as far as I know.)

Reported by: rodrigc

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

9 years agoMFC r265829 (by imp):
dim [Sun, 8 Mar 2015 22:39:01 +0000 (22:39 +0000)]
MFC r265829 (by imp):
  Support, to the extent we generate proper command lines, compiling
  with clang 3.3. Useful for test building -current on a -stable system
  in individual directories. Potentially useful if we ever want to
  support, say, gcc 4.8 or 4.9's new warnings when building with an
  external toolchain (but such support not yet committed). Document
  the bsd.compiler.mk interface.

MFC r266587 (by imp):
  Allow CC to not actually exist. During the ports INDEX run, all the
  Makefiles are evaluated without building things. In a normal build,
  the prerequisites would be built, and CC would be an actual thing. In
  an INDEX build, though, they don't exists. Redirect stderr to get rid
  of annoying messages, and assume that the compiler version is 0 if the
  actual compiler can't tell us. Do this in preference to guessing based
  on numbers because gcc410 might be 4.10, or 4.1.0 and without
  carefully crafted special knowledge we differentiate between them
  easily (also ming-gcc has no clues at all). Elsewhere, don't trust
  the compiler version if it is 0.

MFC r273405 (by bapt):
  When using an external toolchain note that gcc 4.8+ supports C++11

  Submitted by: imp

MFC r275557 (by ngie):
  Fix typos in comments and wrap to <80 columns

MFC r275588 (by ngie):
  ${CC} --version doesn't need to be queried if both COMPILER_TYPE and
  COMPILER_VERSION are known

MFC r275589 (by ngie):
  The previous commit should have been a logical or not a logical "and"

  Pointyhat to: me

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

9 years agoMFC r271927:
trasz [Sat, 7 Mar 2015 20:00:26 +0000 (20:00 +0000)]
MFC r271927:

Turns out -1 is a perfectly valid error number, ERESTART.  Remove useless
code written under assumption that it wasn't.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277172:
trasz [Sat, 7 Mar 2015 19:52:14 +0000 (19:52 +0000)]
MFC r277172:

Improve wording.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277175:
trasz [Sat, 7 Mar 2015 19:49:02 +0000 (19:49 +0000)]
MFC r277175:

Mention /net in hier(7).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277799:
trasz [Sat, 7 Mar 2015 19:46:47 +0000 (19:46 +0000)]
MFC r277799:

Fix sysctl name.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r277834:
trasz [Sat, 7 Mar 2015 19:45:07 +0000 (19:45 +0000)]
MFC r277834:

When there are no automounted filesystems, autounmountd(8) should wait
for filesystem event, instead of looping on a timeout.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275756:
trasz [Sat, 7 Mar 2015 19:41:58 +0000 (19:41 +0000)]
MFC r275756:

Fix bug that made automount(8) never unmount stale autofs(5) mounts,
ie mounts for entries that were there in auto_master(5), and then
got removed.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275755:
trasz [Sat, 7 Mar 2015 19:39:16 +0000 (19:39 +0000)]
MFC r275755:

Fix spurious "child process X terminated with exit status 1" messages
from automountd(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274859:
trasz [Sat, 7 Mar 2015 19:36:06 +0000 (19:36 +0000)]
MFC r274859:

Implement "automount -c".

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273127:
trasz [Sat, 7 Mar 2015 19:32:19 +0000 (19:32 +0000)]
MFC r273127:

Make automountd(8) inform autofs(4) whether directory being handled can
have wildcards.  This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.

Note that this change breaks ABI for automountd(8).

MFC r278521:

Restore ABI compatibility, broken in r273127.  Note that while this fixes
ABI with 10.1, it breaks ABI for 11-CURRENT, so rebuild of automountd(8)
is neccessary.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279587:
hselasky [Sat, 7 Mar 2015 18:48:00 +0000 (18:48 +0000)]
MFC r279587:
Define PTR_ALIGN() macro which will be needed coming Mellanox driver
releases.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r278866:
hselasky [Sat, 7 Mar 2015 18:39:15 +0000 (18:39 +0000)]
MFC r278866:
Define standard formatting strings to print GIDs
in a separate header file.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r279584:
hselasky [Sat, 7 Mar 2015 18:33:28 +0000 (18:33 +0000)]
MFC r279584:
Updates for the Mellanox ethernet driver

> List of fixes:
  * use correct format for GID printouts
  * double array indexing
  * spelling in printouts
  * void pointer arithmetic
  * allow more receive rings
  * correct maximum number of transmit rings
  * use "const" instead of "static" for constants
  * check for invalid VLAN tags
  * check for lack of IRQ resources
> Added more hardware specific defines
> Added more verbose printouts of firmware status codes

Sponsored by: Mellanox Technologies

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

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

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

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

9 years agoMFC of 279706,tzdata10:
edwin [Fri, 6 Mar 2015 21:56:44 +0000 (21:56 +0000)]
MFC of 279706,tzdata10:

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

9 years agoMFC r279563:
hselasky [Fri, 6 Mar 2015 16:08:10 +0000 (16:08 +0000)]
MFC r279563:
Add quirk for USB 3.0 controllers which don't support 64-bit DMA.

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

9 years agoMFH: r279050
brueffer [Fri, 6 Mar 2015 11:25:10 +0000 (11:25 +0000)]
MFH: r279050

Apply mdoc style.

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

9 years agoMFC r279362:
kib [Fri, 6 Mar 2015 09:22:05 +0000 (09:22 +0000)]
MFC r279362:
The VNASSERT in vflush() FORCECLOSE case is trying to panic early to
prevent errors from yanking devices out from under filesystems.  Only
care about special vnodes on devfs, special nodes on other kinds of
filesystems do not have special properties.

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

9 years agoMFC r279544:
hselasky [Thu, 5 Mar 2015 10:18:03 +0000 (10:18 +0000)]
MFC r279544:
Add quirk to disable 64-bit XHCI DMA after r276717.

Requested by: Gary Jennejohn <gljennjohn@gmail.com>

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

9 years agoMFC r279324:
ae [Thu, 5 Mar 2015 10:08:37 +0000 (10:08 +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/10@279646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279210:
hselasky [Thu, 5 Mar 2015 10:04:34 +0000 (10:04 +0000)]
MFC r279210:
Add support for the DWC OTG v2 chipset found in the STM32F4 series of
processors. Make sure we pullup the data lines in device mode when we
power on the port.

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

9 years agoMFC r279297:
hselasky [Thu, 5 Mar 2015 09:39:29 +0000 (09:39 +0000)]
MFC r279297:
Update to upstream version 2.10

The most notable new feature is support for definition files.

Obtained from: http://dotat.at/prog/unifdef

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

9 years agoMFC r279270:
hselasky [Thu, 5 Mar 2015 09:31:36 +0000 (09:31 +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/10@279636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r279241 and r279242:
hselasky [Thu, 5 Mar 2015 09:23:43 +0000 (09:23 +0000)]
MFC r279241 and r279242:
Fix debugging macros.

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

9 years agoMFC r279326:
kib [Thu, 5 Mar 2015 09:01:46 +0000 (09:01 +0000)]
MFC r279326:
Use pthread_mutex_trylock(3) to implement mtx_trylock(3).

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

9 years agoMFC r279318:
kib [Thu, 5 Mar 2015 09:00:27 +0000 (09:00 +0000)]
MFC r279318:
Check that the pointer to the thread return value is not NULL before
dereferencing. NULL is allowed by C11 and must be handled.

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

9 years agoMFC r278493: Update copyrights.
dteske [Thu, 5 Mar 2015 00:44:50 +0000 (00:44 +0000)]
MFC r278493: Update copyrights.

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

9 years agoMFC r278491: Add bsdconfig api function f_dialog_menutag2help()
dteske [Thu, 5 Mar 2015 00:43:50 +0000 (00:43 +0000)]
MFC r278491: Add bsdconfig api function f_dialog_menutag2help()

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

9 years agoMFC r278490:
dteske [Thu, 5 Mar 2015 00:42:58 +0000 (00:42 +0000)]
MFC r278490:
Add bsdconfig api functions f_dialog_pause()/f_dialog_pause_no_cancel()

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

9 years agoMFC r278489: Eliminate sub-shells where possible for performance.
dteske [Thu, 5 Mar 2015 00:42:06 +0000 (00:42 +0000)]
MFC r278489: Eliminate sub-shells where possible for performance.

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

9 years agoMFC r278488: Whitespace.
dteske [Thu, 5 Mar 2015 00:41:03 +0000 (00:41 +0000)]
MFC r278488: Whitespace.

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

9 years agoMFC r278483: Comments.
dteske [Thu, 5 Mar 2015 00:40:19 +0000 (00:40 +0000)]
MFC r278483: Comments.

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

9 years agoMFC r278470:
dteske [Thu, 5 Mar 2015 00:39:15 +0000 (00:39 +0000)]
MFC r278470:
Add new alias "bsdconfig api" (same as "bsdconfig includes")
NB: My fingers like typing "api" a lot more than "includes"

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

9 years agoMFC r278467:
dteske [Thu, 5 Mar 2015 00:37:54 +0000 (00:37 +0000)]
MFC r278467:
Replace the only instance of sed(1) in bsdconfig(8) with awk(1).

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

9 years agoMFC r274073:
dteske [Thu, 5 Mar 2015 00:34:33 +0000 (00:34 +0000)]
MFC r274073:
Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)
Makefile's, fixing concurrent installworld (`make -j17 installworld').

Reviewed by: delphij
Thanks to: delphij, emaste

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

9 years agoMFC r273068:
dteske [Thu, 5 Mar 2015 00:32:54 +0000 (00:32 +0000)]
MFC r273068:
Rename awk(1) implementation of GNU awk's built-in asorti() function to
prevent fatal conflict should one-true-awk ever be replaced -- e.g., in
an appliance -- with GNU awk. NB: Renamed my implementation to _asorti()

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

9 years agoMFC r273067:
dteske [Thu, 5 Mar 2015 00:29:58 +0000 (00:29 +0000)]
MFC r273067:
Fix awk(1) asorti() implementation to work when called in a loop.

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

9 years agoMFC r279284:
kib [Wed, 4 Mar 2015 09:32:59 +0000 (09:32 +0000)]
MFC r279284:
Propagate errors from _thr_umutex_unlock2 through mutex_unlock_common.

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

9 years agoMFC r279283:
kib [Wed, 4 Mar 2015 09:31:10 +0000 (09:31 +0000)]
MFC r279283:
When failing to claim ownership of a umtx_pi, restore the umutex owner
to its previous, unowned state.

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

9 years agoMFC r279282:
kib [Wed, 4 Mar 2015 09:29:25 +0000 (09:29 +0000)]
MFC r279282:
When unlocking a contested PI pthread mutex, if the queue of waiters
is empty, look up the umtx_pi and disown it if the current thread owns it.

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

9 years agoMFC r279301: GNU nm: Avoid NULL dereference
emaste [Wed, 4 Mar 2015 01:10:09 +0000 (01:10 +0000)]
MFC r279301: GNU nm: Avoid NULL dereference

  bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr,
  which resulted in a crash on certain ELF objects.

  This change was implemented independently from upstream binutils, but
  I have checked that the crash does not happen there.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r278915:
loos [Tue, 3 Mar 2015 17:03:41 +0000 (17:03 +0000)]
MFC r278915:

Set the #address-cells and #size-cells properties on I2C controllers of
Raspberry-pi.

This fixes the issues on dtc(1) while compiling I2C addresses set with
"reg" property.

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

9 years agoMFC r278844:
royger [Tue, 3 Mar 2015 10:11:58 +0000 (10:11 +0000)]
MFC r278844:

xen: fix xenstore dev

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

9 years agoMFC r279249, r279250, r279257:
gjb [Tue, 3 Mar 2015 02:46:59 +0000 (02:46 +0000)]
MFC r279249, r279250, r279257:

 r279249:
  Add 'cloudware-install' target to handle copying cloud
  disk images to a directory within DESTDIR.

  Add CLOUDINSTALL variable to automatically generate the
  actual list of install targets.  While here, rename the
  cloud-specific names from 'vm-' to 'cw-' to avoid naming
  collisions.

  Add AZURE_DISK, GCE_DISK, and OPENSTACK_DISK output file
  variables.

  Add 'cloudware-install' to the 'install' target.

 r279250:
  Remove a stale comment.

 r279257:
  Add a CLOUDPACKAGE variable to contain a list of targets for
  post-install packaging cloud provider images.

  Add a 'gce-package.sh' script to generate the final output
  image ready for upload to the GCE platform.  Right now, this
  is the only image that has a specific output format (GNU-tar),
  and this implementation is expected to be temporary.

  This is not directly connected to the other release targets.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC rev. 278728:
thomas [Mon, 2 Mar 2015 23:17:17 +0000 (23:17 +0000)]
MFC rev. 278728:
(backup_kernel_finddir, backup_kernel, install_files):
Add missing references to $BASEDIR, in order to allow correct operation
when updating a system mounted at another location than / (e.g. when
updating an alternate Boot Environment).

Reviewed by:  cperciva

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

9 years agoMFC r279346:
ken [Mon, 2 Mar 2015 21:00:54 +0000 (21:00 +0000)]
MFC r279346:

  ------------------------------------------------------------------------
  r279346 | ken | 2015-02-26 19:44:12 -0700 (Thu, 26 Feb 2015) | 13 lines

  Remove an obsolete comment in devstat(3) about the accuracy of the
  milliseconds per transaction (DSM_MS_PER_TRANSACTION) calculation.

  The comment was accurate many years ago when the kernel didn't
  record I/O times on a per-I/O basis, but now that we do collect
  that information in most areas, it isn't correct.

  The milliseconds per transaction values are correct, assuming the
  I/O duration has been recorded.

  Sponsored by: Spectra Logic

  ------------------------------------------------------------------------

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

9 years agoMFC r279367:
kib [Mon, 2 Mar 2015 09:15:50 +0000 (09:15 +0000)]
MFC r279367:
Fix typo.

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

9 years agoMFC r279206:
ae [Mon, 2 Mar 2015 07:51:14 +0000 (07:51 +0000)]
MFC r279206:
  In some cases soreceive_dgram() can return no data, but has control
  message. This can happen when application is sending packets too big
  for the path MTU and recvmsg() will return zero (indicating no data)
  but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
  Remove KASSERT() which does NULL pointer dereference in such case.
  Also call m_freem() only when m isn't NULL.

MFC r279209:
  soreceive_generic() still has similar KASSERT(), therefore instead of
  remove KASSERT(), change it to check mbuf isn't NULL.

PR: 197882
Sponsored by: Yandex LLC

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

9 years agoRegen src.conf(5)
ngie [Sun, 1 Mar 2015 22:12:24 +0000 (22:12 +0000)]
Regen src.conf(5)

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

9 years agoMFC r278193:
ngie [Sun, 1 Mar 2015 22:07:54 +0000 (22:07 +0000)]
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/10@279506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f