MFC r275624:
Add port routing support for Wildcat Point.

PR:		195793


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275606:
Add more U3G USB IDs.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275615:
When process is exiting, check for suspension regardless of
multithreaded status of the process.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275793 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275616:
Thread waiting for the vfork(2)-ed child to exec or exit, must allow
for the suspension.

MFC r275683 (by andreast):
Fix build for powerpc(32|64) kernels.

MFC r275686 (by andreast):
Fix kernel build for booke.

r275639 (by andrew) is not merged, since arm/arm/syscall.c is not
present on the stable/10 branch, and arm/arm/trap.c already includes
sys/kernel.h.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275617:
Do some refactoring and minor cleanups of the thread_single() code.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275618:
Check for stop condition in nfsd threads.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275619:
Check for bo_bufobj->bo_object for NULL and cache the value in local
variable to avoid NULL dereference in getnewbuf_reuse_bp(). The vnode
owning the buffer is not locked there.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275620:
Add functions syncer_suspend() and syncer_resume().

MFC r275637:
Remove local variable for real.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271982 and r271990 to support CentOS 6 ports.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert r275778, gcc 4.2.1 doesn't handle -march=armv7.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct to the stable/10 commit in UPDATING and specify the correct ports/UPDATING
note.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by:	Yandex LLC


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

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID:		1007665
Discussed with:	bde


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 272897:
Various fixes to stats:
- Read the counts of received, dropped, and transmitted management
  packets and add sysctl nodes for them.
- Fix the total octets received/transmitted to read all 64 bits of
  the counters.
- Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot.
- Remove spurious spaces.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r275531, r275581, r275582;

patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from:	OpenBSD


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r275553, r275612;

patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:		195436
Obtained from:	OpenBSD


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@275841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 273053:
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.


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