]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r261499 (pjd):
delphij [Mon, 3 Mar 2014 23:19:28 +0000 (23:19 +0000)]
MFC r261499 (pjd):

Fix installations that use kernels without CAPABILITIES support.

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

10 years agoMFR r261294:
brooks [Mon, 3 Mar 2014 20:28:27 +0000 (20:28 +0000)]
MFR r261294:

Remove an unneeded space in the BERI merge.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r258270:
dteske [Mon, 3 Mar 2014 07:31:55 +0000 (07:31 +0000)]
MFC r258270:

Add a try-include word (which acts the same as "include") and use it to
conditionally include (but ignore failures) /boot/loader.rc.local and
/boot/menu.rc.local -- to make customizing the menu easier.

Reviewed by: alfred
Discussed on: -hackers

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

10 years agoMFC r258269: Refactor draw-beastie function.
dteske [Mon, 3 Mar 2014 07:28:56 +0000 (07:28 +0000)]
MFC r258269: Refactor draw-beastie function.

Discussed on: -hackers

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

10 years agoMFC r257821:
dteske [Mon, 3 Mar 2014 07:24:50 +0000 (07:24 +0000)]
MFC r257821:

Extend loader_delay as-documented in beastie.4th(8) and delay.4th(8),
making it available to architectures that do not use or load the beastie
menu. This is reported to save headaches on some PPC systems where unload
followed by load does not produce the desired results wherein if-given
the opportunity to abort the initial loading sequence, you can customize
the first load.

Reviewed by: nwhitehorn, kan
Discussed on: -current

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

10 years agoMFC r257650:
dteske [Mon, 3 Mar 2014 07:16:39 +0000 (07:16 +0000)]
MFC r257650:

Defer loading of kernel and modules if the beastie menu is enabled. Add a
kernel selection menu to the beastie menu. List of kernels is taken from
`kernels' in loader.conf(5) as a space (or comma) separated list of names
to display (up to 9). If not set, default value is "kernel kernel.old".
Does not validate that kernels exist because the next enhancement will be
to allow selection of the root device.

Discussed on: -current

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

10 years agoMRC: r260886
imp [Sun, 2 Mar 2014 23:09:36 +0000 (23:09 +0000)]
MRC: r260886

Merge only the uart_dev_at91usart.c part of this revision,
since it has nothing to do with the commit log and was included
by mistake there.

This connects the new grab/ungrab upcalls that were revised
in uart to fix mountroot>.

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

10 years agoMFC r262006,r262328:
bdrewery [Sun, 2 Mar 2014 16:25:56 +0000 (16:25 +0000)]
MFC r262006,r262328:

 r262006:
  Fix M_FILEDESC leak in fdgrowtable() introduced in r244510.
  fdgrowtable() now only reallocates fd_map when necessary.
 r262328:
  Style.

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r262005:
bdrewery [Sun, 2 Mar 2014 16:04:27 +0000 (16:04 +0000)]
MFC r262005:

  Remove redundant memcpy of fd_ofiles in fdgrowtable()

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r261258
jhibbits [Sun, 2 Mar 2014 15:53:39 +0000 (15:53 +0000)]
MFC r261258

Use a loop of dcbz, instead of calling bzero() to zero a page.  This matches
what is done in mmu_oea64.c.

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

10 years agoMFC: r262574
brueffer [Sun, 2 Mar 2014 12:11:55 +0000 (12:11 +0000)]
MFC: r262574

Add tws(4) to the hardware notes.

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

10 years agoMFC r261309
jhibbits [Sun, 2 Mar 2014 02:35:46 +0000 (02:35 +0000)]
MFC r261309

Unbreak non-SMP builds.  This was broken by r259284.  Also, reorganize the
code introduced in that revision a bit.

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

10 years agoIncrease maximum number of columns to support 1920x1200 displays.
jmmv [Sun, 2 Mar 2014 01:46:44 +0000 (01:46 +0000)]
Increase maximum number of columns to support 1920x1200 displays.

This is a MFC of r262480 and r262502.

Please note that this is changing a constant in a header file so it
could affect ABIs.  However, as far as I can tell, this is apparently
only used in code to declare static arrays and thus it should be safe
to change...

PR: kern/180558

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

10 years agoMFC r261173
jhibbits [Sun, 2 Mar 2014 00:30:42 +0000 (00:30 +0000)]
MFC r261173

MPC74xx should not fall through, to the error case.

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

10 years agoMFC r261068
jhibbits [Sat, 1 Mar 2014 21:50:23 +0000 (21:50 +0000)]
MFC r261068

Properly sort the arguments to mtx_init(9).

PR: misc/186020
Submitted by: alfred

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

10 years agoMFH r261319,261345,261742 mdoc changes to stable/10
uqs [Sat, 1 Mar 2014 14:44:55 +0000 (14:44 +0000)]
MFH r261319,261345,261742 mdoc changes to stable/10

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

10 years agoRevert r262648 to stop severe tinderbox spamming on stable@.
tijl [Sat, 1 Mar 2014 13:00:40 +0000 (13:00 +0000)]
Revert r262648 to stop severe tinderbox spamming on stable@.

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

10 years agoMFC r261302:
brooks [Sat, 1 Mar 2014 04:49:55 +0000 (04:49 +0000)]
MFC r261302:

The -B flag is intended to take an argument.

Fix a couple typos in comments.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r261301 (notional merge):
brooks [Sat, 1 Mar 2014 04:44:33 +0000 (04:44 +0000)]
MFC r261301 (notional merge):

Regenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW

Large churn in comments due to regeneration with makeman script.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r261299:
brooks [Sat, 1 Mar 2014 04:25:52 +0000 (04:25 +0000)]
MFC r261299:

Merge from CheriBSD:
commit 2d581e8caf79d7a0f5a24590eccd06da90cccb74
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:57:51 2014 +0000

Add WITHOUT_FMTREE to disable building fmtree.

Sponsored by: DARPA, AFRL

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

10 years agoMFC: r260889, r260890, r260911:
imp [Sat, 1 Mar 2014 04:16:54 +0000 (04:16 +0000)]
MFC: r260889, r260890, r260911:

r260911 | imp | 2014-01-20 10:45:36 -0700 (Mon, 20 Jan 2014) | 5 lines

Don't lock in the generic grab just to lock again in the specific grabs.

r260890 | imp | 2014-01-19 12:39:13 -0700 (Sun, 19 Jan 2014) | 11 lines

Introduce grab and ungrab upcalls. When the kernel desires to grab the
console, it calls the grab functions. These functions should turn off
the RX interrupts, and any others that interfere. This makes mountroot
prompt work again. If there's more generalized need other than
prompting, many of these routines should be expanded to do those new
things.

Reviewed by:    bde (with reservations)

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

10 years agoMFC: 261298
brooks [Sat, 1 Mar 2014 03:39:56 +0000 (03:39 +0000)]
MFC: 261298
Merge from CheriBSD:
commit 70b8f0c127db6b80411789d237b403cc64a93573
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:53:57 2014 +0000

Move mtree.5 to usr.sbin/nmtree.
Remove note that mtree 2.0 format files aren't supported.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r261300:
brooks [Sat, 1 Mar 2014 03:11:26 +0000 (03:11 +0000)]
MFC r261300:

Add a missing options file.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r261296:
brooks [Sat, 1 Mar 2014 03:09:16 +0000 (03:09 +0000)]
MFC r261296:

Merge from CheriBSD:
commit c1acf022c533c5ae27e0cd556977eafe3f5959eb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Fri Jan 17 21:46:44 2014 +0000

Add an option WITHOUT_NCURSESW to suppress building and linking to
libncursesw.  While wide character support it useful we'd like to
only need one ncurses library on embedded systems.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r262472:
dim [Fri, 28 Feb 2014 20:31:07 +0000 (20:31 +0000)]
MFC r262472:

Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed.

Reviewed by: marius

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

10 years agoMFC r262471:
dim [Fri, 28 Feb 2014 20:22:48 +0000 (20:22 +0000)]
MFC r262471:

In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
casting to the appropriate type.  (Note this fix cannot be done in
sys/sparc64/sparc64/spitfire.c, since that file is also included by
assembly source files.)

Reviewed by: marius

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

10 years agoMFC r262465:
kevlo [Fri, 28 Feb 2014 16:08:31 +0000 (16:08 +0000)]
MFC r262465:

Add a flag to run's device list which uses a standard scsi eject.
The flag indicates that the mcu doesn't need to load firmware.

Tested by: Alex Deiter <alex dot deiter at gmail.com>, myself
Tested on: ASUS USB-N66

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

10 years agoMFC: r262296
brueffer [Fri, 28 Feb 2014 00:43:27 +0000 (00:43 +0000)]
MFC: r262296

Match the correct variable to the variable description.

PR: 121173
Submitted by: Thomas Mueller <tmueller at sysgo.com>

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

10 years agoMFC: r261884
brueffer [Fri, 28 Feb 2014 00:39:35 +0000 (00:39 +0000)]
MFC: r261884

Correct the order of arguments to mtx_init().

PR: 186701
Submitted by: Takanori Sawada <tak.swd at gmail.com>

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

10 years agoMFC r257472
hiren [Thu, 27 Feb 2014 22:34:09 +0000 (22:34 +0000)]
MFC r257472

Rate limit (to once per minute) "Listen queue overflow" message in
sonewconn().

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

10 years agoMFH (r261511, r261542): add an example to the man page
des [Thu, 27 Feb 2014 17:31:59 +0000 (17:31 +0000)]
MFH (r261511, r261542): add an example to the man page

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

10 years agoMFH (r261320): upgrade openssh to 6.5p1
des [Thu, 27 Feb 2014 17:29:02 +0000 (17:29 +0000)]
MFH (r261320): upgrade openssh to 6.5p1
MFH (r261340): enable sandboxing by default

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

10 years agoMFC r262346:
pfg [Thu, 27 Feb 2014 16:05:52 +0000 (16:05 +0000)]
MFC r262346:
ext2fs: fully enable ext4 read-only support.

The ext4 developers tend to tag Ext4-specific flags as
"incompatible" even when such features are not relevant for
read-only support.  This is a consequence of the process
though which this filesystem is implemented without design
and the fact that some new features are not extensible to
ext2/3.

Organize the features according to what we support and sort
them so that we can now read-only mount filesystems with
some features that may be found in newly formatted ext4 fs.

Submitted by: Zheng Liu

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

10 years agoMFH (r260904): fix format string
des [Thu, 27 Feb 2014 13:27:04 +0000 (13:27 +0000)]
MFH (r260904): fix format string
MFH (r261230, r261263): fix buffering issues
MFH (r261284): bump copyright

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

10 years agoMFH (r261233): fix whitespace and bump copyright
des [Thu, 27 Feb 2014 13:25:26 +0000 (13:25 +0000)]
MFH (r261233): fix whitespace and bump copyright
MFH (r261234): increase buffer size

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

10 years agoMFH (r256875): start rtsold if necessary
des [Thu, 27 Feb 2014 13:19:17 +0000 (13:19 +0000)]
MFH (r256875): start rtsold if necessary
MFH (r256878): add a reload command

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

10 years agoMFH (r256768): don't report an error for no-op add / remove
des [Thu, 27 Feb 2014 13:08:43 +0000 (13:08 +0000)]
MFH (r256768): don't report an error for no-op add / remove

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

10 years agoMFC r262277:
davidxu [Thu, 27 Feb 2014 02:36:09 +0000 (02:36 +0000)]
MFC r262277:

malloc_aligned() may not leave enough space for pointer to allocated memory,
saving the pointer will overwrite bytes belongs to another memory block
unexpectly, to fix the problem, use (allocated address + sizeof(void *)) as
initial value, and slip to next aligned address, so maximum extra bytes is
sizeof(void *) + align - 1.

Tested by: Andre Albsmeier < mail at ma17 dot ata dot myota dot orgndre >

MFC r262334:

Increase alignment to size of pointer if the alignment is too small.
Some modules do not align data at least to size of pointer, they uses a
smaller alignment, but our pointer should be aligned to its native
boundary, otherwise on some platforms, hardware alignment checking
will cause bus error.

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

10 years agoMFC r262451:
eadler [Thu, 27 Feb 2014 01:01:02 +0000 (01:01 +0000)]
MFC r262451:

hier(7): Add /usr/lib/private

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

10 years agoMFC r261577:
yongari [Wed, 26 Feb 2014 06:25:36 +0000 (06:25 +0000)]
MFC r261577:
  Revert r234666.  Clearing TWSI IRQ seems to cause watchdog timeout
  on old Yukon II controllers.

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

10 years agoMFC: r261773
brueffer [Tue, 25 Feb 2014 07:55:03 +0000 (07:55 +0000)]
MFC: r261773

In acline_init(), initialize ac_line to SRC_UNKNOWN.  Previously
this could lead to the -n option effectively being ignored (in case
ac_line happened to be 0 aka SRC_AC), or other undefined behaviour.

PR: 169779
Submitted by: Alex Gonzalez <loox at e-shell.com>
Reviewed by: jhb

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

10 years agoMFC r262467: sh: Add -h option to SYNOPSIS
daichi [Tue, 25 Feb 2014 03:49:42 +0000 (03:49 +0000)]
MFC r262467: sh: Add -h option to SYNOPSIS

Reviewed by: jilles

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

10 years agoMFC r262310:
dim [Mon, 24 Feb 2014 21:22:44 +0000 (21:22 +0000)]
MFC r262310:

Move the part in bsd.own.mk that sets -Wno-c++11-extensions for clang to
bsd.sys.mk, where it really belongs.  This also causes the flag to get
added when clang is *not* the default system compiler, but is still
used, e.g. by setting WITH_CLANG_IS_CC manually.

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

10 years agoMFC r262309:
mjg [Mon, 24 Feb 2014 21:03:38 +0000 (21:03 +0000)]
MFC r262309:

Fix a race between kern_proc_{o,}filedesc_out and fdescfree leading
to use-after-free.

fdescfree proceeds to free file pointers once fd_refcnt reaches 0, but
kern_proc_{o,}filedesc_out only checked for hold count.

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

10 years agoMFC r262125:
dim [Mon, 24 Feb 2014 20:29:39 +0000 (20:29 +0000)]
MFC r262125:

In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
about uss820dci_odevd being unused, by adding it to the part that
handles getting descriptors.

Reported by: loos
Reviewed by: hselasky

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

10 years agoMFC r261774 by feld:
eadler [Mon, 24 Feb 2014 17:01:27 +0000 (17:01 +0000)]
MFC r261774 by feld:

Add caveat to zpool manpage indicating that we do not automatically activate
hot spares. This should be MFC'd to all STABLE branches.

Upon the availability of zfsd, the zpool manpage on relevant branches should
be updated to remove this caveat and document hot spare's reliance on zfsd.

Requested by: feld

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

10 years agoMFC r262142:
rodrigc [Mon, 24 Feb 2014 08:50:06 +0000 (08:50 +0000)]
MFC r262142:

   In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach().
   Before this patch, curvnet was NULL.
   When the VIMAGE kernel option is enabled, this eliminates
   kernel panics when USB ethernet devices are plugged in.

PR: 183835
Submitted by: Hiroo Oono <hiroo.ono at gmail dot com>

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

10 years agoMFC: r262136
brueffer [Mon, 24 Feb 2014 08:21:49 +0000 (08:21 +0000)]
MFC: r262136

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.

Reviewed by: imp

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

10 years agoMFC: r262135
brueffer [Mon, 24 Feb 2014 08:18:11 +0000 (08:18 +0000)]
MFC: r262135

Add $FreeBSD$.

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

10 years agoMFC: r261531
marius [Sun, 23 Feb 2014 21:08:41 +0000 (21:08 +0000)]
MFC: r261531

- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as iof version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8411B.
  This makes reception of packets work with the RTL8168G (HW rev. 0x4c000000)
  in my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

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

10 years agoMFC: r261529
marius [Sun, 23 Feb 2014 21:03:30 +0000 (21:03 +0000)]
MFC: r261529

Try to make the style used here consistent.

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

10 years agoMFC: r261549
brueffer [Sun, 23 Feb 2014 20:13:01 +0000 (20:13 +0000)]
MFC: r261549

Add a manpage for the urndis driver.

Obtained from: OpenBSD

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

10 years agoMFC r261934:
bdrewery [Sun, 23 Feb 2014 20:07:30 +0000 (20:07 +0000)]
MFC r261934:

  Rework rctl(8) manpage

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r261931,r261932:
bdrewery [Sun, 23 Feb 2014 20:04:29 +0000 (20:04 +0000)]
MFC r261931,r261932:

  Allow overriding rctl.conf(5) file location for /etc/rc.d/rctl

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r261872:
hselasky [Sun, 23 Feb 2014 13:36:21 +0000 (13:36 +0000)]
MFC r261872:
Fix minor logical error in the XHCI driver. Set correct SETUP packet
direction value.

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

10 years agoMFC r261827:
hselasky [Sun, 23 Feb 2014 13:33:21 +0000 (13:33 +0000)]
MFC r261827:
- Remove not needed definitions from driver.
- Get USB input report length from HID descriptor.
- Use 1 finger TAP for devices which has no integrated button.
- Move data buffer to softc instead of allocating it.

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

10 years agoMFC r261981:
hselasky [Sun, 23 Feb 2014 13:25:43 +0000 (13:25 +0000)]
MFC r261981:
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR: usb/186811

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

10 years agoMFC r261541, r261543 and r261544:
hselasky [Sun, 23 Feb 2014 13:22:04 +0000 (13:22 +0000)]
MFC r261541, r261543 and r261544:
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

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

10 years agoMFC r261795:
hselasky [Sun, 23 Feb 2014 13:11:33 +0000 (13:11 +0000)]
MFC r261795:
Issue doorbell twice before finally freeing the DMA descriptors. This
should fix DMA descriptor caching issues seen with the EHCI controller
found in Google Chromebook C720 during removal and insertion of USB
devices.

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

10 years agoMFC: r262243
brueffer [Sun, 23 Feb 2014 09:44:30 +0000 (09:44 +0000)]
MFC: r262243

Fix a cross-reference.

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

10 years agoMFC 259542:
jhb [Sun, 23 Feb 2014 01:34:40 +0000 (01:34 +0000)]
MFC 259542:
Use vmcs_read() and vmcs_write() in preference to vmread() and vmwrite()
respectively. The vmcs_xxx() functions provide inline error checking of
all accesses to the VMCS.

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

10 years agoMFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
jhb [Sun, 23 Feb 2014 00:46:05 +0000 (00:46 +0000)]
MFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
Several changes to the local APIC support in bhyve:
- Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()'.
- If a vcpu disables its local apic and then executes a 'HLT' then spin
  down the vcpu and destroy its thread context. Also modify the 'HLT'
  processing to ignore pending interrupts in the IRR if interrupts have
  been disabled by the guest.  The interrupt cannot be injected into the
  guest in any case so resuming it is futile.
- Use callout(9) to drive the vlapic timer instead of clocking it on each
  VM exit.
- When the guest is bringing up the APs in the x2APIC mode a write to the
  ICR register will now trigger a return to userspace with an exitcode of
  VM_EXITCODE_SPINUP_AP.
- Change the vlapic timer lock to be a spinlock because the vlapic can be
  accessed from within a critical section (vm run loop) when guest is using
  x2apic mode.
- Fix the vlapic version register.
- Add a command to bhyvectl to inject an NMI on a specific vcpu.
- Add an API to deliver message signalled interrupts to vcpus. This allows
  callers to treat the MSI 'addr' and 'data' fields as opaque and also lets
  bhyve implement multiple destination modes: physical, flat and clustered.
- Rename the ambiguously named 'vm_setup_msi()' and 'vm_setup_msix()' to
  'vm_setup_pptdev_msi()' and 'vm_setup_pptdev_msix()' respectively.
- Consolidate the virtual apic initialization in a single function:
  vlapic_reset()
- Add a generic routine to trigger an LVT interrupt that supports both
  fixed and NMI delivery modes.
- Add an ioctl and bhyvectl command to trigger local interrupts inside a
  guest.  In particular, a global NMI similar to that raised by SERR# or
  PERR# can be simulated by asserting LINT1 on all vCPUs.
- Extend the LVT table in the vCPU local APIC to support CMCI.
- Flesh out the local APIC error reporting a bit to cache errors and
  report them via ESR when ESR is written to.  Add support for asserting
  the error LVT when an error occurs.  Raise illegal vector errors when
  attempting to signal an invalid vector for an interrupt or when sending
  an IPI.
- Export table entries in the MADT and MP Table advertising the stock x86
  config of LINT0 set to ExtInt and LINT1 wired to NMI.

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

10 years agoMFC 257297:
jhb [Sat, 22 Feb 2014 23:34:39 +0000 (23:34 +0000)]
MFC 257297:
Remove unnecessary includes of <machine/pmap.h>

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

10 years agoRecord earlier merge of 257018.
jhb [Sat, 22 Feb 2014 20:12:10 +0000 (20:12 +0000)]
Record earlier merge of 257018.

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

10 years agoMFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
peter [Sat, 22 Feb 2014 18:55:49 +0000 (18:55 +0000)]
MFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
speedups and quality of life fixes.

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

10 years agoMFC r261620: MFV r261619:
delphij [Sat, 22 Feb 2014 00:57:55 +0000 (00:57 +0000)]
MFC r261620: MFV r261619:

4574 get_clones_stat does not call zap_count in non-debug kernel

zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always
reached.  This means get_clones_stat function never makes up list
of clones for "clones" properties.

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

10 years agoMFC r261618:
delphij [Sat, 22 Feb 2014 00:30:33 +0000 (00:30 +0000)]
MFC r261618:

In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by: Serge van den Boom <serge vdboom.org>
Reviewed by: pjd

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

10 years agoMFC r261538:
mav [Fri, 21 Feb 2014 18:32:45 +0000 (18:32 +0000)]
MFC r261538:
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

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

10 years agoMFC r261867:
attilio [Fri, 21 Feb 2014 09:43:34 +0000 (09:43 +0000)]
MFC r261867:
Use the right index to free swapspace after vm_page_rename().

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

10 years agoMFC: r261900
brueffer [Fri, 21 Feb 2014 09:25:52 +0000 (09:25 +0000)]
MFC: r261900

In chat_UpdateSet(), initialize the input buffer to prevent stale data
from previous timed out commands.

PR: 186530
Submitted by: Alexander Zagrebin <alexz at visp.ru>
Reviewed by: brian

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

10 years agoMFC: r261885
brueffer [Fri, 21 Feb 2014 09:19:16 +0000 (09:19 +0000)]
MFC: r261885

In sgetpwnam(), save and free pw_class like all other char members
of struct passwd.  This fixes spurious "login_getclass: unknown class"
errors.

PR: 186439
Submitted by: UEMURA Tetsuya <t_uemura at macome.co.jp>

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

10 years agoMFC r259330,r259331:
mjg [Thu, 20 Feb 2014 21:52:39 +0000 (21:52 +0000)]
MFC r259330,r259331:

rlimit: add and utilize lim_shared

rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.

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

10 years agoMFC r260233:
mjg [Thu, 20 Feb 2014 21:36:05 +0000 (21:36 +0000)]
MFC r260233:

Plug a memory leak in dup2 when both old and new fd have ioctl caps.

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

10 years agoMFC r261835:
ae [Thu, 20 Feb 2014 21:01:59 +0000 (21:01 +0000)]
MFC r261835:
  Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by: Yandex LLC

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

10 years agoMFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
peter [Thu, 20 Feb 2014 20:51:27 +0000 (20:51 +0000)]
MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
build with high -j concurrency.

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

10 years agoMFC r257129,257936,258084,258569,258602,262250,262251
peter [Thu, 20 Feb 2014 20:34:01 +0000 (20:34 +0000)]
MFC r257129,257936,258084,258569,258602,262250,262251
  svn-1.8.4, 1.8.5, 1.8.8 and self-contained private support libraries

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

10 years agoMFC: r261858
brueffer [Thu, 20 Feb 2014 08:55:59 +0000 (08:55 +0000)]
MFC: r261858

Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR: 146588
Submitted by: Erwin Rol <erwin at erwinrol.com>
Reviewed by: marcel

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

10 years agoMFC r257883:
eadler [Wed, 19 Feb 2014 19:38:25 +0000 (19:38 +0000)]
MFC r257883:

Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR: kern/182217

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

10 years agoMFC 261512,261514:
jhb [Wed, 19 Feb 2014 19:28:49 +0000 (19:28 +0000)]
MFC 261512,261514:
- Partially revert r52493 and change client side interval statistics to
  report the actual number of RPCs issued, not the theoretical number
  that would be issued if all caching was disabled.
- Use the DELTA() macro to tidy the server-side interval stats code a bit.

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

10 years agoMFC 261780:
jhb [Wed, 19 Feb 2014 19:11:14 +0000 (19:11 +0000)]
MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.

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

10 years agoMFC 261607:
jhb [Wed, 19 Feb 2014 18:36:53 +0000 (18:36 +0000)]
MFC 261607:
Mark the I/O ports used by the bhyve console and debug devices as system
resources.

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

10 years agoMFC 261524,261526,261527:
jhb [Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)]
MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.

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

10 years agoallow building without INET
luigi [Wed, 19 Feb 2014 08:15:09 +0000 (08:15 +0000)]
allow building without INET

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

10 years agoMFC r261977:
dim [Wed, 19 Feb 2014 08:05:42 +0000 (08:05 +0000)]
MFC r261977:

In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by: hselasky

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

10 years agoMFC r261916:
dim [Wed, 19 Feb 2014 07:59:50 +0000 (07:59 +0000)]
MFC r261916:

In sys/dev/xen/console/console.c, #if 0 an unused static function.

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

10 years agoMFC r261914:
dim [Wed, 19 Feb 2014 07:55:28 +0000 (07:55 +0000)]
MFC r261914:

In sys/fs/nandfs/nandfs_vfsops.c, #if 0 an unused static function.

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

10 years agoMFC r261915:
dim [Wed, 19 Feb 2014 07:51:58 +0000 (07:51 +0000)]
MFC r261915:

Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.

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

10 years agoMFC 261517,261520:
jhb [Tue, 18 Feb 2014 20:27:17 +0000 (20:27 +0000)]
MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.

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

10 years agoMFC 261518:
jhb [Tue, 18 Feb 2014 20:16:32 +0000 (20:16 +0000)]
MFC 261518:
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

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

10 years agoMFC r259052: Expose spa_asize_inflation
avg [Tue, 18 Feb 2014 15:39:59 +0000 (15:39 +0000)]
MFC r259052: Expose spa_asize_inflation

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

10 years agoMFC r260236:
mav [Tue, 18 Feb 2014 14:56:44 +0000 (14:56 +0000)]
MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.

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

10 years agomissing files from previous commit...
luigi [Tue, 18 Feb 2014 05:46:19 +0000 (05:46 +0000)]
missing files from previous commit...

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

10 years agoMFH: sync the netmap code with the one in HEAD
luigi [Tue, 18 Feb 2014 05:01:04 +0000 (05:01 +0000)]
MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.

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

10 years agoMFC r261895:
wblock [Tue, 18 Feb 2014 03:39:20 +0000 (03:39 +0000)]
MFC r261895:

Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>.  Add xref to
pam_passwdqc(8), where that testing is now done.

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

10 years agoMFC r261800:
wblock [Tue, 18 Feb 2014 03:33:51 +0000 (03:33 +0000)]
MFC r261800:

Remove obsolete vnode(9) man page references.

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

10 years agoMFC 259140:
jhb [Tue, 18 Feb 2014 01:15:32 +0000 (01:15 +0000)]
MFC 259140:
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.

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

10 years agoMFC r258036:
markj [Mon, 17 Feb 2014 22:40:05 +0000 (22:40 +0000)]
MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)

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

10 years agoMFC 260926:
jhb [Mon, 17 Feb 2014 22:19:49 +0000 (22:19 +0000)]
MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.

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

10 years agoMFC r261907:
dim [Mon, 17 Feb 2014 20:45:39 +0000 (20:45 +0000)]
MFC r261907:

In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.

Reviewed by: np

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

10 years agoMFC r261903:
dim [Mon, 17 Feb 2014 20:37:15 +0000 (20:37 +0000)]
MFC r261903:

Disable warning about unused static const variables for sys/pci/ncr.c.

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