]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC refactoring of the *.test.mk files.
jmmv [Mon, 14 Apr 2014 23:51:57 +0000 (23:51 +0000)]
MFC refactoring of the *.test.mk files.

- r263161 Make bsd.test.mk the only public mk fragment for the building of tests.
- r263172 Move FreeBSD Test Suite-specific code to a suite.test.mk file.
- r263204 Add some documentation for bsd.test.mk.
- r263217 Document support for TAP-compliant Perl test programs.

This is "make tinderbox" clean.

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

10 years agoMFC r263777: sh: Fix possible memory leaks and double frees with unexpected
jilles [Mon, 14 Apr 2014 21:26:34 +0000 (21:26 +0000)]
MFC r263777: sh: Fix possible memory leaks and double frees with unexpected
SIGINT.

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

10 years agoMFC: r264362
brueffer [Mon, 14 Apr 2014 21:12:38 +0000 (21:12 +0000)]
MFC: r264362

Remove stray .Nm macro.

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

10 years agoMFC: r264349
brueffer [Mon, 14 Apr 2014 21:07:36 +0000 (21:07 +0000)]
MFC: r264349

mdoc and spelling cleanup.

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

10 years agoMFC r260866,260900,261960 (3 revisions; summarized below):
dteske [Mon, 14 Apr 2014 21:04:58 +0000 (21:04 +0000)]
MFC r260866,260900,261960 (3 revisions; summarized below):
260866: Fix a bad comparison operator and fix dumpdev comment
260900: Dummy commit; show r260866 was in-part by Christoph Mallon
261960: Add zfsboot to bsdinstall(8) scripted interface

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

10 years agoMFC r264345:
dim [Mon, 14 Apr 2014 17:54:01 +0000 (17:54 +0000)]
MFC r264345:

Amend r263891, by making clang default to DWARF2 debug info format for
all FreeBSD versions, not just 10.x and earlier.  Apparently too many
people seem to have trouble with post-1993 formats.

Also remove the related notes about messing with kernel configuration
files from UPDATING, which are now superfluous.

Requested by: many

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

10 years agoMFC various fixes to the tools/regression/ tests.
jmmv [Mon, 14 Apr 2014 13:30:08 +0000 (13:30 +0000)]
MFC various fixes to the tools/regression/ tests.

- r262953 Fix m4 tests so that they run cleanly with prove.
- r262954 Fix printf tests so that they run cleanly with prove.
- r262959 Fix sed tests so that they run cleanly with prove.
- r262960 Fix yacc tests so that they run cleanly with prove.
- r262961 Fix pkill tests so that they run cleanly with prove.
- r262962 Fix ncal tests so that they run cleanly with prove.
- r263081 Fix lastcomm tests under amd64.
- r263082 Only run the make tests when make is fmake.
- r263083 Fix sa tests.
- r263084 Turn a test precondition into a skip in the mdconfig tests.
- r263085 Make the strerror tests work without libtap.
- r263087 Remove broken tests for eui64_line.
- r263221 Change etcupdate tests to return 1 on test failures.
- r263352 Make the priv test program exit with non-zero if any failures are detected.
- r263353 errx prepends the program name to the message; don't do it by hand.
- r263362 Include strings.h so that bpf_filter.c can be built in userland.

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

10 years agoMFC 264242,264244,264259
ray [Mon, 14 Apr 2014 12:40:37 +0000 (12:40 +0000)]
MFC 264242,264244,264259

Fix panic on load new driver while vt(4) is in VGA textmode.
o Mute terminal while vt(4) driver change in progress.
o Reset VDF_TEXTMODE before init new driver.
o Assign default font, if new driver is not in TEXTMODE.
o Do not update screen while driver changing.
o Unmute terminal when done with driver replacement.
o Move init fonts to early point.
o Minor cleanup.
o Do not fill screen, while muted. (kern/subr_terminal.c)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r264220:
mm [Mon, 14 Apr 2014 09:36:15 +0000 (09:36 +0000)]
MFC r264220:
Execute pf_overload_task() in vnet context. Fixes a vnet kernel panic.

Reviewed by: trociny

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

10 years agoMFC r264448: Fix typo in debug/log statement.
dteske [Mon, 14 Apr 2014 05:37:21 +0000 (05:37 +0000)]
MFC r264448: Fix typo in debug/log statement.

Submitted by: Rick Miller <vmiller@hostileadmin.com>

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

10 years agoMFC r260429:
yongari [Mon, 14 Apr 2014 05:04:23 +0000 (05:04 +0000)]
MFC r260429:
  m_defrag(9) does not touch original mbuf chain when it can't
  allocate new mbuf.  Free original mbuf chain when driver is not
  able to send the packet.

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

10 years agoMFC r259543:
yongari [Mon, 14 Apr 2014 04:58:50 +0000 (04:58 +0000)]
MFC r259543:
  Failed m_devget(9) indicates lack of free mbuf cluster.  Update
  if_iqdrops counter for that case since the received frame is ok.
  While here, simplify updating counter logic.

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

10 years agoMFC r263957:
yongari [Mon, 14 Apr 2014 04:51:59 +0000 (04:51 +0000)]
MFC r263957:
  Increase the number of TX DMA segments from 32 to 35.  It turned
  out 32 is not enough to support a full sized TSO packet.
  While I'm here fix a long standing bug introduced in r169632 in
  bce(4) where it didn't include L2 header length of TSO packet in
  the maximum DMA segment size calculation.

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

10 years agoMFC r264343:
gjb [Mon, 14 Apr 2014 03:57:45 +0000 (03:57 +0000)]
MFC r264343:
  Add SRC_UPDATE_SKIP, DOC_UPDATE_SKIP, and PORTS_UPDATE_SKIP
  variables.  These are intended to allow bypassing the
  'svn co /usr/{src,doc,ports}' step in the chroot when the
  tree exists from external means.

  The use case here is that /usr/src, /usr/doc, and /usr/ports
  in the chroot exist as result of zfs dataset clones, so it
  is possible (and happens quite often) that the included
  distributions may not be consistent.  (This is not the case
  for -RELEASE builds, but does happen for snapshot builds.)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r264243:
dteske [Mon, 14 Apr 2014 01:44:56 +0000 (01:44 +0000)]
MFC r264243:

Loosen the processing of *_IF_aliasN vars to be less strict. Previously,
the first alias had to be _alias0 and processing stopped at the first non-
defined variable (preventing gaps). Allowing gaps gives the administrator
the ability to group aliases in an adhoc manner and also lifts the
requirement to renumber aliases simply to comment-out an existing one.
Aliases are processed in numerical ascending order.

NB: Also Patches mdconfig{,2} rc(8) boot scripts to loosen the numbering
scheme for mdconfig_mdN settings to be less strict in the same manner.

Discussed on: -rc

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

10 years agoDocument r260431, kern.panic_reboot_wait_time sysctl.
gjb [Sun, 13 Apr 2014 22:41:30 +0000 (22:41 +0000)]
Document r260431, kern.panic_reboot_wait_time sysctl.

Sponsored by: The FreeBSD Foundation

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

10 years agoFix order by svn revision.
gjb [Sun, 13 Apr 2014 22:41:28 +0000 (22:41 +0000)]
Fix order by svn revision.

Sponsored by: The FreeBSD Foundation

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

10 years agoDocument r260385, unmapped I/O in GEOM RAID.
gjb [Sun, 13 Apr 2014 22:41:26 +0000 (22:41 +0000)]
Document r260385, unmapped I/O in GEOM RAID.

Sponsored by: The FreeBSD Foundation

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

10 years agoDocument r260338
gjb [Sun, 13 Apr 2014 22:41:24 +0000 (22:41 +0000)]
Document r260338

Sponsored by: The FreeBSD Foundation

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

10 years agoDocument r260177, camcontrol '-b' addition.
gjb [Sun, 13 Apr 2014 22:41:22 +0000 (22:41 +0000)]
Document r260177, camcontrol '-b' addition.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263925
rpaulo [Sat, 12 Apr 2014 23:48:02 +0000 (23:48 +0000)]
MFC r263925
 Enable all cryptocaps because net80211 can do software encryption.

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

10 years agoMove OpenSSH entry to 'contrib' where it belongs.
gjb [Sat, 12 Apr 2014 20:51:38 +0000 (20:51 +0000)]
Move OpenSSH entry to 'contrib' where it belongs.

Sponsored by: The FreeBSD Foundation

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

10 years agoRemove reference to FreeBSD 6.2-R in the freebsd-update(8) note.
gjb [Sat, 12 Apr 2014 20:50:31 +0000 (20:50 +0000)]
Remove reference to FreeBSD 6.2-R in the freebsd-update(8) note.
Rewrap.

Sponsored by: The FreeBSD Foundation

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

10 years agoClean up leading/trailing whitespace.
gjb [Sat, 12 Apr 2014 20:49:07 +0000 (20:49 +0000)]
Clean up leading/trailing whitespace.
Rewrap paragraphs and long lines.

Sponsored by: The FreeBSD Foundation

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

10 years agoTrim stale entries.
gjb [Sat, 12 Apr 2014 20:42:03 +0000 (20:42 +0000)]
Trim stale entries.
Use consistent <para>&nbsp;</para> for empty sections.

Sponsored by: The FreeBSD Foundation

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

10 years agoDocument r264377, OpenSSH update to 6.6p1.
gjb [Sat, 12 Apr 2014 20:32:46 +0000 (20:32 +0000)]
Document r264377, OpenSSH update to 6.6p1.
While here, bump copyright year.

Todo: strip old entries from this file since 10.0-RELEASE.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFH (r263712): upgrade openssh to 6.6p1
des [Sat, 12 Apr 2014 20:22:59 +0000 (20:22 +0000)]
MFH (r263712): upgrade openssh to 6.6p1
MFH (r264308): restore p level in debugging output

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

10 years agoMFC r260607, r260610, r260934:
andreast [Sat, 12 Apr 2014 19:57:15 +0000 (19:57 +0000)]
MFC r260607, r260610, r260934:

r260607:
The onyx codec works also as module, so add it.

r260610:
Described in the man page but not implemented. Here it comes,
atomic_swap_32/64. The latter only for powerpc64.

r260934:
Fix the resource information for the i2s-a node on certain G5 PowerMacs.
This is the first step needed to get the snapper codec working on those
machines.
The second step is to enable the corresponding I2S device and its clock.

Tested on machines where the snapper codec was already working, a G4 PowerBook
and a PowerMac9,1 with a Shasta based macio.
The PowerMac7,2/7,3 with a K2 based macio can now also play sound.

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

10 years agoMFC: r263948
bapt [Sat, 12 Apr 2014 15:13:43 +0000 (15:13 +0000)]
MFC: r263948

Convert an unused banner from skeleton.c into a comment.
It is added to every generated files and fix build at certain warning level with clang 3.4

Submitted by: Thomas Dickey <dickey@his.com> (byacc upstream)
Spotted by: glebius

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

10 years agoMFC: r263881, r263952, r263983, r264068, r264090, r264131
bapt [Sat, 12 Apr 2014 15:06:15 +0000 (15:06 +0000)]
MFC: r263881, r263952, r263983, r264068, r264090, r264131

Some xdev fixes:

- if TARGET_ARCH is not defined and XDEV_ARCH is defined then early define
  TARGET_ARCH to the valud of XDEV_ARCH: This allow the xdev-build target
  to be able to correctly chose the compiler it needs to build
- Allow overwriting XDTP to allow a user to not chose where the xdev env will
  live in
- Fix build for gcc only xdev (like ia64) by providing the proper -B to the
  toolchain and not relying on gcc being installed already in base
- Fix TOOLS_PREFIX so the generated toolchain has the right default sysroot when
  installed intead of getting the DESTDIR one
- Fix supporting DESTDIR
- Also overwrite CXX (needed for cross building c++ libraries with clang) and
  CPP (needed to cross build some libraries when gcc is the target default
  compiler but gcc is not installed on the building host)
- Prevent XDTP from being a relative path:
  XDTP is used as the default SYSROOT for clang and thus should be an absolute path.
- Respect default CC

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

10 years agoMFC r264173:
kib [Sat, 12 Apr 2014 14:18:25 +0000 (14:18 +0000)]
MFC r264173:
Use realloc(9) instead of doing the reallocation inline.

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

10 years agoMFC r264146:
kib [Sat, 12 Apr 2014 14:08:53 +0000 (14:08 +0000)]
MFC r264146:
Fix a race between kqueue_register() and kqueue_scan() setting KN_INFLUX
flag while knlist is not locked, which caused lost notifications from
parallel knote().

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

10 years agoMFC r264151:
dchagin [Sat, 12 Apr 2014 06:50:11 +0000 (06:50 +0000)]
MFC r264151:

Prevent alq from panic when the invalid alq_file path specified.

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

10 years agoMFC r264294:
hselasky [Fri, 11 Apr 2014 06:13:56 +0000 (06:13 +0000)]
MFC r264294:
Fix for infinite XHCI reset loops when the set address USB request fails.

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

10 years agoMFC r263889 (MFV r263887):
delphij [Fri, 11 Apr 2014 01:27:33 +0000 (01:27 +0000)]
MFC r263889 (MFV r263887):

3993 zpool(1M) and zfs(1M) should support -p for "list" and "get"
4700 "zpool get" doesn't support -H or -o options

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

10 years agoMFC r263459: MFV 263436-263438:
delphij [Fri, 11 Apr 2014 01:23:46 +0000 (01:23 +0000)]
MFC r263459: MFV 263436-263438:

3947 zpool(1M) references nonexistent zfs-features(5)
4540 zpool(1M) man page doesn't describe "readonly" property
3948 zfs sync=default is not accepted
4611 zfs(1M) still mentions 'send -r' in synopsis
4415 zpool(1M) man page missing "import -m" description
4570 Document dedupditto pool property
4572 Dedup-related documentation additions for zpool and zdb.
1371 Add -D option description to zpool(1M) manpage
4571 Add documentation for -T and interval to "zpool list"

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

10 years agoMFC r263879:
bdrewery [Fri, 11 Apr 2014 01:00:51 +0000 (01:00 +0000)]
MFC r263879:

  Add `-S' to display syscall numbers in the output as well.

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

10 years agoMFC: r261037, r264278
jkim [Thu, 10 Apr 2014 22:39:22 +0000 (22:39 +0000)]
MFC: r261037, r264278

Merge OpenSSL 1.0.1f and 1.0.1g.

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

10 years agoMerge r264084: make the Dresden Elektronik "USB Level Shifter Low Cost"
joerg [Thu, 10 Apr 2014 21:53:50 +0000 (21:53 +0000)]
Merge r264084: make the Dresden Elektronik "USB Level Shifter Low Cost"
known to the FTDI driver.

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

10 years agoMFC r263429
asomers [Thu, 10 Apr 2014 19:51:33 +0000 (19:51 +0000)]
MFC r263429

Fix kern/187712: config(8) does not respect KERNCONFDIR.
The impact of this bug is that you cannot build a kernel if both of the
following are true:
1) The kernel config file is in a non-default location
2) The kernel config file uses the "include" statement from config(5).

usr.sbin/config/main.c
usr.sbin/config/config.8
usr.sbin/config/config.h
usr.sbin/config/lang.l
Added a "-I path" option to config(8).  By analogy to cc(1), it adds
an extra path in which the "include" statement will search for
files.

Makefile.inc1
        Pass "-I ${KERNCONFDIR}" to config(8).

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

10 years agoMFC r264238:
dim [Thu, 10 Apr 2014 07:00:24 +0000 (07:00 +0000)]
MFC r264238:

For GNU as, add two missing modes for each of the fcomip and fucomip
instructions.  Partially obtained from OpenBSD by Pedro Giffuni, while I
added the fcomip variants.

Apparently this should help with compiling certain variants of WebKit.

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

10 years agoMFC r263778:
dim [Wed, 9 Apr 2014 18:16:58 +0000 (18:16 +0000)]
MFC r263778:

Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process
all the SUBDIR entries in parallel, instead of serially.  Apply this
option to a selected number of Makefiles, which can greatly speed up the
build on multi-core machines, when using make -j.

This can be extended to more Makefiles later on, whenever they are
verified to work correctly with parallel building.

I tested this on a 24-core machine, with make -j48 buildworld (N = 6):

before    stddev       after    stddev
=======   ======       =======  ======
real time        1741.1     16.5         959.8     2.7
user time       12468.7     16.4       14393.0    16.8
sys  time        1825.0     54.8        2110.6    22.8

(user+sys)/real     8.2                   17.1

E.g. the build was approximately 45% faster in real time.  On machines
with less cores, or with lower -j settings, the speedup will not be as
impressive.  But at least you can now almost max out a machine with
buildworld!

Submitted by: jilles

MFC r263833:

Enable parallel building for gnu/usr.bin and usr.bin/clang too.

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

10 years agoMFC r264039:
ae [Wed, 9 Apr 2014 13:35:39 +0000 (13:35 +0000)]
MFC r264039:
  Document more parition types.

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

10 years agoMerge r263203: garbage collect long time obsoleted (or never used) stuff
glebius [Wed, 9 Apr 2014 11:15:50 +0000 (11:15 +0000)]
Merge r263203: garbage collect long time obsoleted (or never used) stuff
from routing API.

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

10 years agoRemove useless embedding of kernel struct rtentry into userland one.
glebius [Wed, 9 Apr 2014 11:10:44 +0000 (11:10 +0000)]
Remove useless embedding of kernel struct rtentry into userland one.
This is direct commit to stable/10.

Sponsored by: Nginx, Inc.

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

10 years agoBump osreldate for tracking SA-14:06
peter [Wed, 9 Apr 2014 01:26:58 +0000 (01:26 +0000)]
Bump osreldate for tracking SA-14:06

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

10 years agoDocument SA-14:05.nfsserver, SA-14:06.openssl.
gjb [Wed, 9 Apr 2014 00:40:15 +0000 (00:40 +0000)]
Document SA-14:05.nfsserver, SA-14:06.openssl.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC 259635:
jhb [Tue, 8 Apr 2014 20:40:54 +0000 (20:40 +0000)]
MFC 259635:
Add an option to ignore accesses by the guest to unimplemented MSRs.

Also, ignore a couple of SandyBridge uncore PMC MSRs that Centos 6.4 writes
to during boot.

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

10 years agoFix NFS deadlock vulnerability. [SA-14:05]
delphij [Tue, 8 Apr 2014 18:27:39 +0000 (18:27 +0000)]
Fix NFS deadlock vulnerability. [SA-14:05]

Fix "Heartbleed" vulnerability and ECDSA Cache Side-channel
Attack in OpenSSL. [SA-14:06]

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

10 years agoMFC r264027, r264028, r264029, r264030, r264046, r264073:
gjb [Tue, 8 Apr 2014 00:53:31 +0000 (00:53 +0000)]
MFC r264027, r264028, r264029, r264030, r264046, r264073:

r264027:
  Add a new release build variable, WITH_COMPRESSED_IMAGES.

  When set to a non-empty value, the installation medium is
  compressed as part of the 'install' target in the release/
  directory.

r264028:
  Clean up trailing whitespace in release/Makefile.

r264029:
  Fix logic error.

r264030:
  If WITH_COMPRESSED_IMAGES is set, add the compressed images
  to the CLEANFILES list.

r264046:
  Use xz(1) instead of gzip(1) to compress release images
  when WITH_COMPRESSED_IMAGES is used.

r264073:
  Allow overriding xz(1) path.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263969,263971:
ae [Mon, 7 Apr 2014 12:58:54 +0000 (12:58 +0000)]
MFC r263969,263971:
  Don't generate an ICMPv6 error message if packet was consumed by filter.
  Remove unused label.

Sponsored by: Yandex LLC

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

10 years agoMFC r263966:
ae [Mon, 7 Apr 2014 12:50:08 +0000 (12:50 +0000)]
MFC r263966:
  Don't copy the MF flag from original IP header to ICMP error message.

PR: 188092
Sponsored by: Yandex LLC

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

10 years agoMFC r264121;
pfg [Mon, 7 Apr 2014 01:55:54 +0000 (01:55 +0000)]
MFC r264121;
gcc: define __block when block support is enabled

This mimics the behaviour in clang and lets us build cleanly
the libdispatch port on platforms where the base gcc is still
the default compiler.

Bump __FreeBSD_version for ports.

Tested by: theraven

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

10 years agoMFC r263973;
pfg [Mon, 7 Apr 2014 01:49:30 +0000 (01:49 +0000)]
MFC r263973;

ddb: Minor style cleanups.

#define should be followed by tab.

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

10 years agologin: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.
jilles [Sun, 6 Apr 2014 10:56:27 +0000 (10:56 +0000)]
login: Clean up PAM and audit, then exit, on SIGHUP and SIGTERM.

This avoids leaving stale entries in utmpx after the connection is closed on
an open login session. It also allows a clean way (SIGTERM) to forcibly
terminate a user's terminal session.

This does not affect the situation for "hung" processes after the connection
is closed. The foreground process group receives SIGHUP and the tty becomes
inaccessible.

Also replace all use of the obsolete signal() function with sigaction() (not
only the part where it is actually required: SIGHUP and SIGTERM must mask
the other as well when caught).

PR: misc/183495

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

10 years agoMFC r262872: fts: Don't abort if an empty pathname is given.
jilles [Sat, 5 Apr 2014 20:26:17 +0000 (20:26 +0000)]
MFC r262872: fts: Don't abort if an empty pathname is given.

Make fts_open(3) treat an empty pathname like any other pathname that cannot
be lstatted because of [ENOENT].

It is rather confusing if  rm -rf file1 "" file2  does not remove file1 and
file2.

PR: bin/187264

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

10 years agoMFC r258794: chmod(2): Document S_ISVTX following SUSv3/SUSv4.
jilles [Sat, 5 Apr 2014 20:11:40 +0000 (20:11 +0000)]
MFC r258794: chmod(2): Document S_ISVTX following SUSv3/SUSv4.

S_ISTXT is non-standard.

While here, also update fchmodat() standards entry to POSIX.1-2008.

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

10 years agowaitid(2): Do not tell userland programmers to include <sys/signal.h>.
jilles [Sat, 5 Apr 2014 20:09:51 +0000 (20:09 +0000)]
waitid(2): Do not tell userland programmers to include <sys/signal.h>.

Userland should get these definitions by including <signal.h>.

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

10 years agoMFC r263244: find: When performing -quit, finish pending -exec ... + command
jilles [Sat, 5 Apr 2014 20:05:50 +0000 (20:05 +0000)]
MFC r263244: find: When performing -quit, finish pending -exec ... + command
lines.

This avoids unexpected partial processing when a find command uses both
-quit and -exec ... +.

GNU find does the same.

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

10 years agoMFC r263195: sh: Add some consts.
jilles [Sat, 5 Apr 2014 20:01:08 +0000 (20:01 +0000)]
MFC r263195: sh: Add some consts.

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

10 years agoMFC r262755: sh: Make argstr() return where it stopped and simplify expari()
jilles [Sat, 5 Apr 2014 19:43:47 +0000 (19:43 +0000)]
MFC r262755: sh: Make argstr() return where it stopped and simplify expari()
using this.

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

10 years agoMFC r263912:
kib [Sat, 5 Apr 2014 14:24:29 +0000 (14:24 +0000)]
MFC r263912:
Clear the kernel grab of the FPU state on fork.

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

10 years agoDocument a potential panic or hang when using sas2flash to
gjb [Fri, 4 Apr 2014 21:35:17 +0000 (21:35 +0000)]
Document a potential panic or hang when using sas2flash to
update firmware on mps(4) LSI controllers.

Submitted by: smh
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263878:
kib [Fri, 4 Apr 2014 19:17:33 +0000 (19:17 +0000)]
MFC r263878:
Several fixes for the PCID implementation.

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

10 years agoMFC r263001
royger [Fri, 4 Apr 2014 14:54:54 +0000 (14:54 +0000)]
MFC r263001

Move asm IPIs handlers to C code, so both Xen and native IPI handlers
share the same code.

Approved by: gibbs
Sponsored by: Citrix Systems R&D

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

10 years agoMFC r261521 by antoine: Add files to remove WITHOUT_NIS
emaste [Fri, 4 Apr 2014 14:18:37 +0000 (14:18 +0000)]
MFC r261521 by antoine: Add files to remove WITHOUT_NIS

PR: misc/186412
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263885
ray [Fri, 4 Apr 2014 11:17:49 +0000 (11:17 +0000)]
MFC r263885

o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr.
o Implement new vd_bitbltchr method for vga driver. (It do single write for 8
pixels, have to be a bit faster).

Sponsored by: The FreeBSD Foundation

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

10 years agoMerge r262341:
glebius [Fri, 4 Apr 2014 10:33:59 +0000 (10:33 +0000)]
Merge r262341:
  - Improve logging of send errors, reporting error code and interface.
  - Reduce code duplication between INET and INET6.

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

10 years agoMFC r264107:
gjb [Fri, 4 Apr 2014 07:43:11 +0000 (07:43 +0000)]
MFC r264107:
  Remove only-works-on-amd64 restriction.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r262810, r262862, r264105:
gjb [Fri, 4 Apr 2014 07:34:46 +0000 (07:34 +0000)]
MFC r262810, r262862, r264105:
r262810:
  Merge enabling building FreeBSD/arm images as part of the
  release build process.

r262862:
  Provide backwards-compatibility with release.conf SVNROOT
  entries that do not have a trailing '/'.

r264105:
  Add ZEDBOARD support for release builds.

* Local modifications:
  - Set SRCBRANCH from head/ to stable/10/.
  - Strip svn:merginfo from ^/projects/release-embedded to avoid
    pollution.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263428
asomers [Thu, 3 Apr 2014 17:26:45 +0000 (17:26 +0000)]
MFC r263428

share/man/man7/tests.7
Added a section on test suite configuration, and cleaned up up grammar
errors and awkward prose.  The config variables were discussed on
freebsd-testing.

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

10 years agoMFC r263116
asomers [Thu, 3 Apr 2014 16:57:16 +0000 (16:57 +0000)]
MFC r263116

Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner
mechanism, based on the new SB_STOP sockbuf flag.  The old hack dynamically
changed the sending sockbuf's high water mark whenever adding or removing
data from the receiving sockbuf.  It worked for stream sockets, but it never
worked for SOCK_SEQPACKET sockets because of their atomic nature.  If the
sockbuf was partially full, it might return EMSGSIZE instead of blocking.

The new solution is based on DragonFlyBSD's fix from commit
3a6117bbe0ed6a87605c1e43e12a1438d8844380 on 2008-05-27.  It adds an SB_STOP
flag to sockbufs.  Whenever uipc_send surpasses the socket's size limit, it
sets SB_STOP on the sending sockbuf.  sbspace() will then return 0 for that
sockbuf, causing sosend_generic and friends to block.  uipc_rcvd will
likewise clear SB_STOP.  There are two fringe benefits: uipc_{send,rcvd} no
longer need to call chgsbsize() on every send and receive because they don't
change the sockbuf's high water mark.  Also, uipc_sense no longer needs to
acquire the UIPC linkage lock, because it's simpler to compute the
st_blksizes.

There is one drawback: since sbspace() will only ever return 0 or the
maximum, sosend_generic will allow the sockbuf to exceed its nominal maximum
size by at most one packet of size less than the max.  I don't think that's
a serious problem.  In fact, I'm not even positive that FreeBSD guarantees a
socket will always stay within its nominal size limit.

sys/sys/sockbuf.h
Add the SB_STOP flag and adjust sbspace()

sys/sys/unpcb.h
Delete the obsolete unp_cc and unp_mbcnt fields from struct unpcb.

sys/kern/uipc_usrreq.c
Adjust uipc_rcvd, uipc_send, and uipc_sense to use the SB_STOP
backpressure mechanism.  Removing obsolete unpcb fields from
db_show_unpcb.

tests/sys/kern/unix_seqpacket_test.c
Clear expected failures from ATF.

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

10 years agoo Provide a compatibility shim for netstat(1) to obtain output queue
glebius [Thu, 3 Apr 2014 14:58:52 +0000 (14:58 +0000)]
o Provide a compatibility shim for netstat(1) to obtain output queue
  drops via NET_RT_IFLISTL sysctl. The sysctl handler appends oqdrops
  at the end of struct if_msghdrl, and netstat(1) sees that as an
  additional field of struct if_data. This allows us to fetch the data
  keeping ABI and API compatibility.
  This is direct commit to stable/10.

o Merge r263331 from head, to restore printing of queue drops.

Sponsored by: Nginx, Inc.
Sponsored by: Netflix

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

10 years agoMFC r263812:
bdrewery [Thu, 3 Apr 2014 14:47:36 +0000 (14:47 +0000)]
MFC r263812:

  Update build(7) with LOCAL_* vars

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

10 years agoDocument that the FreeBSD/i386 instability with
gjb [Thu, 3 Apr 2014 14:13:57 +0000 (14:13 +0000)]
Document that the FreeBSD/i386 instability with
vfs.unmapped_buf_allowed=1 may be present on VMs
running on hypervisors other than VirtualBox.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263809
ray [Thu, 3 Apr 2014 11:59:04 +0000 (11:59 +0000)]
MFC r263809

Fix crash on resume in vt(9).
Statically allocated terminal window have not initialized callout handler, so we
have to initialize it even for existing window if it is console window.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263385:
delphij [Thu, 3 Apr 2014 01:00:51 +0000 (01:00 +0000)]
MFC r263385:

Remove unused option -r from zpool.

Submitted by: Richard Yao <ryao gentoo org>

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

10 years agoMFC r263775:
dim [Wed, 2 Apr 2014 06:17:57 +0000 (06:17 +0000)]
MFC r263775:

Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines.  This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.

To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.

Suggested by: avg

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

10 years agoMFC r263118:
mav [Tue, 1 Apr 2014 12:07:15 +0000 (12:07 +0000)]
MFC r263118:
Report ZVOL block size as GEOM stripesize.

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

10 years agoMFC r263891:
dim [Tue, 1 Apr 2014 08:19:30 +0000 (08:19 +0000)]
MFC r263891:

Make clang default to DWARF2 debug info format for FreeBSD 10.x and
earlier.  For head, this commit does not change anything, but it is
purely meant to be MFC'd.

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

10 years agoMFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,
dteske [Tue, 1 Apr 2014 00:19:13 +0000 (00:19 +0000)]
MFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,
262984,263133-263137,263139,263141,263144-263150, and (partially) 263249
(31 revisions; summarized below)...
r260894: Optimize f_expand_number(), improving performance
r260899: s/__number/__num/ in f_expand_number()
r262895: Allow dispatched reswords to carry arguments
r262896: Add missing local declaration
r262897: Fix a typo in a comment
r262898: Fix incorrect return status if var_to_set and var_to_get are same
r262899: Make f_show_err non-fatal
r262900: Centralize function name; Update a comment while here
r262901: s/__num/__number/ in f_expand_number()
r262902: Comment to go with NL global introduced by previous commit
r262904: Rewrite groupmgmt -- hooking it into the scripting system
r262908: Change dispatch words from group* to *Group for backward compat
r262909: Fix copy/paste error in a comment
r262910: Take a group name on the command-line if available
r262982: Whitespace
r262984: Remove vestigial global, no longer used since r262904
r263133: Remove indexfile from debug statement (already logged)
r263134: Add debug statement just before attempting to exec a module
r263135: Comments
r263136: Update copyright
r263137: Fix future namespace issues for functions taking $var_to_set
r263139: Remove useless NULL string in compound strings
r263141: Pointy hat! Fix a broken f_isinteger()
r263144: Fix a code-typo that prevented auto-sizing of a dialog
r263145: Fix comments and whitespace
r263146: Reduce the sleep cycle when using dialog(1) [infobox] to 1-second
r263147: Fix a bug preventing errors from pw(8) from appearing
r263148: For non-interactive scripts, forgot to check argument
r263149: Add protection against input containing single-quotes
r263150: Rewrite usermgmt
r263249: (partial) Add more obsolete files

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

10 years agoMFC r263271
asomers [Mon, 31 Mar 2014 14:51:45 +0000 (14:51 +0000)]
MFC r263271

share/man/man9/counter.9
Fix logic error in the description of counter_u64_alloc: the command
may fail only if M_NOWAIT is specified, not M_WAITOK.

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

10 years agoMFC r263468:
ae [Mon, 31 Mar 2014 09:34:46 +0000 (09:34 +0000)]
MFC r263468:
  When loader(8) inspects MBR, it chooses GPT as main partition table,
  when MBR contains only PMBR entry or it is bootcamp-compatible.
  If MBR has PMBR entry and some other, the loader rejects it.

  Make these checks to be less strict. If loader decided that PMBR
  isn't suitable for GPT, it will use MBR.

  Reported by: Paul Thornton

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

10 years agoMFC r263758:
mjg [Mon, 31 Mar 2014 02:53:15 +0000 (02:53 +0000)]
MFC r263758:
Update userspace users of hw.bus.devctl_disable.

This switches the code to use hw.bus.devctl_queue instead.

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

10 years agoMFC r263755:
mjg [Mon, 31 Mar 2014 02:44:43 +0000 (02:44 +0000)]
MFC r263755:
Document a known problem with handling the process intended to receive
SIGIO in /dev/devctl.

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

10 years agoMFC r263704:
mjg [Mon, 31 Mar 2014 02:30:55 +0000 (02:30 +0000)]
MFC r263704:
Make /dev/devctl mpsafe.

MFC r263753:
Remove lockless check in devopen, while correct it does not make much sense.

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

10 years agoMFC r263458:
mjg [Mon, 31 Mar 2014 02:24:29 +0000 (02:24 +0000)]
MFC r263458:
audit: plug FILEDESC_LOCK leak in audit_canon_path.

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

10 years agoMFC r263530:
mjg [Mon, 31 Mar 2014 02:19:57 +0000 (02:19 +0000)]
MFC r263530:
Mark the following sysctls as MPSAFE:
kern.file
kern.proc.filedesc
kern.proc.ofiledesc

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

10 years agoMFC r263460:
mjg [Mon, 31 Mar 2014 02:17:58 +0000 (02:17 +0000)]
MFC r263460:
Take filedesc lock only for reading when allocating new fdtable.

Code populating the table does this already.

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

10 years agoMFC r263863:
gjb [Mon, 31 Mar 2014 00:28:54 +0000 (00:28 +0000)]
MFC r263863:
  Dereference nonexistent md2(3) manual.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263131,r263174,r263175:
bdrewery [Sun, 30 Mar 2014 18:22:10 +0000 (18:22 +0000)]
MFC r263131,r263174,r263175:

  Tmpfs readdir() redundant logic and code readability cleanup.

  r263131:
    Cleanup redundant logic and add some comments to help explain how it works
    in lieu of potentially less clear code.

  r263174:
    Rename cnt to maxcookies and change its use as the condition for when to
    lookup cookies to be less obscure.

  r263175:
    Add missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.'
    and '..'.

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

10 years agoMFC r263130:
bdrewery [Sun, 30 Mar 2014 16:51:12 +0000 (16:51 +0000)]
MFC r263130:

  Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.

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

10 years agoMFC r263129:
bdrewery [Sun, 30 Mar 2014 16:48:04 +0000 (16:48 +0000)]
MFC r263129:

  Combine similar code from vprintf(9) and log(9).

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

10 years agoMFC r263937:
bdrewery [Sun, 30 Mar 2014 15:29:54 +0000 (15:29 +0000)]
MFC r263937:

  Give hint on how to disable the default repository.

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

10 years agoMFC r260880 (by kaiw, from projects/elftoolchain):
dim [Sat, 29 Mar 2014 17:18:23 +0000 (17:18 +0000)]
MFC r260880 (by kaiw, from projects/elftoolchain):

  * Make die_mem_offset() be able to handle DW_AT_data_member_location
    attributes generated by Clang 3.4.
  * Document how different compilers generate DW_AT_data_member_location
    attributes differently.
  * Document the quirks about DW_FORM_data[48].

This is a slightly modified version, adapted to work with the old
libdwarf in stable/9 and stable/10.  It should fix DTrace on these
branches, when the kernel is compiled with clang 3.4.

Note that you have to build *and* install the CTF tools first, before
building the kernel.  Otherwise you can possibly still get error
messages similar to "failed to copy type of 'pr_uid': Type information
is in parent and unavailable", when attempting to run dtrace(1).

Submitted by: kaiw

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

10 years agoMFC r263774:
dim [Sat, 29 Mar 2014 11:33:52 +0000 (11:33 +0000)]
MFC r263774:

Revert r263694, and apply a better fix to squelch unnecessary warnings
from clang about possible keywords being treated as identifiers for the
remainder of the translation unit (a.k.a. -Wkeyword-compat), when using
libstdc++ in combination with -Wsystem-headers.  This will not only fix
devd, but any C++ program using libstdc++.

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

10 years agoMFC of 263901, tzdata2014b
edwin [Sat, 29 Mar 2014 04:44:24 +0000 (04:44 +0000)]
MFC of 263901, tzdata2014b

 - Update antartica.
 - Comments about historical data for Hawaii.
 - Update details for Crimea on 30 March
 - Move location data Simferopol.

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

10 years agoMFC: r263435
jkim [Fri, 28 Mar 2014 20:12:30 +0000 (20:12 +0000)]
MFC: r263435

Add new CPUTYPEs supported by Clang 3.4.

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

10 years agoMFC r262914
asomers [Fri, 28 Mar 2014 16:27:48 +0000 (16:27 +0000)]
MFC r262914

sbin/devd/devd.8
sbin/devd/devd.cc
Add a -q flag to devd that will suppress syslog logging at
LOG_NOTICE or below.

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

10 years agoMFC r263475:
kib [Fri, 28 Mar 2014 15:38:38 +0000 (15:38 +0000)]
MFC r263475:
Fix two issues with /dev/mem access on amd64, both causing kernel page
faults.

First, for accesses to direct map region should check for the limit by
which direct map is instantiated.

Second, for accesses to the kernel map, use a new thread private flag
TDP_DEVMEMIO, which instructs vm_fault() to return error when fault
happens on the MAP_ENTRY_NOFAULT entry, instead of panicing.

MFC r263498:
Add change forgotten in r263475.  Make dmaplimit accessible outside
amd64/pmap.c.

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