]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r281005: Make die available as rtld_die for use by MD relocation code
emaste [Tue, 28 Apr 2015 01:15:17 +0000 (01:15 +0000)]
MFC r281005: Make die available as rtld_die for use by MD relocation code

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r280299, r280840, r280846, r280879, r280881, r280884, r280928,
gjb [Mon, 27 Apr 2015 19:41:40 +0000 (19:41 +0000)]
MFC r280299, r280840, r280846, r280879, r280881, r280884, r280928,
r281783, r281809, r281832:

 r280299 (cperciva):
  When creating VM images, copy the contents of the created filesystem
  into a new filesystem before packaging it into a disk image.  This
  prevents "remnants" of deleted files from showing up in the VM images,
  and reduces their compressed size (by about 10% for the cloudware
  images) as a result.

 r280840 (cperciva):
  Clean up filesystem unmounting in vmimage builds:
  - Remove vm_umount_base function which is currently unused.
  - Add umount_loop function which loops attempting to unmount one
    filesystem.
  - Replace calls to umount with calls to umount_loop.
  - Don't attempt to unmount ${DESTDIR}/dev if it isn't mounted.

  The looping is necessary because sometimes umount fails due to
  filesystems being busy.  The most common cause of such busyness is
  periodic(8) jobs running `find / ...`.

 r280846 (cperciva):
  Improve check for whether ${DESTDIR}/dev is mounted.

 r280879 (cperciva):
  Add bits for building EC2 disk images.

 r280881 (cperciva):
  Partially revert r278118 now that the required logic for deciding
  whether freebsd-update can be useful has moved into the
  firstboot_freebsd_update script.

 r280884 (cperciva):
  Fix pkg(8) command line in vm_extra_pre_umount().

 r280928 (cperciva):
  Add code for creating an EC2 AMI.

 r281783:
  When building VM disk images, vm_copy_base() uses tar(1) to copy
  the userland from one md(4)-mounted filesystem to a clean filesystem
  to prevent remnants of files that were added and removed from
  resulting in an unclean filesystem.  When newfs(8) creates the first
  filesystem with journaled soft-updates enabled, the /.sujournal file
  in the new filesystem cannot be overwritten by the /.sujournal in the
  original filesystem.

  To avoid this particular error case, do not enable journaled
  soft-updates when creating the md(4)-backed filesystems, and instead
  use tunefs(8) to enable journaled soft-updates after the new
  filesystem is populated in vm_copy_base().

  While here, fix a long standing bug where the build environment /boot
  files were used by mkimg(1) when creating the VM disk images by using
  the files in .OBJDIR.

 r281809:
  Simplify variable expansion in attempt to fix the vm-image build.

 r281832:
  Fix locating the /boot files.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281769:
pfg [Mon, 27 Apr 2015 14:59:31 +0000 (14:59 +0000)]
MFC r281769:
g_uncompress_taste: prevent a double free.

Found by: Clang Static Analyzer

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

9 years agoMFC r272290 (by mjg):
kib [Mon, 27 Apr 2015 12:54:04 +0000 (12:54 +0000)]
MFC r272290 (by mjg):
Use bzero instead of explicitly zeroing stuff in do_execve.

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

9 years agoMFC r281762:
kib [Mon, 27 Apr 2015 08:06:33 +0000 (08:06 +0000)]
MFC r281762:
Remove duplicate definitions of MWAIT_CX hints.  Identical defines in
specialreg.h are enough.

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

9 years agoMFC r281495:
kib [Mon, 27 Apr 2015 08:02:12 +0000 (08:02 +0000)]
MFC r281495:
Add config option PAE_TABLES for the i386 kernel.  It switches pmap to
use PAE format for the page tables, but does not incur other
consequences of the full PAE config.  In particular, vm_paddr_t and
bus_addr_t are left 32bit, and max supported memory is still limited
by 4GB.

The option allows to have nx permissions for memory mappings on i386
kernel, while keeping the usual i386 KBI and avoiding the kernel data
sizing problems typical for the PAE config.

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

9 years agoMFC r281500,281540,281626:
delphij [Mon, 27 Apr 2015 05:49:18 +0000 (05:49 +0000)]
MFC r281500,281540,281626:

Sync with NetBSD:
 - Mention xz(1) in gzip(1).
 - Strip away path from header name when decompressing.

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

9 years agoMFC r281502:
delphij [Mon, 27 Apr 2015 05:42:14 +0000 (05:42 +0000)]
MFC r281502:

Sync with OpenBSD: Use volatile instead of __volatile__.

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

9 years agoMFC r281712:
kib [Sat, 25 Apr 2015 08:14:08 +0000 (08:14 +0000)]
MFC r281712:
Make wait6(2), waitid(3) and ppoll(2) cancellation points.

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

9 years agoMFC r281696:
kib [Sat, 25 Apr 2015 08:06:21 +0000 (08:06 +0000)]
MFC r281696:
Initialize td_sel in the thread_init().

PR: 199518

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

9 years agoMFC r281883:
kib [Sat, 25 Apr 2015 08:03:36 +0000 (08:03 +0000)]
MFC r281883:
Handle incorrect ELF images specifying size for PT_GNU_STACK not being
multiple of page size.

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

9 years agoMFC r281698:
mav [Sat, 25 Apr 2015 06:49:18 +0000 (06:49 +0000)]
MFC r281698:
Do not report stripe size if it is equal to sector size.

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

9 years agoMFC r261550,r281354,r281355,r281356,r281358,r281359,r281360,r281361,r281362,r281391...
ngie [Sat, 25 Apr 2015 05:31:52 +0000 (05:31 +0000)]
MFC r261550,r281354,r281355,r281356,r281358,r281359,r281360,r281361,r281362,r281391,r281392,r281393,r281394,r281395,r281397,r281398,r281399,r281400,r281401,r281402,r281403,r281404,r281407,r281408,r281409,r281410,r281411:

r261550 (by glebius):

Add test case for kern/181741. Right now test fails.

PR: 181741
Sponsored by: Nginx, Inc.

r281354:

Fix warnings, fix a typo in a testcase description, bump WARNS to 3

- Remove argc/argv (-Wunused)
- Cast len in comparison to size_t (-Wsign-compare)

Sponsored by: EMC / Isilon Storage Division

r281355:

Fix -Wunused warnings, bump WARNS to 6

The testcase fails today on subtest # 9

The output is still broken if prove -rv is run and the testcase aborts
prematurely (the testcase doesn't really conform to TAP protocol properly,
except when it completes fully)

Sponsored by: EMC / Isilon Storage Division

r281356:

Fix -Wunused warnings, bump WARNS to 6

The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)

Sponsored by: EMC / Isilon Storage Division

r281358:

- Parameterize out the number of accept/connect attempts
- Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and
  to also not fail if (for instance) there's a server already listening on port
  8080
- Don't leak the listening socket / fds into the child process
- Fix warnings:
-- Remove argc/argv (-Wunused)
-- Mark sig __unused (-Wunused)
-- Mark quit static (-Wmissing-variable-declarations)

Sponsored by: EMC / Isilon Storage Division

r281359:

Remove argc/argv (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281360:

Fix warnings

- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281361:

Remove argc/argv (-Wunused)

Sponsored by: EMC / Isilon Storage Division

r281362:

Use _exit, not exit in forked process

Sponsored by: EMC / Isilon Storage Division

r281391:

- Use static buffers for temporary file paths instead of strdup of constant strings
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Use mkstemp instead of mktemp to eliminate warning

Sponsored by: EMC / Isilon Storage Division

r281392:

- Garbage collect argc/argv (-Wunused)
- Bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281393:

Fix warnings and bump WARNS to 6
- Garbage collect argc/argv (-Wunused)
- sleep(3) will always return an unsigned int; don't check for return codes <0
  (-Wsign-compare)

Sponsored by: EMC / Isilon Storage Division

r281394:

- Don't use /tmp because it's outside ATF's prescribed sandbox
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup

Sponsored by: EMC / Isilon Storage Division

r281395:

Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281397:

Mark signum unused in signal_handler; bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281398:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281399:

Fix warnings and bump WARNS to 6
- Staticize variables as needed
- Garbage collect argc/argv
- Fix -Wsign-compare warnings by casting small sizeof to (int)

Sponsored by: EMC / Isilon Storage Division

r281400:

- Garbage collect argc/argv; bump WARNS to 6
- Make the socket path random and move it out of /tmp as that's outside ATF's
  prescribed path

Sponsored by: EMC / Isilon Storage Division

r281401:

- Garbage collect argc/argv
- Use random paths instead of one in /tmp

Sponsored by: EMC / Isilon Storage Division

r281402:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281403:

Garbage collect argc/argv and bump WARNS to 6

Sponsored by: EMC / Isilon Storage Division

r281404:

Generate temporary files with mkstemp instead of mktemp

Sponsored by: EMC / Isilon Storage Division

r281407:

Fix the knob twiddling to work properly per src.opts.mk

Sponsored by: EMC / Isilon Storage Division

r281408:

- Remove the .t wrapper and put the "magic" of determining the number of
  testcases into the .c file
- Require root for now because it fails with SOCK_RAW without root privileges
- Increment the test count properly on socket create failure

Sponsored by: EMC / Isilon Storage Division

r281409:

Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp

Sponsored by: EMC / Isilon Storage Division

r281410:

Fix more warnings I didn't catch in the first go-around

Sponsored by: EMC / Isilon Storage Division

r281411:

Fix even more warnings..

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r280893:
ngie [Sat, 25 Apr 2015 04:49:45 +0000 (04:49 +0000)]
MFC r280893:

Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r280475:
ngie [Sat, 25 Apr 2015 04:40:08 +0000 (04:40 +0000)]
MFC r280475:

The number of commands added when ddb(4) is enabled is 3, not 2

Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r281704:
rpaulo [Sat, 25 Apr 2015 01:23:29 +0000 (01:23 +0000)]
MFC r281704:
  Synaptics: don't report the middle button when clickPad is used.

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

9 years agoMFC r281544:
rpaulo [Sat, 25 Apr 2015 01:11:33 +0000 (01:11 +0000)]
MFC r281544:
  snd_hda: add support for the Lenovo X1 20BS model.

  This requires a patch to redirect the output to a separate DAC when
  the headphones are used.  While there, add device strings for Intel
  Broadwell HDA controllers and Realtek ALC292 codecs.

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

9 years agoMFC r281795:
pfg [Sat, 25 Apr 2015 00:58:19 +0000 (00:58 +0000)]
MFC r281795:
scsi_parse_transportid_rdma(): fix mismatch in memory access size.

Independently found by Coverity and gcc49.

CID: 1230006
Reviewed by: ken

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

9 years agoMFC r281667:
delphij [Sat, 25 Apr 2015 00:36:43 +0000 (00:36 +0000)]
MFC r281667:

Remove vfs.zfs.snapshot_list_prefetch, the corresponding code was
gone in r248571 already.

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

9 years agoMFC r281387:
delphij [Sat, 25 Apr 2015 00:32:47 +0000 (00:32 +0000)]
MFC r281387:

Merge changes from vendor driver version 1.1.1:

v1.1.1 2015-03-26
 * Support 4Kn drive.
 * Change the SCSI target ID of the disk to be the index of physical
   connetion to the HBA.
 * Support staggered drive spin up.
 * Fix a bug that command would be timeout because of improper
   interrupt service routine.
 * Error handling to avoid scsi command lost which caused system
   hang up.
 * Fix a bug that fail to get the devcie's serial number via
   FreeNAS WebGUI.

Many thanks to HighPoint for continued support of FreeBSD!

Relnotes: yes

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

9 years agoMFC r275358 r275483 r276982 - Removing M_FLOWID by hps@
hiren [Fri, 24 Apr 2015 23:26:44 +0000 (23:26 +0000)]
MFC r275358 r275483 r276982 - Removing M_FLOWID by hps@

r275358:
Start process of removing the use of the deprecated "M_FLOWID" flag
from the FreeBSD network code. The flag is still kept around in the
"sys/mbuf.h" header file, but does no longer have any users. Instead
the "m_pkthdr.rsstype" field in the mbuf structure is now used to
decide the meaning of the "m_pkthdr.flowid" field. To modify the
"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"
macros as defined in the "sys/mbuf.h" header file.

This patch introduces new behaviour in the transmit direction.
Previously network drivers checked if "M_FLOWID" was set in "m_flags"
before using the "m_pkthdr.flowid" field. This check has now now been
replaced by checking if "M_HASHTYPE_GET(m)" is different from
"M_HASHTYPE_NONE". In the future more hashtypes will be added, for
example hashtypes for hardware dedicated flows.

"M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value is
valid and has no particular type. This change removes the need for an
"if" statement in TCP transmit code checking for the presence of a
valid flowid value. The "if" statement mentioned above is now a direct
variable assignment which is then later checked by the respective
network drivers like before.

r275483:
Remove M_FLOWID from SCTP code.

r276982:
Remove no longer used "M_FLOWID" flag from mbuf.h and update the netisr
manpage.

Note: The FreeBSD version has been bumped.

Reviewed by:    hps, tuexen
Sponsored by:   Limelight Networks

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

9 years agoMFC r279393:
ngie [Fri, 24 Apr 2015 22:18:50 +0000 (22:18 +0000)]
MFC r279393:

Pad RX copy alignment calculation to avoid illegal memory accesses

The optimization made in r239940 is valid for struct mbuf's current structure
and size in FreeBSD, but hardcodes assumptions about sizes of struct mbuf,
which are unfortunately broken if additional data is added to the beginning of
struct mbuf

X-MFC note (discussed with rwatson):

This change requires the MPKTHSIZE definition, which is only available after
head@r277203 and will not be MFCed as it breaks mbuf(9) KPI.

A direct commit to stable/10 and merges to other branches to add the necessary
definitions to work with the code as-is will be done to facilitate this MFC

PR: 194314
Approved/Reviewed by: erj, jfv
Sponsored by: EMC / Isilon Storage Division

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

9 years agoBackport MHSIZE/MPKTHSIZE equivalents from head
ngie [Fri, 24 Apr 2015 21:38:18 +0000 (21:38 +0000)]
Backport MHSIZE/MPKTHSIZE equivalents from head

These macros are equivalent to the ones on head, except they are only exposed
when _KERNEL is defined, i.e. to kernel code, whereas the code on head is exposed
to userland as well

This is for improved forwards compatibility with mbuf(9) macros in head@r277203+,
and is required for a clean MFC of r279393

This is a direct commit to stable/10

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D2126
Reviewed by: glebius, rwatson
Sponsored by: EMC / Isilon Storage Division

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

9 years agoRevert r281543. It causes a panic/hang early in boot for a number of
scottl [Fri, 24 Apr 2015 17:05:18 +0000 (17:05 +0000)]
Revert r281543.  It causes a panic/hang early in boot for a number of
users, myself included.  The original code is likely papering over a
larger bug that needs to be explored, but for now get things back to
a working state.

Obtained from: Netflix, Inc.

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

9 years agoMFC r277464: Add missing R_X86_64_ constants to elf_common.h
emaste [Fri, 24 Apr 2015 15:58:41 +0000 (15:58 +0000)]
MFC r277464: Add missing R_X86_64_ constants to elf_common.h

PR: 196918
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281311: ar: Disallow directory traversal
emaste [Fri, 24 Apr 2015 15:48:23 +0000 (15:48 +0000)]
MFC r281311: ar: Disallow directory traversal

  Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT
  as in bsdtar to prevent extraction of archive entries whose pathnames
  contain .. or whose target directory would be altered by a symlink.
  Also disallow absolute pathnames.

  We don't currently provide an option to disable this behaviour (as
  bsdtar's -P does). It is unlikely to be a problem in practice for ar(1),
  but the -P option is not currently used and available if we want to
  consider it for this purpose.

Obtained from: ELF tool chain ar, Ticket #474
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281537: Increase vt font limits to allow use of GNU Unifont
emaste [Fri, 24 Apr 2015 15:32:12 +0000 (15:32 +0000)]
MFC r281537: Increase vt font limits to allow use of GNU Unifont

PR: 199438
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r280786:
bz [Fri, 24 Apr 2015 07:52:21 +0000 (07:52 +0000)]
MFC r280786:

  Try to unbreak !SMP kernels  broken in r280785 (head), r281657 by using
  the proper macros to access cc_cpu.

Requested by: jmallett
Pointyhat to: rrs

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

9 years agoMFC r281756:
pfg [Fri, 24 Apr 2015 02:14:01 +0000 (02:14 +0000)]
MFC r281756:
nfsrpc_createv4: fix double free.

Reported by: Oliver Pinter, clang static checker
Obtained from: HardenedBSD (63cac77c42c0c3fc67da62f97d5ab651d52ae707)
Reviewed by: rmacklem

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

9 years agoMFC r281380:
ae [Fri, 24 Apr 2015 02:12:25 +0000 (02:12 +0000)]
MFC r281380:
  Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
  interface index is specified as zero, the system should select the
  interface to use for outgoing multicast packets. Even the comment
  for the in6p_set_multicast_if() function says about index of zero.
  But in fact for zero index the function just returns EADDRNOTAVAIL.

  I.e. if you first set some interface and then will try reset it
  with zero ifindex, you will get EADDRNOTAVAIL.

  Reset im6o_multicast_ifp to NULL when interface index specified as
  zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
  This will be the same behaviour as when ifindex is bigger than
  V_if_index. And return EADDRNOTAVAIL only when interface is not
  multicast capable.

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

9 years agoMFC 281159:
jhb [Thu, 23 Apr 2015 22:39:32 +0000 (22:39 +0000)]
MFC 281159:
Move the message complaining about failed system resource allocations
under bootverbose.  Every example I've seen to date has been due to
an ACPI system resource device reserving a range that overlaps with
system memory (which ram0 attempts to reserve) or a local or I/O APIC
(which apic0 attempts to reserve).  These are always harmless but look
scary to users.

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

9 years agoMFC r281775:
dim [Thu, 23 Apr 2015 22:06:02 +0000 (22:06 +0000)]
MFC r281775:

Pull in r229911 from upstream llvm trunk (by Benjamin Kramer):

  MC: Allow multiple comma-separated expressions on the .uleb128 directive.

  For compatiblity with GNU as. Binutils documents this as
  '.uleb128 expressions'. Subtle, isn't it?

Reported by: sbruno
PR: 199554

MFC r281777:

Add llvm patch corresponding to r281775.

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

9 years agoMFC r281582:
bdrewery [Thu, 23 Apr 2015 15:24:33 +0000 (15:24 +0000)]
MFC r281582:

  Remove extra flags from r250462.

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

9 years agoMFC r280999:
bdrewery [Thu, 23 Apr 2015 15:19:56 +0000 (15:19 +0000)]
MFC r280999:

  Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.

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

9 years agoRegen for r281891
bdrewery [Thu, 23 Apr 2015 15:18:43 +0000 (15:18 +0000)]
Regen for r281891

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

9 years agoMFC r281053:
bdrewery [Thu, 23 Apr 2015 15:15:45 +0000 (15:15 +0000)]
MFC r281053:

  Remove specific reference to g++(1) for WITH_CXX as it may be clang.

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

9 years agoMFC r281003:
kib [Thu, 23 Apr 2015 07:32:28 +0000 (07:32 +0000)]
MFC r281003:
Speed up symbol lookup for the amd64 kernel modules.

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

9 years agoMFC r281745:
kevlo [Thu, 23 Apr 2015 01:52:07 +0000 (01:52 +0000)]
MFC r281745:
Add new USB ID.

PR: 199522

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

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

PR: 197286

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

9 years agoMFC r281309:
ae [Wed, 22 Apr 2015 19:41:29 +0000 (19:41 +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/10@281866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r281324
jgh [Wed, 22 Apr 2015 18:54:51 +0000 (18:54 +0000)]
MFC: r281324

- ggatel.8 currently doesn't mention the 'rescue' command and
  documents a non-existing 'attach' command instead.
- while here address a spelling error

Approved by: wblock (mentor)
Differential Revision: https://reviews.freebsd.org/D2346

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

9 years agoMFC r281549:
kib [Wed, 22 Apr 2015 10:59:05 +0000 (10:59 +0000)]
MFC r281549:
Implement support for -z global linker option.

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

9 years agoMFC r281548:
kib [Wed, 22 Apr 2015 10:57:00 +0000 (10:57 +0000)]
MFC r281548:
Implement support for binary to request specific stack size for the
initial thread.

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

9 years agoFix r281843 mis-merge.
pluknet [Wed, 22 Apr 2015 10:25:08 +0000 (10:25 +0000)]
Fix r281843 mis-merge.

Reported by: Thomas Mueller tmueller at sysgo com

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

9 years agoMFC revisions 277693,278335,280382-280385,280923-280926,280931,
dteske [Wed, 22 Apr 2015 01:08:40 +0000 (01:08 +0000)]
MFC revisions 277693,278335,280382-280385,280923-280926,280931,
280933-280939,280974-280976,281002,281009,281081,281176-281180,
281271,281275,281616 (described in-breif below):
r277693: Font fix (des)
r278335: Revert that
r280382: Whitespace, comments, and copyright update
r280383: Prevent inadvertent bootlock condition
r280384: Increase max passowrd length from 16 to 255 chars
r280385: Add missing variable hints to loader.conf(5) defaults
r280923: Whitespace
r280924: Comments
r280925: Optimize bootmsg to use fg/bg/me from screen.4th
r280926: Whitespace and cleanup
r280931: Comments
r280933: Move beastie to logo-*.4th; brands to brand-*.4th
r280934: Add remainder of supported ANSI escape sequences
r280935: Securely overwrite (zero) user input after password checks
r280936: Use equals for ASCII double frames
r280937: Solve dreaded "dictionary full" issue
r280938: Add "GELI Passphrase:" prompt to boot loader
r280939: Revert that (premature commit)
r280974: Use fg/b/me from screen.4th instead of literals
r280975: Eliminate literal escape sequences from *.4th
r280976: Use ^[[m mode-ending versus ^[[37m
r281002: Install newly added brand-*.4th and logo-*.4th files (jkim)
r281009: Revert .PATH changes to fix mips build (jkim)
r281081: Make sure forth manpages are only installed once (bapt)
r281176: Back to previous mode-endings based on feedback
r281177: Back to previous mode-endings based on feedback
r281178: Back to previous mode-endings based on feedback
r281179: Back to previous mode-endings based on feedback
r281180: Eliminate literal escape sequences from *.rc
r281271: Fix a bootlock condition if loader_version is set
NB: Commit message of r281271 has a typo, s/_logo/_version/
r281275: Re-do proper mode-endings
r281616: Add "GELI Passphrase:" prompt to boot loader

Relnotes: Added "GELI Passphrase:" prompt to boot loader

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

9 years agoMFC r281670, r281703:
pfg [Wed, 22 Apr 2015 00:38:11 +0000 (00:38 +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/10@281841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270155, r274490, r274593, r274607
garga [Tue, 21 Apr 2015 17:02:55 +0000 (17:02 +0000)]
MFC r270155, r274490, r274593, r274607

Add native-xtools target to stable/10

Differential Revision: https://reviews.freebsd.org/D2044
Reviewed by: sbruno@
Approved by: sbruno@
Sponsored by: Netgate

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

9 years agoReplace LDFLAGS by LDADD to fix sort build with -DNO_SHARED
garga [Tue, 21 Apr 2015 15:47:00 +0000 (15:47 +0000)]
Replace LDFLAGS by LDADD to fix sort build with -DNO_SHARED

Differential Revision: https://reviews.freebsd.org/D2044
Reviewed by: sbruno@
Approved by: sbruno@
Sponsored by: Netgate

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

9 years agoMFC r281605,281768:
brooks [Tue, 21 Apr 2015 14:22:45 +0000 (14:22 +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/10@281830 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:27:50 +0000 (11:27 +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/10@281826 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r278402
alc [Mon, 20 Apr 2015 17:43:36 +0000 (17:43 +0000)]
MFC r278402
  Preset the object's color, or alignment, to maximize superpage usage.

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

9 years agoMFC r279400
alc [Mon, 20 Apr 2015 17:36:43 +0000 (17:36 +0000)]
MFC r279400
  Eliminate a variable that became unused when VFS_LOCK_GIANT() was
  eliminated.

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

9 years agoMFC r280919: wordexp: Explicitly pass along IFS.
jilles [Sun, 19 Apr 2015 13:51:25 +0000 (13:51 +0000)]
MFC r280919: wordexp: Explicitly pass along IFS.

Per Austin group issue #884, sh should not import IFS from the environment
but always set it to $' \t\n'. For wordexp(), however, it is documented and
useful for it to use IFS from the environment.

Since sh currently imports IFS from the environment, this change has no
functional effect.

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

9 years agoMFC r280830: wordexp(): Add testcase for non-default IFS in environment.
jilles [Sun, 19 Apr 2015 13:46:13 +0000 (13:46 +0000)]
MFC r280830: wordexp(): Add testcase for non-default IFS in environment.

The non-default IFS is expected to be used.

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

9 years agoMFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).
jilles [Sun, 19 Apr 2015 13:28:32 +0000 (13:28 +0000)]
MFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).

When following symlinks, fts returned FTS_SLNONE when fstatat(flag=0)
failed, but a subsequent fstatat(flag=AT_SYMLINK_NOFOLLOW) succeeded. This
incorrectly triggered if a filename existed to be read from the directory,
was deleted before the fstatat(flag=0) and created again after the
fstatat(flag=0).

Fix this by only returning FTS_SLNONE if the result from
fstatat(flag=AT_SYMLINK_NOFOLLOW) is actually a symlink. If it is not a
symlink, treat it as if fstatat(flag=0) succeeded.

PR: 196724

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

9 years agoMFC r281462:
kib [Sun, 19 Apr 2015 08:31:26 +0000 (08:31 +0000)]
MFC r281462:
Define capabilities bits from the revision 007 of the document 302223.

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

9 years agoMFC r280688 (by ru):
pluknet [Sun, 19 Apr 2015 07:49:39 +0000 (07:49 +0000)]
MFC r280688 (by ru):

Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.

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

9 years agoMFC r274933 (by bapt), r281470:
pluknet [Sun, 19 Apr 2015 07:46:32 +0000 (07:46 +0000)]
MFC r274933 (by bapt), r281470:

r274933 - Ta is only allowed with Bl -column not in Bl -item
r281470 - Remove obsolete bits about maximum number of file systems.

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

9 years agoMFC r260571: fts: Stat things relative to the directory fd, if possible.
jilles [Sat, 18 Apr 2015 21:31:36 +0000 (21:31 +0000)]
MFC r260571: fts: Stat things relative to the directory fd, if possible.

As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).

Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.

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

9 years agoMFC r281441:
rpaulo [Sat, 18 Apr 2015 21:26:47 +0000 (21:26 +0000)]
MFC r281441:
  Add support for controlling the trackpoint when Synaptics is enabled.

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

9 years agoMFC r281440:
rpaulo [Sat, 18 Apr 2015 21:24:46 +0000 (21:24 +0000)]
MFC r281440:

  Improve Synaptics support for newer touchpads.

  Enable two finger scrolling by default and disable the edge scrolling if
  the touchpad has no physical zone for it.  Disable directional scrolling
  by default to avoid using extended buttons as scroll buttons.

  Add support for ClickPad.  On Lenovo laptops, this is the button
  reported when one presses the touchpad.

  While there, fix a problem where the extended buttons were not reporting
  the button release event correctly: we need to save the state of the
  buttons and report it to sysmouse until we receive a packet from the
  touchpad indicating the button has been released.  This makes it
  possible to use an extended button to resize a window.  On Lenovo
  laptops, the major buttons are actually reported as extended buttons.

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

9 years agoMFC r281406:
rpaulo [Sat, 18 Apr 2015 21:22:26 +0000 (21:22 +0000)]
MFC r281406:
  netmap: improve the netmap attach message on FreeBSD.

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

9 years agoMFC: r281396, r281475
jkim [Sat, 18 Apr 2015 08:01:12 +0000 (08:01 +0000)]
MFC: r281396, r281475

Merge ACPICA 20150410.

Relnotes: yes

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

9 years agoMFC r280206:
eadler [Fri, 17 Apr 2015 18:33:59 +0000 (18:33 +0000)]
MFC r280206:

Implement pax -O option to permit limiting a PAX archive to a single volume.

-O Force the archive to be one volume.  If a volume ends prematurely, pax will
not prompt for a new volume.

PR: 198481

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

9 years agoMFC of r280785, r280871, r280872, r281510, r218511 - callout fixes.
rrs [Fri, 17 Apr 2015 15:39:42 +0000 (15:39 +0000)]
MFC of r280785, r280871, r280872, r281510, r218511 - callout fixes.
Sponsored by:   Netflix Inc.

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

9 years agoMFC r272378:
markj [Thu, 16 Apr 2015 19:09:25 +0000 (19:09 +0000)]
MFC r272378:
Add net.inet.icmp.tstamprepl.

PR: 193689

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

9 years agoMFC r281225:
markj [Thu, 16 Apr 2015 19:04:38 +0000 (19:04 +0000)]
MFC r281225:
Add B_KVAALLOC and B_UNMAPPED to the buf flag name list.

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

9 years agoMFC 280222:
jhb [Thu, 16 Apr 2015 15:09:46 +0000 (15:09 +0000)]
MFC 280222:
Clear an mbuf's external storage flags in m_extaddref(). They are cleared
in other places that set the external storage type (ext_type) such as
m_cljset(), m_extadd(), mb_ctor_clust(), and vn_sendfile().

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

9 years agoMFC: r277328:
allanjude [Thu, 16 Apr 2015 00:44:05 +0000 (00:44 +0000)]
MFC: r277328:
Fix minor syntax and grammar errors in the markup of the ee(1) man page

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r280191:
allanjude [Thu, 16 Apr 2015 00:39:16 +0000 (00:39 +0000)]
MFC: r280191:
Document that nextboot(8) doesn't work as expected with ZFS

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r272135, r272174
allanjude [Thu, 16 Apr 2015 00:37:05 +0000 (00:37 +0000)]
MFC: r272135, r272174
Update man(1) to list the different sections of the manual

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r281209:
allanjude [Thu, 16 Apr 2015 00:34:41 +0000 (00:34 +0000)]
MFC: r281209:
Fix missing AUTHOR section for jot(1), rs(1), and lam(1)

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r266774:
allanjude [Thu, 16 Apr 2015 00:31:51 +0000 (00:31 +0000)]
MFC: r266774:
improve ifconfig(8) man page by describing special behaviour of -l ether

MFC: r267141:
Style cleanups on ifconfig.8

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r269089:
allanjude [Thu, 16 Apr 2015 00:29:49 +0000 (00:29 +0000)]
MFC: r269089:
Update the freebsd-tips example to use drill instead of dig since bind is no longer in base

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r280301:
allanjude [Thu, 16 Apr 2015 00:27:53 +0000 (00:27 +0000)]
MFC: r280301:
Fix grammar in epair(4) man page

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC: r266671, r266725:
allanjude [Thu, 16 Apr 2015 00:24:21 +0000 (00:24 +0000)]
MFC: r266671, r266725:
Merge strcspn.3 into strspn.3 and clarify the explaination

Approved by: eadler (mentor, implicit)
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC r281146.
rakuco [Wed, 15 Apr 2015 22:07:51 +0000 (22:07 +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/10@281567 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r281116.
rakuco [Wed, 15 Apr 2015 22:02:52 +0000 (22:02 +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

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

9 years agoMFI r257381:
slm [Wed, 15 Apr 2015 21:47:15 +0000 (21:47 +0000)]
MFI r257381:
    Adjust to handle either a 32-bit or 64-bit lun_id_t in printf.

MFC r266615:
    Increase taskqueue thread priority from idle to PRIBIO.

MFC r279253:
    - Copyright to Avago
    - SSU changes
    - SATA ID timeout handling (PR 191348)
    - reset handling changes
    - Bump version to 20.00.00.00-fbsd

MFC r279695:
    Change that should have been done with r279253

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

9 years agoMFC 278325,280866:
jhb [Wed, 15 Apr 2015 16:52:34 +0000 (16:52 +0000)]
MFC 278325,280866:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that

278325:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that
the INIT IPIs here are invalid, but other systems follow the MP
spec instead.

While here, fix the IPI wait routine to accept a timeout in microseconds
instead of a raw spin count, and don't spin forever during AP startup.
Instead, panic if a STARTUP IPI is not delivered after 20 us.

280866:
Wait 100 microseconds for a local APIC to dispatch each startup-related IPI
rather than 20.  The MP 1.4 specification states in Appendix B.2:

  "A period of 20 microseconds should be sufficient for IPI dispatch to
   complete under normal operating conditions".

(Note that this appears to be separate from the 10 millisecond (INIT) and
200 microsecond (STARTUP) waits after the IPIs are dispatched.)  The
Intel SDM is silent on this issue as far as I can tell.

At least some hardware requires 60 microseconds as noted in the PR, so
bump this to 100 to be on the safe side.

PR: 196542, 197756

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

9 years agoMFC r281272:
kib [Wed, 15 Apr 2015 06:59:53 +0000 (06:59 +0000)]
MFC r281272:
Explain that vm_page_array is mapped to describe the memory, not the
memory itself.  Provide the formula to calculate the number of
required page tables.  Correct the size of the struct vm_page for
non-PAE case.

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

9 years agoMFC r281254:
kib [Wed, 15 Apr 2015 06:56:51 +0000 (06:56 +0000)]
MFC r281254:
Account for the offset of the page run when allocating the
dmar_map_entry.

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

9 years agoMFC r281162, r281451:
dchagin [Wed, 15 Apr 2015 05:13:41 +0000 (05:13 +0000)]
MFC r281162, r281451:

Use flexible array for per cpu uma_cache to avoid allocating
an extra struct uma_cache.

PR: 199169

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

9 years agoMFC r281181, r281182;
pfg [Tue, 14 Apr 2015 18:57:50 +0000 (18:57 +0000)]
MFC r281181, r281182;

sort(1): Cleanups and a small memory leak.
Remove custom getdelim(3) and fix a small memory leak.

Obtained from:  OpenBSD

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

9 years agoMFC r281320:
pfg [Tue, 14 Apr 2015 18:45:30 +0000 (18:45 +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/10@281533 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:10 +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/10@281520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r280716,280767,280914:
delphij [Tue, 14 Apr 2015 00:32:03 +0000 (00:32 +0000)]
MFC r280716,280767,280914:

 - Correct type for checkAgainst.
 - Staticify flags that are not used outside the file scope.
 - Fix warnings.
 - Constify parameters.

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

9 years agoMFC r266417 (bjk):
delphij [Tue, 14 Apr 2015 00:27:54 +0000 (00:27 +0000)]
MFC r266417 (bjk):

Assorted updates to md5.1

Note that the -c argument's parameter is compared against the digest of
the file, not the file. [1]

Update the "current time" parentheticals for notes about reversing
and colliding the hash functions. [1]

Some general mdoc updates.

PR: docs/188043 [1]
Submitted by: Jamie Landeg-Jones [1]

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

9 years agoMFC: r281335
jkim [Mon, 13 Apr 2015 22:26:11 +0000 (22:26 +0000)]
MFC: r281335

Print 64-bit addresses clearly with leading zeros to avoid confusions.

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

9 years agoMFC r281163: Make ctld to not exit on ECONNABORTED on accept().
mav [Mon, 13 Apr 2015 09:18:56 +0000 (09:18 +0000)]
MFC r281163: Make ctld to not exit on ECONNABORTED on accept().

That is not really an error for the main process.

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

9 years agoMFC r280850:
mav [Mon, 13 Apr 2015 09:17:57 +0000 (09:17 +0000)]
MFC r280850:
Periodically wake up threads waiting for vmem(9) resources, so they could
ask for resource reclamation again.

This is kind of dirty hack, but as last resort this is better then stuck
indefinitely because of KVA fragmentation, waiting until some random event
free something sufficient.  OpenSolaris also has this hack in its vmem(9).

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

9 years agoMFC r268182: Initialize page sizes early for ia64.
peter [Mon, 13 Apr 2015 08:35:03 +0000 (08:35 +0000)]
MFC r268182:  Initialize page sizes early for ia64.

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

9 years agoMFC r280834:
markj [Mon, 13 Apr 2015 01:42:24 +0000 (01:42 +0000)]
MFC r280834:
Bound the number of frames traversed when executing the ustackdepth action.

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

9 years agoMFC r281136:
rpaulo [Mon, 13 Apr 2015 01:19:22 +0000 (01:19 +0000)]
MFC r281136:
  ichsmb: add a device id for the Wildcat Point-LP.

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

9 years agoMFC r281383:
eadler [Mon, 13 Apr 2015 01:01:17 +0000 (01:01 +0000)]
MFC r281383:

iwn, wlan: fix typos
Fxi tow typos

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

9 years agoMFC r279862:
markj [Sun, 12 Apr 2015 21:45:34 +0000 (21:45 +0000)]
MFC r279862:
Fix a possible infinite loop in ctf_discard().

MFC r279864:
Use CTF_TYPE_TO_INDEX when comparing type indices to the dynamic type
threshold.

MFC r279869:
If the destination container contains only a forward declaration for the
input type in ctf_add_type(), search its dynamic type list before adding
a new type.

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

9 years agoMFC r280882:
markj [Sun, 12 Apr 2015 21:38:18 +0000 (21:38 +0000)]
MFC r280882:
Fix a misparenthesization that could cause a crash if TERM is not set.

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