]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoSet up the /usr/tests hierarchy.
jmmv [Sat, 28 Dec 2013 20:05:31 +0000 (20:05 +0000)]
Set up the /usr/tests hierarchy.

This is a MFC of the following into stable/10:
- r257097 Set up the /usr/tests hierarchy.
- r257098 Add missing WITHOUTTESTS file.
- r257100 Add a tests(7) manual page.
- r257105 Disable WITHTESTS= for now.
- r257848 Fix buildworld when WITHTESTS is enabled.
- r257850 Subsume the functionality of MKATF into MKTESTS.
- r257851 Handle the removal of the test suite when WITHOUTTESTS=yes.
- r257852 Install category Kyuafiles from their category directories.
- r258232 Install BSD.tests.mtree when MKTESTS is yes.

Note that building with WITH_TESTS is still broken at this point (and
hence why WITHOUT_TESTS is the set as the default).  Subsequent pullups
will fix the remaining issues.

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

10 years agoMFC r259666, r259696:
pfg [Sat, 28 Dec 2013 20:02:49 +0000 (20:02 +0000)]
MFC r259666, r259696:

gcc: warnings from -Wformat-security

Obtained from: Apple GCC 4.2 - 5646 (Radar 5764921)

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

10 years agoMFC r257155, r257582, r259191, r259192, r259193, r259194, r259195, r259196:
trociny [Sat, 28 Dec 2013 19:21:22 +0000 (19:21 +0000)]
MFC r257155, r257582, r259191, r259192, r259193, r259194, r259195, r259196:

r257155:

Make hastctl list command output current queue sizes.

Reviewed by: pjd

r257582 (pjd):

Correct alignment.

r259191:

For memsync replication, hio_countdown is used not only as an
indication when a request can be moved to done queue, but also for
detecting the current state of memsync request.

This approach has problems, e.g. leaking a request if memsynk ack from
the secondary failed, or racy usage of write_complete, which should be
called only once per write request, but for memsync can be entered by
local_send_thread and ggate_send_thread simultaneously.

So the following approach is implemented instead:

1) Use hio_countdown only for counting components we waiting to
   complete, i.e. initially it is always 2 for any replication mode.

2) To distinguish between "memsync ack" and "memsync fin" responses
   from the secondary, add and use hio_memsyncacked field.

3) write_complete() in component threads is called only before
   releasing hio_countdown (i.e. before the hio may be returned to the
   done queue).

4) Add and use hio_writecount refcounter to detect when
   write_complete() can be called in memsync case.

Reported by: Pete French petefrench ingresso.co.uk
Tested by: Pete French petefrench ingresso.co.uk

r259192:

Add some macros to make the code more readable (no functional chages).

r259193:

Fix compiler warnings.

r259194:

In remote_send_thread, if sending a request fails don't take the
request back from the receive queue -- it might already be processed
by remote_recv_thread, which lead to crashes like below:

  (primary) Unable to receive reply header: Connection reset by peer.
  (primary) Unable to send request (Connection reset by peer):
      WRITE(954662912, 131072).
  (primary) Disconnected from kopusha:7772.
  (primary) Increasing localcnt to 1.
  (primary) Assertion failed: (old > 0), function refcnt_release,
      file refcnt.h, line 62.

Taking the request back was not necessary (it would properly be
processed by the remote_recv_thread) and only complicated things.

r259195:

Send wakeup to threads waiting on empty queue before releasing the
lock to decrease spurious wakeups.

Submitted by: davidxu

r259196:

Check remote protocol version only for the first connection (when it
is actually sent by the remote node).

Otherwise it generated confusing "Negotiated protocol version 1" debug
messages when processing the second connection.

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

10 years agoPull up fixes to allow building tests along scripts and data files.
jmmv [Sat, 28 Dec 2013 16:08:10 +0000 (16:08 +0000)]
Pull up fixes to allow building tests along scripts and data files.

MFC of the following into stable/10:
- r257095 Allow mixing bsd.files.mk with bsd.subdir.mk.
- r258095 Allow this (bsd.progs.mk) to work with fmake.
- r258330 Need to also test for defined(${v}_${PROG}) in bsd.progs.mk.
- r259209 Make bsd.progs.mk work in directories with SCRIPTS but no PROGS.

This is all 'make tinderbox' clean as run on ref10-amd64.

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

10 years agoCatch up with r259980 and handle renamed deflate.c.
peter [Sat, 28 Dec 2013 15:19:47 +0000 (15:19 +0000)]
Catch up with r259980 and handle renamed deflate.c.

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

10 years agoMFC r257631: Add myself to the committers-src list and to the calendar.
jmmv [Sat, 28 Dec 2013 13:08:47 +0000 (13:08 +0000)]
MFC r257631: Add myself to the committers-src list and to the calendar.

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

10 years agoMFC r259897:
dim [Sat, 28 Dec 2013 02:15:30 +0000 (02:15 +0000)]
MFC r259897:

In sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c, remove static functions
mk_cpl_barrier_ulp(), mk_get_tcb_ulp() and mk_set_tcb_field_ulp(), which
are all unused since r237263.

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

10 years agoMFC r259896:
dim [Sat, 28 Dec 2013 02:11:17 +0000 (02:11 +0000)]
MFC r259896:

In sys/dev/cxgb/common/cxgb_mc5.c, remove static function
dbgi_wr_addr3(), which is unused since r167514.

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

10 years agoMFC r259893:
dim [Sat, 28 Dec 2013 02:07:29 +0000 (02:07 +0000)]
MFC r259893:

In sys/vm/vm_pageout.c, since vm_pageout_worker() takes a void * as
argument, cast the incoming 0 argument to void *, to silence a warning
from clang 3.4 ("expression which evaluates to zero treated as a null
pointer constant of type 'void *' [-Wnon-literal-null-conversion]").

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

10 years agoMFC r259892:
dim [Sat, 28 Dec 2013 02:00:33 +0000 (02:00 +0000)]
MFC r259892:

In sys/kern/vfs_mountroot.c, remove static function parse_isspace(),
which is unused since r214006.

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

10 years agoMFC r259888:
dim [Sat, 28 Dec 2013 01:56:04 +0000 (01:56 +0000)]
MFC r259888:

Pull in r183971 from upstream llvm trunk:

  X86: cvtpi2ps is just an SSE instruction with MMX operands. It has no AVX
  equivalent.

  Give it the right register format so we can also emit it when AVX is enabled.

This should fix a "Cannot select: intrinsic %llvm.x86.sse.cvtpi2ps" fatal error
in clang while building the gnuradio port for amd64.

Reported by: db

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

10 years agoMFC r259876:
dim [Sat, 28 Dec 2013 01:52:52 +0000 (01:52 +0000)]
MFC r259876:

In sys/kern/subr_witness.c, remove static function
witness_lock_order_key_empty(), which is unused since r181695.

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

10 years agoMFC r259880:
dim [Sat, 28 Dec 2013 01:47:19 +0000 (01:47 +0000)]
MFC r259880:

In sys/dev/sym/sym_hipd.c, remove static functions sym_que_first(),
sym_que_last() and sym_remque_tail(), which are all unused since r53790.

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

10 years agoMFC r259875:
dim [Sat, 28 Dec 2013 01:42:20 +0000 (01:42 +0000)]
MFC r259875:

In sys/kern/sched_ule.c, remove static function sched_both(), which is
unused since r232207.

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

10 years agoMFC r259869:
dim [Sat, 28 Dec 2013 01:33:42 +0000 (01:33 +0000)]
MFC r259869:

In sys/dev/mwl/if_mwl.c, put the static RD4() function under #ifdef
MWL_DEBUG guards, since it only used in DPRINTF statements.

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

10 years agoMFC r259842:
dim [Sat, 28 Dec 2013 01:26:26 +0000 (01:26 +0000)]
MFC r259842:

Remove some unused static const strings under sys/rpc, which have never
been used since the initial commit (r177633).

MFC r259843:

Move a static const variable to the #if 0 part where it is only used.
(Note the #if 0 part has been inactive since the initial commit,
r177633, so maybe it should be removed altogether).

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

10 years agoMFC r259840:
dim [Sat, 28 Dec 2013 01:19:48 +0000 (01:19 +0000)]
MFC r259840:

In sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used
whenever KTR is defined, so put it between #ifdef KTR guards.  This
avoids a warning about a unused function if KTR is not enabled.

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

10 years agoMFC r259839:
dim [Sat, 28 Dec 2013 01:15:34 +0000 (01:15 +0000)]
MFC r259839:

In sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
KTR is defined, so put it between #ifdef KTR guards.  This avoids a
warning about a unused function if KTR is not enabled.

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

10 years agoMFC r259833:
dim [Sat, 28 Dec 2013 01:08:40 +0000 (01:08 +0000)]
MFC r259833:

Remove another unused static const variable num_chip_names, from
aic7xxx.c this time.

Noticed by: pluknet

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

10 years agoMFC r259109: allow ZFS to co-habitate with crypto / aesni
peter [Sat, 28 Dec 2013 01:03:30 +0000 (01:03 +0000)]
MFC r259109: allow ZFS to co-habitate with crypto / aesni

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

10 years agoMFC r259827:
dim [Sat, 28 Dec 2013 00:53:20 +0000 (00:53 +0000)]
MFC r259827:

Remove unused static const variable num_chip_names from aic79xx.c.

Reviewed by: gibbs

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

10 years agoMFC r259825:
dim [Sat, 28 Dec 2013 00:16:58 +0000 (00:16 +0000)]
MFC r259825:

Remove unused static function adwccbstatus() from adw(4).

Reviewed by: gibbs

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

10 years agoMFC r259756:
dim [Sat, 28 Dec 2013 00:03:15 +0000 (00:03 +0000)]
MFC r259756:

Get rid of register keyword usage in gperf, it is totally obsolete for
C++, and this allows gperf to be compiled for C++11 without a warning
about it.

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

10 years agoMFC r259973:
delphij [Fri, 27 Dec 2013 23:09:40 +0000 (23:09 +0000)]
MFC r259973:

Tighten default restrictions for ntpd(8) server and provide a link
to NTP access restriction documentation.

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

10 years agoMFC r258000:
markj [Fri, 27 Dec 2013 23:00:56 +0000 (23:00 +0000)]
MFC r258000:
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.

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

10 years agoMFC r257670:
markj [Fri, 27 Dec 2013 22:30:36 +0000 (22:30 +0000)]
MFC r257670:
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.

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

10 years agoMFC r257300:
markj [Fri, 27 Dec 2013 22:19:19 +0000 (22:19 +0000)]
MFC r257300:
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.

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

10 years agoRevert r252694 from stable/10 to fix instabilities seen with jemalloc + dhclient...
adrian [Fri, 27 Dec 2013 22:05:51 +0000 (22:05 +0000)]
Revert r252694 from stable/10 to fix instabilities seen with jemalloc + dhclient/sshd.

This is a direct commit to stable/10 as the VM code has changed
since the stable/10 branch.

PR: kern/185046

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

10 years agoSplit and extend bsd.test.mk into {atf,plain,tap}.test.mk.
jmmv [Fri, 27 Dec 2013 22:00:22 +0000 (22:00 +0000)]
Split and extend bsd.test.mk into {atf,plain,tap}.test.mk.

This is a MFC of:

- r256761 Clearly split the logic to build ATF and plain tests apart.
- r256762 Add the automatic generation of Atffile files.
- r256763 Add the automatic generation of Kyuafile files.
- r256764 Plug atf-run into the 'test' target.
- r256765 Plug kyua into the 'test' target.
- r257096 Move the TESTSBASE definition to bsd.own.mk.
- r257099 Add missing plain.test.mk.
- r258297 Remove registration of C++ test programs into PROGS.
- r258298 Fix the build of plain test programs.
- r258551 Install plain.test.mk.
- r259208 Add tap.test.mk.

Approved by: rpaulo (mentor)

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

10 years agoMFC 258063,258064,258066,258097,258185,259134:
jhb [Fri, 27 Dec 2013 19:53:42 +0000 (19:53 +0000)]
MFC 258063,258064,258066,258097,258185,259134:
- Add an -s option to the regression tests that specifies a path to an
  alternate etcupdate.sh script to test.  This allows a non-installed
  version of the script to be tested more easily.
- Add a pre-world mode of updating similar to the -p option that can be
  passed to mergemaster.
- Fix a couple of issues with -F:
  - Fix ALWAYS_INSTALL to take precedence over the FreeBSD ID checks.
  - Fix the -F option in the case that the only upstream change is a
    change in the FreeBSD ID and the local file is removed.
- Refresh /etc/localtime after each update using tzsetup -r.
- Regenerate /var/db/services.db when /etc/services changes.

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

10 years agogcc: Merge upstream changes.
pfg [Fri, 27 Dec 2013 16:06:08 +0000 (16:06 +0000)]
gcc: Merge upstream changes.

Include types in error message for build_binary_op.

Mostly cosmetic changes, to reduce differences with Apple's gcc.

Obtained from: gcc 4.3 (rev. 120611, 124839, 125239; GPLv2)

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

10 years agoMFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.
jhb [Thu, 26 Dec 2013 16:57:36 +0000 (16:57 +0000)]
MFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.

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

10 years agoMFC r258904, r259780:
pfg [Thu, 26 Dec 2013 01:12:35 +0000 (01:12 +0000)]
MFC r258904, r259780:
Small ext2fs updates.

Add two new reserved inodes.
Make the hashing algorithm match the linux code.

PR: kern/183230

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

10 years agoMFC r259267:
bz [Wed, 25 Dec 2013 23:57:01 +0000 (23:57 +0000)]
MFC r259267:

  Add an FDT DTS and MDROOT kernel configuration for BERI on NetFPGA.

  At this point we only support one CPU, the PIC, and a UART console.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r259265:
bz [Wed, 25 Dec 2013 23:54:38 +0000 (23:54 +0000)]
MFC r259265:

  Use correct value pointing to previously selected FDT DTB.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r256661 r257222 r257235 r257248 r257298.
markj [Wed, 25 Dec 2013 22:36:27 +0000 (22:36 +0000)]
MFC r256661 r257222 r257235 r257248 r257298.

MFC r256661:
Fix the libproc build when DEBUG is defined.

MFC r257222:
Clean up the debug printing in libproc a bit. In particular:

* Don't print any error messages to stderr unless DEBUG is defined.
* Add a DPRINTFX macro for use when errno isn't set.
* Print the error string from libelf when appropriate.

MFC r257235:
Remove an incorrect debug printf.

MFC r257248:
Fix the build with gcc.

MFC r257298:
Revert r257248 and fix the problem in a way that doesn't violate style(9).

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

10 years agoMFC r258826, r259555, r 259558:
pfg [Wed, 25 Dec 2013 21:59:56 +0000 (21:59 +0000)]
MFC r258826, r259555, r 259558:

libcpp: Merge fixes from upstream
Fixes:
GCC preprocessor/29966:
GCC preprocessor/28709:
GCC c/31924
GCC preprocessor/14331

gcc: add Apple-compatible -Wnewline-eof

Obtained from: gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
  125212, 125255 ; GPLv2)
Apple Inc. (Apple GCC 4.2 - 5531)

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

10 years agoMFC r258469:
pluknet [Wed, 25 Dec 2013 15:40:15 +0000 (15:40 +0000)]
MFC r258469:

- Purge one more reference to ad(4)[1].
- NSWAPDEV limit has gone.

Noticed by: Sergey V. Dyatko [1]

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

10 years agoMFC r259222:
mav [Wed, 25 Dec 2013 12:41:53 +0000 (12:41 +0000)]
MFC r259222:
Destroy mtx lock when failed to allocate memory during attach.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

10 years agoMFC r259729:
gjb [Wed, 25 Dec 2013 06:09:07 +0000 (06:09 +0000)]
MFC r259729:
  Bootstrap etcupdate(8) as part of the release build, similar
  to what is done for mergemaster(8).  This allows etcupdate(8)
  to work out-of-box after the first upgrade of a system.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259740:
dim [Wed, 25 Dec 2013 00:53:48 +0000 (00:53 +0000)]
MFC r259740:

In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
SORT_THREADS is defined, so make the whole function conditional, instead
of just the pthread calls in it.

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

10 years agoMFC r259724:
dim [Wed, 25 Dec 2013 00:48:08 +0000 (00:48 +0000)]
MFC r259724:

Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.

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

10 years agoMFC r259720:
dim [Wed, 25 Dec 2013 00:40:42 +0000 (00:40 +0000)]
MFC r259720:

For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.

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

10 years agoMFC r259520:
ae [Tue, 24 Dec 2013 23:23:44 +0000 (23:23 +0000)]
MFC r259520:
  Fix copy/paste typo.

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

10 years agoMFC 259013:
jhb [Tue, 24 Dec 2013 19:10:56 +0000 (19:10 +0000)]
MFC 259013:
Fix the processor table entry structure to use a fixed-width type for
32-bit fields so it is the correct size on amd64.  Remove a workaround
for the broken structure from bhyve(8).

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

10 years agoMFC 258869:
jhb [Tue, 24 Dec 2013 19:01:08 +0000 (19:01 +0000)]
MFC 258869:
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.

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

10 years agoMFC 258177:
jhb [Tue, 24 Dec 2013 18:48:29 +0000 (18:48 +0000)]
MFC 258177:
Remove an incorrectly copied and pasted clause from these license
statements.

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

10 years agoMFC r259473:
dim [Tue, 24 Dec 2013 14:26:31 +0000 (14:26 +0000)]
MFC r259473:

Enable llvm's integrated assembler for PowerPC, since it should now be
good enough for typical usage.

Requested by: rdivacky

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

10 years agoMFC r259677: swapon: Fix buffer overflow when configuring swap on GBDE.
jilles [Tue, 24 Dec 2013 13:46:54 +0000 (13:46 +0000)]
MFC r259677: swapon: Fix buffer overflow when configuring swap on GBDE.

PR: bin/184950

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

10 years agoMFC r259522:
kib [Tue, 24 Dec 2013 07:32:06 +0000 (07:32 +0000)]
MFC r259522:
If vn_open_vnode() succeeded in opening the vnode, but subsequent
advisory lock cannot be obtained, prevent double-close of the vnode in
vn_close() called from the fdrop(), by resetting file' f_ops methods.

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

10 years agoMFC r259521:
kib [Tue, 24 Dec 2013 07:25:49 +0000 (07:25 +0000)]
MFC r259521:
Do not allow O_EXEC opens for fifo, return EINVAL.

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

10 years agoMFC r259808
rodrigc [Tue, 24 Dec 2013 05:17:24 +0000 (05:17 +0000)]
MFC r259808

  Add pointer to wiki for Hyper-V information.

  Wiki content for Hyper-V in FreeBSD 10 was significantly updated by
  Abhishek Gupta <abgupta@microsoft.com>.

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

10 years agoMFC r259527:
np [Tue, 24 Dec 2013 02:10:12 +0000 (02:10 +0000)]
MFC r259527:

Do not create a hardware IPv6 server if the listen address is not
in6addr_any and is not in the CLIP table either.  This fixes a reported
TOE+IPv6 NULL-dereference panic in do_pass_open_rpl().

While here, stop creating hardware servers for any loopback address.
It's just a waste of server tids.

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

10 years agoSwitch references to -CURRENT to -STABLE.
gjb [Mon, 23 Dec 2013 21:07:02 +0000 (21:07 +0000)]
Switch references to -CURRENT to -STABLE.
This is a direct commit to stable/10/.

Sponsored by: The FreeBSD Foundation

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

10 years agoUpdate FreeBSD version entity values.
gjb [Mon, 23 Dec 2013 20:52:29 +0000 (20:52 +0000)]
Update FreeBSD version entity values.
This is a direct commit to stable/10/, because the values differ
between stable/10/ and head/.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259058,r259060:
delphij [Mon, 23 Dec 2013 20:20:46 +0000 (20:20 +0000)]
MFC r259058,r259060:

Remove -q from usage.

Document -q and --quiet as discouraged compatibility option.

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

10 years agoMFC r259131:
delphij [Mon, 23 Dec 2013 20:16:54 +0000 (20:16 +0000)]
MFC r259131:

Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFT
while listing importable pools.

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

10 years agoMFC r259781:
rodrigc [Mon, 23 Dec 2013 19:51:30 +0000 (19:51 +0000)]
MFC r259781:
  Mention jemalloc upgrade to 3.4.0

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

10 years agoMFC:
rodrigc [Mon, 23 Dec 2013 11:48:22 +0000 (11:48 +0000)]
MFC:
  Merge release note updates.

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

10 years agoMFC r259685:
imp [Mon, 23 Dec 2013 01:24:32 +0000 (01:24 +0000)]
MFC r259685:

 Plumb the cn_grab and cn_ungrab routines down into the uart
 clients. Mask RX interrupts while grabbed on the atmel serial
 driver. This UART interrupts every character. When interrupts are
 enabled at the mountroot> prompt, this means the ISR eats the
 characters. Rather than try to create a cooperative buffering system
 for the low level kernel console, instead just mask out the ISR. For
 NS8250 and decsendents this isn't needed, since interrupts only happen
 after 14 or more characters (depending on the fifo settings). Plumb
 such that these are optional so there's no change in behavior for all
 the other UART clients. ddb worked on this platform because all
 interrupts were disabled while it was running, so this problem wasn't
 noticed. The mountroot> issue has been around for a very very long
 time.

Approved by: re@ (gjb@)

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

10 years agoMFC r256650: kldxref: Add static keyword to the new function only used in the
jilles [Sun, 22 Dec 2013 23:08:33 +0000 (23:08 +0000)]
MFC r256650: kldxref: Add static keyword to the new function only used in the
same file.

The WARNS level is not such that the omission broke the build.

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

10 years agoMFC r259717:
dumbbell [Sun, 22 Dec 2013 21:53:08 +0000 (21:53 +0000)]
MFC r259717:

drm: Lower priority of "EDID checksum is invalid" message

The priority goes from "error" to "debug".

Connectors are polled every 10 seconds. Reading EDID is part of this
polling. However, when an invalid EDID is returned, this error message
is logged. When using Newcons for instance, having a kernel message
every 10 seconds is getting annoying.

Now that it's a debug message, it'll be logged only if hw.dri.debug is
enabled. This fix console spamming for some users.

Tested by: Larry Rosenman <ler@lerctr.org>

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

10 years agoMFC r259684:
dumbbell [Sun, 22 Dec 2013 21:18:21 +0000 (21:18 +0000)]
MFC r259684:

drm/ttm, drm/radeon: Replace EINTR/ERESTART by ERESTARTSYS...

... for msleep/cv_*wait() return values, where wait_event*() is used
on Linux. ERESTARTSYS is the return code expected by callers when the
operation was interrupted.

For instance, this is the case of radeon_cs_ioctl() (radeon_cs.c): if
an error occurs, and the code isn't ERESTARTSYS (eg. EINTR), it logs an
error.

Note that ERESTARTSYS is defined as ERESTART, but this keeps callers'
code close to Linux.

Submitted by: avg@ (previous version)

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

10 years agoMFC r259679:
dumbbell [Sun, 22 Dec 2013 21:09:43 +0000 (21:09 +0000)]
MFC r259679:

vga_pci: Improve boot display detection

The previous code was checking the "VGA Enable" bit on the video card's
parent PCI-to-PCI bridge only. This didn't work for the case where the
video card is attached to the root PCI bus (ie. the card has no parent
PCI-to-PCI bridge).

Now, the new code:
    1. checks the "VGA Enable" bit on the parent bridge only if it's a
       PCI-to-PCI bridge;
    2. always checks the "I/O" and "Memory address space decoding" bits
       on the video card itself.

However, vendor-specific bits are not used.

This fixes the use of many integrated Radeon cards: without this patch,
we fail to detect them as the boot display and, when radeonkms looks for
the Video BIOS, it skips the shadow copy made by the System BIOS. It
then fails to fully initialize the card, because the shadow copy is the
only way to read the Video BIOS in these situations. A workaround was to
force the boot display selection using the "hw.pci.default_vgapci_unit"
tunable.

A previous version of this patch added a new function doing the checks.
Now, the vga_pci_is_boot_display() function is used to perform the
checks (only until the boot display is found) and return if the given
device is the boot display or not.

Furthermore, vga_pci_attach() logs "Boot video device" if the card being
attached it the Chosen One:
    vgapci0: <VGA-compatible display> [...]
    vgapci0: Boot video device

Reviewed by: kib@, jhb@ (both a previous version)
Tested by: lunatic_ (#freebsd-xorg, integrated Radeon card,
xmj (#freebsd-xorg, i915+NVIDIA cards)

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

10 years agoMFC r259576:
pjd [Sun, 22 Dec 2013 19:36:08 +0000 (19:36 +0000)]
MFC r259576:

MFV r258923: 4188 assertion failed in dmu_tx_hold_free(): dn_datablkshift != 0

illumos/illumos-gate@bb411a08b05466bfe0c7095b6373bbc1587e259a

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

10 years agoMFC r259108:
mav [Sun, 22 Dec 2013 13:02:34 +0000 (13:02 +0000)]
MFC r259108:
When comparing device IDs, make sure that they have the same type
(like NAA assigned) and identify the same entity (like device or port).
Otherwise there can be false positives since at least some models of
Seagate disks use same IDs for the whole device and one of its ports.

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

10 years agoMFC r258017, r258429, r258748, r258817:
pfg [Sat, 21 Dec 2013 18:47:00 +0000 (18:47 +0000)]
MFC r258017, r258429, r258748, r258817:

Merge updates from FSF pre4.3 GCC inspired on Apple's gcc:

  Updates to libiberty and mangling.
  New align attribute.
  Merge Apple updates to libstdc++.

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

10 years agoMFC r259498:
dim [Fri, 20 Dec 2013 20:14:54 +0000 (20:14 +0000)]
MFC r259498:

Pull in r197399 from upstream clang trunk:

  Add bit_FXSAVE as an alias for bit_FXSR, for gcc compat.

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

10 years agoMFC of 259626, tzdata2013i
edwin [Thu, 19 Dec 2013 23:29:34 +0000 (23:29 +0000)]
MFC of 259626, tzdata2013i

Removed support for solar-time-based time zones
Jordan stays at summer time this year.
Fix historical data for Cuba

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

10 years agoMF9: Don't fail to build if MALLOC_PRODUCTION is defined in make.conf
peter [Thu, 19 Dec 2013 21:03:08 +0000 (21:03 +0000)]
MF9: Don't fail to build if MALLOC_PRODUCTION is defined in make.conf

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

10 years agoMFC r259569:
np [Thu, 19 Dec 2013 19:15:24 +0000 (19:15 +0000)]
MFC r259569:
cxgbe.4: Belated update to the man page to reflect T5 support.

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

10 years agoMFC r259276,259468-259470,259472,259474,259476-259478,259480-259481,259570,
dteske [Thu, 19 Dec 2013 18:52:41 +0000 (18:52 +0000)]
MFC r259276,259468-259470,259472,259474,259476-259478,259480-259481,259570,
259572, and 259597-259598...

r259276: Fix bug in `services' script in adding dumpdev comment to rc.conf
r259468: Ignore spurious escape generated by VMware's Ctrl-Cmd combination
r259469: Mask errors in `config' script from newaliases(1) about non-FQHN
r259470: Set atime=on for /var/mail zfsboot dataset to support mail server
r259472: Accept NULL input for zfsboot SWAP to indicate SWAP of zero bytes
r259474: Multiple changes, including bug-fixes and debugging improvements
r259476: Change default ZFS disk layout, making it easier to resize
r259477: fletcher4 is now the default (zfsboot related)
r259478: De-uglify the geli(8)-setup infobox (zfsboot related)
r259480: Fix ghosted zroot issue by always performing labelclear on swap
r259481: Auto-enable 4k sector alignmet when geli(8) is enabled (zfsboot)
r259570: Fix numerical comparison error (zfsboot)
r259572: Mask spurious rm error in bsdinstall_log from `auto' script
r259597: Fix zfsboot regression when installing to 3+ disks
r259598: Set cachefile property of bootpool so it imports to new system

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

10 years agoMFC r259266:
bdrewery [Thu, 19 Dec 2013 12:33:24 +0000 (12:33 +0000)]
MFC r259266:

  Fix multi-repository support by properly respecting 'enabled' flag.

  This will read the REPOS_DIR env/config setting (default is /etc/pkg
  and /usr/local/etc/pkg/repos) and use the last enabled repository.

  This can be changed in the environment using a comma-separated list,
  or in /usr/local/etc/pkg.conf with JSON array syntax of:
      REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"]

Approved by: bapt (mentor)

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

10 years agoDefer start/stop port to workqueues.
alfred [Thu, 19 Dec 2013 07:33:07 +0000 (07:33 +0000)]
Defer start/stop port to workqueues.

MFC: 259411

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

10 years agoMFC r259248 and r259462:
hselasky [Thu, 19 Dec 2013 07:20:37 +0000 (07:20 +0000)]
MFC r259248 and r259462:
Set chain bit correctly. This will fix some problems sending and
receiving Zero Length Packets, ZLPs. See comment in code for more
information.

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

10 years agoMFC r259023 and r259095:
hselasky [Thu, 19 Dec 2013 07:13:59 +0000 (07:13 +0000)]
MFC r259023 and r259095:
Improve the XHCI command timeout recovery handling code.
Fix some typos while at it.

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

10 years agoMFC r258629, 258662:
truckman [Thu, 19 Dec 2013 07:12:34 +0000 (07:12 +0000)]
MFC r258629, 258662:

r258629:
  Mention that devd will kldload the driver when the device is connected.

  Mention that the automatic mode switch from umass to u3g needed by some
  devices does not work unless the driver is loaded before the device is
  connected.

r258662 (by joel):
  mdoc: sort sections.

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

10 years agoRegenerate after
truckman [Thu, 19 Dec 2013 06:39:48 +0000 (06:39 +0000)]
Regenerate after
r255238, r257044, r259453 (if_run)
r255128 (ng_ubt)
r259592 (u3g)

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

10 years agoMFC r258363:
truckman [Thu, 19 Dec 2013 05:36:06 +0000 (05:36 +0000)]
MFC r258363:

Add alternate ID for Novatel MiFi 2200 CDMA, which is used by my
Virgin Mobile branded device.  It needs the U3GINIT_SCSIEJECT quirk.

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

10 years agoMFC r258731:
pfg [Thu, 19 Dec 2013 02:39:11 +0000 (02:39 +0000)]
MFC r258731:

gcc: Make use of TREE_OVERFLOW_P.

While it was brought in r258179 only to fix a build issue,
bringing the rest of the change has the advantage of fixing
GCC/19978.

Obtained from: gcc 4.3 (rev. 120505; GPLv2)

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

10 years agoMFC r258651, r258943:
pfg [Thu, 19 Dec 2013 02:32:07 +0000 (02:32 +0000)]
MFC r258651, r258943:
gcc: Altivec register adjustments from Apple.
gcc: On rs6000 update sp_offset depending only on size.

Tested by: Justin Hibbits
Obtained from: gcc pre-4.3 (rev. 124763, 125116; GPLv2)

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

10 years agoMFC r259571:
rodrigc [Wed, 18 Dec 2013 21:49:17 +0000 (21:49 +0000)]
MFC r259571:

  Add SVN revision numbers for Mellanox updates.

MFC r259573:

  Add SVN revision numbers for Chelsio updates.

MFC r259574:

  Indent.

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

10 years agoMFC r258428, r258445
pfg [Wed, 18 Dec 2013 19:07:29 +0000 (19:07 +0000)]
MFC r258428, r258445

gcc: another round of merges from the gcc pre-43 branch.

Bring The following revisions from the gcc43 branch[1]:

118360, 118361, 118363, 118576, 119820,
123906, 125246, and 125721.

They all have in common that the were merged long ago
into Apple's gcc and should help improve the general
quality of the compiler and make it easier to bring
new features from Apple's gcc42.

For details please review the additions to the files:
gcc/ChangeLog.gcc43
gcc/cp/ChangeLog.gcc43 (new, adds previous revisions)

Fix crosscompilation (r258445 by andreast)
Reference:
[1] http://gcc.gnu.org/viewcvs/gcc/trunk/?pathrev=126700

Obtained from: gcc pre4.3 (GPLv2) branch
MFC after: 3 weeks

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

10 years agoMerge r256868,257276-257277,257515,257913 from head. These are fixes
glebius [Wed, 18 Dec 2013 05:20:53 +0000 (05:20 +0000)]
Merge r256868,257276-257277,257515,257913 from head. These are fixes
required to make Xen buŃ‚ldable w/o INET.

Sponsored by: Nginx, Inc.

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

10 years agoMFC r259302,r259413
grehan [Wed, 18 Dec 2013 03:51:04 +0000 (03:51 +0000)]
MFC r259302,r259413

r259302
  bhyve(8) man page

r259413
  mdoc: sort SEE ALSO

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

10 years agoMFC r259426, r259427:
gjb [Wed, 18 Dec 2013 01:14:25 +0000 (01:14 +0000)]
MFC r259426, r259427:
r259426:
  Add a pkg(8) repository configuration file for cdrom-based package
  installation.

  As part of the 'pkg-stage' target, copy the configuration file
  to the 'packages/repos/' directory on the DVD filesystem.

r259427:
  Export 'REPOS_DIR' when the selected source medium for package
  installation is cdrom.  This enables bsdconfig(8) to make use
  of the on-disc pkg(8) repository configuration, which fixes
  package selection and installation from the dvd installer.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC DMAR busdma implementation.
kib [Tue, 17 Dec 2013 13:49:35 +0000 (13:49 +0000)]
MFC DMAR busdma implementation.

MFC r257251:
Import the driver for VT-d DMAR hardware.  Implement the busdma(9) using DMARs.

MFC r257512:
Add support for queued invalidation.

MFC miscellaneous follow-ups to r257251.

MFC r257266:
Remove redundand assignment to error variable and check for its value.

MFC r257308:
Remove redundand declaration.

MFC r257511:
Return BUS_PROBE_NOWILDCARD from the DMAR probe method.

MFC r257860,r257896,r257900,r257902,r257903 (by dim):
Fixes for gcc compilation.

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

10 years agoMFC r257230:
kib [Tue, 17 Dec 2013 13:39:50 +0000 (13:39 +0000)]
MFC r257230:
Add a virtual table for the busdma methods on x86, to allow different
busdma implementations to coexist.

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

10 years agoMFC r257228:
kib [Tue, 17 Dec 2013 13:38:21 +0000 (13:38 +0000)]
MFC r257228:
Add bus_dmamap_load_ma() function to load map with the array of
vm_pages.

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

10 years agoMFC r257541:
kib [Tue, 17 Dec 2013 13:18:41 +0000 (13:18 +0000)]
MFC r257541:
Fix several issues with the busdma(9) KPI use in the e1000 drivers.

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

10 years agoMFC r258088:
kib [Tue, 17 Dec 2013 13:10:28 +0000 (13:10 +0000)]
MFC r258088:
Add check for buflen overflow by comparing the buflen with both offset
and resid.

MFC r258397:
Redo r258088 to avoid relying on signed arithmetic overflow.

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

10 years agoMFC r258039:
kib [Tue, 17 Dec 2013 09:21:56 +0000 (09:21 +0000)]
MFC r258039:
Avoid overflow for the page counts.

MFC r258365:
Revert back to use int for the page counts.
Rearrange the checks to correctly handle overflowing address arithmetic.

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

10 years agoMFC r259493:
rodrigc [Tue, 17 Dec 2013 04:26:20 +0000 (04:26 +0000)]
MFC r259493:

  Add OFED and Mellanox items to release notes.

  Submitted by: Meny Yossefi <menyy mellanox com>

MFC r259490:

  Add release note items from Chelsio.

  Submitted by: np

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

10 years agoMFC r258770 (hrs):
gjb [Tue, 17 Dec 2013 04:16:20 +0000 (04:16 +0000)]
MFC r258770 (hrs):
  Add NOPKG to disable pkg-stage.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259246:
gjb [Tue, 17 Dec 2013 03:46:44 +0000 (03:46 +0000)]
MFC r259246:
  Prevent release build errors found during snapshot builds where if
  NOPORTS=1, pkg-stage.sh cannot build the ports-mgmt/pkg port if
  WITH_DVD=1.

Sponsored by: The FreeBSD Foundation

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

10 years agoRecord mergeinfo for r258927.
gjb [Tue, 17 Dec 2013 01:02:34 +0000 (01:02 +0000)]
Record mergeinfo for r258927.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258311
asomers [Mon, 16 Dec 2013 19:59:34 +0000 (19:59 +0000)]
MFC r258311

opensolaris/uts/common/dtrace/fasttrap.c
        Fix several problems that can cause panics on kldload and kldunload.

        * kproc_create(fasttrap_pid_cleanup_cb, ...) gets called before
          fasttrap_provs.fth_table gets allocated.  This can lead to a panic
          on module load, because fasttrap_pid_cleanup_cb references
          fasttrap_provs.fth_table.  Move kproc_create down after the point
          that fasttrap_provs.fth_table gets allocated, and modify the error
          handling accordingly.

        * dtrace_fasttrap_{fork,exec,exit} weren't getting NULLed until
          after fasttrap_provs.fth_table got freed.  That caused panics on
          module unload because fasttrap_exec_exit calls
          fasttrap_provider_retire, which references
          fasttrap_provs.fth_table.  NULL those function pointers earlier.

        * There wasn't any code to destroy the
          fasttrap_{tpoints,provs,procs}.fth_table mutexes on module unload,
          leading to a resource leak when WITNESS is enabled.  Destroy those
          mutexes during fasttrap_unload().

Sponsored by: Spectra Logic Corporation

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

10 years agoMFC r258819,258928:
nwhitehorn [Mon, 16 Dec 2013 15:00:06 +0000 (15:00 +0000)]
MFC r258819,258928:

Add new sysctl, kern.supported_archs, containing the list of FreeBSD
MACHINE_ARCH values whose binaries this kernel can run. This patch provides
a feature requested for implementing pkgng ABI identifiers in a robust
way.

The list is designed to indicate whether, say, an i386 package can be run on
the current system. If kern.supported_abis contains "i386", then the answer
is yes. Otherwise, the answer is no.

At the moment, this only supports MACHINE_ARCH and MACHINE_ARCH32. As we
gain support for more interesting combinations, this needs to become more
flexible, possibily through the sysent framework, along with the
hw.machine_arch emulation immediately preceding this code in kern_mib.c.

Reviewed by: imp

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

10 years agoMFC r256718, r257410 and r257411:
hselasky [Mon, 16 Dec 2013 09:48:08 +0000 (09:48 +0000)]
MFC r256718, r257410 and r257411:
- Fix RF registers for RT3070.
- Initialize BBP68 to improve RX sensitivity.
- Add RT2860_BCN_OFFSET1 and RT2860_MAX_LEN_CFG register initialization to
match with the vendor driver. While here, remove unused RT2860_DEF_MAC
definition.

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

10 years agoMFC r238274, r246752, r256720, r256721, r256722, r256955, r257409
hselasky [Mon, 16 Dec 2013 08:10:38 +0000 (08:10 +0000)]
MFC r238274, r246752, r256720, r256721, r256722, r256955, r257409
 r257429, r257435, r257712, r257732, r257743, r257748, r257955
 r257957, r257958, r258082, r258641, r258643, r258732, r258733,
 r258840, r258919, r258921, r259029, r259030, r259031, r259032 and r259046:

- Add support for the MediaTek/Ralink RT5370/RT5372 chipset.
- Various minor USB WLAN fixes and improvements.

PR:     usb/182936

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