]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMerge r261882, r261898, r261937, r262760, r262799:
glebius [Tue, 11 Mar 2014 15:43:06 +0000 (15:43 +0000)]
Merge r261882, r261898, r261937, r262760, r262799:
  Once pf became not covered by a single mutex, many counters in it became
  race prone. Some just gather statistics, but some are later used in
  different calculations.

  A real problem was the race provoked underflow of the states_cur counter
  on a rule. Once it goes below zero, it wraps to UINT32_MAX. Later this
  value is used in pf_state_expires() and any state created by this rule
  is immediately expired.

  Thus, make fields states_cur, states_tot and src_nodes of struct
  pf_rule be counter(9)s.

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

10 years agoMFC 261030:
jhb [Tue, 11 Mar 2014 15:28:41 +0000 (15:28 +0000)]
MFC 261030:
Similar to cap_mkdb(1), add endianness support to services_mkdb(1)
to support cross-builds once this is invoked during releases.

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

10 years agoMerge r261029: remove NULL pointer dereference.
glebius [Tue, 11 Mar 2014 15:20:47 +0000 (15:20 +0000)]
Merge r261029: remove NULL pointer dereference.

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

10 years agoMerge r261028: fix resource leak and simplify code for DIOCCHANGEADDR.
glebius [Tue, 11 Mar 2014 15:19:11 +0000 (15:19 +0000)]
Merge r261028: fix resource leak and simplify code for DIOCCHANGEADDR.

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

10 years agoMerge r261169: Fix compilation with IGB_LEGACY_TX defined.
glebius [Tue, 11 Mar 2014 15:17:04 +0000 (15:17 +0000)]
Merge r261169: Fix compilation with IGB_LEGACY_TX defined.

PR: 185909

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

10 years agoMFC r257847, r260243: Update aacraid to version 3.2.5.
achim [Tue, 11 Mar 2014 14:59:34 +0000 (14:59 +0000)]
MFC r257847, r260243: Update aacraid to version 3.2.5.

Approved by: emaste (co-mentor)

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

10 years agoMFC 261243:
jhb [Tue, 11 Mar 2014 14:33:42 +0000 (14:33 +0000)]
MFC 261243:
Some BIOSes incorrectly use standard memory resource ranges to list
the memory ranges that they decode for downstream devices rather than
creating ResourceProducer range resource entries.  The result is that
we allocate the full range to the PCI root bridge device causing
allocations in child devices to all fail.

As a workaround, ignore any standard memory resources on a PCI root
bridge device.  It is normal for a PCI root bridge to allocate an I/O
resource for the I/O ports used for PCI config access, but I have not
seen any PCI root bridges that legitimately allocate a memory resource.

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

10 years agor262400,r262401,r262418
bapt [Tue, 11 Mar 2014 13:16:03 +0000 (13:16 +0000)]
r262400,r262401,r262418

Sync pkg(7) with head

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

10 years agoMFC: r262398,r262399,r262410,r262975
bapt [Tue, 11 Mar 2014 13:06:09 +0000 (13:06 +0000)]
MFC: r262398,r262399,r262410,r262975

Import libucl into head

UCL is heavily infused by nginx configuration as the example of a convenient
configuration system. However, UCL is fully compatible with JSON format and is
able to parse json files.

UCL is used by pkg(8) for its configuration file as well for the manifest format
in packages, it will be used in base for the pkg boostrap (signature checking
and configuration file parsing.)

libucl has been developped and is maintained by vsevolod@

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

10 years agoMFC r262020:
jhay [Tue, 11 Mar 2014 12:58:45 +0000 (12:58 +0000)]
MFC r262020:

Make it possible to use the env kernel config file option for AVILA
and CAMBRIA boards that does not use loader to load the kernel. This
is basically how it was done for i386. This way tunables can also be
set. For example in config file:

env "/conf/AVILA.env"

And in AVILA.env:

vfs.unmapped_buf_allowed=0

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

10 years agoMFC r262036
jhay [Tue, 11 Mar 2014 12:04:58 +0000 (12:04 +0000)]
MFC r262036

etcupdate should use the src tree from where the release is built, not
the default (/usr/src) tree.

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

10 years agoMFC r262822:
kevlo [Tue, 11 Mar 2014 07:33:33 +0000 (07:33 +0000)]
MFC r262822:

Fix a logic error when enabling MAC.

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

10 years agoMFC r262930
rpaulo [Tue, 11 Mar 2014 05:58:52 +0000 (05:58 +0000)]
MFC r262930
 Call ieee80211_dump_pkt() based on IFF_DUMPPKTS().

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

10 years agoMFC: r262746, r262748, r262750, r262752
jkim [Mon, 10 Mar 2014 20:47:24 +0000 (20:47 +0000)]
MFC: r262746, r262748, r262750, r262752

Move fpusave() wrapper for suspend hander to sys/amd64/amd64/fpu.c.

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

10 years agoMFC r261535:
markj [Mon, 10 Mar 2014 02:31:50 +0000 (02:31 +0000)]
MFC r261535:
Add support for MegaRAID Fury cards. The main change needed to boot from a
9341-4i controller was to ensure that scatter/gather lists are ended with
an end-of-list marker. Both the mrsas and Linux megaraid_sas drivers use
this marker with Invader cards as well, so we do the same thing, though
it is apparently not strictly necessary.

PR: 187312

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

10 years agoMFC r262890:
eadler [Mon, 10 Mar 2014 00:53:37 +0000 (00:53 +0000)]
MFC r262890:
libc man pages: Remove reference to non-existent FreeBSD Security
Architecture

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

10 years agoMFC r262689:
ache [Sun, 9 Mar 2014 23:47:34 +0000 (23:47 +0000)]
MFC r262689:

Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined.
Unconditional addition cause real fetch(1) and patch(1) programs are
builded every time.

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

10 years agoMFC r262805:
dim [Sun, 9 Mar 2014 21:02:23 +0000 (21:02 +0000)]
MFC r262805:

Pull in r199848 from upstream libc++ trunk:

  Const qualify __mem_fn call operator

  QOI improvement.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2059

This should help with building recent versions of Mesa.  See also:
https://bugs.freedesktop.org/show_bug.cgi?id=75505

Reported by: dumbbell

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

10 years agoSync sh(1) in stable/10 to head.
jmmv [Sun, 9 Mar 2014 17:04:31 +0000 (17:04 +0000)]
Sync sh(1) in stable/10 to head.

This is a MFC of all the commits listed below.

My original goal of this change was to only merge the move of the tests
from tools/regression/bin/ into the new layout (which include tests for
sh(1) and other tools as well).  However, doing so is tricky due to the
ongoing work in sh(1) and, especially, the many changes to its tests
since stable/10 was first branched.

Merging everything is the simplest way to achieve this goal and, as a
bonus point, we get various fixes and miscellaneous improvements into
the branch.

Per jilles' suggestion, I'm avoiding the merge of a couple of changes
(r256850 and r257506) that required depending kernel changes.  I'm also
avoiding very recent changes that have not had a long enough time to be
validated in current.

This is "make tinderbox" clean.

r256735 sh: Remove one syscall when waiting for a foreground job.
r257399 sh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.
r257504 sh: Reorder union node to reduce its size on 64-bit platforms.
r257920 sh: Add a test case for would-be assignments that are not due to quoting.
r257929 sh: Properly quote alias output from command -v.
r258489 sh: Add tests for the </dev/null implicit in a background command.
r258533 sh: Add more tests for the </dev/null implicit in a background command.
r258535 sh: Make <&0 disable the </dev/null implicit in a background command.
r258776 sh: Prefer memcpy() to strcpy() in most cases. Remove the scopy macro.
r259047 sh: Split set -x output into a separate function.
r259210 Migrate tools/regression/bin/ tests to the new layout.
r259844 sh: Remove an unused variable.
r259846 sh: Initialize OPTIND=1 even if it came from the environment.
r259874 sh: Simplify code related to PPID variable.
r259946 sh: Don't check input for non-whitespace if history is disabled.
r260246 sh(1): Discourage use of -e.
r260506 Run the sh(1) and test(1) tests as unprivileged.
r260586 Mark the bin/pax tests as requiring perl.
r260634 Use TAP_TESTS_PERL to register the legacy_test in bin/pax.
r260635 Replace hand-crafted Kyuafiles with automatic generation.
r260654 sh: Remove SIGWINCH handler and just check for resize before every read.
r261121 sh: Add test for nested alias.
r261125 sh: Solve the alias recursion problem in a less hackish way.
r261141 sh: Do not depend on parse/execute split in new alias test.
r261160 sh: Add tests for alias names after another alias.
r261192 sh: Allow aliases to force alias substitution on the following word.
r262533 sh: Make expari() static.
r262565 sh: Do not corrupt internal representation if LINENO inner expansion fails.
r262697 sh: Simplify expari().

Reviewed by: jilles

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

10 years agoMerge r262690 from head to stable/10:
rwatson [Sun, 9 Mar 2014 13:23:49 +0000 (13:23 +0000)]
Merge r262690 from head to stable/10:

  When querying a process's umask via sysctl in libprocstat(), don't
  print a warning if EPERM is returned as this is an expected failure
  mode rather than error -- similar to current handling of ESRCH.
  This makes the output of 'procstat -as' vastly more palatable.

  Sponsored by: DARPA, AFRL

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

10 years agoMFC r262869:
pfg [Sun, 9 Mar 2014 04:16:00 +0000 (04:16 +0000)]
MFC r262869:

ext2fs: Fix a bug when sorting htree entries.

This a typo introduced when bringing the original code from NetBSD.

Reported by: Mike Ma

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

10 years agoMFC: r262333
brueffer [Sat, 8 Mar 2014 12:24:47 +0000 (12:24 +0000)]
MFC: r262333

Simplify the way the end of a singly linked list is followed (for adding
items), so it is more obvious that we aren't going to indirect through
a NULL pointer.

PR: 144723
Submitted by: Garrett Cooper <yaneurabeya at gmail.com>
Obtained from: NetBSD r1.19

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

10 years agoMFC r262645,r262647:
eadler [Sat, 8 Mar 2014 03:54:49 +0000 (03:54 +0000)]
MFC r262645,r262647:
ssh-copy-id: avoid sending private keys; add -v option

To help avoid confusion: when attempting to send a key file check to see if a
file of the same name exists with a '.pub' suffix and send that instead.  This
mimics the behavior of other ssh-copy-id scripts.

Add -v passthrough.

ssh-copy-id: add restorecon call

In certain situations when creating an authorized_key file on a Linux machine
restorecon(1) may need to be called.  Therefore, attempt to run it if it exists.

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

10 years agoMFC r261859: fts: Fix double-free with conflicting concurrent modifications.
jilles [Fri, 7 Mar 2014 16:43:08 +0000 (16:43 +0000)]
MFC r261859: fts: Fix double-free with conflicting concurrent modifications.

If rare conditions such as concurrent conflicting manipulation of the
filesystem occur, fts_read() frees the current FTSENT without adjusting
the pointers in the FTS accordingly. A later fts_close() then frees the
same FTSENT again.

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

10 years agoBump __FreeBSD_version for the MFC of vt(4).
jhb [Fri, 7 Mar 2014 14:44:13 +0000 (14:44 +0000)]
Bump __FreeBSD_version for the MFC of vt(4).

Submitted by: Koop Mast

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

10 years agoMFC: r262603
brueffer [Fri, 7 Mar 2014 12:20:01 +0000 (12:20 +0000)]
MFC: r262603

mdoc cleanup.

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

10 years agoMFC r262133
asomers [Thu, 6 Mar 2014 21:47:22 +0000 (21:47 +0000)]
MFC r262133

test_eagain_*_* should've been using nonblocking sockets instead of blocking
sockets.  The error was not exposed as long as the kernel suffered from PR
kern/185812.  Now corrected, these tests pass on DragonFlyBSD 3.6.0.

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

10 years agoMFC 259016,259019,259049,259071,259102,259110,259129,259130,259178,259179,
jhb [Thu, 6 Mar 2014 18:30:56 +0000 (18:30 +0000)]
MFC 259016,259019,259049,259071,259102,259110,259129,259130,259178,259179,
259203,259221,259261,259532,259615,259650,259651,259667,259680,259727,
259761,259772,259776,259777,259830,259882,259915,260160,260449,260450,
260688,260888,260953,261269,261547,261551,261552,261553,261585:
Merge the vt(4) driver (newcons) to stable/10.

Approved by: ray

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

10 years agoImport atf-0.20.
jmmv [Thu, 6 Mar 2014 14:11:44 +0000 (14:11 +0000)]
Import atf-0.20.

This is a MFC of r261897 and r262000 and should allow all of the atf
tests to pass.

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

10 years agoInstall a symlink from /usr/tests/local to /usr/local/tests.
jmmv [Thu, 6 Mar 2014 13:38:23 +0000 (13:38 +0000)]
Install a symlink from /usr/tests/local to /usr/local/tests.

This is a MFC of r261959 and r261978.

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

10 years agoMFC r262575:
mav [Thu, 6 Mar 2014 13:37:34 +0000 (13:37 +0000)]
MFC r262575:
Restore SIM freeze/release match, broken at r253549.

This fixes problem with SIM left in frozen state after reinit, for example,
after firmware update.

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

10 years agoMFC a couple of improvements to the test suite mk files.
jmmv [Thu, 6 Mar 2014 13:30:36 +0000 (13:30 +0000)]
MFC a couple of improvements to the test suite mk files.

- r260632 Support defining test program metadata from the Makefiles.
- r260633 Support perl-based TAP-compliant test programs.

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

10 years agoMFC r262553:
mav [Thu, 6 Mar 2014 13:24:51 +0000 (13:24 +0000)]
MFC r262553:
Pass proper pointer to bus_dmamem_free() in mps_iocfacts_free().

Passing there pointer into the middle of allocated area caused kernel
panic during reinit, for example, after firmware upgrade.

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

10 years agoMFC various fixes for the ATF tests.
jmmv [Thu, 6 Mar 2014 13:20:38 +0000 (13:20 +0000)]
MFC various fixes for the ATF tests.

- r260505 Allow tests to provide a Kyuafile when they relied on auto-generation.
- r260525 Respect the original layout of the atf-{c,c++} tests.
- r260526 Fix path to the process_helpers for the libatf-c++ tests.
- r260576 Generate and install pkg-config files for atf.
- r260577 Add atf pkg-config files from the vendor branch.
- r260584 Prevent misc_helpers from running as a test.

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

10 years agoMFC: r262571
brueffer [Thu, 6 Mar 2014 13:15:53 +0000 (13:15 +0000)]
MFC: r262571

Add missing includes and remove two unused ones.

Reviewed by: loos

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

10 years agoMFC r261748:
trasz [Thu, 6 Mar 2014 11:15:54 +0000 (11:15 +0000)]
MFC r261748:

So, it turns out SIGCHLD is discarded by default, so we have to set up
a dummy handler to make it interrupt an ioctl(2) or select(2).

This makes those short-lived iscsid(8) zombies disappear.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261747:
trasz [Thu, 6 Mar 2014 11:14:36 +0000 (11:14 +0000)]
MFC r261747:

Empty data segment during Login Phase is rather unlikely, but it's not
a protocol error.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261715:
trasz [Thu, 6 Mar 2014 11:13:26 +0000 (11:13 +0000)]
MFC r261715:

The log_whatever() routines don't accept NULL for format strings,
so mark them as __printflike instead of __printf0like.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r262525:
trasz [Thu, 6 Mar 2014 11:10:57 +0000 (11:10 +0000)]
MFC r262525:

There is no need to prevent iscsictl from adding iSER session when there
is no iSER support in ctld and/or kernel; should the user make that mistake,
the output from "iscsictl -L" is enough to determine what the problem is.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r262247:
trasz [Thu, 6 Mar 2014 11:09:46 +0000 (11:09 +0000)]
MFC r262247:

Make it clear that there are two ways to add a session using iscsictl(8),
and some options require configuration file.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261714:
trasz [Thu, 6 Mar 2014 11:07:51 +0000 (11:07 +0000)]
MFC r261714:

Make iscsictl(8) properly handle (optional) semicolons in iscsi.conf,
instead of ignoring them and echoing them to stdout.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261713:
trasz [Thu, 6 Mar 2014 11:05:35 +0000 (11:05 +0000)]
MFC r261713:

Simplify.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261712:
trasz [Thu, 6 Mar 2014 11:03:34 +0000 (11:03 +0000)]
MFC r261712:

Remove unused variable.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261711:
trasz [Thu, 6 Mar 2014 11:02:32 +0000 (11:02 +0000)]
MFC r261711:

Yacc cleanup; no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261832-261834:
zeising [Thu, 6 Mar 2014 10:26:25 +0000 (10:26 +0000)]
MFC r261832-261834:

r261832:
    Add cross references between rc.conf(5) and jail.conf(5).

r261833:
    Add commas (,) to the list in the SEE ALSO section, to match most
    other manuals.

r261834:
    Bump .Dd forgotten in r261832.

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

10 years agoMFC r261283:
dim [Wed, 5 Mar 2014 19:30:36 +0000 (19:30 +0000)]
MFC r261283:

Import libc++ 3.4 release.  This contains a lot of bugfixes, and some
preliminary support for C++1y.

MFC r261604:

HEAD is not buildable for the past day.  Commit a 'quick fix' in order to permit
buildworld to complete.

Reviewed by: theraven

MFC r261608:

Apply a cleaner solution for the sign warnings that can occur when
compiling libc++'s <locale> header with -Wsystem-headers on.

This has also been submitted upstream.

Reported by: asomers

MFC r261801:

An ABI incompatibility crept into the libc++ 3.4 import in r261283.  It
was caused by upstream libc++ commit r194536, which aimed to make the
headers more standards-compliant, by making std::pair's copy constructor
trivial.  Unfortunately, this could cause certain C++ applications using
shared libraries built against the previous version of libc++ to crash.

Fix the ABI incompatibility by making std::pair's copy constructor
non-trivial again.

Please note: Any C++ applications or shared libraries built with libc++
between r261283 and this revision should be recompiled.

Reported by: stefanf

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

10 years agoMFC r262513:
gjb [Wed, 5 Mar 2014 17:23:29 +0000 (17:23 +0000)]
MFC r262513:
 Update release/release.conf.sample to reflect changes in r262509.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r262494
brueffer [Wed, 5 Mar 2014 13:25:01 +0000 (13:25 +0000)]
MFC: r262494

Rough cleanup (new sentence -> new line, grammar, spelling, mdoc).
This could use more work.

PR: 187035 (in part)
Submitted by: Bjorn Heidotting

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

10 years agoMFC r262678;
pfg [Wed, 5 Mar 2014 04:23:19 +0000 (04:23 +0000)]
MFC r262678;
ufs: small formatting fixes.

Cleanup some extra space.
Use of tabs vs. spaces.
No functional change.

Reviewed by: mckusick

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

10 years agoMerge r262770 from head: pacify gcc.
glebius [Wed, 5 Mar 2014 03:16:23 +0000 (03:16 +0000)]
Merge r262770 from head: pacify gcc.

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

10 years agoMFC r262499, r262505, r262507, r262509:
gjb [Wed, 5 Mar 2014 00:45:28 +0000 (00:45 +0000)]
MFC r262499, r262505, r262507, r262509:

r262499:
  release.sh:
  - Add a VCSCMD variable that defaults to 'svn checkout',
    and update places 'svn co' is used directly.
  - After sourcing a configuration file, prefix SRCBRANCH,
    PORTBRANCH, and DOCBRANCH with the SVNROOT.
  - Properly capitalize 'FreeBSD.org' in the default SVNROOT.
  - Update Copyright.

  release.conf.sample:
  - Add an example to use git instead of svn, by nullifying
    SVNROOT, and setting SRCBRANCH, DOCBRANCH, and PORTBRANCH
    to the URL fo a git repository.

  release.7:
  - Document VCSCMD.

r262505:
  In release/Makefile, remove exclusion of CVS directories in the
  src/ and ports/ distributions.

  While I am thinking about it, exclude .git directories for src/
  and ports/, as somewhat of a followup to r262499.

r262507:
  Chase r262505, and remove CVS exclusion from picobsd builds.

r262509:
  Rework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
  unnecessary expr(1) call.

Sponsored by: The FreeBSD Foundation

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

10 years agoDisable amd64 TLB Context ID (pcid) by default for now
emaste [Tue, 4 Mar 2014 21:51:09 +0000 (21:51 +0000)]
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

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

10 years agoMerge r261582, r261601, r261610, r261613, r261627, r261640, r261641, r261823,
glebius [Tue, 4 Mar 2014 15:14:47 +0000 (15:14 +0000)]
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

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

10 years agoMerge r261796 from head:
glebius [Tue, 4 Mar 2014 14:49:05 +0000 (14:49 +0000)]
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.

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

10 years agoMerge r261722, r261723, r261724, r261725 from head:
glebius [Tue, 4 Mar 2014 14:46:30 +0000 (14:46 +0000)]
Merge r261722, r261723, r261724, r261725 from head:
  several minor improvements for UMA_ZPCPU_ZONE zones.

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

10 years agoMerge 261595: simplify the SYSCTL_COUNTER_U64() macro.
glebius [Tue, 4 Mar 2014 14:23:58 +0000 (14:23 +0000)]
Merge 261595: simplify the SYSCTL_COUNTER_U64() macro.

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

10 years agoMerge 261593 from head:
glebius [Tue, 4 Mar 2014 14:21:07 +0000 (14:21 +0000)]
Merge 261593 from head:
  Provide macros that allow easily export uma(9) zone limits and
  current usage via sysctl(9).

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

10 years agoMerge r261590: Fixup for r261590 (vnet sysctl handlers cleanup)
glebius [Tue, 4 Mar 2014 14:05:37 +0000 (14:05 +0000)]
Merge r261590: Fixup for r261590 (vnet sysctl handlers cleanup)

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

10 years agoMerge r261590, r261592 from head:
glebius [Tue, 4 Mar 2014 14:01:12 +0000 (14:01 +0000)]
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.

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

10 years agoMFC r262441-262442,262447,262461-262464,262655:
tijl [Tue, 4 Mar 2014 11:43:01 +0000 (11:43 +0000)]
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>

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

10 years agoMFC r262623, r262667:
pfg [Tue, 4 Mar 2014 03:10:31 +0000 (03:10 +0000)]
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.

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

10 years ago(not quite, due to date difference) MFC r262719:
delphij [Mon, 3 Mar 2014 23:30:54 +0000 (23:30 +0000)]
(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

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

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