194860 Commits

Author SHA1 Message Date
emaste
33dce93124 Disable amd64 TLB Context ID (pcid) by default for now
There are a number of reports of userspace application crashes that
are "solved" by setting vm.pmap.pcid_enabled=0, including Java and the
x11/mate-terminal port (PR ports/184362).

For now apply a band-aid of disabling pcid by default in stable/10.

Sponsored by:	The FreeBSD Foundation
2014-03-04 21:51:09 +00:00
glebius
ed41469327 Merge r261582, r261601, r261610, r261613, r261627, r261640, r261641, r261823,
r261825, r261859, r261875, r261883, r261911, r262027, r262028, r262029,
      r262030, r262162 from head.

  Large flowtable revamp. See commit messages for merged revisions for
  details.

Sponsored by:	Netflix
2014-03-04 15:14:47 +00:00
glebius
1b9278cc98 Merge r261796 from head:
While it isn't too late and kvm_read_zpcpu() function isn't yet used
  outside libkvm(3), change its order of arguments, so that it is the
  same as in kvm_read().
Merge r261805 from head:
  Add kvm_getncpus() to obtain mp_ncpus.
2014-03-04 14:49:05 +00:00
glebius
8a9528c4d0 Merge r261722, r261723, r261724, r261725 from head:
several minor improvements for UMA_ZPCPU_ZONE zones.
2014-03-04 14:46:30 +00:00
glebius
d06eb27738 Merge 261595: simplify the SYSCTL_COUNTER_U64() macro. 2014-03-04 14:23:58 +00:00
glebius
322a3c94d3 Merge 261593 from head:
Provide macros that allow easily export uma(9) zone limits and
  current usage via sysctl(9).
2014-03-04 14:21:07 +00:00
glebius
352d508b16 Merge r261590: Fixup for r261590 (vnet sysctl handlers cleanup) 2014-03-04 14:05:37 +00:00
glebius
4b9e17c3ef Merge r261590, r261592 from head:
Remove identical vnet sysctl handlers, and handle CTLFLAG_VNET
  in the sysctl_root().

  Note: SYSCTL_VNET_* macros can be removed as well. All is
    needed to virtualize a sysctl oid is set CTLFLAG_VNET on it.
    But for now keep macros in place to avoid large code churn.
2014-03-04 14:01:12 +00:00
tijl
64a908c935 MFC r262441-262442,262447,262461-262464,262655:
- Consistently pass around context information using a simple pointer.
  This fixes some dereferencing bugs in Chinese character set conversions.
- Fix Simplified Chinese character set conversions by switching around the
  fields of an internal struct so it corresponds with the way variables of
  this type are initialised.
- Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.
- Silence gcc warning about unsigned comparison with 0.

Also record r258316 and r258587 as merged so they no longer show up as
eligible.

PR:		185964
Submitted by:	Manuel Mausz <manuel-freebsd@mausz.at>
2014-03-04 11:43:01 +00:00
pfg
4dd6e22c18 MFC r262623, r262667:
ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.
2014-03-04 03:10:31 +00:00
delphij
0ac98a52fd (not quite, due to date difference) MFC r262719:
Document the fact that OpenSSH default configuration requires Capsicum
capability mode support in kernel, which have been worked around later
but it's still recommended to have it enabled.

Reported by:	many
2014-03-03 23:30:54 +00:00
delphij
9f46cb935f MFC r261499 (pjd):
Fix installations that use kernels without CAPABILITIES support.
2014-03-03 23:19:28 +00:00
brooks
6eebe77865 MFR r261294:
Remove an unneeded space in the BERI merge.

Sponsored by:	DARPA, AFRL
2014-03-03 20:28:27 +00:00
dteske
ccce67094a 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
2014-03-03 07:31:55 +00:00
dteske
ccfaf68adb MFC r258269: Refactor draw-beastie function.
Discussed on:	-hackers
2014-03-03 07:28:56 +00:00
dteske
514ba4551b 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
2014-03-03 07:24:50 +00:00
dteske
c617921803 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
2014-03-03 07:16:39 +00:00
imp
1719e3beff 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>.
2014-03-02 23:09:36 +00:00
bdrewery
ee7a8407e1 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)
2014-03-02 16:25:56 +00:00
bdrewery
1e9cbfb2bd MFC r262005:
Remove redundant memcpy of fd_ofiles in fdgrowtable()

Approved by:	bapt (mentor, implicit)
2014-03-02 16:04:27 +00:00
jhibbits
a95a014852 MFC r261258
Use a loop of dcbz, instead of calling bzero() to zero a page.  This matches
what is done in mmu_oea64.c.
2014-03-02 15:53:39 +00:00
brueffer
ba86c49243 MFC: r262574
Add tws(4) to the hardware notes.
2014-03-02 12:11:55 +00:00
jhibbits
dcd407ef90 MFC r261309
Unbreak non-SMP builds.  This was broken by r259284.  Also, reorganize the
code introduced in that revision a bit.
2014-03-02 02:35:46 +00:00
jmmv
5988d7c4c9 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
2014-03-02 01:46:44 +00:00
jhibbits
87b51d82d9 MFC r261173
MPC74xx should not fall through, to the error case.
2014-03-02 00:30:42 +00:00
jhibbits
7a93324928 MFC r261068
Properly sort the arguments to mtx_init(9).

PR:		misc/186020
Submitted by:	alfred
2014-03-01 21:50:23 +00:00
uqs
31ed6dadf0 MFH r261319,261345,261742 mdoc changes to stable/10 2014-03-01 14:44:55 +00:00
tijl
bcdab2824d Revert r262648 to stop severe tinderbox spamming on stable@. 2014-03-01 13:00:40 +00:00
brooks
404898ccc4 MFC r261302:
The -B flag is intended to take an argument.

	Fix a couple typos in comments.

Sponsored by:	DARPA, AFRL
2014-03-01 04:49:55 +00:00
brooks
07e47bf403 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
2014-03-01 04:44:33 +00:00
brooks
ac9b0c8c58 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
2014-03-01 04:25:52 +00:00
imp
33b9ca9ab1 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)
2014-03-01 04:16:54 +00:00
brooks
1135c91d00 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
2014-03-01 03:39:56 +00:00
brooks
d929cfecd8 MFC r261300:
Add a missing options file.

Sponsored by:	DARPA, AFRL
2014-03-01 03:11:26 +00:00
brooks
12b5ca7c28 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
2014-03-01 03:09:16 +00:00
dim
f7aef0811a MFC r262472:
Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed.

Reviewed by:	marius
2014-02-28 20:31:07 +00:00
dim
4e1ef40864 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
2014-02-28 20:22:48 +00:00
kevlo
eef07bdd95 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
2014-02-28 16:08:31 +00:00
brueffer
691ab829cc MFC: r262296
Match the correct variable to the variable description.

PR:		121173
Submitted by:	Thomas Mueller <tmueller at sysgo.com>
2014-02-28 00:43:27 +00:00
brueffer
34d70af0d1 MFC: r261884
Correct the order of arguments to mtx_init().

PR:		186701
Submitted by:	Takanori Sawada <tak.swd at gmail.com>
2014-02-28 00:39:35 +00:00
hiren
8c7b818635 MFC r257472
Rate limit (to once per minute) "Listen queue overflow" message in
sonewconn().
2014-02-27 22:34:09 +00:00
des
9dee28c898 MFH (r261511, r261542): add an example to the man page 2014-02-27 17:31:59 +00:00
des
255d8413da MFH (r261320): upgrade openssh to 6.5p1
MFH (r261340): enable sandboxing by default
2014-02-27 17:29:02 +00:00
pfg
ea1005cca4 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
2014-02-27 16:05:52 +00:00
des
f03d4b82a2 MFH (r260904): fix format string
MFH (r261230, r261263): fix buffering issues
MFH (r261284): bump copyright
2014-02-27 13:27:04 +00:00
des
c252d6c495 MFH (r261233): fix whitespace and bump copyright
MFH (r261234): increase buffer size
2014-02-27 13:25:26 +00:00
des
7c18ea990f MFH (r256875): start rtsold if necessary
MFH (r256878): add a reload command
2014-02-27 13:19:17 +00:00
des
0af7d6ff77 MFH (r256768): don't report an error for no-op add / remove 2014-02-27 13:08:43 +00:00
davidxu
3c6681dc2c 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.
2014-02-27 02:36:09 +00:00
eadler
7f44971ec5 MFC r262451:
hier(7): Add /usr/lib/private
2014-02-27 01:01:02 +00:00