MFC r260110:

Eliminate unused drbr_stats_update implementation in oce(4) driver.

Noticed by:	dim


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260605:

  Remove scary comment about this being a test key.

  There has been no need to regenerate the signing key.

Early MFC as it is just a comment and needs to get into releng/10.0.

Approved by:	bapt (mentor, implicit)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259811:

MFV r258373:

4168 ztest assertion failure in dbuf_undirty

4169 verbatim import causes zdb to segfa
4170 zhack leaves pool in ACTIVE state

illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259921,259950:

Provide the manual page for aio_fsync(2).


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260541, r260547:
Take additional reference on SCSI probe periph to cover its freeze count.

Otherwise periph may be invalidated and freed before single-stepping freeze
is dropped, causing use after free panic.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257705:

Clean up -Wtautological-compare -Wformat warnings.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r260545:

ext2fs: fix inode flag conversion.

After r252890 we are naively attempting to pass through the
inode flags.  This is technically incorrect as the ext2
inode flags don't match the UFS/system values used in
FreeBSD and a clean conversion is needed.

Some filtering was left in place so the change didn't cause
significant changes in FreeBSD but some of the garbage passed
is likely to be the cause for warning messages in linux.

Fix the issue by resetting the flags before conversion as was
done previously. This also means we will not pass the EXT4_*
inode flags into FreeBSD's inode.

PR:		kern/185448


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260636:

Fix bsnmpd remote denial of service vulnerability.

Reported by:	dinoex
Submitted by:	harti
Security:	FreeBSD-SA-14:01.bsnmpd
Security:	CVE-2014-1452


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260638 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r260637:

Disable 'monitor' feature in ntpd by default.

Security:	FreeBSD-SA-14:02.ntpd
Approved by:	so


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260639 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- MFC 260653,260655:

* Purge old translations.
* Add missing footer due to DSSSL->XSLT migration and use XML catalog to
  resolve URI.
* Add missing arch= and revision= support.

- Update release.ent and fix release number in Errata.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260656 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix release numbers and branch names.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove a non-applicable sentence.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256542,r256581

Move the PMC handling to the first level interrupt handler where it belongs.
Also add the pmc_hook use, to handle callchain tracing.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259394,r259395,r259699

r259394:
Rebase the PMC indices at 1, since PMC_SOFT is at 0.

r259395,r259699:
Add userland PMC backtracing, and use the PMC trapframe macros for kernel
backtraces.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r256543,r259245,r259421,r259668,r259674

r256543:

Add fasttrap for PowerPC.  This is the last piece of the DTrace/ppc puzzle.
It's incomplete, it doesn't contain full instruction emulation, but it should be
sufficient for most cases.

r259245,r259421: (FBT)

FBT now does work fully on PowerPC.

Save r3 before using it for the trap check, else we end up saving the new r3,
containing the trap instruction encoding (0x7c810808), and restoring it back
with the frame on return.  This caused it to panic on my ppc32 machine.

r259668,r259674:
Fix a typo in the FBT code.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258362

Use 'int' to store the return value of getopt(), rather than char.

On some architectures (powerpc), char is unsigned by default, which means
comparisons against -1 always fail, so the programs get stuck in an
infinite loop.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r257941,r258119

Add the necessary bits for dumps on ppc64.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259082

Make some unsigned ints signed.

Found by:	clang (powerpc64)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r259284,r259287

Add PMU-based CPU frequency scalling.  This is used on most Titanium
PowerBooks.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@260674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r258355,258360,258400-258401,258406-258407,258418,258430,258439,258589-
258590,258592,258727-258728,258785, with the following descriptions:

Revisions 258400-258401,258406-258407,258590,258727-258728,258785:
+ Add a new `includes' module (see: bsdconfig includes -h) for exploring
  the bsdconfig(8) API

Remaining revisions:
258592: Sort all the messages.subr files
258355: Fix typo in a comment in networking/device.subr
258360: Whitespace, style, and other changes in networking/device.subr
258418: Quote interface names for good measure in networking/device.subr
258430: Remove an unused line in networking/device.subr
258439: Minor bugfix to f_die() function in common.subr
258589: Minor bugfix to syscons_ttys module


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