Add some more OS_MARK() probes to the AR9300 HAL.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Remove unneeded include.

Phabric:	D563
Reviewed by:	kevlo
Approved by:	kevlo


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix too long (seed length >12 chars) challenge handling.
1) " ext" length should be included into OPIE_CHALLENGE_MAX (as all places
of opie code expects that).
2) Overflow check in challenge.c is off by 1 even with corrected
OPIE_CHALLENGE_MAX
3) When fallback to randomchallenge() happens and rval is 0 (i.e.
challenge is too long), its value should be set to error state too.

To demonstrate the bug, run opiepasswd with valid seed:
opiepasswd -s 1234567890123456
and notice that it falls back to randomchallenge() (i.e. no
1234567890123456 in the prompt).

PR:             191511
Submitted by:   mitsururike@gmail.com (partially)
MFC after:      1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269806 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide sf_buf_ref() to optimize refcounting of already allocated
sendfile(2) buffers.

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use M_WAITOK in sf_buf_init().

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269808 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX

MFC after:      1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Link otp-sha1 to match real challenge prompt, not otp-sha

MFC after:      1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269810 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Last '/' for program name, not first one

MFC after:      1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269811 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove dependence on source tree options. Move all kernel module
options into kern.opts.mk and change all the places where we use
src.opts.mk to pull in the options. Conditionally define SYSDIR and
use SYSDIR/conf/kern.opts.mk instead of a CURDIR path. Replace all
instances of CURDIR/../../etc with STSDIR, but only in the affected
files.

As a special compatibility hack, include bsd.owm.mk at the top of
kern.opts.mk to allow the bare build of sys/modules to work on older
systems. If the defaults ever change between 9.x, 10.x and current for
these options, however, you'll wind up with the host OS' defaults
rather than the -current defaults. This hack will be removed when
we no longer need to support this build scenario.

Reviewed by: jhb
Differential Revision: https://phabric.freebsd.org/D529


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269812 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move KASSERT into locked region.

Submitted by:	kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
blkfront: add support for unmapped IO

Using unmapped IO is really beneficial when running inside of a VM,
since it avoids IPIs to other vCPUs in order to invalidate the
mappings.

This patch adds unmapped IO support to blkfront. The following tests
results have been obtained when running on a Xen host without HAP:

PVHVM
     3165.84 real      6354.17 user      4483.32 sys
PVHVM with unmapped IO
     2099.46 real      4624.52 user      2967.38 sys

This is because when running using shadow page tables TLB flushes and
range invalidations are much more expensive, so using unmapped IO
provides a very important performance boost.

Sponsored by:	Citrix Systems R&D
Tested by:	robak
MFC after:	1 week
PR:		191173

dev/xen/blkfront/blkfront.c:
 - Add and announce support for unmapped IO.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add otp-sha

MFC after:      1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In arm/release.sh, continue if 'xdev-links' target fails
where the target is not valid (stable/10), instead of doing
per-branch evaluation on if xdev-links needs to be invoked.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Similar to r250143, optimize MODULES_OVERRIDE such that SUBDIR isn't
automatically defined if MODULES_OVERRIDE is defined

Approved by: jmmv (mentor)
Reviewed by: imp
Phabric: D578
Sponsored by: EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269820 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change {_,}pmap_allocpte() so that they look for the flag PMAP_ENTER_NOSLEEP
instead of M_NOWAIT/M_WAITOK when deciding whether to sleep on page table
page allocation.  (The same functions in the i386/xen and mips pmap
implementations already use PMAP_ENTER_NOSLEEP.)

X-MFC with:	r269728
Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a typo.

PR:		192294
Submitted by:	Conrad Meyer <conrad.meyer@isilon.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269824 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add myself as opencrypto maintainer as I'm doing some work in the
area...

Note that documentation is requires for commits to what I maintain...


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update serf-1.3.6 -> 1.3.7
Update subversion-1.8.9 -> 1.8.10

Security:	CVE-2014-3504, CVE-2014-3522, CVE-2014-3528


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix an error in the dependency of the DTrace object file.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bsd.dep.mk: use the empty() function with the check for .d files.

Seems to work better with the old make.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@269839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f