]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
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

10 years agoMFC r262912
asomers [Fri, 28 Mar 2014 15:09:35 +0000 (15:09 +0000)]
MFC r262912

cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without
a corresponding pthread_mutex_destroy.  It shows up, among other
places, when doing "zfs list".

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

10 years agoMFC: r263169
brueffer [Fri, 28 Mar 2014 08:55:34 +0000 (08:55 +0000)]
MFC: r263169

Add support for AMD Family 16h (Kabini) sensor devices.

PR: 186587
Submitted by: David Rufino <david.rufino at gmail.com>

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

10 years agoMFC r259180 (pjd) + r263123:
delphij [Fri, 28 Mar 2014 01:13:08 +0000 (01:13 +0000)]
MFC r259180 (pjd) + r263123:

Hide a few messages under bootverbose.

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

10 years agoMFC r263694:
dim [Thu, 27 Mar 2014 20:46:46 +0000 (20:46 +0000)]
MFC r263694:

Apply a temporary band-aid for building devd with clang 3.4, libstdc++
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!).  This is primarily meant to be MFC'd as
soon as possible.

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

10 years agoMFC r263692:
dim [Thu, 27 Mar 2014 20:32:58 +0000 (20:32 +0000)]
MFC r263692:

Add a note to UPDATING about customized kernel configuration files now
requiring -gdwarf-2 for debug info, when using clang 3.4.

Suggested by: adrian

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

10 years agoMFC: r262484
brueffer [Thu, 27 Mar 2014 20:19:11 +0000 (20:19 +0000)]
MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR: 153801
Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by: jhb, peter

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

10 years agoMFC: r263121
brueffer [Thu, 27 Mar 2014 20:13:53 +0000 (20:13 +0000)]
MFC: r263121

Re-format the license to conform to our BSD license template as much
as possible.  This does not change the wording in any way.

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.  While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.

Reviewed by: imp, emaste, eadler

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

10 years agoMFC r262867
asomers [Thu, 27 Mar 2014 16:47:35 +0000 (16:47 +0000)]
MFC r262867

Fix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical buffers
drop packets".  It was caused by a check for the space available in a
sockbuf, but it was checking the wrong sockbuf.

sys/sys/sockbuf.h
sys/kern/uipc_sockbuf.c
Add sbappendaddr_nospacecheck_locked(), which is just like
sbappendaddr_locked but doesn't validate the receiving socket's space.
Factor out common code into sbappendaddr_locked_internal().  We
shouldn't simply make sbappendaddr_locked check the space and then call
sbappendaddr_nospacecheck_locked, because that would cause the O(n)
function m_length to be called twice.

sys/kern/uipc_usrreq.c
Use sbappendaddr_nospacecheck_locked for SOCK_SEQPACKET sockets,
because the receiving sockbuf's size limit is irrelevant.

tests/sys/kern/unix_seqpacket_test.c
Now that 185813 is fixed, pipe_128k_8k fails intermittently due to
185812.  Make it fail every time by adding a usleep after starting the
writer thread and before starting the reader thread in test_pipe.  That
gives the writer time to fill up its send buffer.  Also, clear the
expected failure message due to 185813.  It actually said "185812", but
that was a typo.

PR: kern/185813

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

10 years agoMFC r263423:
hselasky [Thu, 27 Mar 2014 06:59:56 +0000 (06:59 +0000)]
MFC r263423:
Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.

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

10 years agoMFC r263291 and r263292:
hselasky [Thu, 27 Mar 2014 06:55:26 +0000 (06:55 +0000)]
MFC r263291 and r263292:
Update USB template manual page.

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

10 years agoMFC r262501:
delphij [Thu, 27 Mar 2014 00:23:44 +0000 (00:23 +0000)]
MFC r262501:

Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $2a$ format of password
but we will migrate to the new format once the format is formally
finalized.

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

10 years agoMFC r262991:
delphij [Wed, 26 Mar 2014 23:57:09 +0000 (23:57 +0000)]
MFC r262991:

Correct a typo in nlm_find_host_by_addr(): the intention of the
code is to give "<unknown>" rather than comparing the buffer
against it.

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

10 years agoMFC r262657:
dim [Wed, 26 Mar 2014 20:10:07 +0000 (20:10 +0000)]
MFC r262657:

Apply fix for lldb not linking after the sparc backend import.

Reported by: se
Pointy hat to: dim

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

10 years agoMFC r263349:
kib [Wed, 26 Mar 2014 16:59:28 +0000 (16:59 +0000)]
MFC r263349:
Make the array pointed to by AT_PAGESIZES auxv properly aligned.

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

10 years agoMFC r263312:
dim [Wed, 26 Mar 2014 07:42:43 +0000 (07:42 +0000)]
MFC r263312:

Pull in r196939 from upstream llvm trunk (by Reid Kleckner):

  Reland "Fix miscompile of MS inline assembly with stack realignment"

  This re-lands commit r196876, which was reverted in r196879.

  The tests have been fixed to pass on platforms with a stack alignment
  larger than 4.

  Update to clang side tests will land shortly.

Pull in r196986 from upstream llvm trunk (by Reid Kleckner):

  Revert the backend fatal error from r196939

  The combination of inline asm, stack realignment, and dynamic allocas
  turns out to be too common to reject out of hand.

  ASan inserts empy inline asm fragments and uses aligned allocas.
  Compiling any trivial function containing a dynamic alloca with ASan is
  enough to trigger the check.

  XFAIL the test cases that would be miscompiled and add one that uses the
  relevant functionality.

Pull in r202930 from upstream llvm trunk (by Hans Wennborg):

  Check for dynamic allocas and inline asm that clobbers sp before building
  selection dag (PR19012)

  In X86SelectionDagInfo::EmitTargetCodeForMemcpy we check with MachineFrameInfo
  to make sure that ESI isn't used as a base pointer register before we choose to
  emit rep movs (which clobbers esi).

  The problem is that MachineFrameInfo wouldn't know about dynamic allocas or
  inline asm that clobbers the stack pointer until SelectionDAGBuilder has
  encountered them.

  This patch fixes the problem by checking for such things when building the
  FunctionLoweringInfo.

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

Together, these commits fix the problem encountered in the devel/emacs
port on the i386 architecture, where a combination of stack realignment,
alloca() and memcpy() could incidentally clobber the %esi register,
leading to segfaults in the temacs build-time utility.

See also: http://llvm.org/PR18171 and http://llvm.org/PR19012

Reported by: ashish
PR: ports/183064

MFC r263313:

Pull in r203311 from upstream llvm trunk (by Arnold Schwaighofer):

  ISel: Make VSELECT selection terminate in cases where the condition type has to
  be split and the result type widened.

  When the condition of a vselect has to be split it makes no sense widening the
  vselect and thereby widening the condition. We end up in an endless loop of
  widening (vselect result type) and splitting (condition mask type) doing this.
  Instead, split both the condition and the vselect and widen the result.

  I ran this over the test suite with i686 and mattr=+sse and saw no regressions.

  Fixes PR18036.

With this fix the original problem case from the graphics/rawtherapee
port (posted in http://llvm.org/PR18036 ) now compiles within ~97MB RSS.

Reported by: mandree

MFC r263320:

Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang.  These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.

This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones.  Hopefully those
can eventually be cleaned up and sent upstream too.

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

10 years agoMFC r262613:
dim [Wed, 26 Mar 2014 07:31:57 +0000 (07:31 +0000)]
MFC r262613:

Merge the projects/clang-sparc64 branch back to head.  This brings in
several updates from the llvm and clang trunks to make the sparc64
backend fully functional.

Apart from one patch to sys/sparc64/include/pcpu.h which is still under
discussion, this makes it possible to let clang fully build world and
kernel for sparc64.

Any assistance with testing this on actual sparc64 hardware is greatly
appreciated, as there will unavoidably be bugs left.

Many thanks go to Roman Divacky for his upstream work on getting the
sparc64 backend into shape.

MFC r262985:

Repair a few minor mismerges from r262261 in the clang-sparc64 project
branch.  This is also to minimize differences with upstream.

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

10 years agoMFC r263306:
kib [Tue, 25 Mar 2014 20:17:57 +0000 (20:17 +0000)]
MFC r263306:
Add some support for the PCI(e)-PCI bridges to the Intel VT-d driver.

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

10 years agoMFC r263305:
kib [Tue, 25 Mar 2014 20:16:28 +0000 (20:16 +0000)]
MFC r263305:
Provide a workaround by identity mapping the 32 pages after the bogus
entry start, which seems to be enough for the reported BIOS.

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

10 years agoMFC 262782:
trasz [Tue, 25 Mar 2014 13:18:09 +0000 (13:18 +0000)]
MFC 262782:

Fix missing unlock in persistent reservations code, which resulted in panics
with Hyper-V Failover Cluster.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263356:
trasz [Tue, 25 Mar 2014 12:38:43 +0000 (12:38 +0000)]
MFC r263356:

Make the error message more clear.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261752:
trasz [Tue, 25 Mar 2014 12:33:16 +0000 (12:33 +0000)]
MFC r261752:

Empty data segment during Login Phase is rather unlikely, but it's
not, by itself, a protocol error.  This fixes interoperability with
OpenBSD initiator.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261751:
trasz [Tue, 25 Mar 2014 12:31:08 +0000 (12:31 +0000)]
MFC r261751:

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@263732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261962:
trasz [Tue, 25 Mar 2014 12:26:00 +0000 (12:26 +0000)]
MFC r261962:

Mention that rctl(8) was sponsored by the Foundation.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261764:
trasz [Tue, 25 Mar 2014 12:24:18 +0000 (12:24 +0000)]
MFC r261764:

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 ctld(8) zombies disappear.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261763:
trasz [Tue, 25 Mar 2014 12:22:30 +0000 (12:22 +0000)]
MFC r261763:

Use new auth-type "deny" instead of using "chap" with no chap entries;
it's cleaner this way, and gives better feedback to the user.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261762:
trasz [Tue, 25 Mar 2014 12:20:29 +0000 (12:20 +0000)]
MFC r261762:

Use "default" as default discovery-auth-group, instead of "no-access".
It doesn't change visible behaviour, as previously auth-group "default"
wasn't redefinable, so by default access was always denied.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261761:
trasz [Tue, 25 Mar 2014 12:18:37 +0000 (12:18 +0000)]
MFC r261761:

Update manual page to match recent auth-group "default" changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261760:
trasz [Tue, 25 Mar 2014 12:16:52 +0000 (12:16 +0000)]
MFC r261760:

Add a new auth-group "default", defaulting to deny, and make it possible
to redefine it.  From now on, assigning auth-group to a target is no longer
mandatory.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261759:
trasz [Tue, 25 Mar 2014 12:14:48 +0000 (12:14 +0000)]
MFC r261759:

Make it possible to redefine portal-group "default".

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261758:
trasz [Tue, 25 Mar 2014 12:12:37 +0000 (12:12 +0000)]
MFC r261758:

Add auth-type.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261757:
trasz [Tue, 25 Mar 2014 12:10:30 +0000 (12:10 +0000)]
MFC r261757:

Rename a variable, no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261756:
trasz [Tue, 25 Mar 2014 12:08:35 +0000 (12:08 +0000)]
MFC r261756:

Yacc cleanup; no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261755:
trasz [Tue, 25 Mar 2014 12:06:42 +0000 (12:06 +0000)]
MFC r261755:

Make function ordering slightly more logical; no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261754:
trasz [Tue, 25 Mar 2014 12:01:55 +0000 (12:01 +0000)]
MFC r261754:

Implement initiator-name and initiator-portal restrictions.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261753:
trasz [Tue, 25 Mar 2014 12:00:05 +0000 (12:00 +0000)]
MFC r261753:

Daemonize after applying configuration, not before, so that
any problems - including "daemon already running" - are visible
on the terminal and not just in logs.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261750:
trasz [Tue, 25 Mar 2014 11:58:24 +0000 (11:58 +0000)]
MFC r261750:

Improve check for duplicated paths.  It shows the warning twice for every
path (once for each duplicate found), but it should do for now.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261749:
trasz [Tue, 25 Mar 2014 11:53:47 +0000 (11:53 +0000)]
MFC r261749:

Refactor.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261768:
trasz [Tue, 25 Mar 2014 11:46:46 +0000 (11:46 +0000)]
MFC r261768:

Make the debug messages during ctld(8) shutdown less confusing.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261767:
trasz [Tue, 25 Mar 2014 11:45:03 +0000 (11:45 +0000)]
MFC r261767:

Show proper configuration file line numbers in error messages.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261766:
trasz [Tue, 25 Mar 2014 11:43:09 +0000 (11:43 +0000)]
MFC r261766:

Make ctld error out on invalid characters in ctl.conf.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261765:
trasz [Tue, 25 Mar 2014 11:41:10 +0000 (11:41 +0000)]
MFC r261765:

Improve error reporting.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD
emaste [Mon, 24 Mar 2014 13:48:04 +0000 (13:48 +0000)]
MFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD

  The NetBSD Foundation states "Third parties are encouraged to change the
  license on any files which have a 4-clause license contributed to the
  NetBSD Foundation to a 2-clause license."

  This change removes clauses 3 and 4 from copyright / license blocks that
  list The NetBSD Foundation as the only copyright holder.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263471:
kib [Mon, 24 Mar 2014 12:40:53 +0000 (12:40 +0000)]
MFC r263471:
Initialize vm_map_entry member wiring_thread on the map entry creation.

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

10 years agoMerge r263497: fix ipfw + VIMAGE sysctls.
glebius [Mon, 24 Mar 2014 10:19:07 +0000 (10:19 +0000)]
Merge r263497: fix ipfw + VIMAGE sysctls.

PR: kern/187665

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

10 years agoMFC: r263441:
pfg [Sun, 23 Mar 2014 19:48:30 +0000 (19:48 +0000)]
MFC: r263441:

msdosfs: minor format fix - spaces vs tab

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

10 years agoMerge r263658 from head: remove unneeded fake _KERNEL definition.
glebius [Sun, 23 Mar 2014 19:07:14 +0000 (19:07 +0000)]
Merge r263658 from head: remove unneeded fake _KERNEL definition.
Should fix broken builds.

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

10 years agoTurn off warnings for building aicasm. Various versions of yacc exist,
dim [Sun, 23 Mar 2014 14:18:40 +0000 (14:18 +0000)]
Turn off warnings for building aicasm.  Various versions of yacc exist,
which can result in different warnings-as-errors in this tool, but these
are all completely harmless.

This is a direct commit to stable/7, stable/8, stable/9 and stable/10,
since this kernel build tool has already been removed in head.

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

10 years agoFurther refine the auth fail regex to catch more auth failures and
brueffer [Sun, 23 Mar 2014 12:58:48 +0000 (12:58 +0000)]
Further refine the auth fail regex to catch more auth failures and
reduce false positives.

The committed patch was provided by Christian Marg.

PR: 91732
Submitted by: Daniel O'Connor <doconnor at gsoft.com.au>
   Skye Poier <spoier at gmail.com>
   Alan Amesbury <amesbury at umn.edu>
   Christian Marg <marg at rz.tu-clausthal.de>

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